Skip to content

bug: flet application on android crashes the next time you try to launch itΒ #5891

@novikov-nsa

Description

@novikov-nsa

Duplicate Check

Describe the bug

I noticed that my flet application on android is running correctly for the first time. But if you press the back button on your phone, the app closes and crashes the next time you try to launch it.

the result of the "adb logcat" command is shown below

Code sample

none

To reproduce

run flet application on android, press "back" button, run the application again

Expected behavior

No response

Screenshots / Videos

Captures

https://disk.yandex.ru/i/VVFE2IBFCKcg0A

Operating System

macOS

Operating system details

android 10

Flet version

0.28.3

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

result "adb logcat"

Logs
2-09 22:21:56.951  6985  6985 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
12-09 22:21:56.952   755   755 I /system/bin/tombstoned: received crash request for pid 6981
12-09 22:21:56.954  6985  6985 I crash_dump64: performing dump of process 6906 (target tid = 6981)
12-09 22:21:56.971  1299  1406 I Timeline: Timeline: Activity_windows_visible id: ActivityRecord{8d37b73 u0 com.novikovsa.shoppingnotepad/.MainActivity t99} time:180710646
12-09 22:21:56.972  2421  2421 D EventBus: [2421, u0] send(AppTransitionFinishedEvent)
12-09 22:21:56.972  2421  2421 D EventBus: [2421, u0]  -> ForcedResizableInfoActivityController [0x5a5e45a, P1] onBusEvent(AppTransitionFinishedEvent)
12-09 22:21:56.972  2421  2421 D EventBus: [2421, u0] onBusEvent(AppTransitionFinishedEvent) duration: 15 microseconds, avg: 283
12-09 22:21:56.972  2421  2421 D EventBus: [2421, u0] send(AppTransitionFinishedEvent)
12-09 22:21:56.972  2421  2421 D EventBus: [2421, u0]  -> ForcedResizableInfoActivityController [0x5a5e45a, P1] onBusEvent(AppTransitionFinishedEvent)
12-09 22:21:56.972  2421  2421 D EventBus: [2421, u0] onBusEvent(AppTransitionFinishedEvent) duration: 5 microseconds, avg: 283
12-09 22:21:56.973  5355  5355 E LauncherAnimationRunner: finish: mFinishRunnable.run
12-09 22:21:56.975  6985  6985 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-09 22:21:56.975  6985  6985 F DEBUG   : Build fingerprint: 'Redmi/galahad_ru/galahad:10/QP1A.190711.020/V12.0.4.0.QJCRUXM:user/release-keys'
12-09 22:21:56.975  6985  6985 F DEBUG   : Revision: '0'
12-09 22:21:56.975  6985  6985 F DEBUG   : ABI: 'arm64'
12-09 22:21:56.976  6985  6985 F DEBUG   : Timestamp: 2025-12-09 22:21:56+0300
12-09 22:21:56.976  6985  6985 F DEBUG   : pid: 6906, tid: 6981, name: DartWorker  >>> com.novikovsa.shoppingnotepad <<<
12-09 22:21:56.976  6985  6985 F DEBUG   : uid: 10226
12-09 22:21:56.976  6985  6985 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
12-09 22:21:56.976  6985  6985 F DEBUG   : Cause: null pointer dereference
12-09 22:21:56.976  6985  6985 F DEBUG   :     x0  00000071a0d97528  x1  000000716e36ae10  x2  0000000000000008  x3  00000071a0f71ee0
12-09 22:21:56.976  6985  6985 F DEBUG   :     x4  000000716e36ae18  x5  00000071a0d97530  x6  0000000000000000  x7  0000000000000000
12-09 22:21:56.976  6985  6985 F DEBUG   :     x8  000000716e80f520  x9  0000000000000000  x10 00000071a064f0a0  x11 00000000ffffffff
12-09 22:21:56.976  6985  6985 F DEBUG   :     x12 0000007192e51dfc  x13 ffffff8ffd8b0337  x14 0000000000000012  x15 00000071ef7d6910
12-09 22:21:56.976  6985  6985 F DEBUG   :     x16 000000716e70cef8  x17 0000007281ab4380  x18 0000007161d02000  x19 0000000000000031
12-09 22:21:56.976  6985  6985 F DEBUG   :     x20 0000000000000000  x21 000000716e7fcd90  x22 0000000000000001  x23 0000000000000024
12-09 22:21:56.976  6985  6985 F DEBUG   :     x24 000000000000007f  x25 0000000000000008  x26 00000071a127ec00  x27 0000007002380080
12-09 22:21:56.976  6985  6985 F DEBUG   :     x28 000000716e3153f0  x29 00000071ef7d6710
12-09 22:21:56.976  6985  6985 F DEBUG   :     sp  00000071ef7d6710  lr  000000716e4ffc74  pc  000000716e4ffc84
12-09 22:21:56.979   746   869 D AAL     : 12-09 10:21:56.878 BL= 714,ESS= 256, 12-09 10:21:56.896 BL= 713,ESS= 256, 12-09 10:21:56.927 BL= 712,ESS= 256, 12-09 10:21:56.944 BL= 711,ESS= 256, 12-09 10:21:56.979 BL= 710,ESS= 256, 
12-09 22:21:56.979  6985  6985 F DEBUG   : 
12-09 22:21:56.979  6985  6985 F DEBUG   : backtrace:
12-09 22:21:56.979  1299  1318 I Timeline: Timeline: App_transition_stopped time:180710654
12-09 22:21:56.979  6985  6985 F DEBUG   :       #00 pc 00000000002fac84  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libpython3.12.so (BuildId: a53785035395260991799fc990aa2e04a1c3ab79)
12-09 22:21:56.979  6985  6985 F DEBUG   :       #01 pc 00000000003214d4  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libpython3.12.so (PyUnicode_New+196) (BuildId: a53785035395260991799fc990aa2e04a1c3ab79)
12-09 22:21:56.979  6985  6985 F DEBUG   :       #02 pc 000000000032b078  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libpython3.12.so (BuildId: a53785035395260991799fc990aa2e04a1c3ab79)
12-09 22:21:56.979  6985  6985 F DEBUG   :       #03 pc 00000000003de8b4  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libpython3.12.so (PyImport_AddModule+12) (BuildId: a53785035395260991799fc990aa2e04a1c3ab79)
12-09 22:21:56.979  6985  6985 F DEBUG   :       #04 pc 0000000000402768  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libpython3.12.so (PyRun_SimpleStringFlags+36) (BuildId: a53785035395260991799fc990aa2e04a1c3ab79)
12-09 22:21:56.979  6985  6985 F DEBUG   :       #05 pc 00000000005915dc  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.979  6985  6985 F DEBUG   :       #06 pc 0000000000c31634  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.979  6985  6985 F DEBUG   :       #07 pc 0000000000c32088  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #08 pc 0000000000c2fe58  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #09 pc 0000000000c2fb1c  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #10 pc 0000000000d07668  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #11 pc 00000000005af454  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #12 pc 0000000000d07668  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #13 pc 00000000005aefc0  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #14 pc 0000000000593d3c  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libapp.so (offset 0x580000) (BuildId: cde83d068ffb1d7b8f5eb4de85488624)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #15 pc 0000000000897508  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libflutter.so!libflutter.so (offset 0x461000) (BuildId: 9a7b90fd1c96c13ebb562b7724c7016fd5e5ed13)
12-09 22:21:56.980  6985  6985 F DEBUG   :       #16 pc 0000000000a6cab4  /data/app/com.novikovsa.shoppingnotepad-qP_30MByA5cDfsSge_26Pg==/lib/arm64/libflutter.so!libflutter.so (offset 0xa24000) (BuildId: 9a7b90fd1c96c13ebb562b7724c7016fd5e5ed13)
12-09 22:21:56.987   553   553 I BufferQueue: [Splash Screen com.novikovsa.shoppingnotepad#0](this:0x723aa12800,id:1010,api:2,p:-1,c:-1) ~BufferQueueCore
12-09 22:21:56.988  5355  5423 D Surface : Surface::disconnect(this=0x7181be3000,api=1)
12-09 22:21:56.990   553  3154 I BufferQueueProducer: [com.miui.home/com.miui.home.launcher.Launcher#0](this:0x721e624800,id:1009,api:1,p:5355,c:553) disconnect(P): api 1
12-09 22:21:56.999  5355  5355 D Launcher.Lifecycle: onStop:UserHandle{0},4e35127,false
12-09 22:21:57.000  1299  2290 I MiuiNetworkPolicy: updateUidState uid = 10087, uidState = 6
12-09 22:21:57.004  6480  6525 D Surface : Surface::disconnect(this=0x71e6dd1000,api=1)
12-09 22:21:57.004   553   615 I BufferQueueProducer: [LauncherMinusOneScreen#0](this:0x721e711800,id:1008,api:1,p:6480,c:553) disconnect(P): api 1
12-09 22:21:57.031   526   583 E libPowerHal: perfLockRel handle:1448
12-09 22:21:57.031   526   583 I libPowerHal: 54: cpu_ctrl set freq: -1 -1 -1 -1
12-09 22:21:57.031   526   583 I libPowerHal: 54: set gpu level: 29
12-09 22:21:57.031   526   583 I libPowerHal: 54: set gpu level max: 0
12-09 22:21:57.034   553   553 I BufferQueue: [LauncherMinusOneScreen#0](this:0x721e711800,id:1008,api:1,p:-1,c:-1) ~BufferQueueCore
12-09 22:21:57.038   553   553 I BufferQueue: [com.miui.home/com.miui.home.launcher.Launcher#0](this:0x721e624800,id:1009,api:1,p:-1,c:-1) ~BufferQueueCore
12-09 22:21:57.078   746   869 D AAL     : 12-09 10:21:56.997 BL= 709,ESS= 256, 12-09 10:21:57.012 BL= 710,ESS= 256, 12-09 10:21:57.027 BL= 711,ESS= 256, 12-09 10:21:57.061 BL= 712,ESS= 256, 12-09 10:21:57.078 BL= 713,ESS= 256, 
12-09 22:21:57.130  1299  1317 D ActivityManager: thread tid=5355, priority is set to -10
12-09 22:21:57.130  1299  1317 D ActivityManager: thread tid=5423, priority is set to -10
12-09 22:21:57.195   746   869 D AAL     : 12-09 10:21:57.111 BL= 714,ESS= 256, 12-09 10:21:57.128 BL= 715,ESS= 256, 12-09 10:21:57.144 BL= 716,ESS= 256, 12-09 10:21:57.178 BL= 717,ESS= 256, 12-09 10:21:57.195 BL= 718,ESS= 256, 
12-09 22:21:57.599   735  7442 E lsc_nvram: [do_mkdir] fail to mkdir [/sdcard/shading_otp]: 13[Permission denied] (do_mkdir){#65:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_40/lsc_mgr/LscUtil.h}
12-09 22:21:57.595   735   735 W camerahalserver: type=1400 audit(0.0:78706): avc: denied { search } for name="0" dev="mmcblk0p46" ino=794627 scontext=u:r:mtk_hal_camera:s0 tcontext=u:object_r:media_rw_data_file:s0 tclass=dir permissive=0
12-09 22:21:57.758   433   433 D AEE_AED : $===AEE===AEE===AEE===$
12-09 22:21:57.759   433   433 D AEE_AED : p 2 poll events 1 revents 1
12-09 22:21:57.759   433   433 D AEE_AED : PPM cpu cores:8, online:8
12-09 22:21:57.760   433   433 D AEE_AED : aed_main_fork_worker: generator 0x72faa0d280, worker 0x7fe7717df0, recv_fd 11
12-09 22:21:57.764  6988  6988 D AEE_AED : u:r:untrusted_app:s0:c226,c256,c512,c768
12-09 22:21:57.765  6988  6988 E AEE_AED : Skipped - do not care third party apk
12-09 22:21:57.765  6985  6985 I crash_dump: crash_mini_dump_notify exit
12-09 22:21:57.768   433   433 D AEE_AED : clear ppm settings
12-09 22:21:57.769  6985  6985 E crash_dump64: cannot open libmiuindbg.so: No such file or directory
12-09 22:21:57.770   433   433 D AEE_AED : $===AEE===AEE===AEE===$
12-09 22:21:57.771   526   583 I libPowerHal: [perfNotifyAppState] pack:com.novikovsa.shoppingnotepad, pid:1299, STATE_DEAD
12-09 22:21:57.771   526   583 D RilUtility: notify_rild_crash_pid_set certPid:-1, crash:1299, scn:0x0
12-09 22:21:57.771  1299  6989 W ActivityTaskManager:   Force finishing activity com.novikovsa.shoppingnotepad/.MainActivity
12-09 22:21:57.771   755   755 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_03
12-09 22:21:57.772  1299  6990 I DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2
12-09 22:21:57.773  5355  5793 D LauncherFsGestureCompat: componentName is com.novikovsa.shoppingnotepad/.MainActivity
12-09 22:21:57.775  1299  6989 D PowerHalWrapper: <amsBoostResume> last:com.novikovsa.shoppingnotepad, next:com.miui.home 
12-09 22:21:57.776  1299  1331 I BootReceiver: Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
12-09 22:21:57.778   526   583 I libPowerHal: 32: cpu_ctrl set freq: 1800000 -1 2000000 -1
12-09 22:21:57.779  1299  6990 W AES     : Exception Log handling...
12-09 22:21:57.779  1299  6990 W AES     : Skipped - do not care third party apk

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions