Skip to content

SIGSEGV crashes on Android with Flutter 3.32.4 #171691

@nottmey

Description

@nottmey

Steps to reproduce

(caused in user device, not yet reproducible)

Expected results

no crash

Actual results

0.5% of our android user sessions crashing

Android 11 to 16L

affected devices: (no 100% error rate)

  • samsung a55x (Samsung Galaxy A55 5G)
  • samsung a52sxq (Samsung Galaxy A52s 5G)
  • samsung r8q (Samsung Galaxy S20 FE 5G)
  • samsung o1s (Samsung Galaxy S21)
  • samsung dm3q (Samsung Galaxy S23 Ultra)
  • google lynx (Google Pixel 7a)
  • (and some more)

Code sample

(not yet reproducible)

Screenshots or Video

No response

Logs

Logs
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 25277 >>> io.onecommafive.my.production.app <<<

backtrace:
  #00  pc 0x000000000006c3b8  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+12)
  #01  pc 0x00000000004cb08c  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (std::_fl::mutex::lock()+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #02  pc 0x00000000007fbac0  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (impeller::CommandQueueVK::Submit(std::_fl::vector<std::_fl::shared_ptr<impeller::CommandBuffer>, std::_fl::allocator<std::_fl::shared_ptr<impeller::CommandBuffer>>> const&, std::_fl::function<void (impeller::CommandBuffer::Status)> const&)+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #03  pc 0x000000000085be4c  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (flutter::ImageDecoderImpeller::UnsafeUploadTextureToPrivate(std::_fl::shared_ptr<impeller::Context> const&, std::_fl::shared_ptr<impeller::DeviceBuffer> const&, SkImageInfo const&, std::_fl::optional<SkImageInfo> const&)+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #04  pc 0x000000000085c124  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (std::_fl::__function::__func<flutter::ImageDecoderImpeller::UploadTextureToPrivate(std::_fl::function<void (sk_sp<flutter::DlImage>, std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>)>, std::_fl::shared_ptr<impeller::Context> const&, std::_fl::shared_ptr<impeller::DeviceBuffer> const&, SkImageInfo const&, std::_fl::shared_ptr<SkBitmap> const&, std::_fl::optional<SkImageInfo> const&, std::_fl::shared_ptr<fml::SyncSwitch const> const&)::$_0, std::_fl::allocator<flutter::ImageDecoderImpeller::UploadTextureToPrivate(std::_fl::function<void (sk_sp<flutter::DlImage>, std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>)>, std::_fl::shared_ptr<impeller::Context> const&, std::_fl::shared_ptr<impeller::DeviceBuffer> const&, SkImageInfo const&, std::_fl::shared_ptr<SkBitmap> const&, std::_fl::optional<SkImageInfo> const&, std::_fl::shared_ptr<fml::SyncSwitch const> const&)::$_0>, void ()>::operator()()+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #05  pc 0x00000000004d0678  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (fml::SyncSwitch::Execute(fml::SyncSwitch::Handlers const&) const+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #06  pc 0x000000000085b448  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (flutter::ImageDecoderImpeller::UploadTextureToPrivate(std::_fl::function<void (sk_sp<flutter::DlImage>, std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>)>, std::_fl::shared_ptr<impeller::Context> const&, std::_fl::shared_ptr<impeller::DeviceBuffer> const&, SkImageInfo const&, std::_fl::shared_ptr<SkBitmap> const&, std::_fl::optional<SkImageInfo> const&, std::_fl::shared_ptr<fml::SyncSwitch const> const&)+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #07  pc 0x000000000085b1b8  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (flutter::ImageDecoderImpeller::Decode(fml::RefPtr<flutter::ImageDescriptor>, unsigned int, unsigned int, std::_fl::function<void (sk_sp<flutter::DlImage>, std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>)> const&)::$_1::operator()() const::'lambda'()::operator()() const+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #08  pc 0x000000000085b06c  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (std::_fl::__function::__func<flutter::ImageDecoderImpeller::Decode(fml::RefPtr<flutter::ImageDescriptor>, unsigned int, unsigned int, std::_fl::function<void (sk_sp<flutter::DlImage>, std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>)> const&)::$_1, std::_fl::allocator<flutter::ImageDecoderImpeller::Decode(fml::RefPtr<flutter::ImageDescriptor>, unsigned int, unsigned int, std::_fl::function<void (sk_sp<flutter::DlImage>, std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char>>)> const&)::$_1>, void ()>::operator()()+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #09  pc 0x00000000004cce54  /data/app/~~Vc-i1HztTpVkEv8ofiNdDw==/io.onecommafive.my.production.app-rllEM0C10cDwHCwQPZw5dA==/split_config.arm64_v8a.apk!libflutter.so (void* std::_fl::__thread_proxy[abi:nn210000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*)+20135936) (BuildId: a3968a9125362955f61c5475b7b5b499c7c46589)
  #10  pc 0x000000000006b1f0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+196)
  #11  pc 0x000000000005e1b4  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Flutter Doctor output

(not yet reproducible)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: productionIssues experienced in live production appsc: crashStack traces logged to the consolee: impellerImpeller rendering backend issues and features requestse: impeller-naughty-driverDevices & drivers that may be behaving unexpectedly and may need workarounds.engineflutter/engine related. See also e: labels.needs repro infoAutomated crash report whose cause isn't yet knownplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionslimpellerEngine binary size reduction. go/slimpellerteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions