-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Crash at relaunch in pythonlib in SDL2Thread #1787
Comments
If the thread keeps running and it's related to |
Not sure which thread is running and why for the moment |
For what it's worth, I don't use kivy but I make very heavy use of threading, and I've never seen this happen. Of course it could still be a python-for-android issue, but it might be worth investigating kivy as well Maybe add another thread and have it do this every few seconds? https://stackoverflow.com/questions/1032813/dump-stacktraces-of-all-active-threads Of course that will also break your shutdown but then at least you should see in the log what sort of threads are still running, if any |
Or just my code ... |
Just to be clear, |
@inclement for what it's worth SDL2 2.0.9 stable has a remaining concurrency bug that can in theory cause crashes, but with the SDL2 dev version and even SDL_ANDROID_BLOCK_ON_PAUSE disabled (which makes everything a little more off the rails parallel) I haven't had any crashes or corruption with my app for weeks. I don't use kivy though, but at least as far as python-for-android is concerned it looks to me like it's possibly working corruption free (finally!) at least with latest SDL2 dev |
@Jonast Thanks, I'm currently testing your SDL2 update PR with kivy |
Is this still an issue? Has there been anything new you found out @brvier ? |
Too old |
Versions
Description
Swipe app from task list invoke onDestroy in SDLActivity.java
But it s look like a thread never ends in my app or invoking service prevent activity to be deleted, so at relaunch the app crash with SDL2Thread in libpython
If i do a Process.killProcess(Process.myPid()); second launch don't crash....
I think all my threads should be ended, could it be a Clock.schedule_interval ?
The text was updated successfully, but these errors were encountered: