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

Example Applications break down on a real device #338

Closed
burkouski opened this issue May 30, 2017 · 5 comments
Closed

Example Applications break down on a real device #338

burkouski opened this issue May 30, 2017 · 5 comments

Comments

@burkouski
Copy link

burkouski commented May 30, 2017

Hi guys. I tried to deploy some of examples on a real device (android 6) using buildozer. At first I tried camera example, but app breaks down when I tried take a picture with following error:

DEBUG : Abort message: 'art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: static jfieldID 0xb052a4b0 not valid for class java.lang.Class<org.renpy.android.PythonActivity>' DEBUG : r0 00000000 r1 00000c03 r2 00000006 r3 a0fa9978 DEBUG : r4 a0fa9980 r5 a0fa9930 r6 0000000b r7 0000010c DEBUG : r8 b4b3f378 r9 b4d2a800 sl 00000001 fp 00000001 DEBUG : ip 00000006 sp a0fa3200 lr b6d16c41 pc b6d19030 cpsr 40070010 DEBUG : DEBUG : backtrace: DEBUG : #00 pc 00042030 /system/lib/libc.so (tgkill+12) DEBUG : #01 pc 0003fc3d /system/lib/libc.so (pthread_kill+32) DEBUG : #02 pc 0001c3db /system/lib/libc.so (raise+10) DEBUG : #03 pc 0001958d /system/lib/libc.so (__libc_android_abort+34) DEBUG : #04 pc 000174e0 /system/lib/libc.so (abort+4) DEBUG : #05 pc 00333a39 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+228) DEBUG : #06 pc 000f464b /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226) DEBUG : #07 pc 0025aa9f /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1550) DEBUG : #08 pc 0025ae4d /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+64) DEBUG : #09 pc 000fd221 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+32) 05-30 22:32:28.979 346 346 F DEBUG : #10 pc 00114b01 /system/lib/libart.so (_ZN3art11ScopedCheck16CheckFieldAccessERNS_18ScopedObjectAccessEP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+452) 05-30 22:32:28.979 346 346 F DEBUG : #11 pc 00116525 /system/lib/libart.so (_ZN3art8CheckJNI8GetFieldEPKcP7_JNIEnvP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+524) 05-30 22:32:28.979 346 346 F DEBUG : #12 pc 00116abf /system/lib/libart.so (_ZN3art8CheckJNI20GetStaticObjectFieldEP7_JNIEnvP7_jclassP9_jfieldID+30) 05-30 22:32:28.979 346 346 F DEBUG : #13 pc 00027357 /data/data/test.com.cameraexample/files/app/lib/python2.7/site-packages/jnius/jnius.so

It hapends with all plyer examples.
I use:
kivy==1.10.0
plyer==1.3.0

Can someone help me with it? I would be very grateful, Thanks!


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@hemna
Copy link

hemna commented Jun 7, 2017

I just built and deployed the example notification app and I get the same issue on my LG V20 device. It launches the notify app, and I see the box layout. When I tap on one of the 2 buttons, it bails immediately.

@piet8stevens
Copy link

piet8stevens commented Jun 7, 2017 via email

@sandeepsajan0
Copy link
Contributor

Hi everyone, if I add a commented line -> for android device: requirements = kivy, plyer, android
in buildozer.spec file in all example applications then this can be solved.
Am I right?

@sandeepsajan0
Copy link
Contributor

we can update the README file of Examples and we can explain there about the requirements of buildozer.spec for different devices. It would be helpful for users to use the examples of plyer.

@KeyWeeUsr
Copy link
Contributor

Ref kivy/pyjnius#249, missing android module in p4a/buildozer. Closing.

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

6 participants