Ableton Crashes When Loading Max for Live Device, related to jit_handle_size_set
Hello,
Not sure if this would be better suited to the Ableton forums, but I'm having issues with a Max for Live device I've been developing for my A/V show. Loading a set containing the device crashes Ableton ("a serious program error has occurred"), but I can sometimes load the device from a different path after the set is already open (by clicking and dragging from windows explorer). I analyzed the crash report in winDBG and it seems to have something to do with the jitlib.dll file allocating memory, but the crash still happens even after deleting all jitter objects. I would rather not share the max patch if possible, but it's mostly just pointing to and controlling parameters in the set using live.object and live.remote, displaying video files and Spout output via jit.world, and sending track names and other track information between two different devices. The console doesn't seem to provide much information about what could be causing the crash either. The report generated by Ableton is below, hopefully someone can help or at least point me in the right direction:
FILE_IN_CAB: Live_12.1.5_2024-12-11_18e1550166_2024_12_20__21_11_31.dmp CONTEXT: (.ecxr) rax=ffffffff9f0e7b40 rbx=000000023811f250 rcx=00000000ffffffff rdx=ffffffff9f0e7b40 rsi=0000000000148780 rdi=00000002fcdbccc0 rip=00007ffe1c3f1929 rsp=0000000000148660 rbp=0000000000000004 r8=0000000000148660 r9=0000000000148670 r10=000000003e8eaa20 r11=0000000000148658 r12=0000000000000001 r13=0000000000000000 r14=000000023811f250 r15=00000002f978de01 iopl=0 nv up ei ng nz na pe nc cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010282 jitlib!jit_handle_size_set+0x259: 00007ffe`1c3f1929 48634804 movsxd rcx,dword ptr [rax+4] ds:ffffffff`9f0e7b44=???????? Resetting default scope EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 00007ffe1c3f1929 (jitlib!jit_handle_size_set+0x0000000000000259) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 0000000000000000 Parameter[1]: ffffffff9f0e7b44 Attempt to read from address ffffffff9f0e7b44 PROCESS_NAME: Ableton Live 12 Trial.exe READ_ADDRESS: ffffffff9f0e7b44 ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s. EXCEPTION_CODE_STR: c0000005 EXCEPTION_PARAMETER1: 0000000000000000 EXCEPTION_PARAMETER2: ffffffff9f0e7b44 STACK_TEXT: 00000000`00148660 00000000`3e883e6c : 00000000`00000000 00000000`00000004 00000002`3811f250 00000002`fcdbccc0 : jitlib!jit_handle_size_set+0x259 00000000`001486a0 00000000`3e883d7f : 00000000`00148780 00000002`3811f250 00000000`00000000 00000000`00000000 : MaxPlug!object_method_typedfun+0xbc 00000000`001486e0 00000000`3e5f2baf : 00000003`01d41fb0 00000000`00148820 00000000`00000000 00000000`0000fcc7 : MaxPlug!object_method_typed+0x9f 00000000`00148720 00000000`58f82f86 : 00000002`fddbc810 00000000`00149af0 00000000`4000bc40 00000000`0014abe0 : MaxPlug!jgraphics_image_surface_create_from_file+0x21f 00000000`001499f0 00000000`58f83152 : 00000000`00000000 00000002`fcdd2638 00000002`fddbc810 00000000`3e886202 : fpic!ext_main+0x1f56 00000000`0014aa80 00000000`3e8c5cfb : 00000000`00000001 00000002`fddbc810 00000000`58f83100 00000002`6c9ae990 : fpic!ext_main+0x2122 00000000`0014aab0 00000000`58f83ea7 : 00000002`fddbc810 00000000`00000000 00000002`fddbc810 00000002`6c175a80 : MaxPlug!defer+0x3b 00000000`0014aaf0 00000000`3e87afde : 00000002`fddbc810 00000000`3bbd3990 00000000`00000000 00000000`3bbd3990 : fpic!ext_main+0x2e77 00000000`0014ab30 00000000`3e823f67 : 00000003`01e68db0 00000002`f978dee0 00000002`6c175a80 00000002`f978dee0 : MaxPlug!object_attr_setvalueof+0x19e 00000000`0014abb0 00000000`3e860f72 : 00000002`f97c6810 00007ffe`8034fde6 00000002`f978dee0 00000000`00000080 : MaxPlug!attr_dictionary_process+0x487 00000000`0014ac10 00000000`3e823b14 : 00000002`fddbc810 00000000`3a6b5370 00000000`00000001 00000002`fddbc810 : MaxPlug!linklist_funall_break+0xe2 00000000`0014ac60 00000000`58f836ff : 00000000`00000000 00000002`fddbc810 00000000`00000000 00000000`3a6b5370 : MaxPlug!attr_dictionary_process+0x34 00000000`0014acb0 00000000`3e8a9160 : 00000000`00000000 00000000`3e92de60 00000000`0014b010 00000000`00000000 : fpic!ext_main+0x26cf 00000000`0014ad60 00000000`3e884814 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`0014b010 : MaxPlug!typedmess+0x590 00000000`0014af00 00000000`3e94c23a : 00000002`f812f520 00000002`355c5e50 00000000`0014b070 00000002`f812f520 : MaxPlug!object_new_typed+0x104 00000000`0014af70 00000000`3e94e4d1 : 00000000`00000193 00000000`00001930 00000000`00000000 00000002`f978cb60 : MaxPlug!jpatcher_getparaminfo+0x101ea 00000000`0014b0c0 00000000`3e93992e : 00000002`00000194 00000002`f8e387a0 00000001`b2e70340 00000002`f963d2b0 : MaxPlug!jpatcher_getparaminfo+0x12481 00000000`0014b1c0 00000000`3e94b510 : 00000002`f812f520 00000002`f812f520 00000002`f812f520 00000000`00000000 : MaxPlug!jpatcher_error_obtrusive+0x2c8e 00000000`0014bae0 00000000`3e8a9160 : 00000000`00000001 00000000`00000008 00000000`00000050 00000000`00000000 : MaxPlug!jpatcher_getparaminfo+0xf4c0 00000000`0014be40 00000000`3e884881 : 00000000`00000000 00000001`282d7470 00000000`3a6b5370 00000000`00000000 : MaxPlug!typedmess+0x590 00000000`0014bfe0 00000000`3e72dab7 : 00000000`00000000 00000000`00000000 00000000`0014c150 00000002`f94f1f00 : MaxPlug!object_new_typed+0x171 00000000`0014c050 00000000`3e8a9160 : 00000000`00000000 00000000`3e92de60 00000000`0014c440 00000000`00000000 : MaxPlug!jmenu_update+0x46c7 00000000`0014c190 00000000`3e884814 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`0014c440 : MaxPlug!typedmess+0x590 00000000`0014c330 00000000`3e94c23a : 00000002`f812a980 00000000`3b8b14c0 00000000`0014c4a0 00000002`f812a980 : MaxPlug!object_new_typed+0x104 00000000`0014c3a0 00000000`3e94e4d1 : 00000000`0000001e 00000000`000001e0 00000000`00000000 00000002`f94f3940 : MaxPlug!jpatcher_getparaminfo+0x101ea 00000000`0014c4f0 00000000`3e93992e : 00000002`0000001f 00000002`f8e3e560 00000001`b2af9f20 00000000`00000000 : MaxPlug!jpatcher_getparaminfo+0x12481 00000000`0014c5f0 00000000`3e94b510 : 00000002`f812a980 00000000`0014d010 00000002`f812a980 00000000`00000000 : MaxPlug!jpatcher_error_obtrusive+0x2c8e 00000000`0014cf10 00000000`3e8a9160 : 00000000`00000001 00000000`00000008 00000000`00000050 00000000`00000000 : MaxPlug!jpatcher_getparaminfo+0xf4c0 00000000`0014d270 00000000`3e884881 : 00000000`00000000 00000000`00000000 00000000`00000000 00000002`f8e3d8a0 : MaxPlug!typedmess+0x590 00000000`0014d410 00000000`3e9643b2 : 00000002`f8e3d8a0 00000000`34e326b0 00000000`00000000 00000002`f8e3db40 : MaxPlug!object_new_typed+0x171 00000000`0014d480 00000000`3e96405b : 00000002`f8e3d8a0 00000002`f8e017a0 00000002`f8e3e560 00000000`00410000 : MaxPlug!jpatcher_load_fromdictionary_namespace+0x272 00000000`0014d510 00000000`3e965516 : 00000002`dca7c050 00000000`00000001 00000002`6fa916b0 00000000`00000000 : MaxPlug!jpatcher_load_frombuffer_namespace+0x19b 00000000`0014d9e0 00007ffe`5894b3be : 00000002`e98ec7d0 00000000`00000000 00000000`00358a3e 00000000`400eb160 : MaxPlug!lowload_jpatcher_fromamxd_data+0x466 00000000`0014dad0 00000000`3e3ad1af : 00000000`61616161 00000001`b297d2c0 00000002`dca7c050 00000000`00000000 : MaxAudio!pluginterface_createjpatcher+0x12e 00000000`0014db50 00000000`3e3b21ce : 00000000`0014ed98 00000000`00000000 00000000`00000000 00000000`00358a3e : patcher!plug_Main2+0xbb5f 00000000`0014ebb0 00000000`3e3a317f : 00000001`b297d2c0 00000001`b297d2c0 00000000`00358a3e 00000000`0014eda0 : patcher!plug_Main2+0x10b7e 00000000`0014eca0 00000000`3e3a2f82 : 00000000`3a27a080 00000000`0775a558 00000001`47b38c00 00000000`0014ee58 : patcher!plug_Main2+0x1b2f 00000000`0014ed10 00000001`43939347 : 00000000`00000000 00000000`0014eda0 00000000`0775a558 00000001`42c21331 : patcher!plug_Main2+0x1932 00000000`0014ed50 00000001`4395cd11 : 00000000`3a27a070 00000000`00000001 00000001`e2489429 00000002`bd6e2dc8 : Ableton_Live_12_Trial!PyInit_MxDManager+0x9767 00000000`0014ede0 00000001`4395ca93 : 00000000`03016978 00000000`0014ef50 00000000`0014ee50 00000000`0014ef39 : Ableton_Live_12_Trial!PyInit_MxDManager+0x2d131 00000000`0014ee50 00000001`43959732 : 00000002`bd6e2dc8 00000000`0014ef50 00000000`0014eff0 00000000`0014ee80 : Ableton_Live_12_Trial!PyInit_MxDManager+0x2ceb3 00000000`0014ef20 00000001`42c2a569 : 00000002`bd630d38 00000000`00000000 00000002`bd630d38 00000001`42c2a6d3 : Ableton_Live_12_Trial!PyInit_MxDManager+0x29b52 00000000`0014ef80 00000001`42c2c4fd : 00000002`bd630d38 00000002`bd630d38 00000000`866fdd18 00000000`00000000 : Ableton_Live_12_Trial!PyAccu_Init+0x1ad129 00000000`0014efd0 00000001`43959836 : 00000002`bd6e2dc8 00000000`866fdd18 00000000`00000000 00000001`e2489c28 : Ableton_Live_12_Trial!PyAccu_Init+0x1af0bd 00000000`0014f010 00000001`43954fda : 00000002`bd6e2dc8 00000000`00000000 00000000`0014f0f0 00000000`00000000 : Ableton_Live_12_Trial!PyInit_MxDManager+0x29c56 00000000`0014f050 00000001`439d4a9e : 00000000`866fdd18 00000001`43954f80 00000000`0014f2c8 00000000`0014f048 : Ableton_Live_12_Trial!PyInit_MxDManager+0x253fa 00000000`0014f090 00000001`434d2c9e : 00000001`e2489258 00000000`3b507aa0 00000000`0014f2c8 00000000`3b507aa0 : Ableton_Live_12_Trial!PyInit_MxDManager+0xa4ebe 00000000`0014f180 00000001`434d2ab4 : 00000000`0014f360 00000001`47b38c00 00000000`0014f2b8 00000000`0014f309 : Ableton_Live_12_Trial!PyInit_Licensing+0x1b701e 00000000`0014f280 00000001`44bf4c3b : 00000000`00497fa8 0000004d`00000200 00000002`cf38f048 00000000`00000000 : Ableton_Live_12_Trial!PyInit_Licensing+0x1b6e34 00000000`0014f360 00000001`42cf18a8 : 0000004d`00000200 00000001`440c45e0 00000000`0014f609 00000000`00000002 : Ableton_Live_12_Trial!Py_Get_Getpath_CodeObject+0x68fcfb 00000000`0014f3e0 00000001`42b00545 : 00000000`0ebabff8 00000002`35217740 00000000`00000000 00000000`00000000 : Ableton_Live_12_Trial!PyAccu_Init+0x274468 00000000`0014f560 00000001`42b00c42 : 00000000`0014f5b8 00000000`0014f5b8 00000000`0014f600 00000000`1a3a69d2 : Ableton_Live_12_Trial!PyAccu_Init+0x83105 00000000`0014f670 00000001`42d4603c : 00000002`35217730 00000000`00028b0a 00000000`00000401 00007ffe`806ddffd : Ableton_Live_12_Trial!PyAccu_Init+0x83802 00000000`0014f720 00000001`42d46286 : 00000000`00028b0a 00000000`00000000 00000000`0750eff0 00000001`42aa15b5 : Ableton_Live_12_Trial!PyAccu_Init+0x2c8bfc 00000000`0014f790 00000001`42d467f2 : 00000000`0014f840 00000400`89dff3ea 00000000`0014f839 00000400`89ddbd32 : Ableton_Live_12_Trial!PyAccu_Init+0x2c8e46 00000000`0014f7f0 00000001`42d4322f : 00000000`00000001 00000400`89dff3ea 00000000`000361d8 00007ffe`8282f070 : Ableton_Live_12_Trial!PyAccu_Init+0x2c93b2 00000000`0014f8a0 00007ffe`827aef5c : 00000000`00000000 00000000`0014fd10 00000000`000361d8 00000000`00006010 : Ableton_Live_12_Trial!PyAccu_Init+0x2c5def 00000000`0014f8d0 00007ffe`827ae8cc : 00000000`00000388 00000001`42d431c0 00000000`80000000 00000000`00000000 : user32!UserCallWinProcCheckWow+0x50c 00000000`0014fa60 00007ffe`827c10c3 : 00000000`00000000 00000000`00000000 00000000`00028b0a 00000000`00000000 : user32!DispatchClientMessage+0x9c 00000000`0014fac0 00007ffe`82af1374 : 00000000`00000000 00007ffe`827aa333 00000000`00000070 ffffffff`ffffffff : user32!_fnDWORD+0x33 00000000`0014fb20 00007ffe`80161104 : 00007ffe`827c210e 00000000`00000000 00000000`00000000 00000001`00000000 : ntdll!KiUserCallbackDispatcherContinue 00000000`0014fba8 00007ffe`827c210e : 00000000`00000000 00000000`00000000 00000001`00000000 00000000`00000003 : win32u!NtUserGetMessage+0x14 00000000`0014fbb0 00000001`42ccc8a2 : 00000001`4604b150 00000000`0014fd10 00000000`00000000 00000000`0ebef2a0 : user32!GetMessageW+0x2e 00000000`0014fc10 00000001`422f16a9 : 00000000`00000000 00000000`0014fc78 00000000`0014fcc8 00000000`00009fe0 : Ableton_Live_12_Trial!PyAccu_Init+0x24f462 00000000`0014fea0 00000001`420e572a : 00000001`459f21b8 00000000`00000000 00000000`00000000 00000000`00000000 : Ableton_Live_12_Trial+0x22f16a9 00000000`0014fef0 00007ffe`81d37374 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Ableton_Live_12_Trial+0x20e572a 00000000`0014ff30 00007ffe`82a9cc91 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14 00000000`0014ff60 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21 STACK_COMMAND: ~0s; .ecxr ; kb SYMBOL_NAME: jitlib+259 MODULE_NAME: jitlib IMAGE_NAME: jitlib.dll FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_jitlib.dll!Unknown OS_VERSION: 10.0.19041.1 BUILDLAB_STR: vb_release OSPLATFORM_TYPE: x64 OSNAME: Windows 10 IMAGE_VERSION: 9.0.3.666 FAILURE_ID_HASH: {1f1669c5-d7d9-10e0-e6c9-62852448d35f} Followup: MachineOwner