< Back to IRCAM Forum

Mubu crashes Max upon loading in polybuffer~ linked to many imubu

Hello,

I have a patcher which has been running fine under Max 6.x and mubu 1.6.4. Now with Max 7.2 and mubu 1.8.11 the patcher crashes Max.

The patcher contains a polybuffer~ meant to contain 100 buffers. Each buffer is linked to an imubu object. However when running the “readfolder” command on the polybuffer~ to load 100 sounds, Max crashes. The issue doesn’t arise if I remove the imubu objects.

Here’s a crashlog’s extract:

Process: Max [431] Path: /Applications/Max.app/Contents/MacOS/Max Identifier: com.cycling74.Max Version: 7.2.1 [d8b9f87] (7.2.1) Code Type: X86 (Native) Parent Process: launchd [242] User ID: 501

Date/Time: 2016-03-23 17:16:11.483 +0100
OS Version: Mac OS X 10.8.5 (12F2560)
Report Version: 10

Interval Since Last Report: 3107353 sec
Crashes Since Last Report: 263
Per-App Interval Since Last Report: 81 sec
Per-App Crashes Since Last Report: 1
Anonymous UUID: 09B04A53-F964-2C6B-BB85-1D4D6697DC14

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

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
terminate called throwing an exception
abort() called

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x929dda6a __pthread_kill + 10
1 libsystem_c.dylib 0x980f1b2f pthread_kill + 101
2 libsystem_c.dylib 0x98128631 abort + 168
3 libc++abi.dylib 0x967237e0 abort_message + 151
4 libc++abi.dylib 0x96721249 default_terminate() + 34
5 libc++abi.dylib 0x96721289 safe_handler_caller(void ()()) + 13
6 libc++abi.dylib 0x967212f1 std::terminate() + 23
7 libc++abi.dylib 0x967223e6 __cxa_throw + 110
8 mubu 0x117e2051 MultiwaveEditor::ensureCachesSize(int, int, int) + 849
9 mubu 0x117d9669 MultiwaveEditor::initZoomCache(bool, bool) + 777
10 mubu 0x117dcbb0 MultiwaveEditor::objectChanged(ImtrTypes::change_type) + 96
11 mubu 0x1174c206 EditorContainer::objectChanged(int, ImtrTypes::change_type) + 118
12 mubu 0x116a71b4 IMaxMubuEditorContainer::objectChanged() + 356
13 mubu 0x1167e859 imaxmubu_refresh(imaxmubu_st
) + 57
14 com.cycling74.Max 0x000b15ce sched_dequeue + 238
15 com.cycling74.Max 0x00319f6c MainThreadEventHandler::invoke() + 106
16 com.cycling74.Max 0x00319c9b ___ZN22MainThreadEventHandler11postMessageEv_block_invoke + 20
17 libdispatch.dylib 0x92695f8f _dispatch_call_block_and_release + 15
18 libdispatch.dylib 0x92691c82 _dispatch_client_callout + 46
19 libdispatch.dylib 0x926972e3 _dispatch_main_queue_callback_4CF + 223
20 com.apple.CoreFoundation 0x901ffc29 __CFRunLoopRun + 1961
21 com.apple.CoreFoundation 0x901ff01a CFRunLoopRunSpecific + 378
22 com.apple.CoreFoundation 0x901fee8b CFRunLoopRunInMode + 123
23 com.apple.HIToolbox 0x9637ff5a RunCurrentEventLoopInMode + 242
24 com.apple.HIToolbox 0x9637fcc9 ReceiveNextEventCommon + 374
25 com.apple.HIToolbox 0x9637fb44 BlockUntilNextEventMatchingListInMode + 88
26 com.apple.AppKit 0x9051593a _DPSNextEvent + 724
27 com.apple.AppKit 0x9051516c -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
28 com.apple.AppKit 0x9050b5cc -[NSApplication run] + 855
29 com.cycling74.Max 0x003fd2b9 -[MaxCefApplication run] + 58
30 com.cycling74.chromium 0x00ffbc6e 0xecf000 + 1231982
31 com.cycling74.chromium 0x00ffb54c 0xecf000 + 1230156
32 com.cycling74.chromium 0x0103efd2 0xecf000 + 1507282
33 com.cycling74.chromium 0x01059c7e 0xecf000 + 1617022
34 com.cycling74.chromium 0x0103e9ba 0xecf000 + 1505722
35 com.cycling74.chromium 0x00f47ade 0xecf000 + 494302
36 com.cycling74.Max 0x003fd2c7 -[MaxCefApplication run] + 72
37 com.cycling74.Max 0x00556497 juce::MessageManager::runDispatchLoop() + 589
38 com.cycling74.Max 0x00417eb4 juce::JUCEApplication::main(juce::StringArray const&) + 62
39 com.cycling74.Max 0x00417fc9 juce::JUCEApplication::main(int, char const**) + 73
40 com.cycling74.Max 0x00073145 start + 53

I figured out that the cause of that crash is a probable lack of RAM. This leads to a new question I’ll ask in another thread.