-
UPDATE: This is also happening on the web version of my Blazor application, so it's likely not a MAUI issue but a hot reload issue. Not sure how to move this to the relevant place so it can stay here I suppose, in the hope that someone knows how I can resolve it UPDATE 2: Closing this as I have posted it elsewhere as a Blazor hot reload issue. (#57107) UPDATE 3: Turns out it was a Blazor issue after all. See Answer.I have a large application built with MAUI Blazor hybrid. Was working fine until a couple of days ago so I hope this can be resolved just be clearing a cache or something. Hot reload freezes the application, memory usage shoots up then plateaus. After a while, the plateau doubles. Then doubles again. etc. So instead of clearing memory it seems to be just doubling? The application then stays frozen until I stop debugging. Normal operation: After hot reload: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Resolved this finally. Turns out one of my components was hitting an infinite render cycle which could only ever be hit through hot reload. From this, I would argue that Blazor needs better detection for infinite render cycles. Other frameworks manage it pretty well (I know WPF/UWP (and maybe Xamarin? Or any XAML framework?) has an "Infinite Layout Cycle" error, and React has similar too. |
Beta Was this translation helpful? Give feedback.
Resolved this finally.
Turns out one of my components was hitting an infinite render cycle which could only ever be hit through hot reload.
From this, I would argue that Blazor needs better detection for infinite render cycles. Other frameworks manage it pretty well (I know WPF/UWP (and maybe Xamarin? Or any XAML framework?) has an "Infinite Layout Cycle" error, and React has similar too.