-
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
Kivy Android app running in background crashes when intent tries to pull it to top #1271
Comments
welcome[bot] commented on May 4, 2018, 6:17 PM UTC: 👋 Thanks for opening your first issue here! Be sure to follow the issue template! |
@EmmaCaunter commented on May 5, 2018, 8:16 PM UTC: A work-around for this issue is to add android:launchMode="singleTask" or android:launchMode="singleTop" to the AndroidManifest.tmpl.xml. Setting the android.manifest.launch_mode variable in the buildspec does not work - the variable is not copied into the generated AndroidManifest.xml. |
I ve a similar issue with URL Intent, and using android:launchMode="singleTask" or android:launchMode="singleTop" didn't solve the problem. Edit : i added some logs. Crash occurs in https://github.com/kivy/python-for-android/blob/master/pythonforandroid/bootstraps/sdl2/build/jni/src/start.c PySys_SetArgv(argc, argv); 06-05 09:48:29.742 27304 27357 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 27357 (SDLThread) |
Does anyone have an example app demonstrating this issue? It would be convenient to not reinvent a way to test it. Also, does it still happen with the new SDL2.0.9 upgrade? Edit: @AndreMiras pointed out I misunderstood the test above, it should be enough |
Previous example isn t enough ? |
Looks like this is fixed by adding |
Verified that singleTask also works. @brvier I saw that you tried this before, but maybe the behaviour has been fixed by the recent update to SDL2.0.9. |
Reading about it, I'm seeing a lot of stackoverflow answers etc. suggesting that the single activity stuff shouldn't really be used. I'm not clear if this is true, or the the kind of thoughtless misinformation you see sometimes from people who have only considered how normal java apps will work. It looks like the old toolchain used singleTask. I'm going to make a PR for this, it looks like it's correct and fine. |
Thanks @EmmaCaunter for the clear example, it would have been much harder to debug without it. |
Sorry to not have answer before, indeed look like fixed with various SDL2.0.9 or master.. |
@EmmaCaunter commented on May 4, 2018, 6:17 PM UTC:
Versions
Description
When the app is in the background, I want to use Android's Intent to bring app back to top. When the intent activates, the app instantly crashes and then restarts. This issue occurs with the new toolchain but not with the old one.
Code and Logs
This issue was moved by tshirtman from kivy/kivy/issues/5728.
The text was updated successfully, but these errors were encountered: