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

Bug - Unity freezes when stopping app while the decode is in INITIALIZING state #34

Open
octaviancatlabuga opened this issue Nov 27, 2019 · 0 comments

Comments

@octaviancatlabuga
Copy link

There seems to be a bug in the asset. Unity will freeze when I stop the app or change scene while the decoder is in INITIALIZING state.

To reproduce it:

  1. Set the Media Path to some random rtsp or rtmp address that are not working
    image
  2. Press play. (ViveMediaDecoder.cs in initDecoderAsync() will enter this while loop untill it will either fail or succeed)
    image
  3. Stop the app while the result is 0 (if step one is followed properly then it will be 0 forever)
  4. Unity will freeze and only a restart of Unity will help.

Solution I found
Make sure you you don't run the StopDecoding() method when the decoder is in INITIALIZING state. To do that remove the =(equls) sign from StopDecoding() method in ViveMediaDecoder.cs. So far I dont see any problems with this solution, if I miss something please let me know.
Snipaste_2019-11-27_10-42-58

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