Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when quitting application! #73

Open
luisarandas opened this issue Nov 28, 2021 · 3 comments
Open

Error when quitting application! #73

luisarandas opened this issue Nov 28, 2021 · 3 comments

Comments

@luisarandas
Copy link

luisarandas commented Nov 28, 2021

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!

@npisanti
Copy link
Owner

npisanti commented Nov 29, 2021

it is also something that happens with any of the included examples? on what operative system and version of openFrameworks are you working on?

@luisarandas
Copy link
Author

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

@luisarandas
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants