error Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 7741 (SDLThread), pid 7703 (SDLActivity)

163 views
Skip to first unread message

IIoT 4.0

unread,
Apr 24, 2023, 11:48:42 PM4/24/23
to Kivy users support
hi, im new to kivy here i am developing an kivy video player with option user can select the video using file chooser then the player will continuously play all the videos in the folder while i running this in pycharm in windows it works fine. but i build this code into android apk using the buildozer and running in the android 10 os the app getting crash . while checking in the logcat it showing this error . Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 7741 (SDLThread), pid 7703 (SDLActivity)
pid: 26204, tid: 26252, name: SDLThread  >>> org.test.myapp <<<
2023-04-25 09:01:09.371 27195-27195 DEBUG                   pid-27195                            A        #01 pc 000785b9  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (aaudio_DetectBrokenPlayState+72) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.371 27195-27195 DEBUG                   pid-27195                            A        #02 pc 0013406b  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (Android_PumpEvents_Blocking+358) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.371 27195-27195 DEBUG                   pid-27195                            A        #03 pc 000800b9  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.372 27195-27195 DEBUG                   pid-27195                            A        #04 pc 00080183  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (SDL_WaitEventTimeout+50) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.372 27195-27195 DEBUG                   pid-27195                            A        #05 pc 00080149  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (SDL_PollEvent+12) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.372 27195-27195 DEBUG                   pid-27195                            A        #06 pc 0000bf0f  /data/data/org.test.myapp/files/app/_python_bundle/site-packages/kivy/core/window/_window_sdl2.so
please help me how to clear this error .

ABDUL RAHIM

unread,
Apr 25, 2023, 5:29:27 AM4/25/23
to kivy-...@googlegroups.com
Hi there, 
I am also facing same problem but still didn't find any solution and no one helped yet 

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/eb034a43-5d63-42aa-99e9-e654cda720b1n%40googlegroups.com.

Aakash Aarya

unread,
Apr 25, 2023, 12:15:47 PM4/25/23
to kivy-...@googlegroups.com
Include 
Ffpyplayer sdl2 in requirement.txt
As well as main python file

ABDUL RAHIM

unread,
Apr 25, 2023, 1:03:45 PM4/25/23
to kivy-...@googlegroups.com
Hi aakash thanks for your response bro
I want to ask something, all ready i added ffpyplayer in buildozer.spec file in requirement  should i have to include sdl2 also in buildozer.spec file in requirement 

And one more thing you told me to include ffpyplayer and sdl2 in main.py where to add in main.py just tell me how to include in main.py 



Aakash Aarya

unread,
Apr 25, 2023, 1:10:03 PM4/25/23
to kivy-...@googlegroups.com
 I have to use numpy ffpyplayer ffmpeg openssl ffpyplayer_codecs in requirement

Aakash Aarya

unread,
Apr 25, 2023, 1:14:28 PM4/25/23
to kivy-...@googlegroups.com
Also include android in your requirement 

Aakash Aarya

unread,
Apr 25, 2023, 1:16:16 PM4/25/23
to kivy-...@googlegroups.com
Include permission for read internal and external storage in buildozer file

ABDUL RAHIM

unread,
Apr 25, 2023, 1:22:57 PM4/25/23
to kivy-...@googlegroups.com
I already included ffpyplayer, ffmpeg, android, ffpyplayer_codecs in requirement but still crashing but not added sdl2 

ABDUL RAHIM

unread,
Apr 25, 2023, 1:24:49 PM4/25/23
to kivy-...@googlegroups.com
How to include read and internal and external permissions kindly tell me bro any examples 

Aakash Aarya

unread,
Apr 25, 2023, 1:27:41 PM4/25/23
to kivy-...@googlegroups.com
Permission parameter in buildozer.spec. and also include runtime permission in main python file. 
Visit docs of buildozer 

ABDUL RAHIM

unread,
Apr 25, 2023, 1:33:45 PM4/25/23
to kivy-...@googlegroups.com
I have two android device mi mix and another honour 8x, if i play video in mi mix mobile it's working fine but when i trying to play video in honor 8x application crashes and exit to main screen, I'm using try: except block to catch error but no luck simply app crashing, but few months before was working fine on both android device but now days working only in one device i couldn't found any solution yet
4-5 months before i created apk in Google Colab that's working fine on both devices but again i created same way apk in Google Colab that apk working only in one device in xiaomi mi mix, but not working in honor 8x

Aakash Aarya

unread,
Apr 25, 2023, 1:38:09 PM4/25/23
to kivy-...@googlegroups.com
Restart your mobile phone. Its happen any other app using same process id (pid)

ABDUL RAHIM

unread,
Apr 25, 2023, 1:42:53 PM4/25/23
to kivy-...@googlegroups.com
Many time i restarted my phone but still same issue and not happened same thing when 8 used another app bro

ABDUL RAHIM

unread,
Apr 25, 2023, 1:44:54 PM4/25/23
to kivy-...@googlegroups.com
Not happen something when i used another app and you told me before to include ffpyplayer and sdl2 in main.py file how to include just show me some examples 

Robert

unread,
Apr 25, 2023, 2:42:36 PM4/25/23
to Kivy users support
I think the other poster is using ChatGPT to try to answer questions - the results are unreliable.

ABDUL RAHIM

unread,
Apr 25, 2023, 2:55:36 PM4/25/23
to kivy-...@googlegroups.com
Again i build apk and added all requirements as you said but still same result app crashing when loading video for playing 

Aakash Aarya

unread,
Apr 25, 2023, 3:24:48 PM4/25/23
to kivy-...@googlegroups.com
Share main.py and buildozer.spec. if you have github repo..share me. I will try. 

Message has been deleted
Message has been deleted

IIoT 4.0

unread,
Apr 26, 2023, 6:32:51 AM4/26/23
to Kivy users support
please check this and provide solution to stop the crash
New folder.7z

ABDUL RAHIM

unread,
Apr 26, 2023, 8:26:19 AM4/26/23
to kivy-...@googlegroups.com
Can't open your file what is in this file bro? 

IIoT 4.0

unread,
Apr 26, 2023, 10:59:42 PM4/26/23
to Kivy users support
main file and buildozer

IIoT 4.0

unread,
Apr 26, 2023, 11:00:20 PM4/26/23
to Kivy users support
main19-4-2023.kv
buildozer.spec
main.py

Robert

unread,
Apr 27, 2023, 12:44:13 PM4/27/23
to Kivy users support
I took a quick look at your code, I did not try to run it (I never debug anybody's code), so I don't know if these are the cause of your issue:

- The permissions use is duplicated, and the first use is a problem. https://github.com/Android-for-Python/Android-for-Python-Users#user-permissions

- requirements has two issues (I don't know if there are more):
'permissions' seems to be an invention of yours.

IIoT 4.0

unread,
May 11, 2023, 12:08:20 AM5/11/23
to Kivy users support
yeah i tried on this and i getting the same problem  

pid: 26204, tid: 26252, name: SDLThread  >>> org.test.myapp <<<
2023-04-25 09:01:09.371 27195-27195 DEBUG                   pid-27195                            A        #01 pc 000785b9  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (aaudio_DetectBrokenPlayState+72) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.371 27195-27195 DEBUG                   pid-27195                            A        #02 pc 0013406b  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (Android_PumpEvents_Blocking+358) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.371 27195-27195 DEBUG                   pid-27195                            A        #03 pc 000800b9  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.372 27195-27195 DEBUG                   pid-27195                            A        #04 pc 00080183  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (SDL_WaitEventTimeout+50) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.372 27195-27195 DEBUG                   pid-27195                            A        #05 pc 00080149  /data/app/org.test.myapp-gVqZaGUKP2suWwYkosnKNQ==/lib/arm/libSDL2.so (SDL_PollEvent+12) (BuildId: 0da7d65f875f0c3218a9ec220cf9cebfd59d0686)
2023-04-25 09:01:09.372 27195-27195 DEBUG                   pid-27195                            A        #06 pc 0000bf0f  /data/data/org.test.myapp/files/app/_python_bundle/site-packages/kivy/core/window/_window_sdl2.so
there any possiblities to solve this crash

Robert

unread,
May 11, 2023, 1:50:12 AM5/11/23
to Kivy users support
One of the above users, got this workaround on Discord.
Add this code at the very top of your main.py

import os
from kivy.utils import platform
if platform == "android":
     os.environ["SDL_AUDIODRIVER"] = "android"

IIoT 4.0

unread,
May 12, 2023, 5:32:26 AM5/12/23
to Kivy users support
yeah thankyou sir it was working 95% fine but small issue is there which make crash
2023-05-12 11:18:00.893 31663-31663 DEBUG pid-31663 A #00 pc 0000eab2 /data/app/org.test.myapp-5YDD1YWoluKN-dHTr5jCbw==/lib/arm/libSDL2_mixer.so (Mix_Volume+114) (BuildId: b2962042466189db7f4fdf6aaa8f78f6460c5db2) 2023-05-12 11:18:00.893 31663-31663 DEBUG pid-31663 A #01 pc 0000ec6d /data/data/org.test.myapp/files/app/_python_bundle/site-packages/ffpyplayer/player/player.so

Robert

unread,
May 12, 2023, 10:24:55 PM5/12/23
to Kivy users support
Sorry I don't know anything about this one.

When you have an issue always show lots of lines of the log (as a .txt file) it can't be too many, this is too few, because context is important for somebody reading it.

IIoT 4.0

unread,
May 13, 2023, 12:39:24 AM5/13/23
to kivy-...@googlegroups.com
yeah ok sir but this crash is happening for one or two videos other videos playing superb

You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/qaz_y8VKbDo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/d4e5789c-fd1c-49db-823c-f2b201757595n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages