-
-
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
Transactions are very slow to complete when started inside appRunner
, block the UI from showing up
#2233
Labels
Comments
github-project-automation
bot
moved this to Needs Discussion
in Mobile & Cross Platform SDK
Aug 14, 2024
hey, thanks for the issue, we'll have a look! |
buenaflor
moved this from Needs Discussion
to Needs Investigation
in Mobile & Cross Platform SDK
Aug 19, 2024
@maBarabas The issue is that you are awaiting finishing the transaction before You have two options here:
Future<void> appMain() async {
runApp(MyApp());
final transaction = Sentry.startTransaction('hello', 'hello');
await transaction.finish();
}
Future<void> appMain() async {
final transaction = Sentry.startTransaction('hello', 'hello');
// .. do stuff
final endTime = DateTime.now();
runApp(MyApp());
await transaction.finish(endTimestamp: endTime);
} In the case you mentioned one of our event processors ins running into a timeout, because the |
buenaflor
moved this from Needs Investigation
to Needs More Information
in Mobile & Cross Platform SDK
Aug 29, 2024
github-project-automation
bot
moved this from Needs More Information
to Done
in Mobile & Cross Platform SDK
Sep 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Platform
Flutter Mobile
Obfuscation
Disabled
Debug Info
Disabled
Doctor
`flutter doctor -v`
Version
8.7.0
Steps to Reproduce
Run this app on iOS or android in profile mode (using a real DSN):
Expected Result
App UI appears almost instantly after app is launched.
Actual Result
The UI appears after about 10s.
Rerun without the
tracesSamplerate
or without thedsn
or without thetransaction
or with Sentry before and notice that the UI appears in less than a second. Removing just one of these is enough to avoid the bug.I bisected on android and the first slow commit is 5e7abc5, where the app UI never appears.
Are you willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: