flutter / flutter/flutter

Getting pthread_mutex_lock crashes on various devices on google play app console

Open
#160,971 30 comments 0 reactions 0 assignees View on GitHub
c: crash engine needs repro info P2 platform-android team-android triaged-android
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

```
(io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.finalize+16)
#30 pc 0x0000000000256618 /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2851806063)+496)
#31 pc 0x000000000051d6a8 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
#32 pc 0x00000000005666fc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
#33 pc 0x00000000001832d4 /system/framework/arm64/boot-core-libart.oat (java.lang.Daemons$FinalizerDaemon.doFinalize+100)
#34 pc 0x000000000018355c /system/framework/arm64/boot-core-libart.oat (java.lang.Daemons$FinalizerDaemon.runInternal+492)
#35 pc 0x000000000011185c /system/framework/arm64/boot-core-libart.oat (java.lang.Daemons$Daemon.run+76)
#36 pc 0x000000000025d2e8 /system/framework/arm64/boot.oat (java.lang.Thread.run+72)
#37 pc 0x000000000055d588 /system/lib64/libart.so (art_quick_invoke_stub+584)
#38 pc 0x00000000000cf740 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#39 pc 0x0000000000463bd0 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#40 pc 0x0000000000464c98 /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
#41 pc 0x0000000000490010 /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120)
#42 pc 0x0000000000083824 /system/lib64/libc.so (__pthread_start(void*)+36)
#43 pc 0x000000000002340c /system/lib64/libc.so (__start_thread+68)
```

### Expected results

it should not cause issue

### Actual results

its causing anr s

### Code sample

Code sample

```dart
[Paste your code here]
```

### Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

### Logs

Logs

```console
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.2 24C101 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.2)
[✓] Connected device (6 available)
[✓] Network resources

• No issues found!
```

### Flutter Doctor output

Doctor output

```console
[Paste your output here]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.