material_design_icons_flutter icon indicating copy to clipboard operation
material_design_icons_flutter copied to clipboard

Performance issues: Delayed startup and application crashes

Open BokAugust opened this issue 1 year ago • 2 comments

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

BokAugust avatar Apr 28 '24 16:04 BokAugust

Same here. 👎🏼

Screenshot 2024-05-18 at 20 55 55

efraespada avatar May 18 '24 18:05 efraespada

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'] ?

ziofat avatar May 21 '24 08:05 ziofat