OpenMV IDE 4.8.10 crashes on macOS 15.6.1 when scrolling ifind_circles.py

OpenMV IDE crashes consistently when opening the example script:

Examples/Feature Detection/find_circles.py

and then scrolling down in the editor window.

The crash happens every time on my system.

To Reproduce

Steps to reproduce the behavior:

  1. Launch OpenMV IDE 4.8.10

  2. Open:
    Examples/Feature Detection/find_circles.py

  3. Scroll down in the editor

  4. IDE crashes immediately

This is an issue with the Python language server integration in the IDE. I’ll get this debugged and fixed asap.

Does this fix the issue? Release Development Release ¡ openmv/openmv-ide ¡ GitHub

Yes, thank you, it works, meaning 4.8.11 did not crash on the example sources.

It might be another issue: it immediately crashes when I flash “Feature Detection/template_matching.py” and does not show any camera images at all.

And on “Feature Detection/selective_search.py,” after flashing, it shows camera capture in the IDE and then IDE crashes in a second

Uh, do you mean the IDE crash or the script stops working? If it’s a crash, can you give me the output mac produces via the error log.

It might be another issue: it immediately crashes when I flash “Feature Detection/template_matching.py” and does not show any camera images at all.

I run the IDE via Applications. I do not see any errors; it just disappears like it never ran. Is there an error log in an app file location, or in debug mode, I can activate to get the log?

Also, update on IDE crash on example sources: “Machine Learning/Tensor Flow/tf_object_detection.py” the IDE crashes in 10-15 seconds w/o flashing.

Mmm, if it’s a crash with a segfault Mac OS typically pops open a very long error crash log that’s very detailed.

I tried to crash it on my Mac, given what you told me, and I cannot reproduce the issues you are seeing.

Can you try this?


Enabling Segfault Crash Reporting on macOS for All Applications

On macOS, segfault crash reporting is handled by ReportCrash, which automatically saves crash reports for applications and system processes. To ensure it’s enabled for all apps, you need to keep the ReportCrash LaunchAgents and LaunchDaemons loaded.

1. Check if ReportCrash is enabled

By default, macOS enables crash reporting for all applications. You can verify it’s active by:

  • Opening Console and checking the Crash Reports section for recent reports Apple Support.

  • Running:

sudo launchctl list | grep ReportCrash

If you see entries for both the user and system ReportCrash agents, it’s enabled.

2. Re‑enable ReportCrash for all users and system

If it’s disabled, reload the agents:

sudo launchctl load -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist

The -w flag makes the change persistent across reboots SS64 Command line reference.

3. Ensure segfaults are captured

ReportCrash will capture segfaults (signal 11) for all processes, including command‑line tools. If you want to inspect the actual core dump (for debugging), you can:

  • Enable core dumps for the process before it crashes:
ulimit -c unlimited

  • Or trigger a diagnostic dump with:
sudo sysdiagnose

This produces .crash files in /var/crash that you can unpack with apport-unpack if you have the Apport package installed gerry-chen.com**+1**.

4. View crash reports

After a crash, open Console and go to Reports > Crash Reports to see the generated .ips files Apple Support. You can also use sudo log show --predicate 'process contains "AppName"' to filter logs.

5. Developer options

If you’re a developer and want to control crash dialog behavior, use CrashReporterPrefs.app from Xcode’s Developer Tools SS64 Command line reference.

Tip: Disabling ReportCrash (e.g., with launchctl unload) will stop all applications from generating crash reports, so only enable it if you need debugging or diagnostics.

@kwagyeman please find my findings below.

Meanwhile, by any chance, is there a way to flash OpenMV firmware from the command line? I’m considering it as a backup option. If such an option exists, could you point me to any relevant documentation?

% sudo launchctl list | grep ReportCrash

40983	-9	com.apple.ReportCrash.Root


% sudo launchctl load -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist

Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.

`launchctl bootstrap` is a recommended alternative.


% sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist

Load failed: 5: Input/output error

Try running `launchctl bootstrap` as root for richer errors.

I tried:

% sudo launchctl bootstrap

Usage: launchctl bootstrap <domain-target> [service-path, service-path2, ...]

After I generated a ‘test’ crash report with `sudo sysdiagnose`, I see:
% sudo launchctl list | grep ReportCrash

40983	-9	com.apple.ReportCrash.Root

-	0	com.apple.ReportCrash

My assumption so far is that the IDE crashes/disappears w/o producing a crash report (I do not see the ‘Send to Apple’ report window), or I’m doing something wrong.

Please advise on the next step.

UPD #1: Today 4.8.11 started failing right after showing the default example, and I can not click on that smaller window as it is overlapped by the bigger one.

I figured that pressing space closes those windows and opens the IDE main window.

UPD #2:

At some point, somehow I was able to start the IDE from the terminal, and saw the following error:

Error in terminal

% /Applications/OpenMV\ IDE.app/Contents/MacOS/OpenMV\ IDE

2026-05-19 08:17:23.591 OpenMV IDE[57539:45088989] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit

*** Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘*** -[__NSArrayM objectAtIndexedSubscript:]: index 2 beyond bounds for empty array’

*** First throw call stack:

(

0   CoreFoundation                      0x0000000189efbae0 \__exceptionPreprocess + 176

1   libobjc.A.dylib                     0x00000001899beb90 objc_exception_throw + 88

2   CoreFoundation                      0x0000000189e75f90 -\[\__NSCFString hasSuffix:\] + 0

3   libqcocoa.dylib                     0x0000000102058124 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269336

4   libqcocoa.dylib                     0x00000001020581a8 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269468

5   libqcocoa.dylib                     0x000000010205677c \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 262768

6   QtWidgets                           0x0000000102429234 \_ZN9QTreeView16selectionChangedERK14QItemSelectionS2\_ + 332

7   QtCore                              0x00000001032c1788 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3780

8   QtCore                              0x00000001034856a4 \_ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2\_ + 216

9   QtCore                              0x0000000103485264 \_ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 660

10  QtCore                              0x0000000103484f24 \_ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 68

11  QtCore                              0x000000010348614c \_ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 260

12  QtWidgets                           0x00000001023b086c \_ZN17QAbstractItemView15setCurrentIndexERK11QModelIndex + 160

13  libUtils.4.8.11.dylib               0x00000001011d01c4 \_ZN5Utils16TreeViewComboBox15setCurrentIndexERK11QModelIndex + 216

14  libLanguageClient.dylib             0x00000001128f3efc \_ZN14LanguageClient15OutlineComboBox11updateEntryEv + 104

15  QtCore                              0x00000001032c1524 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3168

16  QtWidgets                           0x00000001023174a4 \_ZNK14QPlainTextEdit10blockCountEv + 3496

17  QtCore                              0x00000001032c1788 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3780

18  QtWidgets                           0x000000010233b500 \_ZN18QWidgetTextControl13setTextCursorERK11QTextCursorb + 208

19  libTextEditor.dylib                 0x000000011262bfe4 \_ZN10TextEditor16TextEditorWidget15doSetTextCursorERK11QTextCursorb + 360

20  libTextEditor.dylib                 0x0000000112622ef0 \_ZN10TextEditor16TextEditorWidget18setMultiTextCursorERKN5Utils15MultiTextCursorE + 116

21  libTextEditor.dylib                 0x0000000112627eac \_ZN10TextEditor8Internal23TextEditorWidgetPrivate18cursorMoveKeyEventEP9QKeyEvent + 92

22  libTextEditor.dylib                 0x0000000112629340 \_ZN10TextEditor16TextEditorWidget13keyPressEventEP9QKeyEvent + 2228

23  QtWidgets                           0x0000000102186494 \_ZN7QWidget5eventEP6QEvent + 488

24  QtWidgets                           0x000000010220a060 \_ZN6QFrame5eventEP6QEvent + 56

25  QtWidgets                           0x00000001023135f4 \_ZN14QPlainTextEdit5eventEP6QEvent + 632

26  QtWidgets                           0x000000010213cfec \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272

27  QtWidgets                           0x000000010213e064 \_ZN12QApplication6notifyEP7QObjectP6QEvent + 1044

28  QtCore                              0x0000000103277f88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

29  QtWidgets                           0x0000000102199cb8 \_ZNK21QWidgetRepaintManager3rhiEv + 6592

30  QtWidgets                           0x000000010213cfec \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272

31  QtWidgets                           0x000000010213de50 \_ZN12QApplication6notifyEP7QObjectP6QEvent + 512

32  QtCore                              0x0000000103277f88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

33  QtGui                               0x00000001015daf60 \_ZN22QGuiApplicationPrivate15processKeyEventEPN29QWindowSystemInterfacePrivate8KeyEventE + 260

34  QtGui                               0x0000000101631aa4 \_ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 396

35  QtGui                               0x0000000101631688 \_ZN22QWindowSystemInterface23flushWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 496

36  libqcocoa.dylib                     0x000000010203fc7c \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 169840

37  libqcocoa.dylib                     0x0000000102040b60 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 173652

38  AppKit                              0x000000018ded3b94 -\[NSWindow(NSEventRouting) \_reallySendEvent:isDelayedEvent:\] + 300

39  AppKit                              0x000000018ded38a0 -\[NSWindow(NSEventRouting) sendEvent:\] + 288

40  libqcocoa.dylib                     0x0000000102048f34 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 207400

41  AppKit                              0x000000018e74ba1c -\[NSApplication(NSEventRouting) sendEvent:\] + 2364

42  libqcocoa.dylib                     0x0000000101feeb90 qt_plugin_instance + 1060

43  AppKit                              0x000000018e34a42c -\[NSApplication \_handleEvent:\] + 60

44  AppKit                              0x000000018dda0c0c -\[NSApplication run\] + 520

45  libqcocoa.dylib                     0x0000000101ffa644 qt_plugin_instance + 48856

46  QtCore                              0x00000001032818fc \_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 532

47  QtCore                              0x0000000103278614 \_ZN16QCoreApplication4execEv + 112

48  OpenMV IDE                          0x00000001006241f4 OpenMV IDE + 49652

49  dyld                                0x00000001899feb98 start + 6076

)

libc++abi: terminating due to uncaught exception of type NSException

zsh: abort /Applications/OpenMV\ IDE.app/Contents/MacOS/OpenMV\ IDE

UPD #3: It crashes (see Upd #2) when I have copied something into the clipboard.

It also crashes when I try to open a simple py script via File/Open File

Python
import time
from machine import UART

# Always pass UART 1 for the UART number for your OpenMV Cam.
# The second argument is the UART baud rate. For a more advanced UART control
# example see the BLE-Shield driver.
uart = UART(1, 9600, timeout=1000, timeout_char=1000)

while(True):
    uart.write("Hello World!\r\n")
    l = uart.readline()
    print(l)
Error

% /Applications/OpenMV\ IDE.app/Contents/MacOS/OpenMV\ IDE

*** Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array’

*** First throw call stack:

(

0   CoreFoundation                      0x0000000189efbae0 \__exceptionPreprocess + 176

1   libobjc.A.dylib                     0x00000001899beb90 objc_exception_throw + 88

2   CoreFoundation                      0x0000000189e75f90 -\[\__NSCFString hasSuffix:\] + 0

3   libqcocoa.dylib                     0x00000001009f4124 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269336

4   libqcocoa.dylib                     0x00000001009f41a8 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269468

5   libqcocoa.dylib                     0x00000001009f277c \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 262768

6   QtWidgets                           0x0000000101f49234 \_ZN9QTreeView16selectionChangedERK14QItemSelectionS2\_ + 332

7   QtCore                              0x0000000102de1788 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3780

8   QtCore                              0x0000000102fa56a4 \_ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2\_ + 216

9   QtCore                              0x0000000102fa5264 \_ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 660

10  QtCore                              0x0000000102fa4f24 \_ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 68

11  QtCore                              0x0000000102fa614c \_ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 260

12  QtWidgets                           0x0000000101ed086c \_ZN17QAbstractItemView15setCurrentIndexERK11QModelIndex + 160

13  libUtils.4.8.11.dylib               0x0000000100cf01c4 \_ZN5Utils16TreeViewComboBox15setCurrentIndexERK11QModelIndex + 216

14  libLanguageClient.dylib             0x000000011b5ebefc \_ZN14LanguageClient15OutlineComboBox11updateEntryEv + 104

15  QtCore                              0x0000000102de1524 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3168

16  libLanguageClient.dylib             0x000000011b547704 \_ZN14LanguageClient19DocumentSymbolCache10gotSymbolsERKN22LanguageServerProtocol11DocumentUriERKNS1_21DocumentSymbolsResultE + 56

17  libLanguageClient.dylib             0x000000011b5b9944 \_ZN14LanguageClient19DocumentSymbolCache14handleResponseERKN22LanguageServerProtocol11DocumentUriERKNS1_8ResponseINS1_21DocumentSymbolsResultEDnEE + 448

18  libLanguageServerProtocol.4.8.11.dy 0x000000011aa03a9c \_ZZNK22LanguageServerProtocol7RequestINS_21DocumentSymbolsResultEDnNS_18TextDocumentParamsEE15responseHandlerEvENKUlRKNS_14JsonRpcMessageEE_clES6\_ + 100

19  libLanguageClient.dylib             0x000000011b57417c \_ZN14LanguageClient6Client13handleMessageERKN22LanguageServerProtocol14JsonRpcMessageE + 272

20  QtCore                              0x0000000102de1524 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3168

21  libLanguageClient.dylib             0x000000011b57c450 \_ZN14LanguageClient19InterfaceController15messageReceivedERKN22LanguageServerProtocol14JsonRpcMessageE + 52

22  QtCore                              0x0000000102dd9ec8 \_ZN7QObject5eventEP6QEvent + 612

23  QtWidgets                           0x0000000101c5cfec \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272

24  QtWidgets                           0x0000000101c5de50 \_ZN12QApplication6notifyEP7QObjectP6QEvent + 512

25  QtCore                              0x0000000102d97f88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

26  QtCore                              0x0000000102d99238 \_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 1428

27  libqcocoa.dylib                     0x0000000100997268 qt_plugin_instance + 51964

28  libqcocoa.dylib                     0x0000000100997d40 qt_plugin_instance + 54740

29  CoreFoundation                      0x0000000189e8ab14 \__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_\_ + 28

30  CoreFoundation                      0x0000000189e8aaa8 \__CFRunLoopDoSource0 + 172

31  CoreFoundation                      0x0000000189e8a814 \__CFRunLoopDoSources0 + 232

32  CoreFoundation                      0x0000000189e89468 \__CFRunLoopRun + 840

33  CoreFoundation                      0x0000000189e88a98 CFRunLoopRunSpecific + 572

34  HIToolbox                           0x000000019592b27c RunCurrentEventLoopInMode + 324

35  HIToolbox                           0x000000019592e4e8 ReceiveNextEventCommon + 676

36  HIToolbox                           0x0000000195ab9484 \_BlockUntilNextEventMatchingListInModeWithFilter + 76

37  AppKit                              0x000000018ddada34 \_DPSNextEvent + 684

38  AppKit                              0x000000018e74c940 -\[NSApplication(NSEventRouting) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:\] + 688

39  AppKit                              0x000000018dda0be4 -\[NSApplication run\] + 480

40  libqcocoa.dylib                     0x0000000100996644 qt_plugin_instance + 48856

41  QtCore                              0x0000000102da18fc \_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 532

42  QtCore                              0x0000000102d98614 \_ZN16QCoreApplication4execEv + 112

43  OpenMV IDE                          0x00000001002f41f4 OpenMV IDE + 49652

44  dyld                                0x00000001899feb98 start + 6076

)

libc++abi: terminating due to uncaught exception of type NSException

zsh: abort /Applications/OpenMV\ IDE.app/Contents/MacOS/OpenMV\ IDE

Hope that helps

Debugging it now. Thank you,

Okay, I think I found and fixed a bunch of race conditions which could be the root causes of this. The new IDE is building now.

Meanwhile, by any chance, is there a way to flash OpenMV firmware from the command line? I’m considering it as a backup option. If such an option exists, could you point me to any relevant documentation?

Yes, via DFU-util, it’s not documented though right now. I’ll include covering this in my documentation effort push.

Hi, please try out this new IDE here. I found and fixed several race conditions. Release Development Release ¡ openmv/openmv-ide ¡ GitHub

Here’s a guide on how to do firmware updates: 10. Building, flashing, and debugging the firmware - OpenMV MicroPython 1.28 documentation

Just got it written today with Claude. Some details need to be polished still, but it’s almost 99% correct.

Still crashes. It opens with the default example when the device is disconnected: As soon as I select anything in teh editor, it crashes. It seems like an issue with clipboard/selection or something related

Summary

% /Applications/OpenMV\ IDE.app/Contents/MacOS/OpenMV\ IDE

*** Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds for empty array’

*** First throw call stack:

(

0   CoreFoundation                      0x0000000189efbae0 \__exceptionPreprocess + 176

1   libobjc.A.dylib                     0x00000001899beb90 objc_exception_throw + 88

2   CoreFoundation                      0x0000000189e75f90 -\[\__NSCFString hasSuffix:\] + 0

3   libqcocoa.dylib                     0x0000000104380124 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269336

4   libqcocoa.dylib                     0x00000001043801a8 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269468

5   libqcocoa.dylib                     0x000000010437e77c \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 262768

6   QtWidgets                           0x00000001047a1234 \_ZN9QTreeView16selectionChangedERK14QItemSelectionS2\_ + 332

7   QtCore                              0x0000000105639788 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3780

8   QtCore                              0x00000001057fd6a4 \_ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2\_ + 216

9   QtCore                              0x00000001057fd264 \_ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 660

10  QtCore                              0x00000001057fcf24 \_ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 68

11  QtCore                              0x00000001057fe14c \_ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 260

12  QtWidgets                           0x000000010472886c \_ZN17QAbstractItemView15setCurrentIndexERK11QModelIndex + 160

13  libUtils.4.8.11.dylib               0x00000001035481c4 \_ZN5Utils16TreeViewComboBox15setCurrentIndexERK11QModelIndex + 216

14  libLanguageClient.dylib             0x000000010c9e00c8 \_ZN14LanguageClient15OutlineComboBox11updateEntryEv + 104

15  QtCore                              0x0000000105639524 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3168

16  libTextEditor.dylib                 0x000000010c70f038 \_ZN10TextEditor16TextEditorWidget18setMultiTextCursorERKN5Utils15MultiTextCursorE + 444

17  libTextEditor.dylib                 0x000000010c7252bc \_ZN10TextEditor16TextEditorWidget25slotCursorPositionChangedEv + 180

18  QtCore                              0x0000000105639524 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3168

19  QtWidgets                           0x000000010468f4a4 \_ZNK14QPlainTextEdit10blockCountEv + 3496

20  QtCore                              0x0000000105639788 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3780

21  QtWidgets                           0x00000001046b5bcc \_ZN18QWidgetTextControl12processEventEP6QEventRK10QTransformP7QWidget + 6980

22  QtWidgets                           0x00000001046b43ec \_ZN18QWidgetTextControl12processEventEP6QEventRK10QTransformP7QWidget + 868

23  QtWidgets                           0x00000001046b4074 \_ZN18QWidgetTextControl12processEventEP6QEventRK7QPointFP7QWidget + 108

24  QtWidgets                           0x000000010468c9c4 \_ZN14QPlainTextEdit14mouseMoveEventEP11QMouseEvent + 236

25  libTextEditor.dylib                 0x000000010c72582c \_ZN10TextEditor16TextEditorWidget14mouseMoveEventEP11QMouseEvent + 360

26  QtWidgets                           0x00000001044fe330 \_ZN7QWidget5eventEP6QEvent + 132

27  QtWidgets                           0x0000000104582060 \_ZN6QFrame5eventEP6QEvent + 56

28  libTextEditor.dylib                 0x000000010c71c09c \_ZN10TextEditor16TextEditorWidget13viewportEventEP6QEvent + 556

29  QtCore                              0x00000001055f025c \_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent + 244

30  QtWidgets                           0x00000001044b4fcc \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 240

31  QtWidgets                           0x00000001044b703c \_ZN12QApplication6notifyEP7QObjectP6QEvent + 5100

32  QtCore                              0x00000001055eff88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

33  QtWidgets                           0x00000001044b558c \_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb + 808

34  QtWidgets                           0x00000001045129b0 \_ZNK21QWidgetRepaintManager3rhiEv + 9912

35  QtWidgets                           0x0000000104511c68 \_ZNK21QWidgetRepaintManager3rhiEv + 6512

36  QtWidgets                           0x00000001044b4fec \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272

37  QtWidgets                           0x00000001044b5e50 \_ZN12QApplication6notifyEP7QObjectP6QEvent + 512

38  QtCore                              0x00000001055eff88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

39  QtGui                               0x0000000103952794 \_ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE + 1748

40  QtGui                               0x00000001039a9aa4 \_ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 396

41  libqcocoa.dylib                     0x0000000104323d40 qt_plugin_instance + 54740

42  CoreFoundation                      0x0000000189e8ab14 \__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_\_ + 28

43  CoreFoundation                      0x0000000189e8aaa8 \__CFRunLoopDoSource0 + 172

44  CoreFoundation                      0x0000000189e8a814 \__CFRunLoopDoSources0 + 232

45  CoreFoundation                      0x0000000189e89468 \__CFRunLoopRun + 840

46  CoreFoundation                      0x0000000189e88a98 CFRunLoopRunSpecific + 572

47  HIToolbox                           0x000000019592b27c RunCurrentEventLoopInMode + 324

48  HIToolbox                           0x000000019592e31c ReceiveNextEventCommon + 216

49  HIToolbox                           0x0000000195ab9484 \_BlockUntilNextEventMatchingListInModeWithFilter + 76

50  AppKit                              0x000000018ddada34 \_DPSNextEvent + 684

51  AppKit                              0x000000018e74c940 -\[NSApplication(NSEventRouting) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:\] + 688

52  AppKit                              0x000000018dda0be4 -\[NSApplication run\] + 480

53  libqcocoa.dylib                     0x0000000104322644 qt_plugin_instance + 48856

54  QtCore                              0x00000001055f98fc \_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 532

55  QtCore                              0x00000001055f0614 \_ZN16QCoreApplication4execEv + 112

56  OpenMV IDE                          0x00000001029701f4 OpenMV IDE + 49652

57  dyld                                0x00000001899feb98 start + 6076

)

libc++abi: terminating due to uncaught exception of type NSException

zsh: abort /Applications/OpenMV\ IDE.app/Contents/MacOS/OpenMV\ IDE

Thank you for the bug report. I have a new version building now. That was a new path for the error. This issue is specific to the Mac machine and the library versions the IDE is using on that machine.

Thanks for your patience!

@srg Please try again: Release Development Release ¡ openmv/openmv-ide ¡ GitHub

It seems that the most recent version works. It does not crush so far. Once I noticed a similar error in the console, but I cannot reproduce it.

I will use it in the next couple of days, running from the terminal, and let you know in this topic

Thank you for your quick turnaround and efforts to fix it promptly

UPD: I noticed that the IDE cannot autodetect RT1062 in the Type-C port. I have not used it before (it is showing the “Connecting” dialog forever). But as soon as I plug it into teh jport I used before, it connects with no issue.

USB-C ports definitely work, We’ve tested the RT1062 extensively with the Mac Mini M4.

Anyway, great! Thank you for providing me with the stack traces. Without these I wouldn’t have been able to fix the issue. The problem was related to the behavior of the native widget library Qt uses and the behavior or it being different than what was expected when handling different model view state transitions.

That was a glitch on my side.

It works the whole day w/o crushes, but I found one more non-critical corner case:

When I attempted to close the IDE with CMD+Q, it printed the following error in the console:

Error

*** Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array’

*** First throw call stack:

(

0   CoreFoundation                      0x0000000189efbae0 \__exceptionPreprocess + 176

1   libobjc.A.dylib                     0x00000001899beb90 objc_exception_throw + 88

2   CoreFoundation                      0x0000000189e75f90 -\[\__NSCFString hasSuffix:\] + 0

3   libqcocoa.dylib                     0x00000001053d0124 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269336

4   libqcocoa.dylib                     0x00000001053d01a8 \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 269468

5   libqcocoa.dylib                     0x00000001053ce77c \_ZN20QCocoaSystemTrayIcon13emitActivatedEv + 262768

6   QtWidgets                           0x0000000102c7d234 \_ZN9QTreeView16selectionChangedERK14QItemSelectionS2\_ + 332

7   QtCore                              0x00000001012f5788 \_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3780

8   QtCore                              0x00000001014b96a4 \_ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2\_ + 216

9   QtCore                              0x00000001014b9264 \_ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 660

10  QtWidgets                           0x0000000102c79670 \_ZN16QTreeViewPrivate6selectERK11QModelIndexS2_6QFlagsIN19QItemSelectionModel13SelectionFlagEE + 1796

11  QtWidgets                           0x0000000102c7a55c \_ZN9QTreeView9selectAllEv + 300

12  libCore.dylib                       0x0000000112f3d79c \_ZN4Core8Internal15SaveItemsDialogC2EP7QWidgetRK5QListIPNS_9IDocumentEE + 2612

13  libCore.dylib                       0x0000000112f56dc4 \_ZN4CoreL23saveModifiedFilesHelperERK5QListIPNS_9IDocumentEERK7QStringPbbS8_S9_PS3\_ + 908

14  libCore.dylib                       0x0000000112f57608 \_ZN4Core15DocumentManager24saveAllModifiedDocumentsERK7QStringPbS3_S4_P5QListIPNS_9IDocumentEE + 84

15  libCore.dylib                       0x0000000113018374 \_ZN4Core8Internal10MainWindow10closeEventEP11QCloseEvent + 552

16  QtWidgets                           0x00000001029da330 \_ZN7QWidget5eventEP6QEvent + 132

17  QtWidgets                           0x0000000102af7e64 \_ZN11QMainWindow5eventEP6QEvent + 248

18  QtWidgets                           0x0000000102990fec \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272

19  QtWidgets                           0x0000000102992994 \_ZN12QApplication6notifyEP7QObjectP6QEvent + 3396

20  QtCore                              0x00000001012abf88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

21  QtWidgets                           0x00000001029da0fc \_ZN14QWidgetPrivate11handleCloseENS_9CloseModeE + 128

22  QtWidgets                           0x00000001029f1168 \_ZNK21QWidgetRepaintManager3rhiEv + 20080

23  QtGui                               0x0000000101e7e8a4 \_ZN7QWindow5eventEP6QEvent + 480

24  QtWidgets                           0x0000000102990fec \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272

25  QtWidgets                           0x0000000102991e50 \_ZN12QApplication6notifyEP7QObjectP6QEvent + 512

26  QtCore                              0x00000001012abf88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

27  QtGui                               0x0000000101e2e000 \_ZN22QGuiApplicationPrivate24processWindowSystemEventEPN29QWindowSystemInterfacePrivate17WindowSystemEventE + 1780

28  QtGui                               0x0000000101e8b62c \_ZN22QWindowSystemInterface17handleThemeChangeINS_20AsynchronousDeliveryEEEvP7QWindow + 10520

29  QtGui                               0x0000000101e7e5a4 \_ZN7QWindow5closeEv + 124

30  libCore.dylib                       0x0000000113021fcc \_ZN9QtPrivate18QFunctorSlotObjectIZN4Core5ICore4exitEvE3$\_0Li0ENS_4ListIJEEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb + 612

31  QtCore                              0x00000001012edec8 \_ZN7QObject5eventEP6QEvent + 612

32  QtWidgets                           0x00000001029db108 \_ZN7QWidget5eventEP6QEvent + 3676

33  QtWidgets                           0x0000000102af7e64 \_ZN11QMainWindow5eventEP6QEvent + 248

34  QtWidgets                           0x0000000102990fec \_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272

35  QtWidgets                           0x0000000102992994 \_ZN12QApplication6notifyEP7QObjectP6QEvent + 3396

36  QtCore                              0x00000001012abf88 \_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292

37  QtCore                              0x00000001012ad238 \_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 1428

38  libqcocoa.dylib                     0x0000000105373268 qt_plugin_instance + 51964

39  libqcocoa.dylib                     0x0000000105373d40 qt_plugin_instance + 54740

40  CoreFoundation                      0x0000000189e8ab14 \__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_\_ + 28

41  CoreFoundation                      0x0000000189e8aaa8 \__CFRunLoopDoSource0 + 172

42  CoreFoundation                      0x0000000189e8a814 \__CFRunLoopDoSources0 + 232

43  CoreFoundation                      0x0000000189e89468 \__CFRunLoopRun + 840

44  CoreFoundation                      0x0000000189e88a98 CFRunLoopRunSpecific + 572

45  HIToolbox                           0x000000019592b27c RunCurrentEventLoopInMode + 324

46  HIToolbox                           0x000000019592e4e8 ReceiveNextEventCommon + 676

47  HIToolbox                           0x0000000195ab9484 \_BlockUntilNextEventMatchingListInModeWithFilter + 76

48  AppKit                              0x000000018ddada34 \_DPSNextEvent + 684

49  AppKit                              0x000000018e74c940 -\[NSApplication(NSEventRouting) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:\] + 688

50  AppKit                              0x000000018dda0be4 -\[NSApplication run\] + 480

51  libqcocoa.dylib                     0x0000000105372644 qt_plugin_instance + 48856

52  QtCore                              0x00000001012b58fc \_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 532

53  QtCore                              0x00000001012ac614 \_ZN16QCoreApplication4execEv + 112

54  OpenMV IDE                          0x0000000100dc41f4 OpenMV IDE + 49652

55  dyld                                0x00000001899feb98 start + 6076

)

libc++abi: terminating due to uncaught exception of type NSException

zsh: abort /Applications/OpenMV\ IDE.app/Contents/MacOS/OpenMV\ IDE

Hi, rebuilding it with that fix and other places with a similar error pattern.