-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SentryFlutter.Init is pausing the UI thread for some reason #2491
Comments
hey @lucas404x could you try setting and pls enable |
Sure thing! Here's the log:
|
I am having the same issue. On android, release builds get stuck on the first frame when I update to any version above and including 8.9.0 (8.8.0 works). If I set The device I am using is running Android 14 and I am using Flutter 3.27.0
|
is this only on Android an issue? @ChrisElliotUK |
We're having a look and will push a hotfix as soon as we can find the issue, my hunch is impeller is somehow messing with stuff (it's auto-enabled for android since 3.27) |
is it possible if you could provide a simple repro sample? @ChrisElliotUK @lucas404x |
Could you guys try out if pulling the appRunner outside of // from this
await SentryFlutter.init(
...
appRunner: () => runApp(MyApp()),
);
// to this
SentryFlutter.init(
...
);
runApp(MyApp()); Please also try running it with skia |
|
@lucas404x can you also confirm that it works on |
Both versions are working here. |
@lucas404x gotcha, do you mind attaching some minimal repro? I can't reproduce it on my test device so far unfortunately |
Platform
Flutter Mobile Android
Obfuscation
Enabled
Debug Info
Enabled
Doctor
[√] Flutter (Channel stable, 3.27.0, on Microsoft Windows [Version 10.0.22631.4602], locale pt-BR)
• Flutter version 3.27.0 on channel stable at C:\dev\flutter\stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 8495dee1fd (2 days ago), 2024-12-10 14:23:39 -0800
• Engine revision 83bacfc525
• Dart version 3.6.0
• DevTools version 2.40.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\Josel\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.12.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.12.35527.113
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2022.3)
• 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 17.0.6+0-b2043.56-10027231)
[√] VS Code (version 1.96.0)
• VS Code at C:\Users\Josel\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.102.0
[√] Connected device (4 available)
• SM A032M (mobile) • R9QT605V0DM • android-arm • Android 13 (API 33)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4602]
• Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.92
• Edge (web) • edge • web-javascript • Microsoft Edge 131.0.2903.86
[√] Network resources
• All expected network resources are available.
• No issues found!
Version
8.11.0
Steps to Reproduce
I don't know why, but suddenly my application is initializing completely frozen. For me, just initializing my runApp function inside appRunner from SentryFlutter.init is enough to reproduce the behavior.
Expected Result
This is what should I expect (with sentry enabled ofc)
https://github.com/user-attachments/assets/423ce6ff-5d2a-4b2a-ac01-1b3ed375881b
Logs:
Actual Result
This is what happening right now with sentry enabled:
https://github.com/user-attachments/assets/1803eb67-b5f3-479b-84b5-e1c85e600e8c
Logs:
Are you willing to submit a PR?
None
The text was updated successfully, but these errors were encountered: