Repository: flutter
Issue: Flutter engine crashes on Jelly Bean emulator (API 18)
Labels: c: crash,platform-android,engine,P3,team-android,triaged-android

A single test in g3 is failing to bring the application up on API 18 emulator. Engine crashes with:

```
05-09 21:15:36.291  1146  1146 I DEBUG   : backtrace:
05-09 21:15:36.291  1146  1146 I DEBUG   :     #00  pc 01324eb9  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (flutter::Rasterizer::Setup(std::__ndk1::unique_ptr<flutter::Surface, std::__ndk1::default_delete<flutter::Surface> >)+217)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #01  pc 0135295a  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (flutter::Shell::OnPlatformViewCreated(std::__ndk1::unique_ptr<flutter::Surface, std::__ndk1::default_delete<flutter::Surface> >)::$_8::operator()()+154)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #02  pc 0134241c  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (_ZNK3fml8internal14CopyableLambdaIZN7flutter5Shell21OnPlatformViewCreatedENSt6__ndk110unique_ptrINS2_7SurfaceENS4_14default_deleteIS6_EEEEE3$_8EclIJEEEDaDpOT_+60)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #03  pc 013859b9  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (_ZNSt6__ndk18__invokeIRN3fml8internal14CopyableLambdaIZN7flutter5Shell21OnPlatformViewCreatedENS_10unique_ptrINS4_7SurfaceENS_14default_deleteIS7_EEEEE3$_8EEJEEEDTclclsr3std6__ndk1E7forwardIT_Efp_Espclsr3std6__ndk1E7forwardIT0_Efp0_EEEOSE_DpOSF_+57)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #04  pc 01385949  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (_ZNSt6__ndk128__invoke_void_return_wrapperIvE6__callIJRN3fml8internal14CopyableLambdaIZN7flutter5Shell21OnPlatformViewCreatedENS_10unique_ptrINS6_7SurfaceENS_14default_deleteIS9_EEEEE3$_8EEEEEvDpOT_+57)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #05  pc 01385909  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (std::__ndk1::__function::__alloc_func<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewCreated(std::__ndk1::unique_ptr<flutter::Surface, std::__ndk1::default_delete<flutter::Surface> >)::$_8>, std::__ndk1::allocator<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewCreated(std::__ndk1::unique_ptr<flutter::Surface, std::__ndk1::default_de+57)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #06  pc 0138456c  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (std::__ndk1::__function::__func<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewCreated(std::__ndk1::unique_ptr<flutter::Surface, std::__ndk1::default_delete<flutter::Surface> >)::$_8>, std::__ndk1::allocator<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewCreated(std::__ndk1::unique_ptr<flutter::Surface, std::__ndk1::default_delete<f+44)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #07  pc 012fff49  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (std::__ndk1::__function::__value_func<void ()>::operator()() const+73)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #08  pc 012fc219  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (std::__ndk1::function<void ()>::operator()() const+41)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #09  pc 0179d123  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (fml::MessageLoopImpl::FlushTasks(fml::FlushType)+323)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #10  pc 0179cf71  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (fml::MessageLoopImpl::RunExpiredTasksNow()+49)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #11  pc 017b9662  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (fml::MessageLoopAndroid::OnEventFired()+98)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #12  pc 017b9715  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (fml::MessageLoopAndroid::MessageLoopAndroid()::$_0::operator()(int, int, void*) const+69)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #13  pc 017b96be  /data/app-lib/androidx.test.testapp.flutter.app-1/libflutter.so (fml::MessageLoopAndroid::MessageLoopAndroid()::$_0::__invoke(int, int, void*)+78)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #14  pc 00025be1  /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+33)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #15  pc 00027dba  /system/lib/libutils.so (android::Looper::pollInner(int)+890)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #16  pc 00028123  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+51)
05-09 21:15:36.291  1146  1146 I DEBUG   :     #17  pc 0000ba3b  /system/lib/libandroid.so (ALooper_pollOnce+107)
```

Commits in this roll are:

```
7eff0a8 Manual roll of engine 7e205b37e5...3953c3ccd1
    e54bb9e Roll src/third_party/dart 4da5b40fb6dc..733153eb517c (23 commits)
    35fa006 Roll src/third_party/skia 88d04cb51acf..3b2db26c59d6 (1 commits)
    e9b2afe Roll fuchsia/sdk/core/linux-amd64 from RpHTv... to MhpFP...
    34b0629 Roll fuchsia/sdk/core/mac-amd64 from jMJqf... to 1MVsE...
    fe3f8df Roll src/third_party/skia 3b2db26c59d6..e3d1de7c5281 (4 commits)
    807f191 Roll src/third_party/dart 733153eb517c..e86e4d61834a (6 commits)
    d043923 Roll src/third_party/skia e3d1de7c5281..2871ab0727bf (1 commits)
    ede658e [profiling] CPU Profiling support for iOS
    bcdf991 Fixed ChildSceneLayer elevation issue on Fuchsia.
    56fe6d2 Roll src/third_party/skia 2871ab0727bf..edea19858ccc (3 commits)
    0dffdd5 Roll src/third_party/dart e86e4d61834a..ce62ad2e8b40 (13 commits)
    88b9d42 Remove the global engine entry timestamp
    5e7d6d0 Roll src/third_party/skia edea19858ccc..0066adefa97d (3 commits)
    b582d77 Roll src/third_party/skia 0066adefa97d..c66cd987f7c0 (4 commits)
    d3bde19 add docs to platformviewios (and some drive-by changes)
    e5a7ca5 Handle leak of message handle when no engine present
    15f72b8 Support EventChannel C++ plugin API for Linux/Windows
    23cca32 Manual Roll of Dart 39e0e75fcf...ce62ad2e8b
    716dbf0 Refactor GLFW embedding to support headless mode
    5e361f5 Roll src/third_party/skia c66cd987f7c0..0dc207f836da (5 commits)
    28d9985 Reland again "Remove layer integral offset snapping #17112"
    e7ee47d [web] Implement matrix parameter for linear gradient
    46a6d96 [SkParagraph] Copy text height behavior to the Skia paragraph style
    403931f Add FlValue
    9193d8f Roll src/third_party/skia 0dc207f836da..a14084ba1b41 (3 commits)
    7e205b3 Roll src/fuchsia/sdk/mac from 1MVsE... to 4MCVP...

7bce4d9 Manual roll of engine 9b905d3f03...7e205b37e5
    9b905d3 Manual roll of Dart 617bc54b71...39e0e75fcf
```

I am proceeding with the roll as this is not a blocker in google3. However, it is likely a TODAY issue if we are currently supporting API 18. I am not sure if we have upstream tests for this.