-
Notifications
You must be signed in to change notification settings - Fork 480
Open
Description
Description
The application panics with RefCell already borrowed immediately after launching the webview example. This appears to be a reentrancy issue where gpui::app::AppCell::borrow_mut is called while the cell is already borrowed during the window drawing/initialization process on Windows.
Environment
- GPUI (Zed): a70e2ad075855582d08d98f (extracted from local cargo path)
- GPUI Component: v0.5.1 (as per workspace version)
- Platform: Windows 11 (MSVC)
Steps to Reproduce
- Clone the repository.
- Navigate to gpui-component\examples\webview.
- Run cargo run.
- The window opens briefly and immediately crashes.
Screenshots
Expected
The webview window should initialize and render correctly without panicking.
Actual
The program panics with the following error:
thread 'main' panicked at ...\gpui\src\app\async_context.rs:146:28:
RefCell already borrowed
stack backtrace:
...
5: gpui::app::AppCell::borrow_mut
6: gpui::app::async_context::AsyncApp::update::...
7: gpui::window::impl$26::new::closure$3
9: gpui_windows::window::WindowsWindowInner::draw_window
...
20: webview2_com::wait_with_pumpReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels