Segmentation fault when "Trying to start USB"

54 views
Skip to first unread message

Grant Patterson

unread,
Feb 14, 2022, 12:04:50 AM2/14/22
to open-lighting
Hi folks, me again. I just used brew install ola on macos 12.0.1 / MacBook Pro (16-inch, 2019) (still intel) and I get this when I try to run olad:

$ olad -l 3
olad/Olad.cpp:98: OLA Daemon version 0.10.8
olad/OlaDaemon.cpp:121: Using configs in /Users/grantpatterson/.ola
common/thread/Thread.cpp:200: Thread pref-saver, policy SCHED_OTHER, priority 31
olad/OlaServer.cpp:194: Server UID is 7a70:5b07a8c0
olad/OlaServer.cpp:206: Server instance name is OLA Server
olad/plugin_api/Preferences.cpp:436: Missing /Users/grantpatterson/.ola/ola-universe.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/plugin_api/Preferences.cpp:436: Missing /Users/grantpatterson/.ola/ola-port.conf: No such file or directory - this isn't an error, we'll just use the defaults
common/thread/Thread.cpp:200: Thread bonjour, policy SCHED_OTHER, priority 31
common/thread/Thread.cpp:200: Thread http, policy SCHED_OTHER, priority 31
common/http/HTTPServer.cpp:509: HTTP Server started on port 9090
olad/OlaServer.cpp:481: Updated PID definitions.
olad/OlaServer.cpp:489: PID store is at 0x6000006841b0
olad/BonjourDiscoveryAgent.cpp:129: Adding OLA Server, _http._tcp,_ola
common/thread/Thread.cpp:200: Thread signal-thread, policy SCHED_OTHER, priority 31
olad/PluginManager.cpp:195: Trying to start Dummy
olad/plugin_api/DeviceManager.cpp:105: Installed device: Dummy Device:1-1
olad/PluginManager.cpp:200: Started Dummy
olad/PluginManager.cpp:195: Trying to start ArtNet
olad/plugin_api/DeviceManager.cpp:105: Installed device: ArtNet [192.168.7.91]:2-1
olad/PluginManager.cpp:200: Started ArtNet
olad/PluginManager.cpp:195: Trying to start ShowNet
olad/plugin_api/DeviceManager.cpp:105: Installed device: ShowNet [192.168.7.91]:3-1
olad/PluginManager.cpp:200: Started ShowNet
olad/PluginManager.cpp:195: Trying to start ESP Net
olad/plugin_api/DeviceManager.cpp:105: Installed device: ESP Net [192.168.7.91]:4-1
olad/PluginManager.cpp:200: Started ESP Net
olad/PluginManager.cpp:195: Trying to start Serial USB
common/thread/Thread.cpp:200: Thread , policy SCHED_OTHER, priority 31
olad/PluginManager.cpp:200: Started Serial USB
olad/PluginManager.cpp:195: Trying to start Enttec Open DMX
common/io/IOUtils.cpp:39: open(/dev/dmx0): No such file or directory
plugins/opendmx/OpenDmxPlugin.cpp:80: Could not open /dev/dmx0 No such file or directory
olad/PluginManager.cpp:200: Started Enttec Open DMX
olad/PluginManager.cpp:195: Trying to start SandNet
olad/plugin_api/DeviceManager.cpp:105: Installed device: SandNet [192.168.7.91]:7-1
olad/PluginManager.cpp:200: Started SandNet
olad/PluginManager.cpp:195: Trying to start StageProfi
olad/PluginManager.cpp:200: Started StageProfi
olad/PluginManager.cpp:195: Trying to start Pathport
olad/plugin_api/DeviceManager.cpp:105: Installed device: Pathport [192.168.7.91]:9-1
olad/PluginManager.cpp:200: Started Pathport
olad/PluginManager.cpp:195: Trying to start E1.31 (sACN)
olad/plugin_api/DeviceManager.cpp:105: Installed device: E1.31 (DMX over ACN) [192.168.7.91]:11-1
olad/PluginManager.cpp:200: Started E1.31 (sACN)
olad/PluginManager.cpp:195: Trying to start USB
Received Segmentation fault: 11
0   libolacommon.0.dylib                0x000000010cd139a2 _ZN12_GLOBAL__N_117_DumpStackAndExitEi + 86
1   libsystem_platform.dylib            0x00007ff819511e2d _sigtramp + 29
2   ???                                 0x00006000034c4900 0x0 + 105553171597568
3   libusb-1.0.0.dylib                  0x000000010c90f196 libusb_hotplug_register_callback + 283
4   libolausbdmx.0.dylib                0x000000010c965241 _ZN3ola3usb19LibUsbHotplugThread4InitEv + 89
5   libolausbdmx.0.dylib                0x000000010c95c028 _ZN3ola3usb12HotplugAgent5StartEv + 28
6   libolausbdmx.0.dylib                0x000000010c94d22a _ZN3ola6plugin6usbdmx15AsyncPluginImpl5StartEv + 1958
7   libolausbdmx.0.dylib                0x000000010c952f25 _ZN3ola6plugin6usbdmx12UsbDmxPlugin9StartHookEv + 225
8   libolaserverplugininterface.0.dylib 0x000000010cadeaec _ZN3ola6Plugin5StartEv + 34
9   libolaserver.0.dylib                0x000000010c690753 _ZN3ola13PluginManager11StartIfSafeEPNS_14AbstractPluginE + 429
10  libolaserver.0.dylib                0x000000010c6904fe _ZN3ola13PluginManager7LoadAllEv + 808
11  libolaserver.0.dylib                0x000000010c699627 _ZN3ola18SingleUseCallback0IvE3RunEv + 15
12  libolacommon.0.dylib                0x000000010cd1edb9 _ZN3ola2io12SelectServer15DrainAndExecuteEv + 177
13  libolacommon.0.dylib                0x000000010cd22bb5 _ZN3ola2io12SelectPoller16CheckDescriptorsEP6fd_setS3_ + 437
14  libolacommon.0.dylib                0x000000010cd2253b _ZN3ola2io12SelectPoller4PollEPNS0_14TimeoutManagerERKNS_12TimeIntervalE + 921
15  libolacommon.0.dylib                0x000000010cd1e33b _ZN3ola2io12SelectServer14CheckForEventsERKNS_12TimeIntervalE + 187
16  libolacommon.0.dylib                0x000000010cd1e24f _ZN3ola2io12SelectServer3RunEv + 123
17  olad                                0x000000010c49fab9 main + 1323
18  dyld                                0x0000000112a024fe start + 462
19  ???                                 0x0000000000000000 0x0 + 0
20  olad                                0x000000010c495000 __dso_handle + 0



I tried brew reinstall libusb but that's about all I can think of. Help? Thanks.

Peter Newman

unread,
Feb 14, 2022, 7:35:47 AM2/14/22
to open-lighting
See https://github.com/OpenLightingProject/ola/issues/1771 so this clearly isn't a one-off, or even one OS.

Please could you reply to that issue with details of your libusb version whether OLA was a release (which I think it will be from Homebrew) etc.

For now, if you don't need it, disabling the USB plugin will work around the issue.

Grant Patterson

unread,
Feb 14, 2022, 5:25:09 PM2/14/22
to open-lighting
Whoops, sorry I didn't find that bug in the first place, maybe my googling was off.

That's a question I've had as I look through stuff: HOW do I enable/disable plugins? I don't see that anywhere in the documentation. Anyway, I assume I need USB to support dmxKing micro.

Grant Patterson

unread,
Feb 14, 2022, 5:34:45 PM2/14/22
to open-lighting
Okay, I think I answered my own question: ~/.ola/*.conf files have enabled flags for each plugin. I think it would be helpful to mention that somewhere in https://www.openlighting.org/ola/getting-started/using-ola/ or https://www.openlighting.org/ola/getting-started/command-line-tools/
Once I'm running olad (by disabling the offending plugin in the .conf), I can visit localhost:9090 and see the plugin config UI. But I can't get there if olad doesn't run. :-)

Also, looks like dmxking micro uses the "Serial USB" plugin instead of "USB" plugin, so I'm good to keep going from here.

Reply all
Reply to author
Forward
0 new messages