Skip to content
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

Performance issues: Delayed startup and application crashes #64

Open
BokAugust opened this issue Apr 28, 2024 · 0 comments
Open

Performance issues: Delayed startup and application crashes #64

BokAugust opened this issue Apr 28, 2024 · 0 comments

Comments

@BokAugust
Copy link

What happened to me:

  • In the last week, my app's startup time has become super long, 45 seconds or more, every time I debug it.
  • After the app successfully runs and displays the ui, a few random swipes and the whole app gets stuck and freezes for upwards of 110 seconds.
  • With luck, the app goes back to normal, with bad luck, the whole app crashes and exits.

I used a process of elimination to remove, one by one, packages that I thought might be affecting performance, such as firebase suite, admob, unityads, etc. After about 8 hours, I really never expected that it would be material_design_icons_flutter, and it was because I really couldn't suspect it that I ranked it to the last.

In DevTools-Memory, you can see what it did, and yes, it loaded all the resources into memory, which obviously can't be done instantly.

Snipaste_2024-04-29_00-30-37

After removing this package, there are no more delayed starts and app crashes.

My environment:
Device • Google Pixel 7
Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 54e66469a9 (11 days ago) • 2024-04-17 13:08:03 -0700
Engine • revision c4cd48e186
Tools • Dart 3.3.4 • DevTools 2.31.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant