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

plyer.uniqueid.id causes crash on Android with sdl2 #245

Closed
WillDHB opened this issue Dec 1, 2016 · 5 comments
Closed

plyer.uniqueid.id causes crash on Android with sdl2 #245

WillDHB opened this issue Dec 1, 2016 · 5 comments
Assignees
Milestone

Comments

@WillDHB
Copy link

WillDHB commented Dec 1, 2016

I've found that attempting to access plyer.uniqueid.id causes the app to crash immediately (without any normal exception propagation) on Android. This only happened after switching the backend to sdl2, however; prior to that, everything seemed to work fine (I have been unable to revert back to the old backend to verify this). I have tested this out on two different Android devices with the same result.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39672571-plyer-uniqueid-id-causes-crash-on-android-with-sdl2?utm_campaign=plugin&utm_content=tracker%2F77151&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F77151&utm_medium=issues&utm_source=github).
@trivedigaurav
Copy link
Member

Could you include the error log please?

@WillDHB
Copy link
Author

WillDHB commented Dec 4, 2016

Probably.

deviceid_log.txt

@WillDHB
Copy link
Author

WillDHB commented Jan 24, 2017

After messing with this some more, it looks like just about anything from plyer causes the issue. After messing around with it, it looks like the problem happens in android/init.py, on the line:
activity = PythonActivity.mActivity

@WillDHB
Copy link
Author

WillDHB commented Feb 6, 2017

It looks like the problem is that org.renpy.android.PythonActivity only works with the old toolchain; org.kivy.android.PythonActivity should be used with the new toolchain.

kennedyshead pushed a commit to kennedyshead/plyer that referenced this issue Aug 23, 2017
kennedyshead pushed a commit to kennedyshead/plyer that referenced this issue Aug 23, 2017
@KeyWeeUsr KeyWeeUsr self-assigned this Oct 15, 2018
@KeyWeeUsr
Copy link
Contributor

It looks like the problem is that org.renpy.android.PythonActivity only works with the old toolchain; org.kivy.android.PythonActivity should be used with the new toolchain.

Not necessarily. The problem will happen if you don't include android in your requirements since that actually resolves what JAVA_NAMESPACE is used or better said, that thing chooses between renpy or kivy, otherwise it just fallbacks to the old namespace org.renpy.android.

@KeyWeeUsr KeyWeeUsr added this to the 1.3.3 milestone Dec 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants