Max Build Stand Alone Crash Report on Mac OS 13.4.1

michaelpromeo's icon

Hello,
I bought a MaxMSP license and I'm building a stand alone app that does audio detection and osc output of that data. I've attached the crash report, a screenshot of a weird 'corrupt' error, and the max patch below. I really don't even have a clue as to why this is crashing. Building '.mxf' seems not to crash but a standalone '.app' crashes.

Thanks for any help.

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

Process: NS_Audio_Detector [39940]
Path: /Users/USER/Desktop/NS_Audio_Detector.app/Contents/MacOS/NS_Audio_Detector
Identifier: com.mycompany.NS_Audio_Detector.app
Version: 8.5.1 (b5f7fbb05b6) (8.5.1)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-07-04 12:51:02.3923 -0400
OS Version: macOS 13.4.1 (22F82)
Report Version: 12
Anonymous UUID: E58DB2F3-B491-4130-7EE1-EA20718C9497

Sleep/Wake UUID: 0DAD1369-129D-4A26-9FD6-C61ABA2A9902

Time Awake Since Boot: 86000 seconds
Time Since Wake: 1627 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000042
Exception Codes: 0x0000000000000001, 0x0000000000000042

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

VM Region Info: 0x42 is not in any region. Bytes before following region: 68719476670
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
commpage (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated)

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 NS_Audio_Detector      0x1031c5d98 object_attr_method + 104
1 NS_Audio_Detector      0x1031d46b4 object_method_direct_getobject + 80
2 jit.pwindow      0x118832a40 max_jit_pwindow_mouse_output + 292
3 NS_Audio_Detector      0x102ee56e4 BoxComponent::sendMouseMessage(juce::MouseEvent const&, symbol*) + 912
4 NS_Audio_Detector      0x102ee627c BoxComponent::mouseMove(juce::MouseEvent const&) + 64
5 NS_Audio_Detector      0x10347fcdc juce::Component::internalMouseMove(juce::MouseInputSource, juce::Point<float>, juce::Time) + 316
6 NS_Audio_Detector      0x1034e877c juce::MouseInputSourceInternal::setScreenPos(juce::Point<float>, juce::Time, bool) + 232
7 NS_Audio_Detector      0x1034db898 juce::ComponentPeer::handleMouseEvent(juce::MouseInputSource::InputSourceType, juce::Point<float>, juce::ModifierKeys, float, float, long long, juce::PenDetails, int) + 268
8 NS_Audio_Detector      0x10350b15c juce::NSViewComponentPeer::redirectMouseMove(NSEvent*) + 236
9 NS_Audio_Detector      0x103508920 juce::JuceNSViewClass::mouseMoved(objc_object*, objc_selector*, NSEvent*) + 56
10 AppKit      0x189167f24 -[NSTrackingArea mouseMoved:] + 88
11 AppKit      0x1894fa7ec -[_NSTrackingAreaAKManager mouseMoved:] + 436
12 AppKit      0x1897951d4 _routeMouseMovedEvent + 212
13 AppKit      0x189076f4c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 432
14 AppKit      0x189076bc8 -[NSWindow(NSEventRouting) sendEvent:] + 284
15 AppKit      0x1895ec86c routeMouseMovedEvent + 148
16 AppKit      0x189075d44 -[NSApplication(NSEvent) sendEvent:] + 1100
17 NS_Audio_Detector      0x103164e04 swizzle_SendEvent(objc_object*, objc_selector*, NSEvent*) + 124
18 AppKit      0x1892c5fc4 -[NSApplication _handleEvent:] + 60
19 AppKit      0x188f3d368 -[NSApplication run] + 500
20 Chromium Embedded Framework      0x11cd3be74 base::mac::CxxPersonalityRoutine(int, _Unwind_Action, unsigned long long, _Unwind_Exception*, _Unwind_Context*) + 4672
21 Chromium Embedded Framework      0x11cd3acf0 base::mac::CxxPersonalityRoutine(int, _Unwind_Action, unsigned long long, _Unwind_Exception*, _Unwind_Context*) + 188
22 Chromium Embedded Framework      0x11ccfdb74 cef_time_delta + 2635552
23 Chromium Embedded Framework      0x11ccd1560 cef_time_delta + 2453772
24 Chromium Embedded Framework      0x11c9f6194 __gxx_personality_v0 + 374708
25 NS_Audio_Detector      0x103037068 MaxCefEventLoopHandler::runMessageLoop() + 28
26 NS_Audio_Detector      0x103407e68 juce::JUCEApplicationBase::main() + 160
27 NS_Audio_Detector      0x103407da8 juce::JUCEApplicationBase::main(int, char const**) + 96
28 dyld      0x1858f3f28 start + 2236

Thread 1:
0 libsystem_pthread.dylib      0x185c46d8c start_wqthread + 0

Thread 2:: timer
0 libsystem_kernel.dylib      0x185c0f710 __psynch_cvwait + 8
1 libsystem_pthread.dylib      0x185c4c5a0

crash_report.txt
text/plain 143.53 KB

audiodetect.maxpat
Max Patch

Source Audio's icon

As first, you need to insert standalone object and configure
it for your needs.
In first place DISABLE CEF Framework.
here is what I would set, check bundle id

from you crash log , you use max 8.5.1.
Maybe updated version would work better with any bugs fixed or
for better handling of apple security stuff ?

I don't use anything higher than High Sierra, an so can't tell...

michaelpromeo's icon

Thanks for the advice! I think the thing that fixed it was the recent update, although, using the stand alone object is a good point to which I made sure to do. Very useful information!