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

AL lib: (EE) alc_cleanup: 1 device not closed #42

Closed
oldteen opened this issue Jul 15, 2016 · 2 comments
Closed

AL lib: (EE) alc_cleanup: 1 device not closed #42

oldteen opened this issue Jul 15, 2016 · 2 comments

Comments

@oldteen
Copy link

oldteen commented Jul 15, 2016

Hello,

When I start (key F5) my project from VisualStudio more than 6 or 7 times this error appears in the output window :

  • AL lib: (EE) alc_cleanup: 1 device not closed
    And my project take 2 ou 3 seconds to close

Before these 6 or 7 times, no message, no delay to exit.
If I quit VisualStudio and restart it, no message and no delay for 6 or 7 times again.

I searched on google, many info about libgdx or minecraft :)
I certainly forgot something.
My project and FNA are compiled in 32 bits.
If I switch to monogame, I don't have this problem (others but not this one). But I don't want to switch to monogame for win/linux/osx.

To exit my project, I call the function Exit() from the FNA class Game

Any idea ? Need more information ? I will try to help.

Thank you in advance,
Have a good day,
-Thierry

@flibitijibibo
Copy link
Member

Be sure to Dispose the game as well. That said, that message is actually something that should be done on program exit anyway:

https://github.com/FNA-XNA/FNA/blob/master/src/Audio/AudioDevice.cs#L86
https://github.com/FNA-XNA/FNA/blob/master/src/Audio/AudioDevice.cs#L99

I would try to break on program exit and see if you can get traces of what's happening after you've Disposed the game. There's a good chance that the hang is something else, as AL tends to catch device leaks pretty well.

@oldteen
Copy link
Author

oldteen commented Jul 15, 2016

argggggg :) Three months that I hesitate to ask this question. :)

You are right. I dispose all my resources (textures, sounds, ...) but not the game.
Seems to work.

Thanks a lot!

@oldteen oldteen closed this as completed Jul 15, 2016
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