-
Notifications
You must be signed in to change notification settings - Fork 553
quitPlayer method crushes the entire application #214
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
Comments
I also got this problem, how to fit it. |
@gianfrancopapa It works for me,but it can run again |
Hi @qiuguian, I tried pausing the player and quiting and it didn't crush. However I can't open again another instance of the unity player. I was reading the unity documentation and found out this: So, I think this is suposed to happen once you call quitPlayer() method. |
@gianfrancopapa This is indeed the case, and I currently do not have a good way to sort it out. |
I tried to use unload instead of quitPlayer, and them post a message to tell unity to clean object,This is my current approach。Can't quit all unity. |
@qiuguian yes there is a limitation to quitting the unity player as it also kills the main thread, which in turn kills the entire app. This is a limitation from unity but I heard might be fixed in the future. Best use unload. Albeit unload is not very functional for iOS as you can't recreate the player. I'm trying to fix this at the moment |
Hello, juicycleff. Has the unload function fixed? I find it works well in the official repo. |
Okay, I'm also stuck at the mom at the same prob. Do you have an idea or know a good timepoint when to trigger restart()? |
This issue is closed in 3.0.0 according to the changelog, however when I tried, it still kills the app. Also the doc in the code says that the optional silent argument to quit function is supposed to prevent the kill but is WIP. So how come this bug is closed here? Can @juicycleff please provide some detail. I need the ability to leave a unity player instance and reload with a different state of the game. It would massively help if there is some way to do that. Thanks |
im still facing the same issue in the current version (3.0.2) ... |
I'm using 3.0.0 unity script and current version 3.0.2, but problem's same here |
Hi! When trying to use the method quitPlayer on dispose the app crushes.
I don't know if this is related to the library or is related to a bug in Unity.
In xcode I am getting these 2 errors before the crush, could it be something about onDestroy() method?
First error:
Second error: I think this error is more related to something done wrong in unity side but just in case.
The text was updated successfully, but these errors were encountered: