Crashing on OSX with ola 0.9.6 installed

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
Post Reply
User avatar
rawbengal
Posts: 18
Joined: Fri Jul 10, 2015 5:23 am
Location: Los Angeles, CA, USA
Real Name: Rob Engle

I have OLA installed from macports and I canot get QLC+ to start. When invoking it I get the dialog asking about "Fixture Definition Editor" vs "Q Light Controller Plus." Once I start QLC+ it crashes with the crash log seen below. It appears that it is attempting to find symbol "ola::io::SelectServer::SelectServer(ola::ExportMap*, ola::Clock*)" in library /opt/local/lib/libolacommon.0.dylib. If I remove the library file everything works fine. It looks like the function signature for the SelectServer class constructor is "ola::io::SelectServer::SelectServer(ola::ExportMap*, ola::Clock*, ola::io::SelectServer::Options const&)" Note the extra argument at the end. Any hints?

Perhaps the QLC+ build is being done with an older version of OLA?

/Applications/QLC+.app/Contents/MacOS/qlcplus -v
Q Light Controller Plus version 4.9.1

olad -v
OLA olad version: 0.9.6

-- truncated crash log --

Code: Select all

Process:               qlcplus [8286]
Path:                  /Applications/QLC+.app/Contents/MacOS/qlcplus
Identifier:            qlcplus
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           qlcplus [8286]
User ID:               501

Date/Time:             2015-07-09 22:24:06.768 -0700
OS Version:            Mac OS X 10.10.4 (14E46)
Report Version:        11
Anonymous UUID:        5B94495E-553D-5A6F-B0CE-A3DAC719D018

Sleep/Wake UUID:       B0FB5C04-AFEB-44C5-BD58-82DD2EF9119C

Time Awake Since Boot: 100000 seconds
Time Since Wake:       2500 seconds

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

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000

Dyld Error Message:
  Symbol not found: __ZN3ola2io12SelectServerC1EPNS_9ExportMapEPNS_5ClockE
  Referenced from: /Applications/QLC+.app/Contents/PlugIns/libolaio.dylib
  Expected in: /opt/local/lib/libolacommon.0.dylib

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   dyld                          	0x00007fff65865075 dyld_fatal_error + 1
1   dyld                          	0x00007fff65868241 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 180
2   libdyld.dylib                 	0x00007fff8d0dd3ba dyld_stub_binder + 282
3   ???                           	0x0000000110344058 0 + 4566827096
4   libolaio.dylib                	0x000000011033e9ea OlaOutThread::start(QThread::Priority) + 26
5   libolaio.dylib                	0x000000011033c893 OlaIO::setServerEmbedded(bool) + 355
6   libolaio.dylib                	0x000000011033c640 OlaIO::init() + 448
7   libqlcplusengine.1.0.0.dylib  	0x000000010741a69e IOPluginCache::load(QDir const&) + 1950
8   libqlcplusui.1.0.0.dylib      	0x000000010753526e App::initDoc() + 494
9   libqlcplusui.1.0.0.dylib      	0x000000010753328a App::init() + 1274
10  libqlcplusui.1.0.0.dylib      	0x0000000107532b9b App::startup() + 27
11  qlcplus                       	0x00000001073642f5 main + 549
12  qlcplus                       	0x0000000107362fd4 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff8c594232 kevent64 + 10
1   libdispatch.dylib             	0x00007fff9331ea6a _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff8c59394a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff92d4b40d start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff8c59394a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff92d4b40d start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff8c59394a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff92d4b40d start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib        	0x00007fff8c59394a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff92d4b40d start_wqthread + 13

Thread 6:
0   libsystem_kernel.dylib        	0x00007fff8c59394a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff92d4b40d start_wqthread + 13

Thread 7:
0   libsystem_kernel.dylib        	0x00007fff8c58e4de mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8c58d64f mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff95109eb4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9510937b __CFRunLoopRun + 1371
4   com.apple.CoreFoundation      	0x00007fff95108bd8 CFRunLoopRunSpecific + 296
5   com.apple.AppKit              	0x00007fff8fc9256b _NSEventThread + 137
6   libsystem_pthread.dylib       	0x00007fff92d4d268 _pthread_body + 131
7   libsystem_pthread.dylib       	0x00007fff92d4d1e5 _pthread_start + 176
8   libsystem_pthread.dylib       	0x00007fff92d4b41d thread_start + 13

Thread 8:: org.libusb.device-hotplug
0   libsystem_kernel.dylib        	0x00007fff8c58e4de mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8c58d64f mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff95109eb4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9510937b __CFRunLoopRun + 1371
4   com.apple.CoreFoundation      	0x00007fff95108bd8 CFRunLoopRunSpecific + 296
5   com.apple.CoreFoundation      	0x00007fff951c0671 CFRunLoopRun + 97
6   libusb-1.0.0.dylib            	0x0000000110071832 darwin_event_thread_main + 591
7   libsystem_pthread.dylib       	0x00007fff92d4d268 _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff92d4d1e5 _pthread_start + 176
9   libsystem_pthread.dylib       	0x00007fff92d4b41d thread_start + 13

Thread 9:: com.apple.CFSocket.private
0   libsystem_kernel.dylib        	0x00007fff8c5933fa __select + 10
1   libsystem_pthread.dylib       	0x00007fff92d4d268 _pthread_body + 131
2   libsystem_pthread.dylib       	0x00007fff92d4d1e5 _pthread_start + 176
3   libsystem_pthread.dylib       	0x00007fff92d4b41d thread_start + 13

Thread 10:
0   libsystem_kernel.dylib        	0x00007fff8c58e4de mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8c58d64f mach_msg + 55
2   com.apple.audio.midi.CoreMIDI 	0x0000000110262dbb XServerMachPort::ReceiveMessage(int&, void*, int&) + 125
3   com.apple.audio.midi.CoreMIDI 	0x000000011027e76e MIDIProcess::RunMIDIInThread() + 112
4   com.apple.audio.midi.CoreMIDI 	0x0000000110263e5a XThread::RunHelper(void*) + 10
5   com.apple.audio.midi.CoreMIDI 	0x0000000110263a8b CAPThread::Entry(CAPThread*) + 109
6   libsystem_pthread.dylib       	0x00007fff92d4d268 _pthread_body + 131
7   libsystem_pthread.dylib       	0x00007fff92d4d1e5 _pthread_start + 176
8   libsystem_pthread.dylib       	0x00007fff92d4b41d thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fff6589d288  rbx: 0x00007feb8592c3d0  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x00007fff6589d3f0  rsi: 0x0000000000000000  rbp: 0x00007fff588a0fd0  rsp: 0x00007fff588a0fb8
   r8: 0x00007fff65887aec   r9: 0x00000000fffc0000  r10: 0x00007fff588a0d3d  r11: 0x00007fff6589d3f0
  r12: 0x00007fff588a17e8  r13: 0x00007feb8590bb80  r14: 0x00007fff6589d3f0  r15: 0x00007feb8592cdd0
  rip: 0x00007fff65865075  rfl: 0x0000000000000246  cr2: 0x00007fff65881000
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     3
Last edited by rawbengal on Fri Jul 10, 2015 5:41 am, edited 1 time in total.
User avatar
rawbengal
Posts: 18
Joined: Fri Jul 10, 2015 5:23 am
Location: Los Angeles, CA, USA
Real Name: Rob Engle

As an update, this morning I was able to go into the QLC+ package file, move the OLA plugin "libolaio.dylib" out of the "Plugins" directory and launch the program. Since I am not currently using OLA for IO that seems to work. It feels like, maybe, I need to compile the OLA plugin myself with the latest libraries but, for now, I have a workaround.

It looks like the latest (0.9.6) release of OLA added this new "options" parameter to the end of the SelectServer constructor. It wasn't present in 0.9.5. I suppose another option is just to roll back to 0.9.5 OLA as well. It would have been nice if OLA had left the old constructor in place so as not to break binary compatibility.

-rob
User avatar
mcallegari
Posts: 4825
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Hi, thanks for reporting.
I've opened an issue in the OLA project
https://github.com/OpenLightingProject/ola/issues/826
and they've already fixed the code.

Binary compatibility should be back with OLA 0.9.7
Post Reply