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 · 2 comments
Open

Performance issues: Delayed startup and application crashes #64

BokAugust opened this issue Apr 28, 2024 · 2 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

@efraespada
Copy link

Same here. 👎🏼

Screenshot 2024-05-18 at 20 55 55

@ziofat
Copy link
Owner

ziofat commented May 21, 2024

We do have all data in once to support dynamic icon loader . What version are you using? Have you use dynamic way to load icons like: MdiIcons['icon-name'] ?

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

3 participants