-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Labels
Description
Upon closing app, there are various fatal memory access errors
Reproduce Steps
Steps to reproduce the behavior:
- Open an app with desktop_multi_window v0.2.0
- Close the app
- See crash logs (e.g.: Sentry Native or debug locally with Visual Studio)
Expected behavior
Upon closing app, no memory access violations should occur
Version (please complete the following information):
- Flutter Version: v3.19.3
- OS: Windows
- plugin: [desktop_multi_window v0.2.0]
Errors occur in C++ library and are not caught by Flutter
Can debug locally with Visual Studio by:
- Open Task Manager
- Right click app
- Debug
- New instance of Visual Studio
Seems like desktop_multi_window objects are trying to be used after Flutter app is closed & memory is deallocated
Challenge might be making sure all objects are destructed before Flutter app is closed
Commenting out WindowChannel destructor code seems to resolve memory access errors, but was hoping for a better solution
Note: repro steps only require main window to be created (and registered) -- no creation of subwindows required to reproduce issue

