Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Image crashes program #73

Open
Aquoria opened this issue Dec 9, 2023 · 1 comment
Open

Load Image crashes program #73

Aquoria opened this issue Dec 9, 2023 · 1 comment
Labels

Comments

@Aquoria
Copy link

Aquoria commented Dec 9, 2023

I am on MacOS Sonoma 14.2 on an M1 Pro. I believe it is running Python 3.11

I can run the program and the GUI comes up and starts to work, but whenever the Load Image button is pressed directly, from the menu bar, or via cmd + o, the program crashes:

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x0000000188ebc570 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x00000001889adeb4 objc_exception_throw + 60
2 CoreFoundation 0x0000000188e32d10 -[__NSCFString hasSuffix:] + 0
3 libqcocoa.dylib 0x000000028889a044 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 274796
4 libqcocoa.dylib 0x000000028889a0c8 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 274928
5 libqcocoa.dylib 0x0000000288898688 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 268208
6 QtWidgets 0x000000012d5610c4 ZN9QListView14currentChangedERK11QModelIndexS2 + 112
7 QtCore 0x000000011e0cb48c _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3808
8 QtCore 0x000000011e29290c _ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 324
9 QtWidgets 0x000000012d3bf338 _ZNK9QComboBox5countEv + 828
10 QtWidgets 0x000000012d3c28b4 _ZN9QComboBoxC1ER16QComboBoxPrivateP7QWidget + 2412
11 QtCore 0x000000011e0cb224 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3192
12 QtCore 0x000000011e27a944 _ZN18QAbstractItemModel13endInsertRowsEv + 200
13 QtGui 0x000000012c29b7a4 _ZN18QStandardItemModel11itemChangedEP13QStandardItem + 2376
14 QtGui 0x000000012c2a0e74 _ZN18QStandardItemModel10insertRowsEiiRK11QModelIndex + 104
15 QtWidgets 0x000000012d4e0ed0 _ZN11QFileDialog11qt_metacallEN11QMetaObject4CallEiPPv + 22276
16 QtWidgets 0x000000012d4e19d8 _ZN11QFileDialog11qt_metacallEN11QMetaObject4CallEiPPv + 25100
17 QtWidgets 0x000000012d4d23f8 _ZNK11QFileDialog13defaultSuffixEv + 616
18 QtWidgets 0x000000012d4cac5c _ZN18QFileDialogPrivate18restoreWidgetStateER5QListI7QStringEi + 888
19 QtWidgets 0x000000012d4d559c _ZN18QFileDialogPrivate19restoreFromSettingsEv + 1604
20 QtWidgets 0x000000012d4cdcec _ZN18QFileDialogPrivate13createWidgetsEv + 3184
21 QtWidgets 0x000000012d4c8d1c _ZN11QFileDialog10setOptionsE6QFlagsINS_6OptionEE + 80
22 QtWidgets.abi3.so 0x000000010f5105f4 ZL29Sbk_QFileDialogFunc_setOptionP7_objectS0_S0 + 680
23 Python 0x0000000100eee5b8 cfunction_call + 60
24 Python 0x0000000100ea38f4 _PyObject_MakeTpCall + 128
25 Python 0x0000000100f81984 _PyEval_EvalFrameDefault + 42108
26 Python 0x0000000100f86070 _PyEval_Vector + 116
27 Python 0x0000000100ea6dd4 method_vectorcall + 384
28 libpyside6.abi3.6.6.dylib 0x000000010370e750 _ZN6PySide13SignalManager20callPythonMetaMethodERK11QMetaMethodPPvP7_objectb + 536
29 libpyside6.abi3.6.6.dylib 0x000000010370e318 _ZN6PySide13SignalManager20SignalManagerPrivate16qtMethodMetacallEP7QObjectiPPv + 760
30 QtCore 0x000000011e0cb1f4 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3144
31 QtGui 0x000000012c30b0a4 _ZN7QAction8activateENS_11ActionEventE + 368
32 QtCore 0x000000011e0c3ed8 _ZN7QObject5eventEP6QEvent + 612
33 QtWidgets 0x000000012d2ac594 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272
34 QtWidgets 0x000000012d2ad3e8 _ZN12QApplication6notifyEP7QObjectP6QEvent + 504
35 QtCore 0x000000011e081474 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292
36 QtCore 0x000000011e0826fc _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 1448
37 libqcocoa.dylib 0x000000028883acb0 qt_plugin_instance + 54476
38 libqcocoa.dylib 0x000000028883bd74 qt_plugin_instance + 58768
39 CoreFoundation 0x0000000188e47a4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
40 CoreFoundation 0x0000000188e479e0 __CFRunLoopDoSource0 + 176
41 CoreFoundation 0x0000000188e47750 __CFRunLoopDoSources0 + 244
42 CoreFoundation 0x0000000188e46340 __CFRunLoopRun + 828
43 CoreFoundation 0x0000000188e459ac CFRunLoopRunSpecific + 608
44 HIToolbox 0x00000001933f4448 RunCurrentEventLoopInMode + 292
45 HIToolbox 0x00000001933f4284 ReceiveNextEventCommon + 648
46 HIToolbox 0x00000001933f3fdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
47 AppKit 0x000000018c6228a4 _DPSNextEvent + 660
48 AppKit 0x000000018cdfc980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
49 AppKit 0x000000018c615d50 -[NSApplication run] + 476
50 libqcocoa.dylib 0x00000002888398fc qt_plugin_instance + 49432
51 QtCore 0x000000011e08b160 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 540
52 QtCore 0x000000011e081b00 _ZN16QCoreApplication4execEv + 112
53 QtWidgets.abi3.so 0x000000010f59f2d8 _ZL25Sbk_QApplicationFunc_execP7_object + 60
54 Python 0x0000000100eeefc0 cfunction_vectorcall_NOARGS + 88
55 Python 0x0000000100f818a0 _PyEval_EvalFrameDefault + 41880
56 Python 0x0000000100f768c4 PyEval_EvalCode + 168
57 Python 0x0000000100fcd3f0 run_eval_code_obj + 84
58 Python 0x0000000100fcd354 run_mod + 112
59 Python 0x0000000100fcd194 pyrun_file + 148
60 Python 0x0000000100fccbe4 _PyRun_SimpleFileObject + 268
61 Python 0x0000000100fcc57c _PyRun_AnyFileObject + 216
62 Python 0x0000000100fe9164 pymain_run_file_obj + 220
63 Python 0x0000000100fe8aa4 pymain_run_file + 72
64 Python 0x0000000100fe8384 Py_RunMain + 704
65 Python 0x0000000100fe94c0 Py_BytesMain + 40
66 dyld 0x00000001889e90e0 start + 2360
)
libc++abi: terminating due to uncaught exception of type NSException
[1] 32174 abort python3 sherloq.py

@GuidoBartoli
Copy link
Owner

Hi @Aquoria, I'm sorry to hear that, but at the moment I am unable to reproduce that, because I do not own a Apple Silicon Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants