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

Unable to re-initialize platform after it has been uninitialized #73

Open
mmarich opened this issue Apr 3, 2018 · 0 comments
Open

Unable to re-initialize platform after it has been uninitialized #73

mmarich opened this issue Apr 3, 2018 · 0 comments

Comments

@mmarich
Copy link

mmarich commented Apr 3, 2018

After calling Platform.initialize() then performing actions with an ActionCamera instance and finally calling Platform.uninitialize(), any subsequent to Platform.initialize() results in an IllegalThreadStateException being thrown.

When looking at decompiled source, it appears that Platform gets the singleton instance of AsyncSocketWorkThread from AsyncSocketWorkThread.getInstance().

A work around is to never call Platform.uninitialize(), since Platform.initialize() appeard to check if it has been initialized. That said, there is now a zombie thread hanging around.

I believe that AsyncSocketWorkThread.getInstance() should be modified so that dead threads are discarded.

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

1 participant