-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
App freezes when GPU is disabled while the app is running #124194
Comments
Hello @temirlanzhangazy. Are you able to reproduce this issue in debug mode? Are there any stack traces you can provide? |
Hello. I tried the same thing in debug mode: same result. |
Hi @temirlanzhangazy, does this occur with the sample app as well or only with your app? |
Yes, this occurs with the sample app too. |
Flashback.-.Apr.6.2023.13_44_20.mp4Here is the sample app. |
Hi @temirlanzhangazy, if you run the app with the |
Yes, issue is the same with I noticed these errors after disabling GPU. |
How can I catch these errors so I can exit my application? |
The error looks to be coming from the engine and not from the framework, so I don't think there is a way to catch these errors. I have a Windows laptop with a dedicated, as well as iGPU, but currently I do not have it with me. I'll try to reproduce this issue with the steps I can see in the video you provided in #124194 (comment) and get back here with my findings |
I can reproduce this issue on Windows 11 on ERR: SwapChain11.cpp:947 (present): Present failed: the D3D11 device was removed, HRESULT: 0x887A0005
[ERROR:flutter/shell/gpu/gpu_surface_gl_skia.cc(217)] Could not make the context current to acquire the frame.
|
Thank you for reporting this issue! The Flutter engine accepts render configs at startup and does not support switching between GPU/software rendering at runtime yet.
This is surprising. I would expect this to work using software rendering. We might need to update our GPU detection logic to better handle this startup scenario.
I'm not familiar with this. This sounds like a bug that we'll need to investigate. |
It seems this issue also happens if you update your drivers while a Flutter app is running: #88007 |
I've also seen this on customer devices:
Related: #111151 |
|
Just wanted to chime in and add another user to the pile. I believe I've been experiencing this same issue, predominately when windows restores from a sleep state. I've noted the cursor still responds to click targets and the app is still functioning underneath however the UI is completely frozen. Resizing the window leaves blank space. I've not experienced this in my development environment with a AMD GPU, only production, which runs on Intel integrated graphics. This has a significant effect on my applications viability as at current there is no way to appropriately handle the bug. Edit 19/4/24: I added a wakelock to my app to see if that has any effect on the renderer crashing. It does not seem to prevent anything, it still sporadically breaks with the app still running underneath leaving the user to manually restart the app. |
Is there any update for this 😭 |
The |
While running Flutter app on a desktop, if you disable GPU, (even if enable it again) flutter app will freeze.
Expected results:
Flutter Desktop App would switch GPU or turn on software rendering.
Actual results:
Rendering has stopped. The application is frozen.
Example:
Windows app built with Flutter is set to launch on startup, but some users are experiencing issues where their GPU is not fully enabled yet, causing the app to freeze or crash. To address this, a third-party app was developed that delays the launch of the Flutter app until the GPU is fully enabled. Also when some GPU functionalities like Nvidia G-Sync were turned on AFTER the flutter app was launched, app freezes too.
flutter doctor -v
The text was updated successfully, but these errors were encountered: