Repository navigation
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: productionIssues experienced in live production appsIssues experienced in live production appsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Steps to reproduce
Just spotted this new ANR in my Google Play console, happened in the foregroind with Android 13
Thread 1
"main" tid=1 Native
Main thread
#00 pc 0x000000000005e378 /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
#01 pc 0x0000000000210bff /apex/com.android.art/lib/libart.so (art::ConditionVariable::WaitHoldingLocks+86)
#02 pc 0x000000000059d9dd /apex/com.android.art/lib/libart.so (artJniMethodEnd+312)
#03 pc 0x00000000000a4189 /apex/com.android.art/lib/libart.so (art_jni_method_end+8)
at android.content.res.AssetManager.nativeThemeApplyStyle (Native method)
at android.content.res.AssetManager.applyStyleToTheme (AssetManager.java:1222)
at android.content.res.ResourcesImpl$ThemeImpl.applyStyle (ResourcesImpl.java:1356)
at android.content.res.Resources$Theme.applyStyle (Resources.java:1568)
at android.view.ContextThemeWrapper.onApplyThemeResource (ContextThemeWrapper.java:203)
at android.view.ContextThemeWrapper.initializeTheme (ContextThemeWrapper.java:216)
at android.view.ContextThemeWrapper.getTheme (ContextThemeWrapper.java:175)
at android.content.Context.obtainStyledAttributes (Context.java:901)
at android.view.View.<init> (View.java:5532)
at android.view.ViewGroup.<init> (ViewGroup.java:704)
at android.view.ViewGroup.<init> (ViewGroup.java:700)
at android.view.ViewGroup.<init> (ViewGroup.java:696)
at android.view.ViewGroup.<init> (ViewGroup.java:692)
at io.flutter.plugin.platform.SingleViewFakeWindowViewGroup.<init> (SingleViewFakeWindowViewGroup.java)
at io.flutter.plugin.platform.SingleViewPresentation.onCreate (SingleViewPresentation.java:29)
at android.app.Dialog.dispatchOnCreate (Dialog.java:436)
at android.app.Dialog.show (Dialog.java:325)
at android.app.Presentation.show (Presentation.java:279)
at io.flutter.plugin.platform.VirtualDisplayController.<init> (VirtualDisplayController.java:1)
at io.flutter.plugin.platform.VirtualDisplayController.create (VirtualDisplayController.java:201)
at io.flutter.plugin.platform.PlatformViewsController.configureForVirtualDisplay (PlatformViewsController.java:201)
at io.flutter.plugin.platform.PlatformViewsController.access$800 (PlatformViewsController.java:201)
at io.flutter.plugin.platform.PlatformViewsController$1.createForTextureLayer (PlatformViewsController.java:201)
at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create (PlatformViewsChannel.java:896)
at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall (PlatformViewsChannel.java:896)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java:17)
at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:138)
at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0 (DartMessenger.java:138)
at android.os.Handler.handleCallback (Handler.java:942)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7941)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:569)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1019)
Expected results
No ANR
Actual results
ANR
Code sample
No repro steps unfortunately. This ANR is some low level stuff, and not obvious from the crash logs.
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[!] Flutter (Channel stable, 3.29.0, on Microsoft Windows [Version 10.0.26100.3194], locale en-US) [516ms]
• Flutter version 3.29.0 on channel stable at D:\flutter
! Warning: `flutter` on your path resolves to D:\projects\xxxx\flutter, which is not inside your current Flutter SDK checkout at D:\flutter. Consider adding D:\flutter\bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 35c388afb5 (3 days ago), 2025-02-10 12:48:41 -0800
• Engine revision f73bfc4522
• Dart version 3.7.0
• DevTools version 2.42.2
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[√] Windows Version (11 Pro 64-bit, 24H2, 2009) [3.2s]
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [2.5s]
• Android SDK at C:\Users\User\AppData\Local\Android\sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: C:\Program Files\Microsoft\jdk-17.0.13.11-hotspot\bin\java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment Microsoft-10376486 (build 17.0.13+11-LTS)
• All Android licenses accepted.
[√] Chrome - develop for the web [146ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.9) [144ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.32106.194
• Windows 10 SDK version 10.0.19041.0
[!] Android Studio (version 2023.2) [31ms]
• Android Studio at C:\Program Files\Android\Android Studio 2
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
X Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.
[√] Android Studio (version 2024.2) [29ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.4+-12508038-b607.1)
[√] VS Code (version 1.97.2) [29ms]
• VS Code at C:\Users\User\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.104.0
[√] Connected device (4 available) [418ms]
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.3194]
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.59
• Edge (web) • edge • web-javascript • Microsoft Edge 132.0.2957.140
[√] Network resources [758ms]
• All expected network resources are available.
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: productionIssues experienced in live production appsIssues experienced in live production appsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Activity
maheshj01 commentedon Feb 14, 2025
@giorgio79 Can you please share your projects pubspec.yaml? Also Do you have more stack traces from play console?
giorgio79 commentedon Feb 15, 2025
Thanks @maheshj01 here is my pubspec and attaching full log from Google Play. This is the only issue that occurred and the device shows as unknown device.
stacktrace.log
maheshj01 commentedon Feb 17, 2025
Thank you for the details labelling for further investigation from the team
stacktrace.log