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

新窗口点击close后,再创建窗口,会闪退。 #11

Open
zhangliangming opened this issue Dec 13, 2024 · 3 comments
Open

新窗口点击close后,再创建窗口,会闪退。 #11

zhangliangming opened this issue Dec 13, 2024 · 3 comments

Comments

@zhangliangming
Copy link

当我调用 WindowManagerPlus.fromWindowId(windowId).close();或者是直接点击新窗口的关闭后,我再点击WindowManagerPlus.createWindow()接口,这时,会输出下面的日志,然后应用闪退。
日志信息:
WindowManagerPlugin dealloc
WindowManager dealloc
平台
windows 11 64位

@lch872
Copy link

lch872 commented Jan 15, 2025

遇到同样的问题,新窗口关闭,再创建闪退。从desktop_multi_window过来了,一样的问题,看样子是 Flutter 底层的原因了,多窗口组件绕不过去。

I encountered the same problem. When I closed the new window and created it again, it crashed. I came over from desktop_multi_window and had the same problem. It seems that it is the underlying reason of Flutter. The multi-window component cannot be circumvented.

@maojiu-bb
Copy link

当我调用 WindowManagerPlus.fromWindowId(windowId).close();或者是直接点击新窗口的关闭后,我再点击WindowManagerPlus.createWindow()接口,这时,会输出下面的日志,然后应用闪退。 日志信息: WindowManagerPlugin dealloc WindowManager dealloc 平台 windows 11 64位

解决了吗

@zhangliangming
Copy link
Author

@lch872 @maojiu-bb

https://gitcode.com/open-source-toolkit/fbf4d/blob/main/flutter_desktop_support.zip

我是用了这个作者修改后的库(flutter_desktop_support)和这个不是同一个,解决了,它应该是在源码上做了修复。

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