Crash for test program with simple graphics

313 views
Skip to first unread message

RDCB

unread,
Nov 12, 2022, 7:40:02 PM11/12/22
to Kivy users support
Have 'Hello World' program loading and running on phone ok.

Moving on to simple program that loads bitmaps from /assets subdirectory, get crash and this error from adb log:-

If anyone can throw a beginner to kivy a hint it would be much appreciated...

11-11 18:04:39.788 31382 31420 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40 in tid 31420 (SDLThread), pid 31382 (mple.diceroller)
11-11 18:04:40.789 31430 31430 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-11 18:04:40.789 31430 31430 F DEBUG   : Build fingerprint: 'samsung/a23nnxx/a23:12/SP1A.210812.016/A235FXXU1AVG2:user/release-keys'
11-11 18:04:40.789 31430 31430 F DEBUG   : Revision: '7'
11-11 18:04:40.789 31430 31430 F DEBUG   : ABI: 'arm64'
11-11 18:04:40.789 31430 31430 F DEBUG   : Processor: '6'
11-11 18:04:40.789 31430 31430 F DEBUG   : Timestamp: 2022-11-11 18:04:39.899984031+1000
11-11 18:04:40.789 31430 31430 F DEBUG   : Process uptime: 4s
11-11 18:04:40.789 31430 31430 F DEBUG   : Cmdline: com.example.diceroller
11-11 18:04:40.789 31430 31430 F DEBUG   : pid: 31382, tid: 31420, name: SDLThread  >>> com.example.diceroller <<<
11-11 18:04:40.789 31430 31430 F DEBUG   : uid: 10374
11-11 18:04:40.789 31430 31430 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40
11-11 18:04:40.789 31430 31430 F DEBUG   : Cause: null pointer dereference
11-11 18:04:40.789 31430 31430 F DEBUG   :     x0  0000000000000001  x1  0000000000000000  x2  0000000000000003  x3  0000007e583830d0
11-11 18:04:40.789 31430 31430 F DEBUG   :     x4  0000007df41002bc  x5  0000000000000003  x6  0000007df410056c  x7  0000007df82e4840
11-11 18:04:40.789 31430 31430 F DEBUG   :     x8  0000000000000003  x9  0000000000000003  x10 0000007dfb610eb4  x11 0000007df41002c4
11-11 18:04:40.789 31430 31430 F DEBUG   :     x12 0000007df81fcb2c  x13 0000007dfb610ebc  x14 0000000000000000  x15 0000000000000000
11-11 18:04:40.789 31430 31430 F DEBUG   :     x16 0000000000000001  x17 0000000000000000  x18 0000000000000000  x19 0000007dfb610ff0
11-11 18:04:40.789 31430 31430 F DEBUG   :     x20 0000007df4100200  x21 0000007df81fa680  x22 0000000000000000  x23 0000000000000003
11-11 18:04:40.789 31430 31430 F DEBUG   :     x24 0000000000000000  x25 0000000000000001  x26 0000000000000000  x27 0000000000000001
11-11 18:04:40.789 31430 31430 F DEBUG   :     x28 0000000000000068  x29 0000007dfb610ec0
11-11 18:04:40.789 31430 31430 F DEBUG   :     lr  0000007e5838efa8  sp  0000007dfb610e80  pc  0000007e583a1468  pst 0000000060000000
11-11 18:04:40.789 31430 31430 F DEBUG   : backtrace:
11-11 18:04:40.789 31430 31430 F DEBUG   :   NOTE: Function names and BuildId information is missing for some frames due
11-11 18:04:40.789 31430 31430 F DEBUG   :   NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
11-11 18:04:40.789 31430 31430 F DEBUG   :   NOTE: found under the lib/ directory are readable.
11-11 18:04:40.789 31430 31430 F DEBUG   :   NOTE: On this device, run setenforce 0 to make the libraries readable.
11-11 18:04:40.789 31430 31430 F DEBUG   :       #00 pc 0000000000393468  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!7b4d3d680da059de73d7f9795dc456!1a315fd02c!+368) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-11 18:04:40.789 31430 31430 F DEBUG   :       #01 pc 0000000000380fa4  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!f56be09eb88f86833124f1df42e945!1a315fd02c!+1508) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-11 18:04:40.789 31430 31430 F DEBUG   :       #02 pc 0000000000176afc  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!6b200851123c7898055fe62ff9f71f!1a315fd02c!+620) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-11 18:04:40.789 31430 31430 F DEBUG   :       #03 pc 000000000016e730  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!77df12deb6a622478efa8fb9929034!1a315fd02c!+376) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-11 18:04:40.789 31430 31430 F DEBUG   :       #04 pc 000000000000b360  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/vbo.so
11-11 18:04:40.789 31430 31430 F DEBUG   :       #05 pc 0000000000014b18  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.789 31430 31430 F DEBUG   :       #06 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #07 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #08 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #09 pc 00000000000151a4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #10 pc 00000000000169e4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #11 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #12 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #13 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #14 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #15 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #16 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #17 pc 00000000000151a4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #18 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #19 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #20 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #21 pc 00000000000151a4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #22 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #23 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #24 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #25 pc 00000000000151a4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #26 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #27 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #28 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #29 pc 00000000000151a4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #30 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #31 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #32 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #33 pc 00000000000151a4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #34 pc 0000000000008c88  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #35 pc 000000000001265c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #36 pc 0000000000011e9c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #37 pc 00000000000151a4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #38 pc 00000000000169e4  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #39 pc 000000000002082c  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #40 pc 0000000000162868  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #41 pc 000000000022b9d8  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #42 pc 0000000000228b48  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-11 18:04:40.790 31430 31430 F DEBUG   :       #43 pc 000000000015a1c4  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.790 31430 31430 F DEBUG   :       #44 pc 000000000015c3fc  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #45 pc 0000000000022614  /data/user/0/com.example.diceroller/files/app/_python_bundle/site-packages/kivy/_event.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #46 pc 0000000000162478  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #47 pc 000000000022b9d8  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #48 pc 0000000000228b48  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #49 pc 000000000015a1c4  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #50 pc 000000000022b9d8  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #51 pc 0000000000228b48  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #52 pc 000000000015a1c4  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #53 pc 000000000022b9d8  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #54 pc 0000000000228b48  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #55 pc 000000000015a1c4  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #56 pc 000000000022b9d8  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #57 pc 0000000000229cc4  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+13204)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #58 pc 000000000015a1c4  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #59 pc 000000000022b9d8  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #60 pc 0000000000228b48  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #61 pc 000000000022c894  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so
11-11 18:04:40.791 31430 31430 F DEBUG   :       #62 pc 000000000022685c  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (PyEval_EvalCode+80)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #63 pc 0000000000269ca8  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libpython3.9.so (PyRun_SimpleFileExFlags+1180)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #64 pc 00000000000026dc  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libmain.so (SDL_main+2664) (BuildId: 6b5528de228df820ee6d0967d1dbc80afc75bc09)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #65 pc 000000000009af38  /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/lib/arm64/libSDL2.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+592) (BuildId: 5201b846994fb83e5eb63849d551b3740fccc4f1)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #66 pc 0000000000440554  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #67 pc 0000000000209398  /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #68 pc 000000000000bd62  [anon:dalvik-classes4.dex extracted in memory from /data/app/~~IvdF1dQfiD2JjSLP0w3JMg==/com.example.diceroller-SDnpHKzmblXN0si6aBsgTA==/base.apk!classes4.dex] (org.libsdl.app.SDLMain.run+114)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #69 pc 000000000020b074  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #70 pc 00000000000f6740  /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #71 pc 0000000000436b6c  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #72 pc 0000000000468938  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+156) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #73 pc 0000000000468620  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+388) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #74 pc 0000000000618214  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1668) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #75 pc 00000000000f1194  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: f85c82661f93b28ab3119d33214bb7b9)
11-11 18:04:40.791 31430 31430 F DEBUG   :       #76 pc 000000000008d7f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: f85c82661f93b28ab3119d33214bb7b9)

Robert

unread,
Nov 12, 2022, 8:51:28 PM11/12/22
to Kivy users support

But in this case it looks like OpenGL is unhappy.

I hope you mean './assets'

RDCB

unread,
Nov 14, 2022, 10:50:59 PM11/14/22
to Kivy users support
Thanks Robert, yes I did mean './assets'

It's taken a while to make any progress but I do have new information...

Narrowed down to the difference between 
MDRaisedButton
which causes the error on the phone

and 
MDTextButton
which works fine

I will try more widgets to see what happens (each compile to the phone takes half an hour, so long process)

The two example programs (working and failing) plus selection from the adb report follow:-

Works ok:-
*****************************
from kivymd.app import MDApp
from kivy.uix.screenmanager import Screen
from kivy.lang import Builder

import random

KV = '''
MDScreen:
# AnchorLayout:
# anchor_x: 'center'
# anchor_y: 'top'
#
# MDTopAppBar :
# title: "Dice Roller"

Image:
id: dice_state
#color: 0.15, .5, 0.2, 1
#pos_hint: {"x":0.7, "top":0.6}
size_hint_x: 0.4
size_hint_y: 0.4
#text: 'assets/dice_1.png'
source: 'assets/dice_1.png'
halign: 'left'
valign: 'bottom'


# Fails if  MDRaisedButton  widget used instead of MDTextButton         :::::::::::::::::::    MDRaisedButton:
MDTextButton:
id: 'roll_button'
text: "ROLL"
pos_hint:{'center_x':0.5, 'center_y':0.5}
on_release: app.play()
'''


class MainApp(MDApp):
def __init__(self):
super().__init__()
self.kvs = Builder.load_string(KV)

def build(self):
screen = Screen()
screen.add_widget(self.kvs)
return screen

def play(self):
dice_face = random.choice(["dice_1.png", "dice_2.png", "dice_3.png", "dice_4.png", "dice_5.png", "dice_6.png"])
file_name = "./assets/" + dice_face
#self.kvs.ids.dice_state.text = file_name
self.kvs.ids.dice_state.source = file_name
return


na = MainApp()
na.run()
***********************************


adb report selection:-

11-15 12:34:41.731  6382  6616 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40 in tid 6616 (SDLThread), pid 6382 (.dicerollerbadq)
.
.
.
11-15 12:34:42.656  6674  6674 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-15 12:34:42.656  6674  6674 F DEBUG   : Build fingerprint: 'samsung/a23nnxx/a23:12/SP1A.210812.016/A235FXXU1AVG2:user/release-keys'
11-15 12:34:42.656  6674  6674 F DEBUG   : Revision: '7'
11-15 12:34:42.656  6674  6674 F DEBUG   : ABI: 'arm64'
11-15 12:34:42.656  6674  6674 F DEBUG   : Processor: '5'
11-15 12:34:42.656  6674  6674 F DEBUG   : Timestamp: 2022-11-15 12:34:41.848853678+1000
11-15 12:34:42.656  6674  6674 F DEBUG   : Process uptime: 6s
11-15 12:34:42.656  6674  6674 F DEBUG   : Cmdline: org.test.com.example.dicerollerbadq
11-15 12:34:42.656  6674  6674 F DEBUG   : pid: 6382, tid: 6616, name: SDLThread  >>> org.test.com.example.dicerollerbadq <<<
11-15 12:34:42.656  6674  6674 F DEBUG   : uid: 10414
11-15 12:34:42.656  6674  6674 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40
11-15 12:34:42.656  6674  6674 F DEBUG   : Cause: null pointer dereference
11-15 12:34:42.656  6674  6674 F DEBUG   :     x0  0000000000000001  x1  0000000000000000  x2  0000000000000003  x3  0000007e583830d0
11-15 12:34:42.656  6674  6674 F DEBUG   :     x4  0000007df3bbc6bc  x5  0000000000000003  x6  0000007df3bbc96c  x7  0000007e7061dc40
11-15 12:34:42.656  6674  6674 F DEBUG   :     x8  0000000000000003  x9  0000000000000003  x10 0000007df706e014  x11 0000007df3bbc6c4
11-15 12:34:42.656  6674  6674 F DEBUG   :     x12 0000007df3cc9eac  x13 0000007df706e01c  x14 0000000000000000  x15 0000000000000000
11-15 12:34:42.656  6674  6674 F DEBUG   :     x16 0000000000000001  x17 0000000000000000  x18 0000000000000000  x19 0000007df706e150
11-15 12:34:42.656  6674  6674 F DEBUG   :     x20 0000007df3bbc600  x21 0000007df3cc7a00  x22 0000000000000000  x23 0000000000000003
11-15 12:34:42.656  6674  6674 F DEBUG   :     x24 0000000000000000  x25 0000000000000001  x26 0000000000000000  x27 0000000000000001
11-15 12:34:42.656  6674  6674 F DEBUG   :     x28 0000000000000068  x29 0000007df706e020
11-15 12:34:42.656  6674  6674 F DEBUG   :     lr  0000007e5838efa8  sp  0000007df706dfe0  pc  0000007e583a1468  pst 0000000060000000
11-15 12:34:42.656  6674  6674 F DEBUG   : backtrace:
11-15 12:34:42.657  6674  6674 F DEBUG   :   NOTE: Function names and BuildId information is missing for some frames due
11-15 12:34:42.657  6674  6674 F DEBUG   :   NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
11-15 12:34:42.657  6674  6674 F DEBUG   :   NOTE: found under the lib/ directory are readable.
11-15 12:34:42.657  6674  6674 F DEBUG   :   NOTE: On this device, run setenforce 0 to make the libraries readable.
11-15 12:34:42.657  6674  6674 F DEBUG   :       #00 pc 0000000000393468  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!7b4d3d680da059de73d7f9795dc456!1a315fd02c!+368) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-15 12:34:42.657  6674  6674 F DEBUG   :       #01 pc 0000000000380fa4  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!f56be09eb88f86833124f1df42e945!1a315fd02c!+1508) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-15 12:34:42.657  6674  6674 F DEBUG   :       #02 pc 0000000000176afc  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!6b200851123c7898055fe62ff9f71f!1a315fd02c!+620) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-15 12:34:42.657  6674  6674 F DEBUG   :       #03 pc 000000000016e730  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!77df12deb6a622478efa8fb9929034!1a315fd02c!+376) (BuildId: da720b0102d20080cbd2232b9ebc2fbd)
11-15 12:34:42.657  6674  6674 F DEBUG   :       #04 pc 000000000000b360  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/vbo.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #05 pc 0000000000014b18  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #06 pc 0000000000008c88  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #07 pc 000000000001265c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #08 pc 0000000000011e9c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #09 pc 00000000000151a4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #10 pc 00000000000169e4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #11 pc 0000000000008c88  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #12 pc 000000000001265c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #13 pc 0000000000011e9c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #14 pc 0000000000008c88  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #15 pc 000000000001265c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #16 pc 0000000000011e9c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #17 pc 00000000000151a4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #18 pc 0000000000008c88  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #19 pc 000000000001265c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #20 pc 0000000000011e9c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #21 pc 00000000000151a4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #22 pc 0000000000008c88  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #23 pc 000000000001265c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #24 pc 0000000000011e9c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #25 pc 00000000000151a4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #26 pc 0000000000008c88  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #27 pc 000000000001265c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #28 pc 0000000000011e9c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #29 pc 00000000000151a4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #30 pc 0000000000008c88  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/compiler.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #31 pc 000000000001265c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #32 pc 0000000000011e9c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #33 pc 00000000000151a4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #34 pc 00000000000169e4  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #35 pc 000000000002082c  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/graphics/instructions.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #36 pc 0000000000162868  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #37 pc 000000000022b9d8  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #38 pc 0000000000228b48  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-15 12:34:42.657  6674  6674 F DEBUG   :       #39 pc 000000000015a1c4  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.657  6674  6674 F DEBUG   :       #40 pc 000000000015c3fc  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #41 pc 0000000000022614  /data/user/0/org.test.com.example.dicerollerbadq/files/app/_python_bundle/site-packages/kivy/_event.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #42 pc 0000000000162478  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #43 pc 000000000022b9d8  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #44 pc 0000000000228b48  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #45 pc 000000000015a1c4  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #46 pc 000000000022b9d8  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #47 pc 0000000000228b48  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #48 pc 000000000015a1c4  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #49 pc 000000000022b9d8  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #50 pc 0000000000228b48  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #51 pc 000000000015a1c4  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #52 pc 000000000022b9d8  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #53 pc 0000000000229cc4  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+13204)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #54 pc 000000000015a1c4  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #55 pc 000000000022b9d8  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #56 pc 0000000000228b48  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (_PyEval_EvalFrameDefault+8728)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #57 pc 000000000022c894  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so
11-15 12:34:42.658  6674  6674 F DEBUG   :       #58 pc 000000000022685c  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (PyEval_EvalCode+80)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #59 pc 0000000000269ca8  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libpython3.9.so (PyRun_SimpleFileExFlags+1180)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #60 pc 00000000000026dc  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libmain.so (SDL_main+2664) (BuildId: 6b5528de228df820ee6d0967d1dbc80afc75bc09)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #61 pc 000000000009af38  /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/lib/arm64/libSDL2.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+592) (BuildId: 5201b846994fb83e5eb63849d551b3740fccc4f1)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #62 pc 0000000000440554  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #63 pc 0000000000209398  /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #64 pc 000000000000bd62  [anon:dalvik-classes3.dex extracted in memory from /data/app/~~HafS3U6YP044XWhbv2Gxsg==/org.test.com.example.dicerollerbadq-WiUbHWAw_pOEc-6K06vf3Q==/base.apk!classes3.dex] (org.libsdl.app.SDLMain.run+114)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #65 pc 000000000020b074  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #66 pc 00000000000f6740  /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #67 pc 0000000000436b6c  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #68 pc 0000000000468938  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+156) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #69 pc 0000000000468620  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+388) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #70 pc 0000000000618214  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1668) (BuildId: d307dc6adc4105b5e392ad710770385d)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #71 pc 00000000000f1194  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: f85c82661f93b28ab3119d33214bb7b9)
11-15 12:34:42.658  6674  6674 F DEBUG   :       #72 pc 000000000008d7f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: f85c82661f93b28ab3119d33214bb7b9)
11-15 12:34:42.675   584   584 D io_stats: !@   8,0 r 34845548 1004076780 w 4129540 60821932 d 1251067 148419052 f 0 0 iot 9533356 0 th 0 0 0 pt 0 inp 0 0 143339.667
11-15 12:34:42.689  1512  6684 I DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2
11-15 12:34:42.693  1512  6683 W ActivityManager: crash : org.test.com.example.dicerollerbadq,10414
11-15 12:34:42.704  1512  6683 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1242 com.android.server.am.AppErrors.crashApplicationInner:723 com.android.server.am.AppErrors.crashApplication:584 com.android.server.am.ActivityManagerService.handleApplicationCrashInner:9735 com.android.server.am.NativeCrashListener$NativeCrashReporter.run:119
11-15 12:34:42.707  1512  6683 W ActivityTaskManager:   Force finishing activity org.test.com.example.dicerollerbadq/org.kivy.android.PythonActivity
11-15 12:34:42.708  1512  1967 I BootReceiver: Copying /data/tombstones/tombstone_27 to DropBox (SYSTEM_TOMBSTONE)
11-15 12:34:42.708  1512  1967 I DropBoxManagerService: add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x6
11-15 12:34:42.710  1512  6683 W WindowManager: Prepare app transition: mNextAppTransitionRequests=[TRANSIT_CLOSE], mNextAppTransitionFlags=TRANSIT_FLAG_APP_CRASHED, displayId: 0 


Note that the problem only occurs on the phone itself (Samsung A23). No problems in emulators or running Python in Windows.

Will keep trying out different Widgets to see which fail.

Any feedback welcome. 

Robert

unread,
Nov 15, 2022, 1:10:44 AM11/15/22
to Kivy users support
I have recently seen a report of similar (but where?), that was some MDButtonType and null pointer deref.
(arg, personally I then doubted that was really the issue, I was wrong)

Looking on KivyMD I found this which looks similar
https://github.com/kivymd/KivyMD/issues/1393

Since it appears to be a known issue (last post says mipmap related) and unfixed - I'd suggest any clarity you get would be useful there.

This symptom of 'on some devices' is a classic of memory allocation errors, 'null pointer' strongly indicates the same thing.
Which means that on other platforms it is working for the wrong reason (an idea that is often very hard for developers to internalize!!).

Thanks for your clarity and help.

Robin Barrett

unread,
Nov 15, 2022, 9:48:27 PM11/15/22
to kivy-...@googlegroups.com
Significant new piece of info:-

change to 
kivymd==1.0.2
in buildozer.spec
and the MDRaisedButton does not cause a crash.

(Phenomenon of crashing on Samsung A23 consistent when compiling on ubuntu (Windows WSL) or Google Colab.
Working with kivymd v 1.0.2 similarly consistent)

Where would be the best place to report this bug introduced into kivymd since v 1.0.2 ?

--
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/94d08e31-4f81-4e53-a0e3-b8263a6896e9n%40googlegroups.com.

Robin Barrett

unread,
Nov 15, 2022, 9:49:45 PM11/15/22
to kivy-...@googlegroups.com
... also, what is the downside of using this earlier version of kivymd? 

Robert

unread,
Nov 15, 2022, 10:19:39 PM11/15/22
to Kivy users support
> . also, what is the downside of using this earlier version of kivymd? 
The newer version is better, oh, wait.....
Here is the change log https://kivymd.readthedocs.io/en/1.1.1/changelog/index.html

KivMD is kind of a moving target, not so much as it used to be, but the api may not be the same - test 1.0.2 on the desktop first.

Add to this, or create new issue https://github.com/kivymd/KivyMD/issues/1393

RDCB

unread,
Nov 16, 2022, 1:00:47 AM11/16/22
to Kivy users support
OK thanks - I added to the existing issue thread.

Robert

unread,
Nov 16, 2022, 1:21:31 AM11/16/22
to Kivy users support
I just found this, a closed issue fixing a MDRaisedButton issue before KivyMD 1.1.0

Gotta wonder?
Reply all
Reply to author
Forward
0 new messages