Issue 1:
Steps to Reproduce

After we write one page with flutter and release it with traffic control.

We found two kind of crash report related to SkMemory_malloc.cpp:21.

One symbolicated callback stacktrace is:

KyleWongdeMacBook-Pro:src kylewong$ ./third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line -e out/android_release/libflutter.so 0013ea5f 001e8e6d 00058dc7 004f5d1b 00058e57 00077165 0004f475
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/skia/src/ports/SkMemory_malloc.cpp:21
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../garnet/public/lib/fxl/logging.cc:93
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/icu_util.cc:99
/Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/mutex.cpp:241
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/mutex:548
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/common/shell.cc:85
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/platform/android/flutter_main.cc:34

For this case, I take a users's meminfo when crashed:

meminfo:
MemTotal: 3835708 kB
MemFree: 266880 kB
MemAvailable: 930532 kB
Buffers: 1040 kB
Cached: 848564 kB
SwapCached: 12064 kB
Active: 961156 kB
Inactive: 1064104 kB
Active(anon): 605616 kB
Inactive(anon): 600236 kB
Active(file): 355540 kB
Inactive(file): 463868 kB
Unevictable: 81828 kB
Mlocked: 82000 kB
SwapTotal: 1572860 kB
SwapFree: 528896 kB
Dirty: 12192 kB
Writeback: 0 kB
AnonPages: 1248392 kB
Mapped: 541684 kB
Shmem: 5016 kB
Slab: 229548 kB
SReclaimable: 50840 kB
SUnreclaim: 178708 kB
KernelStack: 49632 kB
PageTables: 61404 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 3490712 kB
Committed_AS: 99801136 kB
VmallocTotal: 258867136 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
CmaTotal: 176128 kB
CmaFree: 0 kB

Another similar one is:

KyleWongdeMacBook-Pro:src kylewong$ ./third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line -e out/android_release/libflutter.so 0013ea5f 001e8e6d 0006f6bf 00070a2d 0007208b 000599e1 0005c223 0005c1df 00059a6d 0005ae15
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/skia/src/ports/SkMemory_malloc.cpp:21
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../garnet/public/lib/fxl/logging.cc:93
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/runtime/dart_init.cc:695
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/runtime/runtime_init.cc:30
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/common/engine.cc:292
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/functional:1756
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/platform/android/message_loop_android.cc:93
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/platform/android/message_loop_android.cc:69
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/message_loop_impl.cc:81
/Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/thread.cc:32

For this one, I've take a user's meminfo：

meminfo:
MemTotal: 3813592 kB
MemFree: 221276 kB
MemAvailable: 1020744 kB
Buffers: 1348 kB
Cached: 822600 kB
SwapCached: 15188 kB
Active: 1368196 kB
Inactive: 751700 kB
Active(anon): 1007148 kB
Inactive(anon): 308560 kB
Active(file): 361048 kB
Inactive(file): 443140 kB
Unevictable: 1412 kB
Mlocked: 1412 kB
SwapTotal: 2293756 kB
SwapFree: 822344 kB
Dirty: 15980 kB
Writeback: 0 kB
AnonPages: 1292596 kB
Mapped: 324340 kB
Shmem: 18772 kB
Slab: 230672 kB
SReclaimable: 102440 kB
SUnreclaim: 128232 kB
KernelStack: 65632 kB
PageTables: 73284 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4200552 kB
Committed_AS: 115778564 kB
VmallocTotal: 258998208 kB
VmallocUsed: 386624 kB
VmallocChunk: 258415424 kB
CmaTotal: 32768 kB
CmaFree: 100 kB
Isolate1Free: 2868 kB
Isolate2Free: 0 kB

Logs

Flutter Doctor

[✓] Flutter (Channel beta, v0.1.6-pre.47, on Mac OS X 10.13.4 17E199, locale en-CN)
• Flutter version 0.1.6-pre.47 at /Users/kylewong/Codes/fwn_idlefish/flutter
• Framework revision 538c8e12b6 (3 days ago), 2018-04-21 19:47:45 +0800
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/kylewong/Library/Android/sdk
• Android NDK at /Users/kylewong/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.3, Build version 9E145
• ios-deploy 1.9.2
• CocoaPods version 1.2.0

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (1 available)
• KyleWong's iPhone • 1c8e085cf2ff6fa27643ab4afec4bf4a077688af • ios • iOS 11.3

@eseidelGoogle

This one is the top2 crash in our application. Would you spare some efforts to help us solve it?

Issue 2:
Steps to Reproduce

In our application,one detail page is written in flutter while the others use java. However, in our test, we noticed that after my detail page crashes one time, it will continuously crash when entering any detail page again after relaunching.

The Crash log is given below:

01-12 21:51:08.075 26227-26181/? E/DEBUG: fault addr 00000000 not in maps
01-12 21:51:08.076 26227-26181/? E/DEBUG: --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
01-12 21:51:08.395 26227-26181/? E/DEBUG: Process Name: 'com.taobao.idlefish'
Thread Name: 'ui_thread'
pid: 10824, tid: 26181 >>> com.taobao.idlefish <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
r0 00000000 r1 ffffffff r2 83649d8c r3 85a57d3c
r4 85a57cf8 r5 83649d8c r6 85a57d00 r7 00000000
r8 83649eb8 r9 aaaaaaab 10 00000006 fp 00000000
01-12 21:51:08.396 26227-26181/? E/DEBUG: ip b1286624 sp 83649d88 lr 95043c9d pc 9518709c cpsr 200c0030
#00 pc 0036109c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
01-12 21:51:08.397 26227-26181/? E/DEBUG: #01 pc 0035fa98 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
#02 pc 003634aa /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
01-12 21:51:08.398 26227-26181/? E/DEBUG: #03 pc 00363dac /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
01-12 21:51:08.399 26227-26181/? E/DEBUG: #04 pc 0006a71c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
#05 pc 0006814c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
01-12 21:51:08.400 26227-26181/? E/DEBUG: #06 pc 00068106 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
#07 pc 003cfb42 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
01-12 21:51:08.401 26227-26181/? E/DEBUG: #08 pc 003d00ac /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
--- --- ---
01-12 21:51:08.450 26227-26181/? E/DEBUG: 00 pc 0036109c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
01 pc 0035fa99 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
02 pc 003634ab /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
03 pc 00363dad /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
04 pc 0006a71d /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
05 pc 0006814d /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
06 pc 00068107 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
07 pc 003cfb43 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
01-12 21:51:08.451 26227-26181/? E/DEBUG: 08 pc 003d00ad /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so
09 pc 0000240c /data/data/com.taobao.idlefish/app_flutter/vm_snapshot_instr

Please tell us what you were doing and what went wrong. If you are running flutter tools from the command line, please try adding the -v or --verbose option to gather more information.

If the problem is with your application's rendering, please attach a screenshot and any relevant source code.

If you are getting an exception in the logs, and your code is implicated in the first few frames, then please include the source code for the functions involved.

Logs

Run your application with flutter run and attach all the log output.

Run flutter analyze and attach any output of that command also.

Flutter Doctor

[✓] Flutter (Channel beta, v0.1.6-pre.39, on Mac OS X 10.13.4 17E199, locale en-CN)

• Flutter version 0.1.6-pre.39 at /Users/kylewong/Codes/fwn_idlefish/flutter

• Framework revision 5cac396777 (2 days ago), 2018-04-17 13:09:18 +0800

• Engine revision e61bb9a

• Dart version 2.0.0-dev.35.flutter-290c576264

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)

• Android SDK at /Users/kylewong/Library/Android/sdk

• Android NDK at /Users/kylewong/Library/Android/sdk/ndk-bundle

• Platform android-27, build-tools 27.0.3

• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)

• Xcode at /Applications/Xcode.app/Contents/Developer

• Xcode 9.3, Build version 9E145

• ios-deploy 1.9.2

• CocoaPods version 1.2.0

[✓] Android Studio (version 3.1)

• Android Studio at /Applications/Android Studio.app/Contents

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (1 available)

• KyleWong's iPhone • 1c8e085cf2ff6fa27643ab4afec4bf4a077688af • ios • iOS 11.3

• No issues found!

Paste the output of running flutter doctor -v here.

Questions

Besides how to fix this problem, I'm curious how can I know which function/file-linenum the address in a released libflutter.so matches?

Do you have any good ideas for me to know which file/linenum triggered this crash?