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

App crashes when displaying specific widgets #36631

Closed
p30arena opened this issue Jul 21, 2019 · 45 comments · Fixed by flutter/engine#10297
Closed

App crashes when displaying specific widgets #36631

p30arena opened this issue Jul 21, 2019 · 45 comments · Fixed by flutter/engine#10297

Comments

@p30arena
Copy link
Contributor

Device: LG G5 H860
Android: 8

07-21 11:32:30.449 14199-14221/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x1ac00000000f8 in tid 14221 (1.ui)
07-21 11:32:30.552 15288-15288/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-21 11:32:30.552 15288-15288/? A/DEBUG: Build fingerprint: 'lge/h1_global_com/h1:8.0.0/OPR1.170623.032/19038182082bf:user/release-keys'
07-21 11:32:30.552 15288-15288/? A/DEBUG: Revision: '13'
07-21 11:32:30.552 15288-15288/? A/DEBUG: ABI: 'arm64'
07-21 11:32:30.552 15288-15288/? A/DEBUG: pid: 14199, tid: 14221, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
07-21 11:32:30.553 15288-15288/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1ac00000000f8
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x0   0001ac00000000e8  x1   0000007b14090800  x2   0000007af4f1d119  x3   0000007b12c82a81
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x4   0000000000000003  x5   0000007b12c80041  x6   0000007b00dfef90  x7   0000007af4f22d98
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x8   0000007b14090800  x9   0000000000000000  x10  0000000000000000  x11  0000000000000000
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x12  0000007b08a2c228  x13  0000000000100000  x14  0000000000000008  x15  0000007b00dfef90
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x16  0000007b01a7a3b8  x17  0000007b227068f0  x18  0000007afd4098f0  x19  0001ac00000000e8
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x20  0001ac00000000e8  x21  0000000000000000  x22  0000000000000000  x23  0000000000000030
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x24  0000007afa6d17d0  x25  0000007b00dff248  x26  0000000000000000  x27  0000000000000001
07-21 11:32:30.553 15288-15288/? A/DEBUG:     x28  000000000000002c  x29  0000007b00dff3a0  x30  0000007b016e3760
07-21 11:32:30.553 15288-15288/? A/DEBUG:     sp   0000007b00dff0a0  pc   0000007b016e376c  pstate 0000000080000000
07-21 11:32:30.569 15288-15288/? A/DEBUG: backtrace:
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #00 pc 000000000049d76c  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #01 pc 000000000049d75c  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #02 pc 0000000000290c90  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #03 pc 0000000000290c44  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #04 pc 000000000028b298  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #05 pc 000000000027dfd4  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #06 pc 0000000000281900  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #07 pc 0000000000015fec  /system/lib64/libutils.so (_ZN7android6Looper9pollInnerEi+808)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #08 pc 0000000000015c3c  /system/lib64/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+108)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #09 pc 00000000000139c0  /system/lib64/libandroid.so (ALooper_pollOnce+92)
07-21 11:32:30.569 15288-15288/? A/DEBUG:     #10 pc 0000000000281a1c  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.570 15288-15288/? A/DEBUG:     #11 pc 000000000027de38  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.570 15288-15288/? A/DEBUG:     #12 pc 00000000002805fc  /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
07-21 11:32:30.570 15288-15288/? A/DEBUG:     #13 pc 0000000000068150  /system/lib64/libc.so (_ZL15__pthread_startPv+36)
07-21 11:32:30.570 15288-15288/? A/DEBUG:     #14 pc 000000000001f334  /system/lib64/libc.so (__start_thread+68)
07-21 11:32:32.185 3199-3199/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones//tombstone_05
07-21 11:32:32.234 659-659/? E/lowmemorykiller: Error writing /proc/14199/oom_score_adj; errno=22
07-21 11:32:32.972 5477-5557/? E/PBSessionCacheImpl: sessionId[24089664266989843] not persisted.
07-21 11:32:33.019 659-659/? E/lowmemorykiller: Error writing /proc/14199/oom_score_adj; errno=22
07-21 11:32:33.474 3341-3500/? E/zygote64: failed to kill 1 processes for processgroup 14199
07-21 11:32:35.997 4902-12160/? E/WakeLock: GCM_HB_ALARM release without a matched acquire!
07-21 11:32:36.456 5028-32708/? E/cddv: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
                                            Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
                                        java.lang.RuntimeException: ManagedChannel allocation site
                                            at cddy.<init>(:com.google.android.gms@17785019@17.7.85 (040400-253824076):1)
                                            at cddv.<init>(:com.google.android.gms@17785019@17.7.85 (040400-253824076):2)
                                            at ccwm.b(:com.google.android.gms@17785019@17.7.85 (040400-253824076):14)
                                            at sje.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):44)
                                            at sje.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):66)
                                            at awkt.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):43)
                                            at com.google.android.gms.udc.service.UdcContextInitChimeraService.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):127)
                                            at aezd.run(:com.google.android.gms@17785019@17.7.85 (040400-253824076):5)
                                            at squ.b(:com.google.android.gms@17785019@17.7.85 (040400-253824076):37)
                                            at squ.run(:com.google.android.gms@17785019@17.7.85 (040400-253824076):21)
                                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
                                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
                                            at swz.run(Unknown Source:7)
                                            at java.lang.Thread.run(Thread.java:764)
07-21 11:32:36.458 5028-32708/? E/cddv: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
                                            Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
                                        java.lang.RuntimeException: ManagedChannel allocation site
                                            at cddy.<init>(:com.google.android.gms@17785019@17.7.85 (040400-253824076):1)
                                            at cddv.<init>(:com.google.android.gms@17785019@17.7.85 (040400-253824076):2)
                                            at ccwm.b(:com.google.android.gms@17785019@17.7.85 (040400-253824076):14)
                                            at sje.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):44)
                                            at sje.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):66)
                                            at awkt.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):43)
                                            at com.google.android.gms.udc.service.UdcContextInitChimeraService.a(:com.google.android.gms@17785019@17.7.85 (040400-253824076):127)
                                            at aezd.run(:com.google.android.gms@17785019@17.7.85 (040400-253824076):5)
                                            at squ.b(:com.google.android.gms@17785019@17.7.85 (040400-253824076):37)
                                            at squ.run(:com.google.android.gms@17785019@17.7.85 (040400-253824076):21)
                                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
                                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
                                            at swz.run(Unknown Source:7)
                                            at java.lang.Thread.run(Thread.java:764)
07-21 11:32:47.683 3341-3504/? E/BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}

@p30arena
Copy link
Contributor Author

p30arena commented Jul 21, 2019

[√] Flutter (Channel master, v1.8.2-pre.118, on Microsoft Windows [Version 6.3.9600], locale en-US)
    • Flutter version 1.8.2-pre.118 at M:\flutter
    • Framework revision 6cdb4ddb68 (2 days ago), 2019-07-19 22:30:27 -0400
    • Engine revision 9cf13568e2
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 63120303a7)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at D:\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = D:\Android\sdk
    • Java binary at: C:\Program Files\Java\jdk1.8.0_45\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop for Windows (Visual Studio Community 2017 15.4.2)
    • Visual Studio at D:\Programs x86\Microsoft Visual Studio\2017\Community
    • Visual Studio Community 2017 version 15.4.27004.2006
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
      development with C++" workload, and include these components:
        MSBuild
        VC++ 2017 version 15.9 v14.16 latest v141 tools
        Windows 10 SDK (10.0.17763.0)

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[√] Connected device (2 available)
    • Windows • Windows • windows-x64    • Microsoft Windows [Version 6.3.9600]
    • Chrome  • chrome  • web-javascript • Google Chrome 75.0.3770.142

! Doctor found issues in 2 categories.

@jason-simmons
Copy link
Member

What version of Flutter was running in the app that generated this stack trace?

I tried symbolizing the trace with engine commit 9cf13568e2 but the symbols did not match.

@p30arena
Copy link
Contributor Author

@jason-simmons

Probably one version before v1.8.2-pre.118

@p30arena
Copy link
Contributor Author

This also happened on: Samsung Galaxy Note 5

@p30arena p30arena changed the title App crashes when pushing a specific page on LG G5 App crashes when pushing a specific page on specific phone models Jul 23, 2019
@p30arena
Copy link
Contributor Author

p30arena commented Jul 24, 2019

This is another case, when using firebase_ml_vision on a KitKat device

I/BitmapCropTask( 2791): Should crop: true
D/dalvikvm( 2791): GC_FOR_ALLOC freed 2668K, 27% free 9430K/12900K, paused 20ms, total 20ms
D/dalvikvm( 2791): GC_FOR_ALLOC freed 2547K, 35% free 8482K/12900K, paused 21ms, total 21ms
F/libc    ( 2791): Fatal signal 11 (SIGSEGV) at 0xc111a9d4 (code=1), thread 2877 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
Revision: '8'
pid: 2791, tid: 2877, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr c111a9d4
    r0 00000001  r1 6290edd0  r2 00000000  r3 00000014
    r4 c111a66c  r5 c111a66c  r6 6337f210  r7 00000001
    r8 00000000  r9 00000001  sl 401ff801  fp 401ff70a
    ip 628080d4  sp 6290ead8  lr 6248fff1  pc 62490010  cpsr 800d0030
    d0  4031c000000008f9  d1  4061c00000000000
    d2  697369765f6c6d5f  d3  62657269662f6e6f
    d4  4082c782f0462637  d5  c1ca6da3c1ca6da3
    d6  4054327a91d9b592  d7  0000000000000000
    d8  0000000000000000  d9  0000000000000000
    d10 0000000000000000  d11 0000000000000000
    d12 0000000000000000  d13 0000000000000000
    d14 0000000000000000  d15 0000000000000000
    d16 3fe1f20000000000  d17 3fe6b851eb851eb8
    d18 0000000000000000  d19 0000000000000000
    d20 0000000000000000  d21 428b007643bef8cc
    d22 0000000000000000  d23 400921fb54442d18
    d24 0000000000000000  d25 3fe6a09e5e33bca9
    d26 0000000000000000  d27 bf56816d3012689d
    d28 0000000000000000  d29 3fe921fb48885a30
    d30 0000000000000000  d31 3ff921fb54442d18
    scr 80000093
backtrace:
    #00  pc 002ff010  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
    #01  pc 002fefed  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
stack:
         6290ea98  5d291008
         6290ea9c  6290eae8
         6290eaa0  00000000
         6290eaa4  5d291008
         6290eaa8  00000000
         6290eaac  63380021
         6290eab0  5d291008
         6290eab4  00000001
         6290eab8  00000001
         6290eabc  627df434  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eac0  627e67bc  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eac4  627c3768  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eac8  40028d3c
         6290eacc  626dcff5  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290ead0  73560655
         6290ead4  6280da74
    #00  6290ead8  627e67bc  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         ........  ........
    #01  6290ead8  627e67bc  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eadc  627c3800  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eae0  c111a66c
         6290eae4  00000000
         6290eae8  00000001
         6290eaec  6bea9ed4
         6290eaf0  00000000
         6290eaf4  62578e53  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eaf8  627c3800  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eafc  627c3800  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eb00  c111a66c
         6290eb04  00000000
         6290eb08  6499316c
         6290eb0c  626cde9b  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6290eb10  6290eb30
         6290eb14  6290eb84
memory near r1:
    6290edb0 621a2779 4012f29c 5d072b70 5cde7bf8
    6290edc0 6290edd0 00000002 00000078 4012f434
    6290edd0 6290edd0 5cde7bf8 00000004 00000000
    6290ede0 00000000 dc0d61c5 5cde7c38 00000000
    6290edf0 00000000 00000000 00000000 00000000
    6290ee00 00000000 00000000 00000000 00000000
    6290ee10 00000000 00000000 00000000 00000000
    6290ee20 00000000 5d0723c8 5d06d348 5d072b90
    6290ee30 5d0bd838 00000001 5d072b40 6337f210
    6290ee40 00000000 00000000 00000000 00000000
    6290ee50 00000000 00000000 00000000 00000000
    6290ee60 00000000 00000000 00000000 00000000
    6290ee70 00000000 00000000 00000000 00000000
    6290ee80 00000000 00000000 00000000 00000000
    6290ee90 00000000 00000000 00000000 00000000
    6290eea0 00000000 00000000 00000000 00000000
memory near r6:
    6337f1f0 00000000 00000000 00000000 00000013
    6337f200 00000000 5d25a560 00000002 00000043
    6337f210 627e690c 40170201 00000b3d 00000b3d
    6337f220 5d0c0c78 00000000 61723548 00000000
    6337f230 5d0bcc28 00000001 5d0bd0a0 6290f000
    6337f240 62811000 00010000 00000000 0000005b
    6337f250 627e0260 00000000 00000000 5d0c0e20
    6337f260 5d27db90 647d0001 00000001 00000000
    6337f270 00000000 647df239 ffffffff ffffffff
    6337f280 627e0000 00000000 9ae71bb6 00000014
    6337f290 00000000 00000000 00000000 5cdfc6e0
    6337f2a0 627e43a8 0000003b 627c6bc0 5d291d64
    6337f2b0 5d291d58 5cdfce10 0000000b 5d0a8f28
    6337f2c0 00000007 3f800000 5d0a8ea0 5d0a8ef4
    6337f2d0 5d0a8f00 00000000 00000038 000000bb
    6337f2e0 627d3e80 00000001 00000001 00000010
memory near sl:
    401ff7e0 7665206c 73746e65 25783020 6e6f2078
    401ff7f0 6b617720 65722065 70206461 2e657069
    401ff800 6e674900 6e69726f 6e752067 65707865
    401ff810 64657463 6f706520 65206c6c 746e6576
    401ff820 78302073 6f207825 6466206e 20642520
    401ff830 74616874 20736920 6c206f6e 65676e6f
    401ff840 65722072 74736967 64657265 6f43002e
    401ff850 20646c75 20746f6e 61657263 77206574
    401ff860 20656b61 65706970 6520202e 6f6e7272
    401ff870 0064253d 6c756f43 6f6e2064 616d2074
    401ff880 7720656b 20656b61 64616572 70697020
    401ff890 6f6e2065 6c622d6e 696b636f 202e676e
    401ff8a0 72726520 253d6f6e 6f430064 20646c75
    401ff8b0 20746f6e 656b616d 6b617720 72772065
    401ff8c0 20657469 65706970 6e6f6e20 6f6c622d
    401ff8d0 6e696b63 20202e67 6e727265 64253d6f
memory near fp:
    401ff6e8 20736570 69687428 70253d73 6872202c
    401ff6f8 70253d73 65720029 746c7573 203d2120
    401ff708 6f4c0030 7265706f 756f4300 6e20646c
    401ff718 6120746f 636f6c6c 20657461 20534c54
    401ff728 2e79656b 68747000 64616572 636e6f5f
    401ff738 61662065 64656c69 43005700 646c756f
    401ff748 746f6e20 69727720 77206574 20656b61
    401ff758 6e676973 202c6c61 6e727265 64253d6f
    401ff768 72724500 7220726f 766f6d65 20676e69
    401ff778 6c6f7065 7665206c 73746e65 726f6620
    401ff788 20646620 202c6425 6e727265 64253d6f
    401ff798 6c6f5000 6166206c 64656c69 74697720
    401ff7a8 6e612068 656e7520 63657078 20646574
    401ff7b8 6f727265 65202c72 6f6e7272 0064253d
    401ff7c8 6f6e6749 676e6972 656e7520 63657078
    401ff7d8 20646574 6c6f7065 7665206c 73746e65
memory near ip:
    628080b4 4014d46d 40150249 40150449 40136649
    628080c4 401503d9 40150275 40135149 4013514d
    628080d4 4012fa28 40142590 5cda4015 5cda3fff
    628080e4 5cda3fc1 5cda3fdd 5cda3fe9 5cda4081
    628080f4 5cda3fd9 5cda3fcd 40144150 401424bc
    62808104 4014fcdd 40142ddc 40142a54 4015c8cb
    62808114 40142cbc 40142cdc 401428ec 40142680
    62808124 40142ac8 40134d85 40142640 400e4dad
    62808134 400e4f31 400e4dfd 400e4e81 400803b1
    62808144 4015c8bd 40136695 40147f2d 401481d9
    62808154 40136d0d 40147911 40147b89 4012fd29
    62808164 4012fd51 40136b29 401481d5 4012fd15
    62808174 4014d7f9 40144938 4015c8bd 4015c8cb
    62808184 4015c8c1 40087998 400923a0 4008e488
    62808194 4015c613 40095460 400979a8 40098210
    628081a4 40088538 40098a18 40089600 40096ec8
memory near sp:
    6290eab8 00000001 627df434 627e67bc 627c3768
    6290eac8 40028d3c 626dcff5 73560655 6280da74
    6290ead8 627e67bc 627c3800 c111a66c 00000000
    6290eae8 00000001 6bea9ed4 00000000 62578e53
    6290eaf8 627c3800 627c3800 c111a66c 00000000
    6290eb08 6499316c 626cde9b 6290eb30 6290eb84
    6290eb18 6290eb30 6290eb30 6290eb84 6239a4ab
    6290eb28 64993154 623990af c111a66c 5cdfc6e0
    6290eb38 64da77a8 64da7798 64993154 6bea9ed4
    6290eb48 6499316c 62399087 68b71078 621af283
    6290eb58 00000000 64d8f26c 6499316c 621af4ab
    6290eb68 68b66ef8 00000000 00000000 00000000
    6290eb78 00000000 00000000 00000000 64d8f26c
    6290eb88 5cdfc6e0 00000000 00000000 5d0ad228
    6290eb98 5d0ad218 640bd980 61738cfa 6290ebb8
    6290eba8 00000000 68b66ef8 5d06d390 621aa8c7
code around pc:
    6248fff0 4606b118 b1287900 f088b956 4606f86f
    62490000 e049b930 f5104630 4606f9e8 d0f42e00
    62490010 7368f8d4 f0884638 f1b9fb07 bf1c0f00
    62490020 28006820 f1b8d135 d1100f00 036cf8d4
    62490030 29016901 6940db0b 4638b148 23002200
    62490040 fb36f088 036cf8d4 29006901 4828dcf3
    62490050 0f00f1b9 68004478 eba06800 fab00104
    62490060 fab1f080 ea4ff181 ea4f1050 ea411151
    62490070 d0080100 f8d46862 b1920368 f0eb4611
    62490080 6865f98c f8d4e011 f0eb0368 4605f970
    62490090 4638e00b faeaf088 46282500 e8bdb001
    624900a0 f0eb83f0 4605f964 69286060 632c2200
    624900b0 0f00f1b9 ea4f6168 6ca100c8 209ee9c5
    624900c0 0003f04f 636960ae 46286528 bf1863b5
    624900d0 f0886025 4630f859 ff66f087 f0884638
    624900e0 4628fac5 e8bdb001 bf0083f0 00377522
code around lr:
    6248ffd0 40b0e8bd bb4af088 43f0e92d 4604b081
    6248ffe0 46904842 44784689 68006800 ea48f259
    6248fff0 4606b118 b1287900 f088b956 4606f86f
    62490000 e049b930 f5104630 4606f9e8 d0f42e00
    62490010 7368f8d4 f0884638 f1b9fb07 bf1c0f00
    62490020 28006820 f1b8d135 d1100f00 036cf8d4
    62490030 29016901 6940db0b 4638b148 23002200
    62490040 fb36f088 036cf8d4 29006901 4828dcf3
    62490050 0f00f1b9 68004478 eba06800 fab00104
    62490060 fab1f080 ea4ff181 ea4f1050 ea411151
    62490070 d0080100 f8d46862 b1920368 f0eb4611
    62490080 6865f98c f8d4e011 f0eb0368 4605f970
    62490090 4638e00b faeaf088 46282500 e8bdb001
    624900a0 f0eb83f0 4605f964 69286060 632c2200
    624900b0 0f00f1b9 ea4f6168 6ca100c8 209ee9c5
    624900c0 0003f04f 636960ae 46286528 bf1863b5
memory map around fault addr c111a9d4:
    bef64000-bef85000 rw- [stack]
    (no map for address)
    ffff0000-ffff1000 r-x [vectors]
!@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 2791
Lost connection to device.

[√] Flutter (Channel master, v1.8.2-pre.150, on Microsoft Windows [Version 6.3.9600], locale en-US)
    • Flutter version 1.8.2-pre.150 at M:\flutter
    • Framework revision c8f168fdcb (23 hours ago), 2019-07-22 23:16:27 -0400
    • Engine revision 1f3013163d
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 fedd74669a)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at D:\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = D:\Android\sdk
    • Java binary at: C:\Program Files\Java\jdk1.8.0_45\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[√] Connected device (1 available)
    • GT N5100 • 4103521602c140e7 • android-arm • Android 4.4.2 (API 19)

! Doctor found issues in 1 category.

@p30arena
Copy link
Contributor Author

Another try on the KitKat device when pushing a simple page after working with the app (consuming some memory)


D/dalvikvm(11539): GC_FOR_ALLOC freed 21K, 62% free 8975K/23096K, paused 29ms, total 29ms
I/dalvikvm-heap(11539): Grow heap (frag case) to 11.833MB for 2353172-byte allocation
D/dalvikvm(11539): GC_FOR_ALLOC freed <1K, 52% free 11273K/23096K, paused 25ms, total 25ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 7517K, 59% free 9503K/23096K, paused 32ms, total 32ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 2492K, 63% free 8719K/23096K, paused 23ms, total 23ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 6K, 56% free 10260K/23096K, paused 39ms, total 39ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 3278K, 63% free 8743K/23096K, paused 40ms, total 40ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 790K, 59% free 9476K/23096K, paused 21ms, total 21ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 2399K, 63% free 8743K/23096K, paused 27ms, total 27ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 34K, 56% free 10236K/23096K, paused 21ms, total 21ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 3194K, 63% free 8743K/23096K, paused 28ms, total 29ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 4K, 56% free 10261K/23096K, paused 23ms, total 23ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 4078K, 66% free 7960K/23096K, paused 24ms, total 24ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 6K, 59% free 9477K/23096K, paused 22ms, total 22ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 3231K, 66% free 7960K/23096K, paused 21ms, total 21ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 4K, 59% free 9478K/23096K, paused 24ms, total 25ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 3190K, 66% free 7983K/23096K, paused 30ms, total 30ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 1630K, 66% free 7984K/23096K, paused 20ms, total 20ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 9K, 59% free 9502K/23096K, paused 20ms, total 21ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 3090K, 56% free 10240K/23096K, paused 120ms, total 120ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 3357K, 63% free 8742K/23096K, paused 27ms, total 27ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 1670K, 63% free 8719K/23096K, paused 26ms, total 26ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 4K, 56% free 10260K/23096K, paused 22ms, total 22ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 6478K, 63% free 8745K/23096K, paused 24ms, total 24ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 6K, 56% free 10260K/23096K, paused 35ms, total 35ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 3981K, 66% free 7983K/23096K, paused 25ms, total 25ms
D/dalvikvm(11539): GC_FOR_ALLOC freed 17K, 59% free 9501K/23096K, paused 30ms, total 30ms
F/libc    (11539): Fatal signal 11 (SIGSEGV) at 0x00000017 (code=1), thread 11583 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
Revision: '8'
pid: 11539, tid: 11583, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000017
    r0 00000013  r1 00000000  r2 00000000  r3 00000000
    r4 6287bb38  r5 63ae9f00  r6 6287bb84  r7 6c9c27fc
    r8 6abba2ec  r9 00000000  sl 40097801  fp 4009770a
    ip 627750d4  sp 6287bb20  lr 62104701  pc 621dd4a0  cpsr 600d0030
    d0  3534373137353631  d1  5f62757453676e69
    d2  434f61614379e73c  d3  434f61614379e73c
    d4  3ff000004389ddb6  d5  bff00000408b6de0
    d6  bff0000000000000  d7  0049f2016902f400
    d8  0000000000000000  d9  0000000000000000
    d10 0000000000000000  d11 0000000000000000
    d12 0000000000000000  d13 0000000000000000
    d14 0000000000000000  d15 0000000000000000
    d16 3fddc94000000000  d17 3fe6b851eb851eb8
    d18 406ba00000000000  d19 0000000000000000
    d20 4070704640000000  d21 406b925220000000
    d22 406f8fd6e0000000  d23 406bf55080000000
    d24 0000000000000000  d25 3fe6a09e5e33bca9
    d26 0000000000000000  d27 bf56816d3012689d
    d28 0000000000000000  d29 3ff921fb54442d18
    d30 0000000000000000  d31 3ff921fb54442d18
    scr 80000093
backtrace:
    #00  pc 000df4a0  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
    #01  pc 000066fd  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
stack:
         6287bae0  6274c434  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6287bae4  6287bb84
         6287bae8  6274b020  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6287baec  63d4c010
         6287baf0  6287bb1c
         6287baf4  6277cc88
         6287baf8  616aa41b  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6287bafc  00000000
         6287bb00  00000000
         6287bb04  69ed6000
         6287bb08  00000001
         6287bb0c  63d4c318
         6287bb10  62730768  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6287bb14  6263a11b  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6287bb18  66ff0288
         6287bb1c  6274b020  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
    #00  6287bb20  63ae9f00
         ........  ........
    #01  6287bb20  63ae9f00
         6287bb24  6abba2ec
         6287bb28  6c9c27fc
         6287bb2c  623060a1  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
6287bb30  63ae9f00
         6287bb34  63ae9e20
         6287bb38  00000000
         6287bb3c  00000000
         6287bb40  63ae9f00
         6287bb44  6abba2ec
         6287bb48  6c9c27fc
         6287bb4c  62306087  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6287bb50  63ae9e20
         6287bb54  6211c283  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         6287bb58  00000000
         6287bb5c  69ed605c
memory near r4:
    6287bb18 66ff0288 6274b020 63ae9f00 6abba2ec
    6287bb28 6c9c27fc 623060a1 63ae9f00 63ae9e20
    6287bb38 00000000 00000000 63ae9f00 6abba2ec
    6287bb48 6c9c27fc 62306087 63ae9e20 6211c283
    6287bb58 00000000 69ed605c 6c9c27fc 6211c4ab
    6287bb68 63cc5a20 00000000 00000000 00000000
    6287bb78 00000000 00000000 00000000 69ed605c
    6287bb88 63d595a8 00000000 00000000 63d55a28
    6287bb98 63d55a18 6abba1b0 616a5cfa 6287bbb8
    6287bba8 00000000 63cc5a20 51f959f0 621178c7
    6287bbb8 00000000 00000000 51f958d0 51f958e0
    6287bbc8 63cc5a08 6210d881 63cc5a08 63cc5a20
    6287bbd8 63cc5a20 62110f6f 6d615ea0 00000000
    6287bbe8 00000037 62110f7b 00000037 40094d8d
6287bbf8 51f959a8 400957bd 00000000 3ff00000
    6287bc08 00000000 00000001 00000037 4009770a
memory near r5:
    63ae9ee0 679bad18 679bad20 679bad20 00000349
    63ae9ef0 00000000 00000013 00000001 00000000
    63ae9f00 00000000 00000013 00000001 00000000
    63ae9f10 00000000 00000013 00000002 00000001
    63ae9f20 00000000 0000005b 41a8e260 41400000
    63ae9f30 3f800000 00000000 00000000 00000000
    63ae9f40 00000000 00000000 00000000 00000000
    63ae9f50 00000000 00000000 00000000 ffffffff
    63ae9f60 00000000 40800000 0b000500 5cb063f8
    63ae9f70 00000001 00000001 00000006 00000013
    63ae9f80 6276ee1c 5cb1b530 00000010 00000023
    63ae9f90 40333e60 63ade6a0 40333d10 400474b8
    63ae9fa0 00000000 05180516 00000020 0000001b
    63ae9fb0 000a0184 0104000b 0a090b0b 090a0909
    63ae9fc0 00000018 0000001b 627711a0 63d76968
    63ae9fd0 6272feb0 00000000 00000018 0000001b
memory near r6:
    6287bb64 6211c4ab 63cc5a20 00000000 00000000
    6287bb74 00000000 00000000 00000000 00000000
    6287bb84 69ed605c 63d595a8 00000000 00000000
    6287bb94 63d55a28 63d55a18 6abba1b0 616a5cfa
    6287bba4 6287bbb8 00000000 63cc5a20 51f959f0
    6287bbb4 621178c7 00000000 00000000 51f958d0
    6287bbc4 51f958e0 63cc5a08 6210d881 63cc5a08
    6287bbd4 63cc5a20 63cc5a20 62110f6f 6d615ea0
    6287bbe4 00000000 00000037 62110f7b 00000037
    6287bbf4 40094d8d 51f959a8 400957bd 00000000
    6287bc04 3ff00000 00000000 00000001 00000037
    6287bc14 4009770a 8d327f80 3f41f5a6 00000001
6287bc24 3f115255 00000037 00000000 e844c44f
    6287bc34 3f115255 20000093 3f3a78dc 40000000
    6287bc44 e58861b0 e5887e88 3f3a78dc 00000000
    6287bc54 3f115255 20000093 e58861b0 40000000
memory near r7:
    6c9c27dc 01010101 01010101 01010101 62751600
    6c9c27ec 00000013 66d7f3c8 00000000 00000010
    6c9c27fc 0000001b 627424e0 00000001 6c9c2818
    6c9c280c 68073bd0 62751664 00000013 ffffffff
    6c9c281c 75f4b469 62751664 00000029 69ae11b0
    6c9c282c 6836ccc8 01010101 01010101 01000501
    6c9c283c 01010101 01010101 01010101 00000028
    6c9c284c 00000032 62736e44 00000002 00002a8a
    6c9c285c 42982bd7 438d1d39 4358217b 4398c2fb
    6c9c286c 00000000 698b61b0 00000000 698b6180
    6c9c287c 00000023 62733798 682fdba0 00000001
    6c9c288c 6c9c28a0 ffffffff 00000001 00000000
    6c9c289c 00000063 00000002 40800000 40800000
    6c9c28ac 438cbc18 439c981a 6c9c2900 6c9c2972
    6c9c28bc 0000000a 0000000d 00000000 6c9c2978
    6c9c28cc 0000000a 00000004 00000000 00000001
memory near r8:
    6abba2cc 6893c3b8 63cd5008 00000000 00000001
    6abba2dc 00000001 00000040 0000001a 62734274
    6abba2ec 63ae9e20 63ae9f18 6c9c27fc 00000018
    6abba2fc 00000033 6c7d0d1a 778c6fa1 3189bef1
    6abba30c f3175f46 0b3339a6 e624e5e4 edc8c6c6
    6abba31c c833237d 00006956 ffff0000 00000030
    6abba32c 0000001b 689364c8 689364b8 6dfed8a0
    6abba33c 6dfed8e8 42e97800 0000002b 6574614d
    6abba34c 6c616972 6e6f6349 72740073 67694c61
6abba35c 69007468 00000000 00000000 00000028
    6abba36c 00000033 62736074 00000001 00000000
    6abba37c 4398c2fb 00000000 00000000 00000000
    6abba38c 00000000 00000000 00000000 00000000
    6abba39c 00000043 62736020 00000001 00000004
    6abba3ac 00000004 6a3fcfa8 6c097204 6c09725c
    6abba3bc 6c0972f8 00000000 00000000 00000100
memory near sl:
    400977e0 7665206c 73746e65 25783020 6e6f2078
    400977f0 6b617720 65722065 70206461 2e657069
    40097800 6e674900 6e69726f 6e752067 65707865
    40097810 64657463 6f706520 65206c6c 746e6576
    40097820 78302073 6f207825 6466206e 20642520
    40097830 74616874 20736920 6c206f6e 65676e6f
    40097840 65722072 74736967 64657265 6f43002e
    40097850 20646c75 20746f6e 61657263 77206574
    40097860 20656b61 65706970 6520202e 6f6e7272
    40097870 0064253d 6c756f43 6f6e2064 616d2074
    40097880 7720656b 20656b61 64616572 70697020
    40097890 6f6e2065 6c622d6e 696b636f 202e676e
    400978a0 72726520 253d6f6e 6f430064 20646c75
    400978b0 20746f6e 656b616d 6b617720 72772065
    400978c0 20657469 65706970 6e6f6e20 6f6c622d
    400978d0 6e696b63 20202e67 6e727265 64253d6f
memory near fp:
    400976e8 20736570 69687428 70253d73 6872202c
    400976f8 70253d73 65720029 746c7573 203d2120
    40097708 6f4c0030 7265706f 756f4300 6e20646c
    40097718 6120746f 636f6c6c 20657461 20534c54
    40097728 2e79656b 68747000 64616572 636e6f5f
    40097738 61662065 64656c69 43005700 646c756f
    40097748 746f6e20 69727720 77206574 20656b61
    40097758 6e676973 202c6c61 6e727265 64253d6f
    40097768 72724500 7220726f 766f6d65 20676e69
    40097778 6c6f7065 7665206c 73746e65 726f6620
40097788 20646620 202c6425 6e727265 64253d6f
    40097798 6c6f5000 6166206c 64656c69 74697720
    400977a8 6e612068 656e7520 63657078 20646574
    400977b8 6f727265 65202c72 6f6e7272 0064253d
    400977c8 6f6e6749 676e6972 656e7520 63657078
    400977d8 20646574 6c6f7065 7665206c 73746e65
memory near ip:
    627750b4 4013f46d 40142249 40142449 40128649
    627750c4 401423d9 40142275 40127149 4012714d
    627750d4 40121a28 40134590 5ca4d015 5ca4cfff
    627750e4 5ca4cfc1 5ca4cfdd 5ca4cfe9 5ca4d081
    627750f4 5ca4cfd9 5ca4cfcd 40136150 401344bc
    62775104 40141cdd 40134ddc 40134a54 4014e8cb
    62775114 40134cbc 40134cdc 401348ec 40134680
    62775124 40134ac8 40126d85 40134640 400c5dad
    62775134 400c5f31 400c5dfd 400c5e81 4018c3b1
    62775144 4014e8bd 40128695 40139f2d 4013a1d9
    62775154 40128d0d 40139911 40139b89 40121d29
    62775164 40121d51 40128b29 4013a1d5 40121d15
    62775174 4013f7f9 40136938 4014e8bd 4014e8cb
    62775184 4014e8c1 40014998 4001f3a0 4001b488
    62775194 4014e613 40022460 400249a8 40025210
    627751a4 40015538 40025a18 40016600 40023ec8
memory near sp:
    6287bb00 00000000 69ed6000 00000001 63d4c318
    6287bb10 62730768 6263a11b 66ff0288 6274b020
    6287bb20 63ae9f00 6abba2ec 6c9c27fc 623060a1
    6287bb30 63ae9f00 63ae9e20 00000000 00000000
    6287bb40 63ae9f00 6abba2ec 6c9c27fc 62306087
    6287bb50 63ae9e20 6211c283 00000000 69ed605c
    6287bb60 6c9c27fc 6211c4ab 63cc5a20 00000000
    6287bb70 00000000 00000000 00000000 00000000
    6287bb80 00000000 69ed605c 63d595a8 00000000
    6287bb90 00000000 63d55a28 63d55a18 6abba1b0
6287bba0 616a5cfa 6287bbb8 00000000 63cc5a20
    6287bbb0 51f959f0 621178c7 00000000 00000000
    6287bbc0 51f958d0 51f958e0 63cc5a08 6210d881
    6287bbd0 63cc5a08 63cc5a20 63cc5a20 62110f6f
    6287bbe0 6d615ea0 00000000 00000037 62110f7b
    6287bbf0 00000037 40094d8d 51f959a8 400957bd
code around pc:
    621dd480 e85c8f5b 1e532f00 3100e84c d1f82900
    621dd490 f3bf2a00 d0008f5b 68014770 47086909
    621dd4a0 f1006843 f3bf0c04 e0048f5b 8f2ff3bf
    621dd4b0 8f5bf3bf 1c594613 2000bf04 e85c4770
    621dd4c0 429a2f00 f3bfd1f2 e84c8f5b 2b001300
    621dd4d0 f3bfd1ee 47708f5b f079b580 b900e2c2
    621dd4e0 4902bd80 f7274479 bf00f98e ff4d3baf
    621dd4f0 b4fef078 4604b510 f80af000 4620b908
    621dd500 4902bd10 f7274479 bf00f97e ff4d3a81
    621dd510 4604b57c f079a801 4605e2b4 a801b9d8
    621dd520 f0792101 b120e2b6 a8014605 e2b8f079
    621dd530 ae01e011 46314620 e2baf079 46304605
    621dd540 e2aef079 4606b93d 4620b120 e2b8f079
    621dd550 e0004635 46282500 bd70b002 4604b510
    621dd560 e2aef079 bd104620 f079b580 b900e27a
    621dd570 4902bd80 f7274479 bf00f946 ff4d3b15
code around lr:
    621046e0 fc3ef031 f7fda802 bd7fffe8 460db5b0
    621046f0 e9c02100 46041100 b1386868 fed0f0d8
    62104700 60602800 6828d001 bdb06020 bdb06061
    62104710 4604b510 b1086840 feabf0d8 bd104620
62104720 b0a7b5f0 68004604 69824925 46204479
    62104730 28004790 4607d040 f0d82004 4621ff55
    62104740 f7fb463a 4e1fff0f 447e6801 60302900
    62104750 4a1dd10d 481d2103 447a2362 90004478
    62104760 f008a802 f008fc0b 6830fcb1 68206801
    62104770 4b184a17 51c4f8d0 447b447a 47a84620
    62104780 60702800 4a14d10b 48142103 447a2367
    62104790 90004478 f008a802 f008fbf1 6820fc97
    621047a0 23014639 635cf8d0 4a0d4620 47b0447a
    621047b0 f080fab0 e0000940 b0272000 bf00bdf0
    621047c0 ff5b790d 00671cf2 ff5b0cba ff5d11ea
    621047d0 ff5ae460 ff5b5721 ff5b0c86 ff596cee
!@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 11539
Lost connection to device.

@p30arena
Copy link
Contributor Author

might be related
#31844

@p30arena
Copy link
Contributor Author

@jason-simmons
I think this issue is serious,
it appears not to be an OOM

@jason-simmons
Copy link
Member

Can you provide a code example that we could use to reproduce this locally?

@p30arena
Copy link
Contributor Author

p30arena commented Jul 24, 2019

@jason-simmons

I think you need the whole project to reproduce the crash.
as someone mentioned in #31844 I have to work with the app a couple of times, then the crash happens on that page.
also, on some devices, there's no need to spend time in the app.
once the navigator.push is called, the crash happens "on that page".

I'm planning to provide the tombstones of those devices too.

Might be related #36176

@p30arena
Copy link
Contributor Author

Didn't experience these errors on prev versions of flutter.

again on face detection

[√] Flutter (Channel master, v1.8.2-pre.163, on Microsoft Windows [Version 6.3.9600], locale en-US)
    • Flutter version 1.8.2-pre.163 at M:\flutter
    • Framework revision 9946f7cff9 (8 hours ago), 2019-07-23 17:25:39 -0700
    • Engine revision 8ed5da8b65
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 fedd74669a)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at D:\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = D:\Android\sdk
    • Java binary at: C:\Program Files\Java\jdk1.8.0_45\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[√] Connected device (1 available)
    • GT N5100 • 4103521602c140e7 • android-arm • Android 4.4.2 (API 19)

! Doctor found issues in 1 category.
D/dalvikvm(29289): GC_FOR_ALLOC freed 2692K, 27% free 9447K/12920K, paused 20ms, total 20ms
D/dalvikvm(29289): GC_FOR_ALLOC freed 2541K, 35% free 8505K/12920K, paused 16ms, total 16ms
F/libc    (29289): Fatal signal 11 (SIGSEGV) at 0xfffffffc (code=1), thread 29371 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
Revision: '8'
pid: 29289, tid: 29371, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr fffffffc
    r0 fffffff4  r1 6832f300  r2 00000000  r3 00000000
    r4 fffffff4  r5 684393bc  r6 628a3b84  r7 6832f314
    r8 684393bc  r9 00000000  sl 40097801  fp 4009770a
    ip 6279d0d4  sp 628a3b30  lr 6232e087  pc 6232e094  cpsr 800d0030
    d0  4031c00000000910  d1  4061c00000000000
    d2  697369765f6c6d5f  d3  62657269662f6e6f
    d4  4082c782f0462637  d5  c1ca6da3c1ca6da3
    d6  4054327a91d9b592  d7  0000000000000000
    d8  0000000000000000  d9  0000000000000000
    d10 0000000000000000  d11 0000000000000000
    d12 0000000000000000  d13 0000000000000000
    d14 0000000000000000  d15 0000000000000000
    d16 3fe2200000000000  d17 3fe6b851eb851eb8
    d18 0000000000000000  d19 0000000000000000
    d20 0000000000000000  d21 428b007643bef8cc
    d22 0000000000000000  d23 400921fb54442d18
    d24 0000000000000000  d25 3fe6a09e5e33bca9
    d26 0000000000000000  d27 bf56816d3012689d
    d28 0000000000000000  d29 3fe921fb48885a30
    d30 0000000000000000  d31 3ff921fb54442d18
    scr 80000093
backtrace:
    #00  pc 00208094  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
    #01  pc 00208083  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
stack:
         628a3af0  628a3b1c
         628a3af4  627a4c88
         628a3af8  616d241b  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         628a3afc  00000000
         628a3b00  00000000
         628a3b04  687ab600
         628a3b08  00000001
         628a3b0c  63b1da48
         628a3b10  62758768  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         628a3b14  6266211b  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         628a3b18  64bbe238
         628a3b1c  62773020  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         628a3b20  5cb0f61c
         628a3b24  5cb0f61c
         628a3b28  628a3b84
         628a3b2c  6832f308
    #00  628a3b30  fffffff4
         ........  ........
    #01  628a3b30  fffffff4
         628a3b34  6832f300
         628a3b38  00000000
         628a3b3c  00000000
         628a3b40  fffffff4
         628a3b44  684393bc
         628a3b48  6832f314
         628a3b4c  6232e087  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         628a3b50  6832f300
         628a3b54  62144283  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         628a3b58  00000000
         628a3b5c  687ab664
         628a3b60  6832f314
         628a3b64  621444ab  /data/app-lib/ir.yabco.flutter.goggles-1/libflutter.so
         628a3b68  64b8f768
         628a3b6c  00000000
memory near r1:
    6832f2e0 00000000 00000000 00000000 00000000
    6832f2f0 00000000 00000001 00000000 00000019
    6832f300 686faae0 00000013 64f00d68 401621b8
    6832f310 00000010 00000073 626e7c10 626e7c60
    6832f320 626ea500 626f0fc0 626f0fb0 00000004
    6832f330 6832f388 00000001 67ace0b8 62764630
    6832f340 4470ffe8 00000fe4 00000fe5 626f0fc0
    6832f350 68f36c40 68f36c40 68f36c60 fffafafa
    6832f360 ff000000 3faa6667 bf800000 00000000
    6832f370 00000000 64aff9a8 ffffffff 00000000
    6832f380 752c7301 00000043 626eacb0 626ec9e8
    6832f390 00000000 00000e9c 000022e4 0f1c09e1
    6832f3a0 00000000 00000000 000e0800 0000317c
    6832f3b0 626eaca0 00006310 00000000 00000000
    6832f3c0 00000000 0000001b 6275bd50 64d8ebe0
    6832f3d0 00000001 648acd38 00000018 00000043
memory near r5:
    6843939c 423386f0 000b9a40 00000000 64f07500
    684393ac 00000000 41933130 00000001 20c00035
    684393bc 6832f300 00000000 6832f314 00000058
    684393cc 0000002b 63eb3508 00000000 684393d8
    684393dc 684393d8 00000000 00000000 00000000
    684393ec 5cc37fb0 00000000 0000006b 102a7400
    684393fc 6ae67400 68a7e248 67adb480 102a7400
    6843940c 00000400 0000000a 00000040 00000001
    6843941c 00000001 00000001 00000071 00000001
    6843942c 00000000 00000000 5cadbf48 00000001
    6843943c 00000000 00000000 63e8c080 00000000
    6843944c 6ae67400 00000000 0000003f 43300000
    6843945c 00000083 68439e40 68439f30 68439f30
    6843946c 00000000 0000000a 01000001 00000000
    6843947c 3fdcc000 00000000 405e4000 00000000
    6843948c 0000000f c1c6f86f c1af4dea 412f4dea
memory near r6:
    628a3b64 621444ab 64b8f768 00000000 00000000
    628a3b74 00000000 00000000 00000000 00000000
    628a3b84 687ab664 63eb3d88 00000000 00000000
    628a3b94 5e18d2d8 5e18d2c8 68f39080 616cdcfa
    628a3ba4 628a3bb8 00000000 64b8f768 5caab4c8
    628a3bb4 6213f8c7 00000000 00000000 5caab3d8
    628a3bc4 5caab3e8 64b8f738 62135881 64b8f738
    628a3bd4 64b8f768 64b8f768 62138f6f 64d80810
    628a3be4 00000000 00000036 62138f7b 00000036
    628a3bf4 40094d8d 5caab480 400957bd 00000000
    628a3c04 00000000 43bef8cc 00000001 00000036
    628a3c14 4009770a 54442d18 400921fb 00000001
    628a3c24 00000000 00000036 00000000 00000000
    628a3c34 00000000 3012689d bf56816d 00000000
    628a3c44 00000000 48885a30 3fe921fb 00000000
    628a3c54 00000000 54442d18 3ff921fb 20000093
memory near r7:
    6832f2f4 00000001 00000000 00000019 686faae0
    6832f304 00000013 64f00d68 401621b8 00000010
    6832f314 00000073 626e7c10 626e7c60 626ea500
    6832f324 626f0fc0 626f0fb0 00000004 6832f388
    6832f334 00000001 67ace0b8 62764630 4470ffe8
    6832f344 00000fe4 00000fe5 626f0fc0 68f36c40
    6832f354 68f36c40 68f36c60 fffafafa ff000000
    6832f364 3faa6667 bf800000 00000000 00000000
    6832f374 64aff9a8 ffffffff 00000000 752c7301
    6832f384 00000043 626eacb0 626ec9e8 00000000
    6832f394 00000e9c 000022e4 0f1c09e1 00000000
    6832f3a4 00000000 000e0800 0000317c 626eaca0
    6832f3b4 00006310 00000000 00000000 00000000
    6832f3c4 0000001b 6275bd50 64d8ebe0 00000001
    6832f3d4 648acd38 00000018 00000043 687ff268
    6832f3e4 687ff290 687ff290 63c5af48 63c5af50
memory near r8:
    6843939c 423386f0 000b9a40 00000000 64f07500
    684393ac 00000000 41933130 00000001 20c00035
    684393bc 6832f300 00000000 6832f314 00000058
    684393cc 0000002b 63eb3508 00000000 684393d8
    684393dc 684393d8 00000000 00000000 00000000
    684393ec 5cc37fb0 00000000 0000006b 102a7400
    684393fc 6ae67400 68a7e248 67adb480 102a7400
    6843940c 00000400 0000000a 00000040 00000001
    6843941c 00000001 00000001 00000071 00000001
    6843942c 00000000 00000000 5cadbf48 00000001
    6843943c 00000000 00000000 63e8c080 00000000
    6843944c 6ae67400 00000000 0000003f 43300000
    6843945c 00000083 68439e40 68439f30 68439f30
    6843946c 00000000 0000000a 01000001 00000000
    6843947c 3fdcc000 00000000 405e4000 00000000
    6843948c 0000000f c1c6f86f c1af4dea 412f4dea
memory near sl:
    400977e0 7665206c 73746e65 25783020 6e6f2078
    400977f0 6b617720 65722065 70206461 2e657069
    40097800 6e674900 6e69726f 6e752067 65707865
    40097810 64657463 6f706520 65206c6c 746e6576
    40097820 78302073 6f207825 6466206e 20642520
    40097830 74616874 20736920 6c206f6e 65676e6f
    40097840 65722072 74736967 64657265 6f43002e
    40097850 20646c75 20746f6e 61657263 77206574
    40097860 20656b61 65706970 6520202e 6f6e7272
    40097870 0064253d 6c756f43 6f6e2064 616d2074
    40097880 7720656b 20656b61 64616572 70697020
    40097890 6f6e2065 6c622d6e 696b636f 202e676e
    400978a0 72726520 253d6f6e 6f430064 20646c75
    400978b0 20746f6e 656b616d 6b617720 72772065
    400978c0 20657469 65706970 6e6f6e20 6f6c622d
    400978d0 6e696b63 20202e67 6e727265 64253d6f
memory near fp:
    400976e8 20736570 69687428 70253d73 6872202c
    400976f8 70253d73 65720029 746c7573 203d2120
    40097708 6f4c0030 7265706f 756f4300 6e20646c
    40097718 6120746f 636f6c6c 20657461 20534c54
    40097728 2e79656b 68747000 64616572 636e6f5f
    40097738 61662065 64656c69 43005700 646c756f
    40097748 746f6e20 69727720 77206574 20656b61
    40097758 6e676973 202c6c61 6e727265 64253d6f
    40097768 72724500 7220726f 766f6d65 20676e69
    40097778 6c6f7065 7665206c 73746e65 726f6620
    40097788 20646620 202c6425 6e727265 64253d6f
    40097798 6c6f5000 6166206c 64656c69 74697720
    400977a8 6e612068 656e7520 63657078 20646574
    400977b8 6f727265 65202c72 6f6e7272 0064253d
    400977c8 6f6e6749 676e6972 656e7520 63657078
    400977d8 20646574 6c6f7065 7665206c 73746e65
memory near ip:
    6279d0b4 4013f46d 40142249 40142449 40128649
    6279d0c4 401423d9 40142275 40127149 4012714d
    6279d0d4 40121a28 40134590 5ca4d015 5ca4cfff
    6279d0e4 5ca4cfc1 5ca4cfdd 5ca4cfe9 5ca4d081
    6279d0f4 5ca4cfd9 5ca4cfcd 40136150 401344bc
    6279d104 40141cdd 40134ddc 40134a54 4014e8cb
    6279d114 40134cbc 40134cdc 401348ec 40134680
    6279d124 40134ac8 40126d85 40134640 400c5dad
    6279d134 400c5f31 400c5dfd 400c5e81 4018c3b1
    6279d144 4014e8bd 40128695 40139f2d 4013a1d9
    6279d154 40128d0d 40139911 40139b89 40121d29
    6279d164 40121d51 40128b29 4013a1d5 40121d15
    6279d174 4013f7f9 40136938 4014e8bd 4014e8cb
    6279d184 4014e8c1 40014998 4001f3a0 4001b488
    6279d194 4014e613 40022460 400249a8 40025210
    6279d1a4 40015538 40025a18 40016600 40023ec8
memory near sp:
    628a3b10 62758768 6266211b 64bbe238 62773020
    628a3b20 5cb0f61c 5cb0f61c 628a3b84 6832f308
    628a3b30 fffffff4 6832f300 00000000 00000000
    628a3b40 fffffff4 684393bc 6832f314 6232e087
    628a3b50 6832f300 62144283 00000000 687ab664
    628a3b60 6832f314 621444ab 64b8f768 00000000
    628a3b70 00000000 00000000 00000000 00000000
    628a3b80 00000000 687ab664 63eb3d88 00000000
    628a3b90 00000000 5e18d2d8 5e18d2c8 68f39080
    628a3ba0 616cdcfa 628a3bb8 00000000 64b8f768
    628a3bb0 5caab4c8 6213f8c7 00000000 00000000
    628a3bc0 5caab3d8 5caab3e8 64b8f738 62135881
    628a3bd0 64b8f738 64b8f768 64b8f768 62138f6f
    628a3be0 64d80810 00000000 00000036 62138f7b
    628a3bf0 00000036 40094d8d 5caab480 400957bd
    628a3c00 00000000 00000000 43bef8cc 00000001
code around pc:
    6232e074 f3334620 60a8fe5d b510bd7c f0004604
    6232e084 4620f805 4010e8bd bb40f5fe 4604b5bf
    6232e094 b1c06880 4621a802 fb26f5fe b1789802
    6232e0a4 466d68c1 f0014628 68a0f9ee f884f334
    6232e0b4 f6224620 2000fef9 462860a0 f9f5f001
    6232e0c4 f5fca802 bdbffaf8 b1086880 bc74f333
    6232e0d4 47702000 4604b5b0 fff6f7ff 46204605
    6232e0e4 ffd4f7ff bdb04628 68c9b510 f0014604
    6232e0f4 f334f9ca 4620fba9 b510bd10 68084604
    6232e104 462068c1 f9bff001 fb9ef334 bd104620
    6232e114 4604b510 f6203008 4620fe01 4010e8bd
    6232e124 b9c3f001 41f0e92d 48144604 4914460e
    6232e134 27004478 46904479 203c6805 e9c43108
    6232e144 e9c41700 47a87702 f8daf7ff 20206120
    6232e154 f7ff47a8 6160fd7e 47a82020 f0004631
    6232e164 61a0fa25 0020f104 f5f94641 4620fbf6
code around lr:
    6232e064 4628f8e0 f6214631 4630f8c9 fb4ef5fe
    6232e074 f3334620 60a8fe5d b510bd7c f0004604
    6232e084 4620f805 4010e8bd bb40f5fe 4604b5bf
    6232e094 b1c06880 4621a802 fb26f5fe b1789802
    6232e0a4 466d68c1 f0014628 68a0f9ee f884f334
    6232e0b4 f6224620 2000fef9 462860a0 f9f5f001
    6232e0c4 f5fca802 bdbffaf8 b1086880 bc74f333
    6232e0d4 47702000 4604b5b0 fff6f7ff 46204605
    6232e0e4 ffd4f7ff bdb04628 68c9b510 f0014604
    6232e0f4 f334f9ca 4620fba9 b510bd10 68084604
    6232e104 462068c1 f9bff001 fb9ef334 bd104620
    6232e114 4604b510 f6203008 4620fe01 4010e8bd
    6232e124 b9c3f001 41f0e92d 48144604 4914460e
    6232e134 27004478 46904479 203c6805 e9c43108
    6232e144 e9c41700 47a87702 f8daf7ff 20206120
    6232e154 f7ff47a8 6160fd7e 47a82020 f0004631
memory map around fault addr fffffffc:
    ffff0000-ffff1000 r-x [vectors]
    (no map for address)
    (no map above)
!@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 29289
Lost connection to device.

@p30arena
Copy link
Contributor Author

p30arena commented Jul 24, 2019

I found two pages that are prone to crash:
1- A page using firebase_ml_vision for face detection, the crash is random, and usually happens on the first run after installation, on devices with android versions < 5
2- A page using CustomPainter and 2 sliders, the crash is instant on some device models, and on other models, happens if some time spent on the app, the app has a heavy usage of PlatformChannels (using Canvas on the Native Side)

These were working OK a month ago, these crashes are happening since last week or two.

@p30arena
Copy link
Contributor Author

@jason-simmons @dnfield @GaryQian
Can this be related to this #34545 ?

@p30arena p30arena changed the title App crashes when pushing a specific page on specific phone models App crashes when displaying specific pages Jul 24, 2019
@p30arena p30arena changed the title App crashes when displaying specific pages App crashes when displaying specific widgets Jul 24, 2019
@dnfield
Copy link
Contributor

dnfield commented Jul 25, 2019

We need to know the hash of Flutter you're using so we can symbolicate these. Or, if you can symbolicate them that would be very helpful.

@p30arena
Copy link
Contributor Author

p30arena commented Jul 26, 2019

@dnfield

engine.version 0861e0a

doctor

PS C:\Users\W> flutter doctor -v
[√] Flutter (Channel master, v1.8.2-pre.190, on Microsoft Windows [Version 6.3.9600], locale en-US)
    ΓÇó Flutter version 1.8.2-pre.190 at M:\flutter
    ΓÇó Framework revision fea3897ab8 (46 minutes ago), 2019-07-25 21:07:36 -0400
    ΓÇó Engine revision 0861e0a769
    ΓÇó Dart version 2.5.0 (build 2.5.0-dev.1.0 a2aec5eb06)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    ΓÇó Android SDK at D:\Android\sdk
    ΓÇó Android NDK location not configured (optional; useful for native profiling support)
    ΓÇó Platform android-28, build-tools 28.0.3
    ΓÇó ANDROID_HOME = D:\Android\sdk
    ΓÇó Java binary at: C:\Program Files\Java\jdk1.8.0_45\bin\java
    ΓÇó Java version Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
    ΓÇó All Android licenses accepted.

[!] Android Studio (not installed)
    ΓÇó Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

crash

D/dalvikvm(25859): GC_FOR_ALLOC freed 10255K, 60% free 7825K/19232K, paused 14ms, total 14ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 3121K, 23% free 5837K/7536K, paused 18ms, total 18ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 33K, 20% free 6817K/8504K, paused 11ms, total 11ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 2K, 18% free 7799K/9472K, paused 12ms, total 12ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 1K, 16% free 8780K/10440K, paused 10ms, total 10ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 12161K, 70% free 5864K/19212K, paused 16ms, total 16ms
D/dalvikvm(25859): GC_CONCURRENT freed 33K, 60% free 7782K/19212K, paused 2ms+3ms, total 17ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 3154K, 23% free 5836K/7536K, paused 15ms, total 15ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 6K, 20% free 6816K/8504K, paused 12ms, total 12ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 5K, 18% free 7840K/9472K, paused 13ms, total 13ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 1K, 16% free 8805K/10440K, paused 14ms, total 14ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 13272K, 23% free 5824K/7536K, paused 16ms, total 16ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 67K, 20% free 6818K/8504K, paused 11ms, total 11ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 2K, 18% free 7800K/9472K, paused 11ms, total 12ms
D/dalvikvm(25859): GC_FOR_ALLOC freed <1K, 16% free 8781K/10440K, paused 12ms, total 12ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 11169K, 65% free 6822K/19212K, paused 13ms, total 13ms
D/dalvikvm(25859): GC_CONCURRENT freed 1078K, 60% free 7784K/19212K, paused 3ms+1ms, total 19ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 2082K, 35% free 6819K/10432K, paused 26ms, total 26ms
D/dalvikvm(25859): GC_CONCURRENT freed 7K, 16% free 8805K/10432K, paused 2ms+2ms, total 17ms
D/dalvikvm(25859): WAIT_FOR_CONCURRENT_GC blocked 13ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 4002K, 23% free 5861K/7536K, paused 13ms, total 13ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 30K, 20% free 6819K/8504K, paused 10ms, total 11ms
D/dalvikvm(25859): GC_FOR_ALLOC freed 1K, 18% free 7800K/9472K, paused 9ms, total 9ms
F/libc    (25859): Fatal signal 11 (SIGSEGV) at 0xffffffea (code=1), thread 25903 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
Revision: '8'
pid: 25859, tid: 25903, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr ffffffea
    r0 ffffffe2  r1 6850adf0  r2 00000000  r3 00000000
    r4 ffffffe2  r5 677f8b7c  r6 6286fb84  r7 68b7c7b4
    r8 677f8b7c  r9 00000000  sl 401a4801  fp 401a470a
    ip 627690f4  sp 6286fb30  lr 622f911f  pc 622f912c  cpsr a00d0030
    d0  4388cdc743a57912  d1  4388e08d43a57912
    d2  4380080c438aee07  d3  437f6d53438aee07
    d4  3ff0000043963090  d5  bff000003fe6b580
    d6  bff0000000000000  d7  0049f2016a072b78
    d8  0000000000000000  d9  0000000000000000
    d10 0000000000000000  d11 0000000000000000
    d12 0000000000000000  d13 0000000000000000
    d14 0000000000000000  d15 0000000000000000
    d16 ffffffffffffffff  d17 ffffffffffffffff
    d18 0000000000000000  d19 0000000000000000
    d20 40721819e0000000  d21 4070719c30000000
    d22 4071836860000000  d23 4070a02820000000
    d24 0000000000000000  d25 3fe6a09e5e33bca9
    d26 0000000000000000  d27 bf56816d3012689d
    d28 0000000000000000  d29 3ff921fb54442d18
    d30 0000000000000000  d31 3ff921fb54442d18
    scr 80000093
backtrace:
    #00  pc 0020812c  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
    #01  pc 0020811b  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
stack:
         6286faf0  6286fb1c
         6286faf4  62770c88
         6286faf8  6169d465  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
         6286fafc  00000000
         6286fb00  00000000
         6286fb04  6a150d00
         6286fb08  00000001
         6286fb0c  63377314
         6286fb10  62724768  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
         6286fb14  6262e2f3  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
         6286fb18  69a70660
         6286fb1c  6273f040  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
         6286fb20  4000eaec
         6286fb24  4000eaec
         6286fb28  6286fb84
         6286fb2c  68b7c7a8
    #00  6286fb30  ffffffe2
         ........  ........
    #01  6286fb30  ffffffe2
         6286fb34  6850adf0
         6286fb38  00000000
         6286fb3c  00000000
         6286fb40  ffffffe2
         6286fb44  677f8b7c
         6286fb48  68b7c7b4
         6286fb4c  622f911f  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
         6286fb50  6850adf0
         6286fb54  6210f05b  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
         6286fb58  00000000
         6286fb5c  6a150d9c
         6286fb60  68b7c7b4
         6286fb64  6210f283  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
         6286fb68  6a142d60
         6286fb6c  00000000
memory near r1:
    6850add0 00000000 00000000 00000000 00001000
    6850ade0 00000001 00000001 00000520 0000006a
    6850adf0 00000001 00000000 00000000 00000000
    6850ae00 00000000 7033fc28 7033fdc2 00000024
    6850ae10 00000022 00000066 00000000 00000000
    6850ae20 00000000 00000000 00000001 00000000
    6850ae30 00000000 00000000 00000000 00000000
    6850ae40 00000101 0001ac00 00000000 00000000
    6850ae50 00000068 0000006b 53a2548a 00000006
    6850ae60 53a3feda 00000006 53a3ff56 00000006
    6850ae70 53a48d0a 00000006 53a44c92 00000006
    6850ae80 53a4fc5b 00000006 53a4fd32 00000006
    6850ae90 53a59433 00000006 53a50995 00000006
    6850aea0 53a564a3 00000006 53a595ed 00000006
    6850aeb0 53a64fda 00000006 00001975 00000011
    6850aec0 62746010 64d91971 00000010 00000032
memory near r5:
    677f8b5c 00010001 00040005 00020000 00000100
    677f8b6c 00000022 62727798 67be13d8 00000001
    677f8b7c 6850adf0 ffffffee 68b10200 00000020
    677f8b8c 00000033 68b7dc10 62730d24 00000000
    677f8b9c 00000008 00000000 64d6e250 ffffffff
    677f8bac 00000000 00000000 00000000 00000000
    677f8bbc 000003f9 677f8bb8 677f8bb8 00000000
    677f8bcc 64a63d18 401362bc 00000003 62745684
    677f8bdc 6d49b109 62744780 69e66791 62744780
    677f8bec 69fe7671 62744780 69fe74f1 62744780
    677f8bfc 6a0de3d9 62744780 6a0de391 62744780
    677f8c0c 64b57869 62741f54 63300021 62741f54
    677f8c1c 63300021 62741804 6a11b7d9 62745684
    677f8c2c 69e73ba1 62741804 63300021 62741f54
    677f8c3c 63300021 627453c8 6ab8acb1 627453c8
    677f8c4c 6ab8acb1 62744780 6a1027c1 62744780
memory near r6:
    6286fb64 6210f283 6a142d60 00000000 00000000
    6286fb74 00000000 00000000 00000000 00000000
    6286fb84 6a150d9c 6336a008 00000000 00000000
    6286fb94 41a62998 41a62988 648fdef0 61698d5a
    6286fba4 6286fbb8 00000000 6a142d60 5cec3e58
    6286fbb4 6210a69f 00000000 00000000 5ce58448
    6286fbc4 5ce58458 6a142d48 62100659 6a142d48
    6286fbd4 6a142d60 6a142d60 62103d47 64d59d68
    6286fbe4 00000000 00000036 62103d53 00000036
    6286fbf4 401a1d8d 5cec3e10 401a27bd 00000000
    6286fc04 00000000 00000000 00000001 00000036
    6286fc14 401a470a 00000000 3fee2000 00000001
    6286fc24 40718303 00000036 00000000 5e33bca9
    6286fc34 3fe6a09e 00000000 3f2a5e00 3012689d
    6286fc44 bf56816d 4661fc00 3f101b78 54442d18
    6286fc54 3ff921fb 3dccf020 3f6f7c24 54442d18
memory near r7:
    68b7c794 51bbadc8 00000000 00000000 00000000
    68b7c7a4 00000013 6a077ba8 401361b8 00000010
    68b7c7b4 00000023 40f32000 40d0e000 40822000
    68b7c7c4 40aee000 41412000 40e36000 5f626557
    68b7c7d4 00000013 00000000 40456a80 00000000
    68b7c7e4 0000002b 62727798 67922fb0 00000001
    68b7c7f4 69aec528 ffffffff 00000001 00000000
    68b7c804 00000006 00000028 0000001b 68b7c850
    68b7c814 68b7c870 68b7c870 00000001 00000018
    68b7c824 0000002b 401361d0 401361d0 5f626557
    68b7c834 6867694c 40130074 401361c0 6e6f6349
    68b7c844 00000073 00000028 0000002b 00000000
    68b7c854 00000001 00000000 00000000 00000000
    68b7c864 40380000 00000000 00000000 00000000
    68b7c874 0000006b 00000000 00000000 00000000
    68b7c884 00000000 00000000 00000000 00000000
memory near r8:
    677f8b5c 00010001 00040005 00020000 00000100
    677f8b6c 00000022 62727798 67be13d8 00000001
    677f8b7c 6850adf0 ffffffee 68b10200 00000020
    677f8b8c 00000033 68b7dc10 62730d24 00000000
    677f8b9c 00000008 00000000 64d6e250 ffffffff
    677f8bac 00000000 00000000 00000000 00000000
    677f8bbc 000003f9 677f8bb8 677f8bb8 00000000
    677f8bcc 64a63d18 401362bc 00000003 62745684
    677f8bdc 6d49b109 62744780 69e66791 62744780
    677f8bec 69fe7671 62744780 69fe74f1 62744780
    677f8bfc 6a0de3d9 62744780 6a0de391 62744780
    677f8c0c 64b57869 62741f54 63300021 62741f54
    677f8c1c 63300021 62741804 6a11b7d9 62745684
    677f8c2c 69e73ba1 62741804 63300021 62741f54
    677f8c3c 63300021 627453c8 6ab8acb1 627453c8
    677f8c4c 6ab8acb1 62744780 6a1027c1 62744780
memory near sl:
    401a47e0 7665206c 73746e65 25783020 6e6f2078
    401a47f0 6b617720 65722065 70206461 2e657069
    401a4800 6e674900 6e69726f 6e752067 65707865
    401a4810 64657463 6f706520 65206c6c 746e6576
    401a4820 78302073 6f207825 6466206e 20642520
    401a4830 74616874 20736920 6c206f6e 65676e6f
    401a4840 65722072 74736967 64657265 6f43002e
    401a4850 20646c75 20746f6e 61657263 77206574
    401a4860 20656b61 65706970 6520202e 6f6e7272
    401a4870 0064253d 6c756f43 6f6e2064 616d2074
    401a4880 7720656b 20656b61 64616572 70697020
    401a4890 6f6e2065 6c622d6e 696b636f 202e676e
    401a48a0 72726520 253d6f6e 6f430064 20646c75
    401a48b0 20746f6e 656b616d 6b617720 72772065
    401a48c0 20657469 65706970 6e6f6e20 6f6c622d
    401a48d0 6e696b63 20202e67 6e727265 64253d6f
memory near fp:
    401a46e8 20736570 69687428 70253d73 6872202c
    401a46f8 70253d73 65720029 746c7573 203d2120
    401a4708 6f4c0030 7265706f 756f4300 6e20646c
    401a4718 6120746f 636f6c6c 20657461 20534c54
    401a4728 2e79656b 68747000 64616572 636e6f5f
    401a4738 61662065 64656c69 43005700 646c756f
    401a4748 746f6e20 69727720 77206574 20656b61
    401a4758 6e676973 202c6c61 6e727265 64253d6f
    401a4768 72724500 7220726f 766f6d65 20676e69
    401a4778 6c6f7065 7665206c 73746e65 726f6620
    401a4788 20646620 202c6425 6e727265 64253d6f
    401a4798 6c6f5000 6166206c 64656c69 74697720
    401a47a8 6e612068 656e7520 63657078 20646574
    401a47b8 6f727265 65202c72 6f6e7272 0064253d
    401a47c8 6f6e6749 676e6972 656e7520 63657078
    401a47d8 20646574 6c6f7065 7665206c 73746e65
memory near ip:
    627690d4 4011346d 40116249 40116449 400fc649
    627690e4 401163d9 40116275 400fb149 400fb14d
    627690f4 400f5a28 40108590 5ce0c015 5ce0bfff
    62769104 5ce0bfc1 5ce0bfdd 5ce0bfe9 5ce0c081
    62769114 5ce0bfd9 5ce0bfcd 4010a150 401084bc
    62769124 40115cdd 40108ddc 40108a54 401228cb
    62769134 40108cbc 40108cdc 401088ec 40108680
    62769144 40108ac8 400fad85 40108640 40076dad
    62769154 40076f31 40076dfd 40076e81 4018e3b1
    62769164 401228bd 400fc695 4010df2d 4010e1d9
    62769174 400fcd0d 4010d911 4010db89 400f5d29
    62769184 400f5d51 400fcb29 4010e1d5 400f5d15
    62769194 401137f9 4010a938 401228bd 401228cb
    627691a4 401228c1 40146998 401513a0 4014d488
    627691b4 40122613 40154460 401569a8 40157210
    627691c4 40147538 40157a18 40148600 40155ec8
memory near sp:
    6286fb10 62724768 6262e2f3 69a70660 6273f040
    6286fb20 4000eaec 4000eaec 6286fb84 68b7c7a8
    6286fb30 ffffffe2 6850adf0 00000000 00000000
    6286fb40 ffffffe2 677f8b7c 68b7c7b4 622f911f
    6286fb50 6850adf0 6210f05b 00000000 6a150d9c
    6286fb60 68b7c7b4 6210f283 6a142d60 00000000
    6286fb70 00000000 00000000 00000000 00000000
    6286fb80 00000000 6a150d9c 6336a008 00000000
    6286fb90 00000000 41a62998 41a62988 648fdef0
    6286fba0 61698d5a 6286fbb8 00000000 6a142d60
    6286fbb0 5cec3e58 6210a69f 00000000 00000000
    6286fbc0 5ce58448 5ce58458 6a142d48 62100659
    6286fbd0 6a142d48 6a142d60 6a142d60 62103d47
    6286fbe0 64d59d68 00000000 00000036 62103d53
    6286fbf0 00000036 401a1d8d 5cec3e10 401a27bd
    6286fc00 00000000 00000000 00000000 00000001
code around pc:
    622f910c f3344620 60a8fefd b510bd7c f0004604
    622f911c 4620f805 4010e8bd baf4f5fe 4604b5bf
    622f912c b1c06880 4621a802 fadaf5fe b1789802
    622f913c 466d68c1 f0014628 68a0f9ee f924f335
    622f914c f6224620 2000fd95 462860a0 f9f5f001
    622f915c f5fca802 bdbffaac b1086880 bd14f334
    622f916c 47702000 4604b5b0 fff6f7ff 46204605
    622f917c ffd4f7ff bdb04628 68c9b510 f0014604
    622f918c f335f9ca 4620fc49 b510bd10 68084604
    622f919c 462068c1 f9bff001 fc3ef335 bd104620
    622f91ac 4604b510 f6203008 4620fc9f 4010e8bd
    622f91bc b9c3f001 41f0e92d 48144604 4914460e
    622f91cc 27004478 46904479 203c6805 e9c43108
    622f91dc e9c41700 47a87702 f8daf7ff 20206120
    622f91ec f7ff47a8 6160fd7e 47a82020 f0004631
    622f91fc 61a0fa25 0020f104 f5f94641 4620fbaa
code around lr:
    622f90fc 4628f8e0 f6204631 4630ff67 fb02f5fe
    622f910c f3344620 60a8fefd b510bd7c f0004604
    622f911c 4620f805 4010e8bd baf4f5fe 4604b5bf
    622f912c b1c06880 4621a802 fadaf5fe b1789802
    622f913c 466d68c1 f0014628 68a0f9ee f924f335
    622f914c f6224620 2000fd95 462860a0 f9f5f001
    622f915c f5fca802 bdbffaac b1086880 bd14f334
    622f916c 47702000 4604b5b0 fff6f7ff 46204605
    622f917c ffd4f7ff bdb04628 68c9b510 f0014604
    622f918c f335f9ca 4620fc49 b510bd10 68084604
    622f919c 462068c1 f9bff001 fc3ef335 bd104620
    622f91ac 4604b510 f6203008 4620fc9f 4010e8bd
    622f91bc b9c3f001 41f0e92d 48144604 4914460e
    622f91cc 27004478 46904479 203c6805 e9c43108
    622f91dc e9c41700 47a87702 f8daf7ff 20206120
    622f91ec f7ff47a8 6160fd7e 47a82020 f0004631
memory map around fault addr ffffffea:
    ffff0000-ffff1000 r-x [vectors]
    (no map for address)
    (no map above)
!@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 25859
Lost connection to device.
Exited (sigterm)

ndk-stack doesn't give me the full crash dump

I followed: https://github.com/flutter/flutter/wiki/Crashes

PS C:\Users\W\Desktop> (Get-Content stack.txt) | D:\Android\sdk\ndk-bundle\ndk-stack.cmd -sym libflutter.so
********** Crash dump: **********
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
pid: 25859, tid: 25903, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr ffffffea
Stack frame     #00  pc 0020812c  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
Stack frame     #01  pc 0020811b  /data/app-lib/ir.yabco.flutter.goggles-3/libflutter.so
PS C:\Users\W\Desktop>

addr2line also gives ??

arm-linux-androideabi-addr2line.exe -C -f -e "c:\users\W\Desktop\libflutter.so" 6286fb64 6210f283
??
??:0
??
??:0

@dnfield
Copy link
Contributor

dnfield commented Jul 26, 2019

using the arm64 symbols for that hash, your first crash is happening in eglChooseConfig:

********** Crash dump: **********
Build fingerprint: 'lge/h1_global_com/h1:8.0.0/OPR1.170623.032/19038182082bf:user/release-keys'
#00 0x000000000049d76c /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#01 0x000000000049d75c /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#02 0x0000000000290c90 /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#03 0x0000000000290c44 /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#04 0x000000000028b298 /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#05 0x000000000027dfd4 /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#06 0x0000000000281900 /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#07 0x0000000000015fec /system/lib64/libutils.so (_ZN7android6Looper9pollInnerEi+808)
#08 0x0000000000015c3c /system/lib64/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+108)
#09 0x00000000000139c0 /system/lib64/libandroid.so (ALooper_pollOnce+92)
#10 0x0000000000281a1c /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#11 0x000000000027de38 /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#12 0x00000000002805fc /data/app/ir.yabco.flutter.goggles-raujyBnS3_xnXw4rlxkYig==/lib/arm64/libflutter.so (offset 0x260000)
                                                                                                            eglChooseConfig
                                                                                                            ??:0:0
#13 0x0000000000068150 /system/lib64/libc.so (_ZL15__pthread_startPv+36)
#14 0x000000000001f334 /system/lib64/libc.so (__start_thread+68)

Same thing with the shorter crash.

@dnfield
Copy link
Contributor

dnfield commented Jul 26, 2019

Do you have a sample app that reproduces this? What model phone?

@p30arena
Copy link
Contributor Author

@dnfield

Samsung Galaxy Note 8.0
https://www.gsmarena.com/samsung_galaxy_note_8_0-5252.php

I have two versions of apks, one that won't crash (older release of flutter) and this one that crashes.
Would you please give me an email to send you the apks?
I'm not allowed to share the application's source code.

@p30arena
Copy link
Contributor Author

p30arena commented Jul 26, 2019

@dnfield

I'm using CustomPainter in that widget.
These are the functions I'm using:

  • canvas.drawImage
  • canvas.clipPath
  • canvas.drawPath
  • canvas.drawImageRect

and I'm passing a new instance of Paint to each function

This is happening on other models too,

This is happening on 3 days older version of flutter:

  • Samsung S8
  • Xiaomi Mi 5

This is happening on Today's version of flutter:

Samsung Galaxy Note 8.0

I can't reproduce the error on:
(tried filling the memory and other stuff)

Samsung A5 2016

.

@dnfield
Copy link
Contributor

dnfield commented Jul 26, 2019

Can you create a small program using CustomPainter with the same calls to reproduce this?

@p30arena
Copy link
Contributor Author

p30arena commented Jul 26, 2019

@dnfield

I couldn't reproduce it in a new app. 😩
It seems like it's an OOM, but nothing is thrown on the OS side.

But then I switched to the "stable" channel, now there are no crashes anymore.
The problem is with the "master" channel.

@p30arena
Copy link
Contributor Author

vmstat

procs  memory                       system          cpu
 r  b    free mapped   anon   slab    in   cs  flt  us ni sy id wa ir
 1  0   50948 167976 1242884  46352  5061 6448    7  99  0 32 99  1  0
 2  0   50452 165836 1248740  46336  6269 9380    0  99  1 27 99  1  0
------------AFTER THE CRASH
 1  0  296396 124132 1107924  46004  4002 5557   25  53  0 76 99  3  0
 0  0  293244 124840 1107772  45884  2062 3484   43  19  3 42 99  4  0

@p30arena
Copy link
Contributor Author

adb.exe shell "cat /proc/meminfo"

BEFORE LAUNCH

MemTotal:        1869480 kB
MemFree:          277824 kB
Buffers:            7668 kB
Cached:           346260 kB
SwapCached:            0 kB
Active:          1218008 kB
Inactive:         190680 kB
Active(anon):    1058132 kB
Inactive(anon):     1148 kB
Active(file):     159876 kB
Inactive(file):   189532 kB
Unevictable:        3484 kB
Mlocked:               4 kB
HighTotal:       1372160 kB
HighFree:         126236 kB
LowTotal:         497320 kB
LowFree:          151588 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:       1058260 kB
Mapped:           131780 kB
Shmem:              1036 kB
Slab:              45740 kB
SReclaimable:      12996 kB
SUnreclaim:        32744 kB
KernelStack:       13744 kB
PageTables:        31852 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      934740 kB
Committed_AS:   40551928 kB
VmallocTotal:     253952 kB
VmallocUsed:      103364 kB
VmallocChunk:      91012 kB

STARTUP

MemTotal:        1869480 kB
MemFree:          181068 kB
Buffers:           11628 kB
Cached:           394996 kB
SwapCached:            0 kB
Active:          1277896 kB
Inactive:         230064 kB
Active(anon):    1104708 kB
Inactive(anon):     1148 kB
Active(file):     173188 kB
Inactive(file):   228916 kB
Unevictable:        3484 kB
Mlocked:               4 kB
HighTotal:       1372160 kB
HighFree:          33872 kB
LowTotal:         497320 kB
LowFree:          147196 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:       1104856 kB
Mapped:           176128 kB
Shmem:              1036 kB
Slab:              45792 kB
SReclaimable:      12996 kB
SUnreclaim:        32796 kB
KernelStack:       14112 kB
PageTables:        32388 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      934740 kB
Committed_AS:   41044320 kB
VmallocTotal:     253952 kB
VmallocUsed:      104372 kB
VmallocChunk:      81796 kB

BEFORE THE CRASH

MemTotal:        1869480 kB
MemFree:           56348 kB
Buffers:           11728 kB
Cached:           327176 kB
SwapCached:            0 kB
Active:          1375352 kB
Inactive:         168868 kB
Active(anon):    1208688 kB
Inactive(anon):     1148 kB
Active(file):     166664 kB
Inactive(file):   167720 kB
Unevictable:        3484 kB
Mlocked:               4 kB
HighTotal:       1372160 kB
HighFree:           2252 kB
LowTotal:         497320 kB
LowFree:           54096 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:               184 kB
Writeback:             0 kB
AnonPages:       1208852 kB
Mapped:           157608 kB
Shmem:              1036 kB
Slab:              45068 kB
SReclaimable:      11972 kB
SUnreclaim:        33096 kB
KernelStack:       14128 kB
PageTables:        32844 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      934740 kB
Committed_AS:   41244168 kB
VmallocTotal:     253952 kB
VmallocUsed:      104432 kB
VmallocChunk:      81796 kB

AFTER THE CRASH

MemTotal:        1869480 kB
MemFree:          299628 kB
Buffers:           12604 kB
Cached:           311772 kB
SwapCached:            0 kB
Active:          1221144 kB
Inactive:         162720 kB
Active(anon):    1062860 kB
Inactive(anon):     1148 kB
Active(file):     158284 kB
Inactive(file):   161572 kB
Unevictable:        3484 kB
Mlocked:               4 kB
HighTotal:       1372160 kB
HighFree:         139548 kB
LowTotal:         497320 kB
LowFree:          160080 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 8 kB
Writeback:             0 kB
AnonPages:       1063096 kB
Mapped:           112720 kB
Shmem:              1036 kB
Slab:              49388 kB
SReclaimable:      16432 kB
SUnreclaim:        32956 kB
KernelStack:       13808 kB
PageTables:        31724 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      934740 kB
Committed_AS:   40660684 kB
VmallocTotal:     253952 kB
VmallocUsed:      103364 kB
VmallocChunk:      91012 kB

@p30arena
Copy link
Contributor Author

p30arena commented Jul 26, 2019

@dnfield

If I give the UI more time to render by delaying the result of FutureBuilder, the crash won't happen on the "Samsung Galaxy Note 8.0" as easy as before it did.

await Future.delayed(Duration(seconds: 3));

I'm giving this part more time to stay on the screen:

if (snapshot.connectionState != ConnectionState.done) {
  return Center(child: CircularProgressIndicator());
}

now if I replace that line with:

if (snapshot.connectionState != ConnectionState.done) {
  return SizedBox();
}

it is less likely to crash on the first try.

on the last try, I ditched the FutureBuilder,
But still after some pushing and popping the app crashes (this does not happen on stable channel).

It seems like it's an OOM, but nothing is thrown on the OS side.
The Future completes so fast that updating the UI in the new version of Flutter causes a crash maybe?

I'm also using these two additional lines in my manifest

android:allowBackup="false"
android:largeHeap="true"

@p30arena
Copy link
Contributor Author

p30arena commented Jul 28, 2019

Instagram uses 30MB of memory while my app uses 170MB of memory 😮

@p30arena
Copy link
Contributor Author

p30arena commented Jul 28, 2019

TEST APP Filling memory with ByteData

base

TEST APP LargeHeap - Filling memory with ByteData

base_large_heap

TEST APP Filling memory with int

base_dart

TEST APP Mixing Dart + Native

mix

MAIN App's Memory

app-memo

@p30arena
Copy link
Contributor Author

p30arena commented Jul 29, 2019

Issues that can help this:

"Example implementation of Image changes" #17614
"ImageCache should flush itself when told about memory pressure" #16375

I think something like EarlyEvictionImageService could help a lot.
also if I can set the max size of each object in the cache, it could prevent from oom.

@p30arena
Copy link
Contributor Author

MAIN App's Memory

After setting:

  imageCache.maximumSize = 10;
  imageCache.maximumSizeBytes = 5 << 20; // 5 MiB;

after_imgc

@dnfield
Copy link
Contributor

dnfield commented Jul 29, 2019

If the crash is due to memory usage, can you try patching your engine locally to reduce the Skia resource cache size? I had a patch to reduce that which had to be reverted because it wasn't working quite right. I'm working on relanding it.

The relevant line is in shell/gpu/gpu_surface_gl.cc line 31, change 512 to something like 50.

@p30arena
Copy link
Contributor Author

p30arena commented Jul 29, 2019

@dnfield

I'm going to follow the instructions here

https://github.com/flutter/flutter/wiki/Setting-up-the-Engine-development-environment
https://github.com/flutter/flutter/wiki/Compiling-the-engine

UPDATE

gclient sync

D:\GitHub\p30arena\engine>gclient sync
1>________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress git@github.com:p30arena/engine.git D:\GitHub\p30arena\engine\src
\_gclient_flutter_q5gv1ag0' in 'D:\GitHub\p30arena\engine'
1>Cloning into 'D:\GitHub\p30arena\engine\src\_gclient_flutter_q5gv1ag0'...


src/flutter (ERROR)
----------------------------------------
[0:00:00] Started.
[0:00:00]

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress git@github.com:p30arena/engine.git D:\GitHub\p30arena\engine\src\_
gclient_flutter_q5gv1ag0' in 'D:\GitHub\p30arena\engine'
Cloning into 'D:\GitHub\p30arena\engine\src\_gclient_flutter_q5gv1ag0'...
Traceback (most recent call last):
  File "D:\depot_tools\gclient_scm.py", line 1045, in _Clone
    print_stdout=print_stdout, stdout=stdout)
  File "D:\depot_tools\gclient_scm.py", line 1370, in _Run
    gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
  File "D:\depot_tools\gclient_utils.py", line 344, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "D:\depot_tools\gclient_utils.py", line 592, in CheckCallAndFilter
    filter_fn(in_line)
  File "D:\depot_tools\gclient_utils.py", line 339, in filter_msg
    filter_fn(line)
  File "D:\depot_tools\gclient_utils.py", line 648, in __call__
    esc = line.find(chr(0o33).encode())
TypeError: must be str, not bytes
[0:00:00] _____ removing non-empty tmp dir D:\GitHub\p30arena\engine\src\_gclient_flutter_q5gv1ag0
----------------------------------------
Traceback (most recent call last):
  File "D:\depot_tools\metrics.py", line 267, in print_notice_and_exit
    yield
  File "D:\depot_tools\gclient.py", line 3155, in <module>
    sys.exit(main(sys.argv[1:]))
  File "D:\depot_tools\gclient.py", line 3141, in main
    return dispatcher.execute(OptionParser(), argv)
  File "D:\depot_tools\subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "D:\depot_tools\gclient.py", line 2698, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "D:\depot_tools\gclient.py", line 1736, in RunOnDeps
    patch_refs=patch_refs, target_branches=target_branches)
  File "D:\depot_tools\gclient_utils.py", line 907, in flush
    reraise(e[0], e[1], e[2])
  File "D:\depot_tools\gclient_utils.py", line 72, in reraise
    raise value
  File "D:\depot_tools\gclient_utils.py", line 984, in run
    self.item.run(*self.args, **self.kwargs)
  File "D:\depot_tools\gclient.py", line 913, in run
    file_list)
  File "D:\depot_tools\gclient_scm.py", line 133, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "D:\depot_tools\gclient_scm.py", line 548, in update
    self._Clone(revision, url, options)
  File "D:\depot_tools\gclient_scm.py", line 1045, in _Clone
    print_stdout=print_stdout, stdout=stdout)
  File "D:\depot_tools\gclient_scm.py", line 1370, in _Run
    gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
  File "D:\depot_tools\gclient_utils.py", line 344, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "D:\depot_tools\gclient_utils.py", line 592, in CheckCallAndFilter
    filter_fn(in_line)
  File "D:\depot_tools\gclient_utils.py", line 339, in filter_msg
    filter_fn(line)
  File "D:\depot_tools\gclient_utils.py", line 648, in __call__
    esc = line.find(chr(0o33).encode())
TypeError: must be str, not bytes

@p30arena
Copy link
Contributor Author

p30arena commented Jul 29, 2019

@dnfield

My thoughts on these PRs:
flutter/engine#9503
flutter/engine#9740

I think even on higher-end devices like Samsung S8 with 4GB of RAM, when the background applications are consuming some quality RAM, the cache set to 512 can cause an immediate crash.

It might be due to the reason that OS can't free the Available Memory "fast enough" and provide it to the Skia, so egl* operations fail (like eglChooseConfig).

If I postpone the displaying of data (with something like Future.delayed), the crash rates drop.

.
UPDATE
.

so then I'm thinking of changing the cache without patching the engine
but seems not possible yet?
#35890

Is this line incorrect?

await SystemChannels.skia.invokeMethod("setResourceCacheMaxBytes", 24 * (1 << 20));

it never returns a result.

.

found another issue that might be related

2d-inc/Flare-Flutter#99

@p30arena
Copy link
Contributor Author

p30arena commented Jul 29, 2019

when the background applications are consuming some quality RAM, the cache set to 512 can cause an immediate crash

Theres another scenario that makes me to think that I was wrong, when the bg apps are consuming memory, setting cache to a higher value, preserves memory for the current app and prevents crashes related to egl* functions.

After reviewing the memory tests,
OOM happens when the test app is consuming slightly more than 1GB of memory on a 2GB ram device.
The actual app barely exceeds 400MB of memory.

@dnfield
I can state that, the crash is not related to an OOM error.
It is the OpenGL having not enough cache to do its operations maybe.

I'm not familiar enough with this context though.

@dnfield
Copy link
Contributor

dnfield commented Jul 29, 2019

The OS will kill your process before you come anywhere near using all the RAM the device has. Using 1gb on a 2gb device is probably enough to trigger an OOM as far as the app is concerned.

@p30arena
Copy link
Contributor Author

p30arena commented Jul 30, 2019

@dnfield

The OS will kill your process before you come anywhere near using all the RAM the device has. Using 1gb on a 2gb device is probably enough to trigger an OOM as far as the app is concerned.

Ok, but my app doesn't consume that much memory (stays around 170 to 400 after lowering the imageCache),
I filled the memory intentionally to see if the "crash stack" is the same or not, without knowing that you've reverted the changes to line 31 (from 24 to 512).

The relevant line is in shell/gpu/gpu_surface_gl.cc line 31, change 512 to something like 50.

max cache size on the STABLE channel is 512, I experienced no crashes with this number before.
.
.
.
I might need to do more tests, is it possible for you to provide me with changes you've reverted?
or maybe help me make this line work?
I call it before runApp
await SystemChannels.skia.invokeMethod("setResourceCacheMaxBytes", 24 * (1 << 20));

https://github.com/flutter/engine/blob/78a8ca0f62b04fa49030ecdd2d91726c0639401f/shell/common/shell.cc#L850

@p30arena
Copy link
Contributor Author

p30arena commented Jul 30, 2019

Ok, I have a fresh crash dump for you 😄

engine.version 38ac5f3

.
.
.

Launching lib\main.dart on GT N5100 in debug mode...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Built build\app\outputs\apk\debug\app-debug.apk.
I/flutter ( 2111): mem total: 1914474496
I/flutter ( 2111): mem avail: 303923200
I/flutter ( 2111): max co: 1
D/dalvikvm( 2111): GC_FOR_ALLOC freed 838K, 23% free 5871K/7600K, paused 50ms, total 50ms
I/dalvikvm-heap( 2111): Grow heap (frag case) to 9.002MB for 2520336-byte allocation
D/dalvikvm( 2111): GC_FOR_ALLOC freed 2K, 18% free 8330K/10064K, paused 21ms, total 21ms
D/dalvikvm( 2111): GC_CONCURRENT freed 4K, 18% free 8331K/10064K, paused 2ms+3ms, total 18ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 4549K, 23% free 5870K/7600K, paused 24ms, total 24ms
I/dalvikvm-heap( 2111): Grow heap (frag case) to 9.041MB for 2560016-byte allocation
D/dalvikvm( 2111): GC_FOR_ALLOC freed <1K, 18% free 8370K/10104K, paused 21ms, total 21ms
D/dalvikvm( 2111): GC_CONCURRENT freed 1K, 18% free 8370K/10104K, paused 2ms+1ms, total 15ms
I/flutter ( 2111): Warning: Flutter SVG only supports the following formats for `width` and `height` on the SVG root:
I/flutter ( 2111):   width="100%"
I/flutter ( 2111):   width="100px"
I/flutter ( 2111):   width="100" (where the number will be treated as pixels).
I/flutter ( 2111): The supplied value (394pt) will be discarded and treated as if it had not been specified.
I/flutter ( 2111): Warning: Flutter SVG only supports the following formats for `width` and `height` on the SVG root:
I/flutter ( 2111):   width="100%"
I/flutter ( 2111):   width="100px"
I/flutter ( 2111):   width="100" (where the number will be treated as pixels).
I/flutter ( 2111): The supplied value (394pt) will be discarded and treated as if it had not been specified.
I/flutter ( 2111): mem total: 1914474496
I/flutter ( 2111): mem avail: 265867264
I/flutter ( 2111): max co: 1
D/dalvikvm( 2111): GC_FOR_ALLOC freed 3582K, 43% free 6700K/11732K, paused 12ms, total 12ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 2539K, 24% free 5849K/7600K, paused 17ms, total 17ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 969K, 31% free 5848K/8416K, paused 29ms, total 29ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 3K, 21% free 6680K/8416K, paused 17ms, total 17ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 1769K, 34% free 6685K/10048K, paused 13ms, total 13ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 2565K, 24% free 5850K/7600K, paused 30ms, total 31ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 879K, 31% free 5851K/8416K, paused 14ms, total 15ms
D/dalvikvm( 2111): GC_FOR_ALLOC freed 3K, 21% free 6684K/8416K, paused 19ms, total 19ms
F/libc    ( 2111): Fatal signal 11 (SIGSEGV) at 0x9118f8e5 (code=1), thread 2170 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
Revision: '8'
pid: 2111, tid: 2170, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 9118f8e5
    r0 9118f8dd  r1 00350724  r2 00000000  r3 00000011
    r4 627d8800  r5 40ff6706  r6 00000000  r7 00000001
    r8 00000000  r9 00000000  sl 401cc801  fp 401cc70a
    ip 6281d0ec  sp 62923ac8  lr 6258ddab  pc 624a4b76  cpsr 600b0030
    d0  0000008067b97178  d1  4363b105434a3d5c
    d2  43591e4a4323aac1  d3  435893704323aac1
    d4  3ff00000432b7be6  d5  bff000004012b800
    d6  bff0000000000000  d7  0049f20162922cc0
    d8  0000000000000000  d9  0000000000000000
    d10 0000000000000000  d11 0000000000000000
    d12 0000000000000000  d13 0000000000000000
    d14 0000000000000000  d15 0000000000000000
    d16 0000000000000001  d17 0000000000000001
    d18 0000000000000000  d19 0000000000000000
    d20 4064edff60000000  d21 406be8c9e0000000
    d22 4064d9f940000000  d23 406c329720000000
    d24 bf29c8b65c2b8fee  d25 3fe6a09e5e33bca9
    d26 0000000000000000  d27 bf56816d3012689d
    d28 0000000000000000  d29 3fe921fb48885a30
    d30 0000000000000000  d31 3ff921fb54442d18
    scr 80000091
backtrace:
    #00  pc 002ffb76  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
    #01  pc 003e8da7  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
stack:
         62923a88  5e28c008
         62923a8c  62923a94
         62923a90  00000000
         62923a94  627f3038  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923a98  5e28c008
         62923a9c  62923ae8
         62923aa0  00000000
         62923aa4  5e28c008
         62923aa8  00000000
         62923aac  63bc0021
         62923ab0  5e28c008
         62923ab4  00000001
         62923ab8  00000001
         62923abc  627f444c  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923ac0  627fb7d4  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923ac4  627d8768  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
    #00  62923ac8  5e37a2dc
         ........  ........
    #01  62923ac8  5e37a2dc
         62923acc  626f2b4d  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923ad0  76b7fc6d
         62923ad4  62822a74
         62923ad8  627fb7d4  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923adc  00000001
         62923ae0  627d8800  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923ae4  40ff6706  /system/lib/libLLVM.so
         62923ae8  00000000
         62923aec  00000001
         62923af0  6847edfc
         62923af4  6258ddab  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923af8  627d8800  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923afc  627d8800  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so
         62923b00  40ff6706  /system/lib/libLLVM.so
         62923b04  00000000
memory near r0:
    9118f8bc ffffffff ffffffff ffffffff ffffffff
    9118f8cc ffffffff ffffffff ffffffff ffffffff
    9118f8dc ffffffff ffffffff ffffffff ffffffff
    9118f8ec ffffffff ffffffff ffffffff ffffffff
    9118f8fc ffffffff ffffffff ffffffff ffffffff
    9118f90c ffffffff ffffffff ffffffff ffffffff
    9118f91c ffffffff ffffffff ffffffff ffffffff
    9118f92c ffffffff ffffffff ffffffff ffffffff
    9118f93c ffffffff ffffffff ffffffff ffffffff
    9118f94c ffffffff ffffffff ffffffff ffffffff
    9118f95c ffffffff ffffffff ffffffff ffffffff
    9118f96c ffffffff ffffffff ffffffff ffffffff
    9118f97c ffffffff ffffffff ffffffff ffffffff
    9118f98c ffffffff ffffffff ffffffff ffffffff
    9118f99c ffffffff ffffffff ffffffff ffffffff
    9118f9ac ffffffff ffffffff ffffffff ffffffff
memory near r1:
    00350704 ffffffff ffffffff ffffffff ffffffff
    00350714 ffffffff ffffffff ffffffff ffffffff
    00350724 ffffffff ffffffff ffffffff ffffffff
    00350734 ffffffff ffffffff ffffffff ffffffff
    00350744 ffffffff ffffffff ffffffff ffffffff
    00350754 ffffffff ffffffff ffffffff ffffffff
    00350764 ffffffff ffffffff ffffffff ffffffff
    00350774 ffffffff ffffffff ffffffff ffffffff
    00350784 ffffffff ffffffff ffffffff ffffffff
    00350794 ffffffff ffffffff ffffffff ffffffff
    003507a4 ffffffff ffffffff ffffffff ffffffff
    003507b4 ffffffff ffffffff ffffffff ffffffff
    003507c4 ffffffff ffffffff ffffffff ffffffff
    003507d4 ffffffff ffffffff ffffffff ffffffff
    003507e4 ffffffff ffffffff ffffffff ffffffff
    003507f4 ffffffff ffffffff ffffffff ffffffff
memory near r4:
    627d87e0 63bc0e59 63bc0ed1 63bc0f49 63bc0fc1
    627d87f0 63bc1039 63bc10b1 63bc1129 0000001b
    627d8800 00000004 00000004 00000002 6218af78
    627d8810 00000001 627fba4c 627d8814 6256d435
    627d8820 61748cb2 62538277 00000002 00000001
    627d8830 627fba4c 627d8830 6256d435 617657a9
    627d8840 625494d1 00000004 00000001 627fba4c
    627d8850 627d884c 6256d435 61764874 62549bf9
    627d8860 00000004 00000001 617371c2 6175581d
    627d8870 00000000 6173e85c 61745103 6174b2b2
    627d8880 00000000 617485bb 61733114 61747425
    627d8890 6173005b 617460c3 ffffffff fffffffe
    627d88a0 00000001 00000000 fffffffd 00000004
    627d88b0 fffffffe ffffffff ffffffe5 ffffffff
    627d88c0 fffffffe 00000001 00000000 fffffffd
    627d88d0 00000004 fffffffe ffffffff ffffffe5
memory near r5:
    40ff66e4 98292400 f7fba929 4605fd1d 192c9929
    40ff66f4 94459544 07c1eb05 f8d89746 f8d83018
    40ff6704 eb030014 f1000643 eb00050c 42bd0786
    40ff6714 f8cdd077 e02c8054 f1c26a88 6ace0940
    40ff6724 0220f1c9 0120f1a9 fa02fa20 fa062900
    40ff6734 fa00f809 ea4afb01 fa000c08 bfa8f309
    40ff6744 fa2346dc fa0cf009 fa4cf602 f8ddfa09
    40ff6754 fa4c9118 ea46f201 bfa80600 45a14616
    40ff6764 e884d012 350c0440 34089c45 944542bd
    40ff6774 6829d045 2a406a0a f8ddd9ce 6a8b9118
    40ff6784 e89345a1 d1ec0440 a8442101 fd2cf7fc
    40ff6794 4460f06f f20042a0 2800832d 817df000
    40ff67a4 902e00c0 f2002880 a82e8148 ef0af7f5
    40ff67b4 992e4680 0307f021 0b03eb08 46409944
    40ff67c4 0901ebb9 464ad003 ef14f7f5 60064448
    40ff67d4 0408f100 a004f8c0 9e469844 10d11a32
memory near sl:
    401cc7e0 7665206c 73746e65 25783020 6e6f2078
    401cc7f0 6b617720 65722065 70206461 2e657069
    401cc800 6e674900 6e69726f 6e752067 65707865
    401cc810 64657463 6f706520 65206c6c 746e6576
    401cc820 78302073 6f207825 6466206e 20642520
    401cc830 74616874 20736920 6c206f6e 65676e6f
    401cc840 65722072 74736967 64657265 6f43002e
    401cc850 20646c75 20746f6e 61657263 77206574
    401cc860 20656b61 65706970 6520202e 6f6e7272
    401cc870 0064253d 6c756f43 6f6e2064 616d2074
    401cc880 7720656b 20656b61 64616572 70697020
    401cc890 6f6e2065 6c622d6e 696b636f 202e676e
    401cc8a0 72726520 253d6f6e 6f430064 20646c75
    401cc8b0 20746f6e 656b616d 6b617720 72772065
    401cc8c0 20657469 65706970 6e6f6e20 6f6c622d
    401cc8d0 6e696b63 20202e67 6e727265 64253d6f
memory near fp:
    401cc6e8 20736570 69687428 70253d73 6872202c
    401cc6f8 70253d73 65720029 746c7573 203d2120
    401cc708 6f4c0030 7265706f 756f4300 6e20646c
    401cc718 6120746f 636f6c6c 20657461 20534c54
    401cc728 2e79656b 68747000 64616572 636e6f5f
    401cc738 61662065 64656c69 43005700 646c756f
    401cc748 746f6e20 69727720 77206574 20656b61
    401cc758 6e676973 202c6c61 6e727265 64253d6f
    401cc768 72724500 7220726f 766f6d65 20676e69
    401cc778 6c6f7065 7665206c 73746e65 726f6620
    401cc788 20646620 202c6425 6e727265 64253d6f
    401cc798 6c6f5000 6166206c 64656c69 74697720
    401cc7a8 6e612068 656e7520 63657078 20646574
    401cc7b8 6f727265 65202c72 6f6e7272 0064253d
    401cc7c8 6f6e6749 676e6972 656e7520 63657078
    401cc7d8 20646574 6c6f7065 7665206c 73746e65
memory near ip:
    6281d0cc 4017046d 40173249 40173449 40159649
    6281d0dc 401733d9 40173275 40158149 4015814d
    6281d0ec 40152a28 40165590 5e26c015 5e26bfff
    6281d0fc 5e26bfc1 5e26bfdd 5e26bfe9 5e26c081
    6281d10c 5e26bfd9 5e26bfcd 40167150 401654bc
    6281d11c 40172cdd 40165ddc 40165a54 4017f8cb
    6281d12c 40165cbc 40165cdc 401658ec 40165680
    6281d13c 40165ac8 40157d85 40165640 4012edad
    6281d14c 4012ef31 4012edfd 4012ee81 401413b1
    6281d15c 4017f8bd 40159695 4016af2d 4016b1d9
    6281d16c 40159d0d 4016a911 4016ab89 40152d29
    6281d17c 40152d51 40159b29 4016b1d5 40152d15
    6281d18c 401707f9 40167938 4017f8bd 4017f8cb
    6281d19c 4017f8c1 401a3998 401ae3a0 401aa488
    6281d1ac 4017f613 401b1460 401b39a8 401b4210
    6281d1bc 401a4538 401b4a18 401a5600 401b2ec8
memory near sp:
    62923aa8 00000000 63bc0021 5e28c008 00000001
    62923ab8 00000001 627f444c 627fb7d4 627d8768
    62923ac8 5e37a2dc 626f2b4d 76b7fc6d 62822a74
    62923ad8 627fb7d4 00000001 627d8800 40ff6706
    62923ae8 00000000 00000001 6847edfc 6258ddab
    62923af8 627d8800 627d8800 40ff6706 00000000
    62923b08 6847edb4 626e39f3 62923b30 62923b84
    62923b18 62923b30 62923b30 62923b84 623aeeab
    62923b28 6847ed9c 623adaaf 40ff6706 5e3a7008
    62923b38 6953dbc0 6953dbb0 6847ed9c 6847edfc
    62923b48 6847edb4 623ada87 401931c0 621c305b
    62923b58 00000000 681f80f4 6847edb4 621c3283
    62923b68 6953edc8 00000000 00000000 00000000
    62923b78 00000000 00000000 00000000 681f80f4
    62923b88 5e3a7008 00000000 00000000 5e4803b8
    62923b98 5e4803a8 6847bc68 6173fd0d 62923bb8
code around pc:
    624a4b54 2800042c 4628dcf6 40b0e8bd bd04f088
    624a4b64 41f0e92d 4605b086 460f6cc0 26004924
    624a4b74 68844690 f1014479 f88d0008 94046014
    624a4b84 46209003 fccef088 6828b11f 2600b1b8
    624a4b94 481ce02f 68014478 68096ce8 6800e9cd
    624a4ba4 fab11b4a fab2f181 0949f282 ea410952
    624a4bb4 a9030302 f7f82200 4606fbcb 4812e016
    624a4bc4 686a2301 68014478 68096ce8 3800e9cd
    624a4bd4 fab11b4b fab3f181 0949f383 430b095b
    624a4be4 f7f8a903 4606fbb5 0000e9c5 6ca86335
    624a4bf4 46206370 fcb8f088 b0064630 81f0e8bd
    624a4c04 00350724 003778e8 003778b8 43f0e92d
    624a4c14 4604b081 461f6cc0 460d4616 8008f8d0
    624a4c24 f0884640 b17efc7f f0e94628 4929f889
    624a4c34 68094479 42886809 4628d004 f892f0e9
    624a4c44 0408f8c4 60202000 904cf8d4 e855b9c7
code around lr:
    6258dd88 44794902 68096809 47706541 0028e5da
    6258dd98 b081b5f0 22002101 27014605 f7162600
    6258dda8 b1b0fedd 6b004604 7284f8c4 f0f26bc0
    6258ddb8 6460fde3 b1586c28 6c006b20 ff74f0f2
    6258ddc8 22066b21 64a062e2 f0f26c48 64e0ff6d
    6258ddd8 46302601 bdf0b001 4604b510 6c006b00
    6258dde8 ff62f0f2 200664a0 bd1062e0 4604b510
    6258ddf8 6c406b00 ff58f0f2 bd1064e0 4844b570
    6258de08 68004478 bf182800 efaef171 44784841
    6258de18 f16f6800 4940ed08 4a402600 68044479
    6258de28 6808447a 6b256811 24f0f8d4 f8c43108
    6258de38 68036284 1300e9c2 14f4f8d4 604a6802
    6258de48 14f8f8d4 f8d4604a 604a14fc 1500f8d4
    6258de58 447b4b33 f8d4604a 681b1504 e9c13308
    6258de68 f8d43200 68021508 f8d4604a 604a150c
    6258de78 1510f8d4 f8d4604a 4b2a1514 604a447b
memory map around fault addr 9118f8e5:
    76580000-76e4c000 rw-
    (no map for address)
    bec0d000-bec2e000 rw- [stack]
!@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 2111
Lost connection to device.
Exited (sigterm)

I thought the CPU is 32-bit but this is the custom ndk-stack result:

.
........................................................................
ARM
........................................................................
.
********** Crash dump: **********
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
pid: 2111, tid: 2170, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 9118f8e5
Stack frame     #00  pc 002ffb76  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine ??
??:0
Stack frame     #01  pc 003e8da7  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine ??
??:0
.
........................................................................
ARM64
........................................................................
.
********** Crash dump: **********
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
pid: 2111, tid: 2170, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 9118f8e5
Stack frame     #00  pc 002ffb76  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine $d.2 at embedded_archive_observatory.cc:?
Stack frame     #01  pc 003e8da7  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine $d.2 at embedded_archive_observatory.cc:?
Press any key to continue . . .

https://github.com/dart-lang/sdk/blob/master/runtime/observatory/BUILD.gn#L325 🤔

@dnfield
Copy link
Contributor

dnfield commented Jul 30, 2019

I'm pretty confused at this point.

What we really need to investigate this is a reproducible case. I understand you can't share your app's source code - and to be honest, that would be less helpful anyway. It would be very helpful if you could start peeling things away from your app until you have a minimal reliable reproduction of this crash that you could then share some source code for. If it's a particular Widget or draw call that causes this, that would be something we could work at fixing.

Right now, we're getting very similar backtraces that aren't telling us enough of why or how things happened.

@p30arena
Copy link
Contributor Author

p30arena commented Jul 30, 2019

@dnfield

First I'm going to give you this info, Then I'm going to narrow down my app to a button and that widget.

I'll provide a Memory Analysis and a new Crash Dump (the Routine is different unless I'm doing it wrong - Routine $d.25 at hb-ot-shape-complex-myanmar.cc)

I'm doing fast pushing and popping for about 7 times, then the app crashes. (sometimes it's not needed to repeat it, it crashes on the first push)

'/lens_page': (context) => LensPage(PageStorageKey("lens_page")),

Memory

test

Engine

engine.version 38ac5f3

Stack

stack.txt

Routines

.
........................................................................
ARM
........................................................................
.
********** Crash dump: **********
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
pid: 17353, tid: 17370, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 4291cffa
Stack frame     #00  pc 00208a94  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine ??
??:0
Stack frame     #01  pc 00208a83  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine ??
??:0
.
........................................................................
ARM64
........................................................................
.
********** Crash dump: **********
Build fingerprint: 'samsung/kona3gxx/kona3g:4.4.2/KOT49H/N5100XXDNK3:user/release-keys'
pid: 17353, tid: 17370, name: 1.ui  >>> ir.yabco.flutter.goggles <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 4291cffa
Stack frame     #00  pc 00208a94  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine $d.25 at hb-ot-shape-complex-myanmar.cc:?
Stack frame     #01  pc 00208a83  /data/app-lib/ir.yabco.flutter.goggles-44/libflutter.so: Routine $d.25 at hb-ot-shape-complex-myanmar.cc:?
Press any key to continue . . .

@p30arena
Copy link
Contributor Author

I narrowed down the app to a Splash page and a button after that.

When the button pressed, a Scaffold is shown.

'/emad': (context) => EmadWidget(),
Navigator.of(context).pushReplacement(MaterialPageRoute(
          builder: (context) => Center(child: RaisedButton(
                onPressed: () {
                  Navigator.pushNamed(context, "/emad");
                },
              ))));
class EmadWidget extends StatefulWidget {
  @override
  _EmadWidgetState createState() => _EmadWidgetState();
}

class _EmadWidgetState extends State<EmadWidget> {
  var bgImage;

  @override
  void dispose() {
    if (bgImage != null) {
      bgImage.dispose();
    }

    super.dispose();
  }

  @override
  void didChangeDependencies() {
    super.didChangeDependencies();

    () async {
      if (bgImage == null) {
        Map captureInfo = await getIndicatorImageInfo();
        final int captureId = captureInfo["id"] as int;
        final File backgroundImageFile = await getImageFile(captureId);
        bgImage = (await decodeImageFile(backgroundImageFile)).image;

        if (mounted) {
          setState(() {});
        }
      }
    }();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: SizedBox(),
    );
  }
}

after about 15 pushes&pops the app crashed.

Memory

test

Stack

stack.txt

bgImage is a dart:ui Image
.

@dnfield
Copy link
Contributor

dnfield commented Jul 30, 2019

This still isn't quite reproducible - what is getImageFile? What is getIndicatorImageInfo?

Is it enough to just allocate any old Image and call dispose on it in dispose? Are you reaching the dispose method at all?

@p30arena
Copy link
Contributor Author

p30arena commented Jul 30, 2019

This still isn't quite reproducible - what is getImageFile? What is getIndicatorImageInfo?

Is it enough to just allocate any old Image and call dispose on it in dispose? Are you reaching the dispose method at all?

Yes I'm reaching the dispose method

I'm going to give you a working project.

First, choose an image from Gallery, then push the second button then pop, then push then pop for a couple of times till the crash.
.
.

hello_egl_bug.zip

.
.
test

PS C:\Users\W> flutter doctor -v
[√] Flutter (Channel master, v1.8.2-pre.213, on Microsoft Windows [Version 6.3.9600], locale en-US)
    • Flutter version 1.8.2-pre.213 at M:\flutter
    • Framework revision c1a118bcc3 (3 days ago), 2019-07-27 15:20:44 -0700
    • Engine revision 38ac5f30a7
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 0ca1582afd)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at D:\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = D:\Android\sdk
    • Java binary at: C:\Program Files\Java\jdk1.8.0_45\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[√] Connected device (1 available)
    • GT N5100 • 4103521602c140e7 • android-arm • Android 4.4.2 (API 19)

! Doctor found issues in 1 category.

@p30arena
Copy link
Contributor Author

On some devices, it doesn't need repeated push&pop, crashes on the first push.
still, have no idea why.

@jason-simmons
Copy link
Member

I was able to reproduce this when running the hello_egl_bug app on a Nexus 7. It's likely related to some recent changes to how the engine decompresses images. Will continue investigating.

jason-simmons added a commit to jason-simmons/flutter_engine that referenced this issue Jul 31, 2019
…nvokes its callback

SingleFrameCodec had been holding a persistent handle to the peer Dart object
while waiting for the decoder callback.  However, Dart code could call
Codec.dispose during that interval, which would cause the Dart peer to drop
its reference to the SingleFrameCodec and potentially delete the
SingleFrameCodec.

Fixes flutter/flutter#36631
jason-simmons added a commit to flutter/engine that referenced this issue Jul 31, 2019
…nvokes its callback (#10297)

SingleFrameCodec had been holding a persistent handle to the peer Dart object
while waiting for the decoder callback.  However, Dart code could call
Codec.dispose during that interval, which would cause the Dart peer to drop
its reference to the SingleFrameCodec and potentially delete the
SingleFrameCodec.

Fixes flutter/flutter#36631
@jason-simmons
Copy link
Member

The fix should be available on the Flutter master branch now. Thank you for the bug report and the reproduction!

@p30arena
Copy link
Contributor Author

p30arena commented Aug 2, 2019

Thank you for the Quick Fix!

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants