maxurl in Live crashes

pdelges's icon

I try to control an ethernet relay board with some http commands.

It does work fine in Max with the help of [maxurl] but not as a live device (Live12, Max8.6 under macOS13, 14).

In Live [maxurl] behaves erratically and crashes sooner or later (sometimes when quitting Live).

Crash logs look like this :

Crashed Thread:        21  maxurl_perform_request

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

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

VM Region Info: 0 is not in any region.  Bytes before following region: 4337418240
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      10287c000-1085e8000    [ 93.4M] r-x/r-x SM=COW  /Applications/Ableton Live 12 Suite.app/Contents/MacOS/Live
Thread 21 Crashed:: maxurl_perform_request
0   libsystem_pthread.dylib       	       0x19b62d4f8 pthread_mutex_lock + 12
1   MaxPlugLib                    	       0x324a90e9c systhread_mutex_lock + 12
2   maxurl                        	       0x330c88a10 maxurl_perform_request + 356
3   MaxPlugLib                    	       0x324afde1c systhread_threadproc + 232
4   libsystem_pthread.dylib       	       0x19b632f94 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x19b62dd34 thread_start + 8

Is this a known issue? Any suggestions?

I built a workaround, sending TCP commands (thanks to [sadam.tcpClient]) but I'd prefer not to rely on an external.

Jan M's icon

Can you provide a simple patch to demonstrate?