TFD1443.plugin crashing LW2019.1.4 MacUB

CFG: OSX10.13.6, LW2019.1.4 on MacUB(64)

NOTE: I observed that the TFD 1443 .plugin for Mac LW is missing the libwx_*.dylib files present in TFD 1427 (the last version here that worked for Mac LW). Copying the ones from 1427 to 1443 same location in .plugin didn’t change anything, but might be requiring different revisions to satisfy loading dependency. Just noticed it as a difference, thought I’d mention it.

I’ve tried redownloading, etc. to no avail. Any help appreciated. Loading plugin using AddPlugin yields a “cannot load plugin” error. Attempting to scan directory containing plugin (even off disk img) reliably yields a crash as follows (looks like 100% reliable null-ptr deref):

Process: Layout [33522]
Path: /Applications/NewTek/*/Layout.app/Contents/MacOS/Layout
Identifier: com.newtek.LightWave.Layout
Version: 2019.1.4 (2019.1.4)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Layout [33522]
User ID: 501

Date/Time: 2019-11-02 19:44:57.436 -0700
OS Version: Mac OS X 10.13.6 (17G5019)
Report Version: 12
Anonymous UUID: D86DBF39-F98C-9599-6748-CF33F1B228CC

Time Awake Since Boot: 370000 seconds

System Integrity Protection: disabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

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

VM Regions Near 0:
–>
__TEXT 000000010d8f9000-000000010dd64000 [ 4524K] r-x/rwx SM=COW < [/Applications/NewTek/LightWave3D_2019.1.4/Layout.app/Contents/MacOS/Layout]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 000000000000000000 0 + 0
1 com.jawset.Turbulence 0x000000016537bae6 0x1650da000 + 2759398
2 com.jawset.Turbulence 0x0000000165331cf9 0x1650da000 + 2456825
3 libtools.2019.1.4.dylib 0x000000010e06d70b 0x10df45000 + 1214219
4 libtools.2019.1.4.dylib 0x000000010e06fa05 HostAddModule + 133
5 libtools.2019.1.4.dylib 0x000000010e085775 0x10df45000 + 1312629
6 libtools.2019.1.4.dylib 0x000000010e085aef 0x10df45000 + 1313519
7 libtools.2019.1.4.dylib 0x000000010e085a36 StdPluginScan + 214
8 libtools.2019.1.4.dylib 0x000000010e08682c 0x10df45000 + 1316908
9 libtools.2019.1.4.dylib 0x000000010df96557 0x10df45000 + 333143
10 libtools.2019.1.4.dylib 0x000000010df96a05 0x10df45000 + 334341
11 com.apple.AppKit 0x00007fff4235ed6d -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5891
12 com.apple.AppKit 0x00007fff4235b9c4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2359
13 com.apple.AppKit 0x00007fff4235ac70 -[NSWindow(NSEventRouting) sendEvent:] + 497
14 com.apple.AppKit 0x00007fff421bc236 -[NSApplication(NSEvent) sendEvent:] + 2462
15 libqcocoa.dylib 0x0000000118b973ea 0x118b60000 + 226282
16 libqcocoa.dylib 0x0000000118b93826 0x118b60000 + 210982
17 libtools.2019.1.4.dylib 0x000000010e0d1286 0x10df45000 + 1622662
18 libtools.2019.1.4.dylib 0x000000010e0b6b65 WManGetInput + 469
19 libtools.2019.1.4.dylib 0x000000010e0860e1 StdPluginEdit + 1425
20 com.newtek.LightWave.Layout 0x000000010d993712 0x10d8f9000 + 632594
21 libtools.2019.1.4.dylib 0x000000010df66d9e ActionDefDispatch + 142
22 libtools.2019.1.4.dylib 0x000000010df88495 CmdEntryFireTag + 181
23 libtools.2019.1.4.dylib 0x000000010df8f60b 0x10df45000 + 304651
24 com.apple.AppKit 0x00007fff4235ed6d -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5891
25 com.apple.AppKit 0x00007fff4235b9c4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2359
26 com.apple.AppKit 0x00007fff4235ac70 -[NSWindow(NSEventRouting) sendEvent:] + 497
27 com.apple.AppKit 0x00007fff421bc236 -[NSApplication(NSEvent) sendEvent:] + 2462
28 libqcocoa.dylib 0x0000000118b973ea 0x118b60000 + 226282
29 libqcocoa.dylib 0x0000000118b93826 0x118b60000 + 210982
30 libtools.2019.1.4.dylib 0x000000010e0d1286 0x10df45000 + 1622662
31 libtools.2019.1.4.dylib 0x000000010e0b6b65 WManGetInput + 469
32 com.newtek.LightWave.Layout 0x000000010da45425 0x10d8f9000 + 1360933
33 com.newtek.LightWave.Layout 0x000000010db009cd 0x10d8f9000 + 2128333
34 libdyld.dylib 0x00007fff6c468015 start + 1

Thread 1:
0 libsystem_kernel.dylib 0x00007fff6c5af20a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6c5ae724 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff44498ea5 __CFRunLoopServiceMachPort + 341
3 com.apple.CoreFoundation 0x00007fff444981f7 __CFRunLoopRun + 1783
4 com.apple.CoreFoundation 0x00007fff44497867 CFRunLoopRunSpecific + 487
5 com.apple.CoreFoundation 0x00007fff444d5d13 CFRunLoopRun + 99
6 Sentinel 0x000000010ded8f11 SUP110BIA + 620
7 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
8 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
9 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff6c5af20a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6c5ae724 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff44498ea5 __CFRunLoopServiceMachPort + 341
3 com.apple.CoreFoundation 0x00007fff444981f7 __CFRunLoopRun + 1783
4 com.apple.CoreFoundation 0x00007fff44497867 CFRunLoopRunSpecific + 487
5 com.apple.AppKit 0x00007fff41b64fc4 _NSEventThread + 184
6 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
7 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
8 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 3:: OGL Profiler
0 libsystem_kernel.dylib 0x00007fff6c5af20a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6c5ae724 mach_msg + 60
2 com.apple.opengl 0x00007fff4e9badcf glcDebugListener + 303
3 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
4 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
5 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 4:: 3Dconnexion I/O
0 libsystem_kernel.dylib 0x00007fff6c5af20a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6c5ae724 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff44498ea5 __CFRunLoopServiceMachPort + 341
3 com.apple.CoreFoundation 0x00007fff444981f7 __CFRunLoopRun + 1783
4 com.apple.CoreFoundation 0x00007fff44497867 CFRunLoopRunSpecific + 487
5 com.apple.CoreFoundation 0x00007fff444d5d13 CFRunLoopRun + 99
6 libtools.2019.1.4.dylib 0x000000010e0cde4a Navigation3DConnexionClass::Impl::threadentry(void*) + 186
7 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
8 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
9 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff6c5af20a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6c5ae724 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff44498ea5 __CFRunLoopServiceMachPort + 341
3 com.apple.CoreFoundation 0x00007fff444981f7 __CFRunLoopRun + 1783
4 com.apple.CoreFoundation 0x00007fff44497867 CFRunLoopRunSpecific + 487
5 com.apple.CoreFoundation 0x00007fff444d5d13 CFRunLoopRun + 99
6 com.3dconnexion.driver.client 0x00000001108dcb8c -[ConnexionClientAPI clientThreadEntry] + 335
7 com.apple.Foundation 0x00007fff465be148 NSThread__start + 1197
8 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
9 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
10 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 6:: navigation keyboard input
0 libsystem_kernel.dylib 0x00007fff6c5af35a mach_wait_until + 10
1 libtools.2019.1.4.dylib 0x000000010e0d0631 MSSleep + 193
2 libtools.2019.1.4.dylib 0x000000010e01b23a NavigationKeyboardClass::timerTick_(void*) + 74
3 libtools.2019.1.4.dylib 0x000000010e0cc0d1 0x10df45000 + 1601745
4 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
5 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
6 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 7:: thread group monitor
0 libsystem_kernel.dylib 0x00007fff6c5b8d82 __semwait_signal + 10
1 libsystem_pthread.dylib 0x00007fff6c784824 _pthread_join + 626
2 libtools.2019.1.4.dylib 0x000000010e0cc15b 0x10df45000 + 1601883
3 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
4 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
5 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 8:: QThread
0 libsystem_kernel.dylib 0x00007fff6c5b8d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6c533724 nanosleep + 199
2 org.qt-project.QtCore 0x000000011052e85b 0x1102f0000 + 2353243
3 libcore.2019.1.4.dylib 0x000000010f04fc0a 0x10efe3000 + 445450
4 org.qt-project.QtCore 0x0000000110312073 0x1102f0000 + 139379
5 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
6 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
7 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 9:: QThread
0 libsystem_kernel.dylib 0x00007fff6c5b8d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6c533724 nanosleep + 199
2 org.qt-project.QtCore 0x000000011052e85b 0x1102f0000 + 2353243
3 libcore.2019.1.4.dylib 0x000000010f04fc0a 0x10efe3000 + 445450
4 org.qt-project.QtCore 0x0000000110312073 0x1102f0000 + 139379
5 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
6 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
7 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 10:: vpr main
0 libsystem_kernel.dylib 0x00007fff6c5b8a16 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6c781589 _pthread_cond_wait + 732
2 org.qt-project.QtCore 0x000000011031a86b 0x1102f0000 + 174187
3 org.qt-project.QtCore 0x000000011031a7cc QWaitCondition::wait(QMutex*, QDeadlineTimer) + 108
4 org.qt-project.QtCore 0x0000000110316c13 QSemaphore::acquire(int) + 83
5 com.newtek.LightWave.Layout 0x000000010dc01497 0x10d8f9000 + 3179671
6 org.qt-project.QtCore 0x0000000110312073 0x1102f0000 + 139379
7 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
8 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
9 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 11:: adx listener
0 libsystem_kernel.dylib 0x00007fff6c5b8cf2 __select + 10
1 libtools.2019.1.4.dylib 0x000000010df9f18d 0x10df45000 + 369037
2 libtools.2019.1.4.dylib 0x000000010e0cc0d1 0x10df45000 + 1601745
3 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
4 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
5 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 12:: thread group monitor
0 libsystem_kernel.dylib 0x00007fff6c5b8d82 __semwait_signal + 10
1 libsystem_pthread.dylib 0x00007fff6c784824 _pthread_join + 626
2 libtools.2019.1.4.dylib 0x000000010e0cc15b 0x10df45000 + 1601883
3 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
4 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
5 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 13:: QThread
0 libsystem_kernel.dylib 0x00007fff6c5b8d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6c533724 nanosleep + 199
2 org.qt-project.QtCore 0x000000011052e85b 0x1102f0000 + 2353243
3 libcore.2019.1.4.dylib 0x000000010f04f6da 0x10efe3000 + 444122
4 org.qt-project.QtCore 0x0000000110312073 0x1102f0000 + 139379
5 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
6 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
7 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 14:: QThread
0 libsystem_kernel.dylib 0x00007fff6c5b8d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6c533724 nanosleep + 199
2 org.qt-project.QtCore 0x000000011052e85b 0x1102f0000 + 2353243
3 libcore.2019.1.4.dylib 0x000000010f04f6da 0x10efe3000 + 444122
4 org.qt-project.QtCore 0x0000000110312073 0x1102f0000 + 139379
5 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
6 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
7 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 15:: QThread
0 libsystem_kernel.dylib 0x00007fff6c5b8d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6c533724 nanosleep + 199
2 org.qt-project.QtCore 0x000000011052e85b 0x1102f0000 + 2353243
3 libcore.2019.1.4.dylib 0x000000010f04f6da 0x10efe3000 + 444122
4 org.qt-project.QtCore 0x0000000110312073 0x1102f0000 + 139379
5 libsystem_pthread.dylib 0x00007fff6c780661 _pthread_body + 340
6 libsystem_pthread.dylib 0x00007fff6c78050d _pthread_start + 377
7 libsystem_pthread.dylib 0x00007fff6c77fbf9 thread_start + 13

Thread 16:
0 libsystem_kernel.dylib 0x00007fff6c5b928a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6c780009 _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff6c77fbe9 start_wqthread + 13

Thread 17:: Dispatch queue: TBrowserViewDataSource
0 libsystem_kernel.dylib 0x00007fff6c5b8a16 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6c781589 _pthread_cond_wait + 732
2 com.apple.FinderKit 0x00007fff59e948fb TConditionVariable::Wait(TMutex&) + 35
3 com.apple.FinderKit 0x00007fff59fee1b6 ModifyDataSourceOnMainThreadSync(FI_TBrowserViewDataSource*, FI_TBVDSChangedNotificationData*, std::__1::function<void ()> const&) + 353
4 com.apple.FinderKit 0x00007fff59fea69e __44-[FI_TBrowserViewDataSource aboutToTearDown]_block_invoke + 321
5 libdispatch.dylib 0x00007fff6c4365fa _dispatch_call_block_and_release + 12
6 libdispatch.dylib 0x00007fff6c42edb8 _dispatch_client_callout + 8
7 libdispatch.dylib 0x00007fff6c443217 _dispatch_queue_serial_drain + 635
8 libdispatch.dylib 0x00007fff6c436166 _dispatch_queue_invoke + 373
9 libdispatch.dylib 0x00007fff6c443f0d _dispatch_root_queue_drain_deferred_wlh + 332
10 libdispatch.dylib 0x00007fff6c447d21 _dispatch_workloop_worker_thread + 880
11 libsystem_pthread.dylib 0x00007fff6c77ffd2 _pthread_wqthread + 980
12 libsystem_pthread.dylib 0x00007fff6c77fbe9 start_wqthread + 13

Thread 18:
0 libsystem_kernel.dylib 0x00007fff6c5b928a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6c780009 _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff6c77fbe9 start_wqthread + 13

Thread 19:
0 libsystem_kernel.dylib 0x00007fff6c5b928a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6c780009 _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff6c77fbe9 start_wqthread + 13

Thread 20:
0 libsystem_pthread.dylib 0x00007fff6c77fbdc start_wqthread + 0
1 ??? 0x2000000000000000 0 + 2305843009213693952

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000165a463e8 rbx: 0x0000000165a08408 rcx: 0x0000000165a41198 rdx: 0x0000000000000400
rdi: 0x0000000000000001 rsi: 0x000060000001e280 rbp: 0x00007ffee23023a0 rsp: 0x00007ffee2302378
r8: 0x0000000000000000 r9: 0xffffffff00000000 r10: 0x000000010e45e758 r11: 0x000000010e45e760
r12: 0x000061c0002f8b00 r13: 0x0000000000000000 r14: 0x0000600000080690 r15: 0x000060000002bd00
rip: 0x0000000000000000 rfl: 0x0000000000010246 cr2: 0x0000000000000000

Logical CPU: 18
Error Code: 0x00000014
Trap Number: 14

(let me know if full error report needed, I already sent it in email to jascha@jawset.com)

Apologies for the delay. I was not able to reproduce this crash yet.
Could you try the following?

  • quit Layout
  • delete the file ~/Library/Application\ Support/NewTek/LightWave/2019.1.4/Extensions\ 2019.1.4
  • restart layout and scan the TFD plugin directory again

Jascha, attempting to load with freshly-installed LW2019.1.4 and clean configs gave same exact message, while other C/C++ plugins could be installed fine – it seems to be something about the plugin (or dependencies), not the config. I receive the same error attempting to load TFD1443 in LW2018.0.7, btw, and loading TFD1427 in either LW2019.1.4 or LW2018.0.7 loads the plugin just fine.

As I mentioned before, comparing the two plugin packages’ contents, I notice that TFD1443.plugin was missing the following files:

TurbulenceFD_1427.plugin/libwx_baseu-3.1.0.0.0.dylib
TurbulenceFD_1427.plugin/libwx_osx_cocoau_core-3.1.0.0.0.dylib
TurbulenceFD_1427.plugin/libwx_osx_cocoau_gl-3.1.0.0.0.dylib

(again, these files ARE NOT PRESENT in the TurbulenceFD_1443.plugin package)

Moving those files into the TFD1443.plugin package doesn’t change the outcome, but perhaps they’re not present in the linking or manifest or such for TFD1443.plugin so it can’t find them even if I move them into the package. I do suspect these missing files (which I mentioned before) have to do with the failure of TFD1443.plugin to load into LW.

Thanks!

-John W.

Thanks John,
the results from different combinations of versions are helpful. I’ll keep trying to narrow it down.
The missing dylibs are linked into the main TFD dylib in the newer builds. That is, they’re still there, just not in separate files.