CNMAT / CNMAT-Externs

CNMAT Max/MSP externals
Other
96 stars 11 forks source link

thread.fork errors #101

Open wagne342 opened 6 years ago

wagne342 commented 6 years ago

@ramagottfried

On Windows 64 thread.fork doesn't load properly. In the Max console we get:

error 126 loading external thread.fork

wagne342 commented 6 years ago

{ "version" : "Version 7.1.0 (667771f) (64-bit windows)", "platform" : "windows", "arch" : "x64", "osversion" : "Microsoft Windows 7 Professional Service Pack 1 (build 7601), 64-bit", "samplerate" : 44100, "iovs" : 512, "sigvs" : 64, "scheduler_in_audio_interrupt" : "on", "audio_drivername" : "ad_mme", "audio_driver_subname" : "", "license" : "term", "machine_id" : "e4aa7fe204b153cdc6434f60592253e0", "eventinterval" : 2, "overdrive" : "on", "mixerparallel" : "off", "mixercrossfade" : 0, "mixerlatency" : 30.0, "mixerramptime" : 10.0, "videoengine" : "qt",

wagne342 commented 6 years ago

Maybe this will help: https://cycling74.com/forums/error-126-loading-external

ramagottfried commented 6 years ago

@wagne342 thanks -- I was able to fix the loading issue by statically linking the pthread library, so the object loads now, but it seems like it's not doing anything when I send messages in, so it will require some more attention.

ramagottfried commented 6 years ago

so the original issue is fixed, but on more testing there seems to be some funkiness in 64bit on Mac as well. On my system when sending a max message into thread fork the result is garbled when coming out of thread.join -- whereas it works fine in 32bit mode.

on windows, in both bit modes, it loads now, but has no visible response when you send any input into thread.fork.

ramagottfried commented 6 years ago

also, sometimes it crashes in 64bit mode:

Process: Max [749] Path: /Applications/Max.app/Contents/MacOS/Max Identifier: com.cycling74.Max Version: 7.3.4 [1d56897] (7.3.4) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Max [749] User ID: 501

Date/Time: 2018-01-25 22:13:45.916 +0100 OS Version: Mac OS X 10.12.6 (16G1114) Report Version: 12 Anonymous UUID: E844FD0B-4873-595F-3615-7C8115A0DD9F

Time Awake Since Boot: 64 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 0x0000000000001f73 Exception Note: EXC_CORPSE_NOTIFY

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

VM Regions Near 0x1f73: --> __TEXT 00000001093e7000-0000000109c1a000 [ 8396K] r-x/rwx SM=COW /Applications/Max.app/Contents/MacOS/Max

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread 0 com.cycling74.Max 0x00000001094e0aaf class_attr_method + 73 1 com.cycling74.Max 0x00000001094e1e00 object_attr_method + 114 2 com.cycling74.Max 0x000000010941595c typedmess_lookup + 250 3 com.cycling74.Max 0x000000010948cddc outlet_anything + 374 4 com.cycling74.Max 0x000000010942ebf6 defer_exec + 80 5 com.cycling74.Max 0x0000000109426b3a sched_dequeue + 237 6 com.cycling74.Max 0x000000010965cb79 MainThreadEventHandler::invoke() + 101 7 libdispatch.dylib 0x00007fffc6a57524 _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007fffc6a4e8fc _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007fffc6a5baac _dispatch_main_queue_callback_4CF + 925 10 com.apple.CoreFoundation 0x00007fffb133ebc9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 11 com.apple.CoreFoundation 0x00007fffb12ffc0d __CFRunLoopRun + 2205 12 com.apple.CoreFoundation 0x00007fffb12ff114 CFRunLoopRunSpecific + 420 13 com.apple.HIToolbox 0x00007fffb085febc RunCurrentEventLoopInMode + 240 14 com.apple.HIToolbox 0x00007fffb085fcf1 ReceiveNextEventCommon + 432 15 com.apple.HIToolbox 0x00007fffb085fb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 16 com.apple.AppKit 0x00007fffaedf6a54 _DPSNextEvent + 1120 17 com.apple.AppKit 0x00007fffaf5727ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 18 com.apple.AppKit 0x00007fffaedeb3db -[NSApplication run] + 926 19 com.cycling74.Max 0x00000001097343b1 -[MaxCefApplication run] + 49 20 com.cycling74.chromium 0x000000010b8db311 0x10b7bf000 + 1164049 21 com.cycling74.chromium 0x000000010b8dac1c 0x10b7bf000 + 1162268 22 com.cycling74.chromium 0x000000010b9194d0 0x10b7bf000 + 1418448 23 com.cycling74.chromium 0x000000010b93257a 0x10b7bf000 + 1521018 24 com.cycling74.chromium 0x000000010b918e6d 0x10b7bf000 + 1416813 25 com.cycling74.chromium 0x000000010b8314b2 0x10b7bf000 + 468146 26 com.cycling74.Max 0x000000010987e190 juce::MessageManager::runDispatchLoop() + 80 27 com.cycling74.Max 0x000000010974d2c7 juce::JUCEApplication::main(juce::StringArray const&) + 59 28 com.cycling74.Max 0x000000010974d3de juce::JUCEApplication::main(int, char const**) + 68 29 com.cycling74.Max 0x00000001093eefa4 start + 52