weather_animation icon indicating copy to clipboard operation
weather_animation copied to clipboard

"unexpected error helper" button does not work correctly

Open PackRuble opened this issue 2 years ago • 0 comments

The question concerns the weathunits_configurator application from example folder.

The _UpdateForceButton widget and its associated MainController.forcedUpdate controller do not fully reset errors when unexpected errors occur. At the moment, this is used to re-generate the key for MaterialApp and thereby rebuild the entire widget tree. However, this does not free up bound/bit resources.

Bottom line: sometimes selecting mismatched parameters in the configurator can fail and weather items will not be removed by the framework itself. The _UpdateForceButton may help to visually fix the failure, but in fact the framework will continue to malfunction. This may well lead to memory leaks and application crashes.

I have no information on how to fix this problem. What you can try:

  • Limit each parameter to specific values (there is no way to do this and control every time new, incompatible parameters are added)
  • on pressing the button, clear "broken data"
  • something else...?

PackRuble avatar Nov 23 '22 13:11 PackRuble