Skip to content

(Bug): Natron crashes on macOS Monterey with Qt4 #712

@devernay

Description

@devernay

Problem

When loading any project from the menu (or cmd-O shortcut) on macOS Monterey 12.0.1-12.1, Natron 2.1.9-2.5.0 crashes.

Natron 2.0.5 doesn't crash.

New: Natron 2.4.2 seems to still crash (#731), although the "loading project" splash screen was disabled - maybe we also need to disable the startup splash screen? Waiting for feedback from @blackearth2014 to know if the first splash screen is displayed or if the crash happens before.

Sometimes, loading from the finder (dbl-click on project file) works, sometimes it still crashes, either immediately or a bit later.

Here are sample project files to try (these are reproductibility projects for #708):
Archive.zip

This is a major issue, that prevents using Natron properly on Monterey.

backtrace 1 (with Natron 2.4.1):

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Natron [4748]
Path:                  /Applications/Natron 2.4.1 macOS11.app/Contents/MacOS/Natron
Identifier:            fr.inria.Natron
Version:               2.4.1 (2.4.1)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2021-12-14 08:13:08.4317 -0800
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Bridge OS Version:     3.0 (14Y908)
Anonymous UUID:        7C1303A2-08AD-3E01-F591-B009088BB9E9

Sleep/Wake UUID:       CC3C191D-D63D-4C6E-967D-DB914565C54A

Time Awake Since Boot: 3400 seconds
Time Since Wake:       641 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000676c6f6a
Exception Codes:       0x0000000000000001, 0x00000000676c6f6a
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [4748]

VM Region Info: 0x676c6f6a is not in any region.  Bytes before following region: 2786926742
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      10d899000-10e725000    [ 14.5M] r-x/r-x SM=COW  .../MacOS/Natron

Kernel Triage:
VM - Fault hit memory shortage
VM - Fault hit memory shortage
VM - Fault hit memory shortage
VM - Fault hit memory shortage
VM - Fault hit memory shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   QtGui                         	       0x110208764 QAction::isEnabled() const + 4
1   QtGui                         	       0x1101eb997 qt_mac_set_modal_state_helper_recursive(NSMenu*, NSMenu*, bool) + 567
2   QtGui                         	       0x1101eb964 qt_mac_set_modal_state_helper_recursive(NSMenu*, NSMenu*, bool) + 516
3   QtGui                         	       0x1101f151c QMenuBarPrivate::macUpdateMenuBarImmediatly() + 2444
4   QtGui                         	       0x1101bb46c -[NSApplication(QApplicationIntegration) qt_sendPostedMessage:] + 204
5   QtGui                         	       0x1101bb583 -[NSApplication(QApplicationIntegration) qt_filterEvent:] + 131
6   QtGui                         	       0x1101bb65b -[QNSApplication sendEvent:] + 59
7   AppKit                        	    0x7ff81cfd489f -[NSApplication _handleEvent:] + 65
8   AppKit                        	    0x7ff81cb9c5ce -[NSApplication run] + 623
9   QtGui                         	       0x1101c4975 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2037
10  QtCore                        	       0x10fb17028 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 520
11  QtCore                        	       0x10fb1a6bc QCoreApplication::exec() + 188
12  Natron                        	       0x10d99e373 Natron::GuiApplicationManager::initGui(Natron::CLArgs const&) + 3795
13  Natron                        	       0x10dc2a54f Natron::AppManager::loadInternal(Natron::CLArgs const&) + 1135
14  Natron                        	       0x10dc26dca Natron::AppManager::loadFromArgs(Natron::CLArgs const&) + 890
15  Natron                        	       0x10d89f720 main + 224
16  dyld                          	       0x11374a4fe start + 462

backtrace 2 (with Natron 2.4.1):

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Natron [51425]
Path:                  /Applications/Natron 2.4.1 macOS11.app/Contents/MacOS/Natron
Identifier:            fr.inria.Natron
Version:               2.4.1 (2.4.1)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2021-11-28 16:53:45.2376 -0800
OS Version:            macOS 12.0.1 (21A559)
Report Version:        12
Bridge OS Version:     3.0 (14Y908)
Anonymous UUID:        7C1303A2-08AD-3E01-F591-B009088BB9E9

Sleep/Wake UUID:       48D99043-622E-4B7C-B340-F4D8B6A07B89

Time Awake Since Boot: 200000 seconds
Time Since Wake:       2380 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000676c6f6a
Exception Codes:       0x0000000000000001, 0x00000000676c6f6a
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [51425]

VM Region Info: 0x676c6f6a is not in any region.  Bytes before following region: 2605432982
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      102b83000-103a0f000    [ 14.5M] r-x/r-x SM=COW  .../MacOS/Natron

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   QtGui                         	       0x105907764 QAction::isEnabled() const + 4
1   QtGui                         	       0x1058ea997 qt_mac_set_modal_state_helper_recursive(NSMenu*, NSMenu*, bool) + 567
2   QtGui                         	       0x1058ea964 qt_mac_set_modal_state_helper_recursive(NSMenu*, NSMenu*, bool) + 516
3   QtGui                         	       0x1058f051c QMenuBarPrivate::macUpdateMenuBarImmediatly() + 2444
4   QtGui                         	       0x1058ba46c -[NSApplication(QApplicationIntegration) qt_sendPostedMessage:] + 204
5   QtGui                         	       0x1058ba583 -[NSApplication(QApplicationIntegration) qt_filterEvent:] + 131
6   QtGui                         	       0x1058ba65b -[QNSApplication sendEvent:] + 59
7   QtGui                         	       0x1058c36cd QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1357
8   QtCore                        	       0x104f214de QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 78
9   Natron                        	       0x102c7a344 Natron::GuiAppInstance::aboutToQuit() + 100
10  Natron                        	       0x102f15717 Natron::AppManager::afterQuitProcessingCallback(boost::shared_ptr<Natron::GenericWatcherCallerArgs> const&) + 87
11  QtCore                        	       0x104f35958 QObject::event(QEvent*) + 136
12  QtGui                         	       0x105911d57 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 567
13  QtGui                         	       0x105913530 QApplication::notify(QObject*, QEvent*) + 400
14  QtCore                        	       0x104f21111 QCoreApplication::notifyInternal(QObject*, QEvent*) + 113
15  QtCore                        	       0x104f21dc1 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 673
16  CoreFoundation                	    0x7ff80fb0584d __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17  CoreFoundation                	    0x7ff80fb057b5 __CFRunLoopDoSource0 + 180
18  CoreFoundation                	    0x7ff80fb05534 __CFRunLoopDoSources0 + 242
19  CoreFoundation                	    0x7ff80fb03f6b __CFRunLoopRun + 893
20  CoreFoundation                	    0x7ff80fb0352d CFRunLoopRunSpecific + 563
21  HIToolbox                     	    0x7ff8187213e1 RunCurrentEventLoopInMode + 292
22  HIToolbox                     	    0x7ff818721008 ReceiveNextEventCommon + 284
23  HIToolbox                     	    0x7ff818720ed5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
24  AppKit                        	    0x7ff81252e8f0 _DPSNextEvent + 886
25  AppKit                        	    0x7ff81252cf5c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1411
26  AppKit                        	    0x7ff81251f359 -[NSApplication run] + 586
27  QtGui                         	       0x1058c3975 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2037
28  QtCore                        	       0x104f1e028 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 520
29  QtCore                        	       0x104f216bc QCoreApplication::exec() + 188
30  Natron                        	       0x102c88373 Natron::GuiApplicationManager::initGui(Natron::CLArgs const&) + 3795
31  Natron                        	       0x102f1454f Natron::AppManager::loadInternal(Natron::CLArgs const&) + 1135
32  Natron                        	       0x102f10dca Natron::AppManager::loadFromArgs(Natron::CLArgs const&) + 890
33  Natron                        	       0x102b89720 main + 224
34  dyld                          	       0x104d3e4fe start + 462

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions