Pyjnius crash

56 views
Skip to first unread message
Assigned to rasmus....@gmail.com by me

Rasmus Kreiner

unread,
Aug 15, 2018, 8:03:07 AM8/15/18
to kivy-...@googlegroups.com
Hi All,

I have this pyjnius related crash on an HTC device which does not occur on other devices. I can see that the problem causing the crash is related to the Medialplayer, but from there on I cannot see what is causing the problem. Can someone on the list help me decipher what the problem is?

--------------------------------------------------------------------------------------------------------

/python  ( 1956): [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
I/python  ( 1956): [INFO   ] [Text        ] Provider: sdl2
I/python  ( 1956): [INFO   ] [OSC         ] using <thread> for socket
I/python  ( 1956): [INFO   ] [Window      ] Provider: sdl2
D/libEGL  ( 1956): loaded /system/lib/egl/libGLES_android.so
D/libEGL  ( 1956): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL  ( 1956): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL  ( 1956): loaded /system/lib/egl/libGLESv2_adreno200.so
I/python  ( 1956): [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
I/python  ( 1956): [INFO   ] [GL          ] Backend used <gl>
I/python  ( 1956): [INFO   ] [GL          ] OpenGL version <OpenGL ES 2.0 1044053>
I/python  ( 1956): [INFO   ] [GL          ] OpenGL vendor <Qualcomm>
I/python  ( 1956): [INFO   ] [GL          ] OpenGL renderer <Adreno 200>
I/python  ( 1956): [INFO   ] [GL          ] OpenGL parsed version: 2, 0
I/python  ( 1956): [INFO   ] [GL          ] Texture max size <4096>
I/python  ( 1956): [INFO   ] [GL          ] Texture max units <16>
I/python  ( 1956): [INFO   ] [Shader      ] program: <Link was successful.>
I/python  ( 1956): [INFO   ] [Window      ] auto add sdl2 input provider
I/python  ( 1956): [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
D/WifiService(  121): acquireWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@408dfd18} Mode: 2
D/WifiService(  121): enable and start wifi due to updateWifiState
V/MediaPlayer( 1956): constructor E
I/AudioSystem( 1956): getting audio flinger
I/AudioSystem( 1956): returning new audio session id
V/MediaPlayer( 1956): constructor X
V/MediaPlayer( 1956): setListener
D/MediaPlayer( 1956): hasHDMIPermission: -1
D/MediaPlayer( 1956): registerHDMINotification
E/HDMIStatusObserver( 1956): status: UNPLUG
D/MediaPlayer( 1956): isHDMIPlug(): false
E/MediaPlayer( 1956): onHDMIStateChanged
D/MediaPlayer( 1956): getHDMIResolution: 11
I/python  ( 1956): Trying to load source is: /data/data/org.test.myapp/files/app/Podcasts/Audio/Episode_1/Podcasts/_1.ogg
V/MediaPlayer( 1956): setDataSource(/data/data/org.test.myapp/files/app/Podcasts/Audio/Episode_1/Podcasts/_1.ogg)
V/MediaPlayerService(   70): Client(5) constructor
V/MediaPlayerService(   70): Create new client(5) from pid 1956, url=/data/data/org.test.myapp/files/app/Podcasts/Audio/Episode_1/Podcasts/_1.ogg, connId=5, audioSessionId=11
V/MediaPlayerService(   70): setDataSource(/data/data/org.test.myapp/files/app/Podcasts/Audio/Episode_1/Podcasts/_1.ogg)
V/MediaPlayerService(   70): isQCPFileFormat() url=/data/data/org.test.myapp/files/app/Podcasts/Audio/Episode_1/Podcasts/_1.ogg
V/MediaPlayerService(   70): getPlayerTypeFromMAP(/data/data/org.test.myapp/files/app/Podcasts/Audio/Episode_1/Podcasts/_1.ogg): PLAYERS_MAP[27].playertype (UNKNOWN player_type code)0
V/MediaPlayerService(   70): player type = 4
V/MediaPlayerService(   70):  create StagefrightPlayer
D/AwesomePlayer(   70): [U5B] AwesomePlayer (331)
D/AwesomePlayer(   70): [U5B] reset (518)
D/AwesomePlayer(   70): [U5B] reset_l (526)
D/AwesomePlayer(   70): [U5B] reset_l (545)
D/AwesomePlayer(   70): [U5B] reset_l (631)
V/AudioSink(   70): AudioOutput(11)
V/MediaPlayerService(   70):  setDataSource
I/StagefrightPlayer(   70): setDataSource('/data/data/org.test.myapp/files/app/Podcasts/Audio/Episode_1/Podcasts/_1.ogg')
D/AwesomePlayer(   70): [U5B] reset_l (526)
D/AwesomePlayer(   70): [U5B] reset_l (545)
D/AwesomePlayer(   70): [U5B] reset_l (631)
V/MediaPlayer( 1956): prepare
V/MediaPlayerService(   70): [5] setAudioStreamType(3)
V/MediaPlayerService(   70): [5] prepareAsync
V/MediaPlayerService(   70): [5] notify (0x2aaa8, 100, 1, -2147483648)
V/MediaPlayer( 1956): message received msg=100, ext1=1, ext2=-2147483648
E/MediaPlayer( 1956): error (1, -2147483648)
V/MediaPlayer( 1956): signal application thread
V/MediaPlayer( 1956): prepare complete - status=1
I/python  ( 1956):  Traceback (most recent call last):
I/python  ( 1956):    File "/build/depression/android/app/main.py", line 1172, in <module>
I/python  ( 1956):    File "/build/depression/android/platform/build/dists/myapp/private/lib/python2.7/site-packages/kivy/app.py", line 802, in run
I/python  ( 1956):    File "/build/depression/android/app/main.py", line 803, in build
I/python  ( 1956):    File "/build/depression/android/app/main.py", line 1079, in updatePodcastStatus
I/python  ( 1956):    File "/build/depression/android/app/MyOwnSoundLoader.py", line 70, in load
I/python  ( 1956):    File "jnius/jnius_export_class.pxi", line 734, in jnius.jnius.JavaMethod.__call__ (jnius/jnius.c:23930)
I/python  ( 1956):    File "jnius/jnius_export_class.pxi", line 828, in jnius.jnius.JavaMethod.call_method (jnius/jnius.c:25014)
I/python  ( 1956):    File "jnius/jnius_utils.pxi", line 93, in jnius.jnius.check_exception (jnius/jnius.c:3882)
I/python  ( 1956):  jnius.jnius.JavaException: JVM exception occurred: Prepare failed.: status=0x1
I/python  ( 1956): Python for android ended.

--------------------------------------------------------------------------------------------------------

Thanks!

/Rasmus
Message has been deleted

John Buckley

unread,
Sep 30, 2018, 11:29:12 AM9/30/18
to Kivy users support
Considering the date, I am guessing that you may have already solved this?

From your code it appears that there is a pyjnius call in MyOwnSoundLoader.py on line 70. If you can show that code, it may be possible to setup a debug to see why the pyjnius code is failing.
Reply all
Reply to author
Forward
0 new messages