Error when quitting application!
Opened this issue · 3 comments
Hello.
Everything seems to work fine up until now, but found a bug when I quit the compiled application, either by the ESC key binding or by clicking the x in the window. The bug appears in BasicNodes.cpp
, node->removeInputUnilateral( *this );
with the following warning: Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
void pdsp::OutputNode::disconnectAll() {
for( InputNode* &node : outputs ) {
node->removeInputUnilateral( *this );
}
connections = 0;
state = Changed;
outputs.clear();
}
Any idea on how to solve this when I quit the application, without calling a specific audio kill function in the openframeworks core code? Thanks!
it is also something that happens with any of the included examples? on what operative system and version of openFrameworks are you working on?
Hello @npisanti I am working on MacOS Mojave v. 10.14.6
and OF of_v0.11.2_osx_release
. I also noticed other bug when compiling that doesn't always appear, I'll post it now.
bool ofSoundStreamSettings::setOutDevice(const ofSoundDevice & device){
if(api!=ofSoundDevice::UNSPECIFIED && device.api!=api){
ofLogWarning("ofSoundStreamSettings") << "Setting OUT device with api: " << toString(device.api) << " will override the previously set: " << toString(api);
}
api = device.api;
outDevice = device;
return true;
}
I'm not really sure if this has to do with device selection on setup()
since on Mac the device 0
is the Microphone and not the Built-in Output. Also engine.listDevices();
doesn't seem to work. It is strange since I don't really know what is causing this and I have no other sound related material in my application. If I open the examples with the project generator and compile them this doesn't happen.
Thanks in advance
Ok, this seems to disappear after cleaning the project in Xcode. I'll try to further understand why this happened, but it seems to be ok now. Wierd simple solution, lol, that's what cleaning is for I guess.