Crash at launch with any Max For Live device with jewb(CEF) in them, %100 reproducibility

hal bay's icon

hal bay

11月 28 2023 | 9:59 午前

There is a crash bug with %100 reproducibility. Any Max4Live device with jweb (Chromium Embedded Framework) in them, if initiliazed at launch, for example while opening a recent set, will cause ableton main thread to crash with the stacktrace below. If the device is loaded on a track after ableton is initialized, they don't cause crash. you can try this open source device, Magenta Studio, for quick reproduction; or make a new Max4Live device with jweb in it and save with it on any track and close/open that set afterwards, and smile at your crash :}

Any ideas?

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

Process: Live [90557]
Path: /Applications/Ableton Live 11 Suite.app/Contents/MacOS/Live
Identifier: com.ableton.live
Version: 11.3.3 (2023-05-23_d46a6d1068) (11.3.3 (2023-05-23_d46a6d1068))
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-11-28 03:27:32.4749 +0100
OS Version: macOS 13.6.1 (22G313)
Report Version: 12
Bridge OS Version: 8.1 (21P1069)
Anonymous UUID: 4C2C9CF9-EE2F-C7A7-00C9-482BCA460703

Sleep/Wake UUID: F9175B31-D182-4989-88F1-1972EC4996C0

Time Awake Since Boot: 220000 seconds
Time Since Wake: 227978 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process: exc handler [90557]

External Modification Warnings:
Thread creation by external task.

Thread 0 Crashed:: MainThread Dispatch queue: com.apple.main-thread
0 Chromium Embedded Framework      0x1a43c6749 uhash_compareUnicodeString_69 + 993465
1 Chromium Embedded Framework      0x1a43c584d uhash_compareUnicodeString_69 + 989629
2 Chromium Embedded Framework      0x1a43d888d base::mac::CxxPersonalityRoutine(int, _Unwind_Action, unsigned long long, _Unwind_Exception*, _Unwind_Context*) + 46957
3 Chromium Embedded Framework      0x1a3f98501 _TIFFSwab64BitData + 3361665
4 Chromium Embedded Framework      0x1a403c636 __gxx_personality_v0 + 399606
5 Chromium Embedded Framework      0x1a401ce9b __gxx_personality_v0 + 270683
6 Chromium Embedded Framework      0x1a401cb81 __gxx_personality_v0 + 269889
7 Chromium Embedded Framework      0x1a07774a9 cef_initialize + 265
8 MaxPlugLib      0x11e05db52 CefInitialize(CefMainArgs const&, CefStructBase<CefSettingsTraits> const&, scoped_refptr<CefApp>, void*) + 114
9 MaxPlugLib      0x11dc84810 max_cef_startup + 1648
10 MaxPlugLib      0x11dc82902 cweb_new(symbol*, short, atom*) + 34
11 MaxPlugLib      0x11de0974a typedmess_fun + 394
12 MaxPlugLib      0x11de22c99 object_new_typed_flags + 601
13 MaxPlugLib      0x11de9c869 jpatcher_newobject + 649
14 MaxPlugLib      0x11dea5858 jpatcher_pastefromdictionary + 1256
15 MaxPlugLib      0x11dea4cc1 jpatcher_fromdictionary + 2481
16 MaxPlugLib      0x11de971b5 jpatcher_new + 3413
17 MaxPlugLib      0x11de0974a typedmess_fun + 394
18 MaxPlugLib      0x11de61f43 jpatcher_load_fromdictionary_namespace + 515
19 MaxPlugLib      0x11de621d5 jpatcher_load_frombuffer_namespace + 421
20 MaxPlugLib      0x11de603d9 lowload_jpatcher_frombuffer + 137
21 MaxPlugLib      0x11de6024b lowload_jpatcher_fromamxd_data + 1083
22 MaxAudioAPIImpl      0x11a0260db pluginterface_createjpatcher + 267
23 patcher      0x11a210a0d WiresPrivate::mfl_device_createjpatcher(WiresPrivate::_mfl_device*) + 461
24 patcher      0x11a20a22d Wires::CreateDevice(char*, int, int, char*, int, host_DeviceRef*, plug_DeviceRef**) + 861
25 Live      0x106717c12 0x103fcf000 + 41192466
26 Live      0x10670e6e1 0x103fcf000 + 41154273
27 Live      0x106742f4f 0x103fcf000 + 41369423
28 Live      0x1067430f0 0x103fcf000 + 41369840
29 Live      0x106745eb1 0x103fcf000 + 41381553
30 Live      0x105033e77 0x103fcf000 + 17190519
31 Live      0x106745b95 0x103fcf000 + 41380757
32 Live      0x106745794 0x103fcf000 + 41379732
33 Live      0x1067380e1 0x103fcf000 + 41324769
34 Live      0x105c03094 0x103fcf000 + 29573268
35 Live      0x105c02ce6 0x103fcf000 + 29572326
36 Live      0x105c02e66 0x103fcf000 + 29572710
37 Live      0x106a7f7cb 0x103fcf000 + 44763083
38 Live      0x1051dc788 0x103fcf000 + 18929544
39 Live      0x104f14581 0x103fcf000 + 16012673
40 Live      0x104f140df 0x103fcf000 + 16011487
41 Live      0x105129a33 0x103fcf000 + 18197043
42 Foundation      0x7ff8097ec716 __NSFireTimer + 67
43 CoreFoundation      0x7ff80893c2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
44 CoreFoundation      0x7ff80893be63 __CFRunLoopDoTimer + 807
45 CoreFoundation      0x7ff80893ba89 __CFRunLoopDoTimers + 285
46 CoreFoundation      0x7ff808921dc9 __CFRunLoopRun + 2206
47 CoreFoundation      0x7ff808920ec1 CFRunLoopRunSpecific + 560
48 HIToolbox      0x7ff8123a2f3d RunCurrentEventLoopInMode + 292
49 HIToolbox      0x7ff8123a2d4e ReceiveNextEventCommon + 657
50 HIToolbox      0x7ff8123a2aa8 _BlockUntilNextEventMatchingListInModeWithFilter + 64
51 AppKit      0x7ff80b9bd25c _DPSNextEvent + 858
52 AppKit      0x7ff80b9bc106 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
53 AppKit      0x7ff80b9ae788 -[NSApplication run] + 586
54 Live      0x105128dd1 0x103fcf000 + 18193873
55 dyld      0x7ff8084ed41f start + 1903

Ben Bracken's icon

Ben Bracken

11月 28 2023 | 5:41 午後

I'm unable to repro here.

Could you file a bug report here? Be sure to include all versions of the software you are using (Live, Max, etc), your Support Info from Max, and if you are using the bundled Max or a newer version. Thanks!

Ben

hal bay's icon

hal bay

11月 29 2023 | 12:46 午前

Hi Ben, thanks for the fast reply.

I will file a bug report there, as I could just reproduce it on 3 different computers( 2 macOS and 1 windows) with official and simple node4max express example from there.

I just clone the repo, open .maxproj, export max4live device(with server.js and node_modules embedded or not embedded both crashes),

then load created .amxd on a track, save the set and close ableton. when opened back, load the recent saved set and the same crash with same stack happens

Andy's icon

Andy

12月 31 2023 | 4:20 午前

Crashing here also on Macbook Pro Ventura 13.5.2