Page 1 of 1

[FIXED] Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Mon Jan 22, 2018 6:29 am
by cpsmusic
Hi,

Just downloaded and installed Giada 0.14.5. When I start the program I get an Alert saying that my soundcard isn't configured correctly. If I then click the Configure tab Giada immediately crashes. This is without any external audio interface connected (it should just use the Mac's default internal outputs?).

Cheers,

Chris

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Wed Jan 24, 2018 8:41 pm
by FFT
Hi cpsmusic,

We are facing similar Mac crashes (here and here), so the issue is under investigation.

It would be great if you could paste here some debug output, especially during the startup stage. How to: here. Thanks a lot :wink:

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Sat Jan 27, 2018 3:41 pm
by zumteufel
Hi, registered just to post this:

The problem with the app crashing when clicking the Config button is that one can't turn on debugging in the normal way.

I looked in Giadas Application Support directory, and noticed there's a config file. In my naivity, I tried assigning values 0-5 to the variable log_mode, which has the default value of 4. For the value 2 or 3 (I believe), a log file appeared, but it was empty.

Suggestions most welcome. I'm on 10.13.2. No external sound card.

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Sun Jan 28, 2018 9:11 pm
by pznqrf
Hey,

I can reliably reproduce this, and provide any info you need. Here's a quick example using
  • macOS 10.13.3
  • Source tarball for 0.14.5 release (https://giadamusic.com/download/grab/source)
  • CXXFLAGS=-g ./configure --target=osx
  • Then launching Giada, getting the error message about no soundcard configured, clicking close on the error message, and then clicking the config button.

Code: Select all

$ lldb ./giada
(lldb) target create "./giada"
runCurrent executable set to './giada' (x86_64).
(lldb) run
Process 46314 launched: './giada' (x86_64)
[init] Giada 0.14.5 - Sun Jan 28 20:57:21 2018
[storager::setBool] key 'midi_in' not found, using default value
[storager::setUint32] key 'midi_in_filter' not found, using default value
[storager::setBool] key 'input_monitor_default_on' not found, using default value
[storager::setUint32] key 'name_x' not found, using default value
[storager::setUint32] key 'name_y' not found, using default value
[storager::setUint32] key 'midi_input_x' not found, using default value
[storager::setUint32] key 'midi_input_y' not found, using default value
[storager::setUint32] key 'midi_input_w' not found, using default value
[storager::setUint32] key 'midi_input_h' not found, using default value
2018-01-28 20:57:22.250695+0000 giada[46314:1140885] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported
2018-01-28 20:57:22.250776+0000 giada[46314:1140885] MessageTracer: Falling back to default whitelist
Process 46314 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x000000010001a8d6 giada`RtAudio::getDeviceInfo(this=0x0000000000000000, device=4294967295) at RtAudio.h:837
   834
   835 	inline RtAudio::Api RtAudio :: getCurrentApi( void ) throw() { return rtapi_->getCurrentApi(); }
   836 	inline unsigned int RtAudio :: getDeviceCount( void ) throw() { return rtapi_->getDeviceCount(); }
-> 837 	inline RtAudio::DeviceInfo RtAudio :: getDeviceInfo( unsigned int device ) { return rtapi_->getDeviceInfo( device ); }
   838 	inline unsigned int RtAudio :: getDefaultInputDevice( void ) throw() { return rtapi_->getDefaultInputDevice(); }
   839 	inline unsigned int RtAudio :: getDefaultOutputDevice( void ) throw() { return rtapi_->getDefaultOutputDevice(); }
   840 	inline void RtAudio :: closeStream( void ) throw() { return rtapi_->closeStream(); }
Target 0: (giada) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x000000010001a8d6 giada`RtAudio::getDeviceInfo(this=0x0000000000000000, device=4294967295) at RtAudio.h:837
    frame #1: 0x000000010001aac1 giada`giada::m::kernelAudio::getMaxOutChans(dev=4294967295) at kernelAudio.cpp:285
    frame #2: 0x000000010008f8e0 giada`geTabAudio::fetchOutChans(this=0x0000000100733700, menuItem=0) at tabAudio.cpp:337
    frame #3: 0x000000010008e1ae giada`geTabAudio::geTabAudio(this=0x0000000100733700, X=18, Y=28, W=364, H=286) at tabAudio.cpp:149
    frame #4: 0x000000010009087f giada`geTabAudio::geTabAudio(this=0x0000000100733700, X=18, Y=28, W=364, H=286) at tabAudio.cpp:50
    frame #5: 0x000000010004eaae giada`gdConfig::gdConfig(this=0x0000000100795290, w=400, h=370) at gd_config.cpp:56
    frame #6: 0x000000010004f111 giada`gdConfig::gdConfig(this=0x0000000100795290, w=400, h=370) at gd_config.cpp:47
    frame #7: 0x000000010007c489 giada`geMainMenu::__cb_config(this=0x00000001006138b0) at mainMenu.cpp:103
    frame #8: 0x000000010007c37c giada`geMainMenu::cb_config(v=0x0000000100619b90, p=0x00000001006138b0) at mainMenu.cpp:84
    frame #9: 0x00000001002ab419 libfltk.1.3.dylib`Fl_Widget::do_callback(Fl_Widget*, void*) + 55
    frame #10: 0x0000000100267669 libfltk.1.3.dylib`Fl_Button::handle(int) + 759
    frame #11: 0x000000010026166f libfltk.1.3.dylib`send_event(int, Fl_Widget*, Fl_Window*) + 115
    frame #12: 0x0000000100261068 libfltk.1.3.dylib`Fl::handle_(int, Fl_Window*) + 292
    frame #13: 0x000000010025647c libfltk.1.3.dylib`cocoaMouseHandler(NSEvent*) + 712
    frame #14: 0x00007fff4e481422 AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1961
    frame #15: 0x00007fff4e48085c AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 497
    frame #16: 0x00007fff4e2e1617 AppKit`-[NSApplication(NSEvent) sendEvent:] + 307
    frame #17: 0x0000000100253b46 libfltk.1.3.dylib`fl_wait(double) + 185
    frame #18: 0x0000000100253c03 libfltk.1.3.dylib`fl_mac_flush_and_wait(double) + 167
    frame #19: 0x0000000100260819 libfltk.1.3.dylib`Fl::run() + 19
    frame #20: 0x00000001000013e1 giada`main(argc=1, argv=0x00007ffeefbff938) at main.cpp:76
    frame #21: 0x00007fff77e82115 libdyld.dylib`start + 1
    frame #22: 0x00007fff77e82115 libdyld.dylib`start + 1
(lldb)
And here's an example when removing the existing $HOME/Library/Application Support/Giada/giada.conf, and following the same steps.

Code: Select all

Process 46633 launched: './giada' (x86_64)
[init] Giada 0.14.5 - Sun Jan 28 21:15:20 2018
[conf::read] unable to read configuration file! Error on line -1: unable to open /Users/XXX/Library/Application Support/Giada/giada.conf: No such file or directory
2018-01-28 21:15:21.531171+0000 giada[46633:1154268] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported
2018-01-28 21:15:21.531253+0000 giada[46633:1154268] MessageTracer: Falling back to default whitelist
Process 46633 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x000000010001a8d6 giada`RtAudio::getDeviceInfo(this=0x0000000000000000, device=4294967295) at RtAudio.h:837
   834
   835 	inline RtAudio::Api RtAudio :: getCurrentApi( void ) throw() { return rtapi_->getCurrentApi(); }
   836 	inline unsigned int RtAudio :: getDeviceCount( void ) throw() { return rtapi_->getDeviceCount(); }
-> 837 	inline RtAudio::DeviceInfo RtAudio :: getDeviceInfo( unsigned int device ) { return rtapi_->getDeviceInfo( device ); }
   838 	inline unsigned int RtAudio :: getDefaultInputDevice( void ) throw() { return rtapi_->getDefaultInputDevice(); }
   839 	inline unsigned int RtAudio :: getDefaultOutputDevice( void ) throw() { return rtapi_->getDefaultOutputDevice(); }
   840 	inline void RtAudio :: closeStream( void ) throw() { return rtapi_->closeStream(); }
Target 0: (giada) stopped.

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Fri Feb 02, 2018 11:08 am
by FFT
Hey guys, thank you all for your reports. After days of struggling - we had to update our virtual Mac environment - we were able to replicate the issue. There's clearly something wrong with the sound card detection on Mac, an investigation is underway.

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Sat Feb 03, 2018 1:09 am
by pznqrf
Excellent :)

If I can help in any way with later testing, please feel free to contact me; glad to assist.

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Sat Feb 17, 2018 1:41 am
by cpsmusic
Hi Guys,

Sorry been away for a bit.

Good to see that you're looking into the problem.

One problem is that I can't get to the config page to enable the output log file!

Cheers,

Chris

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Wed Feb 28, 2018 9:34 pm
by FFT
Bug fixed at last! :rainbow: A missing preprocessor flag destroyed the final build. For those interested:

https://github.com/monocasual/giada/com ... 4f7867df44

Feedback are welcome, of course :wink:

Re: Giada 0.14.5 Crashing on OS X 10.12.16

Posted: Thu Mar 15, 2018 9:09 pm
by vision
Fixed in 0.14.6.