-
Notifications
You must be signed in to change notification settings - Fork 26
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
Windows works, but crashes on exit ... #45
Comments
Hi! As for this error you mention, I have also seen it. It might have to do with threading, maybe the sound stream should be stopped upon exit before the soundObjects get destroyed. I'll keep you posted. |
Hey, just in case, I tried to close the stream before exit the app, but it crashes in the same way: if (key == OF_KEY_BACKSPACE) {
ofLogNotice() << "Stream Close";
stream.stop();
stream.close();
} |
Hi. I've been seeing this too on macos. So the objects are supposed to disconnect upon destruction but sometimes the object from which it is trying to disconnect has already been destroyed. |
yes, that worked: if (key == OF_KEY_BACKSPACE) {
ofLogNotice() << "Stream Close";
stream.stop();
stream.close();
input.disconnect();
waveFrom.disconnect();
vuMeter.disconnect();
fft.disconnect();
output.disconnect();
} |
It works also without closing the stream: //--------------------------------------------------------------
void ofApp::exit() {
input.disconnect();
waveFrom.disconnect();
vuMeter.disconnect();
fft.disconnect();
output.disconnect();
} |
Hi, thanks. It is supposed that the objects disconnect themselves upon destruction. |
now it's working
|
btw.. also crashes when touching speed |
Hi. sorry for not replying earlier. |
Hey @roymacdonald ,
How is going on? Hope all fine there!
I am just trying to start using this add-on and probably integrate also your new ofxSoundDevicesManager aswell,
as I have a similar one.
I am thinking about bundle all this features together.
(I am just doing a sound analyzer app, with smoothing and bang detectors)
ofxSoundObjects It's working fine, on Release but also in Debug mode.
(Just using the PG without props or nothing more.)
Currently I am using ofxSoundObjects experimental branch.
Windows10 / VS 2022 / oF patch-release
But when closing the app window it crashes like that:
Do you think that could be easy to fix?
I think it happens in all the examples, but in this case I made the initialization like that:
Saludos!
The text was updated successfully, but these errors were encountered: