[bug] On linux with GTK when opening new popup it panics
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5k
- Forks
- 540
- Avg merge
- 16h 7m
- Merged PRs (30d)
- 5
Description
Describe the bug
When opening a new popup from vscode.dev (to login) it causes a panic.
Steps To Reproduce
Open a popup from vscode.dev.
Expected behavior
Opens a new popup (on mac it works)
Screenshots
Platform and Versions (please complete the following information):
OS: Ubuntu 24.04 LTS
Rustc: Stable(latest)
Additional context
This is the repo where I build it: https://github.com/appsinacup/godot_wry
I then use it inside Godot.
new window req: https://github.com/login/oauth/authorize?client_id=01ab8ac9400c4e429b23&redirect_uri=https://vscode.dev/... NewWindowFeatures { size: None, position: None, opener: NewWindowOpener { webview: WebView { inner: TypedObjectRef { inner: 0x346f4080, type: WebKitWebView } } } }
ERROR: [panic /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wry-0.54.1/src/webkitgtk/mod.rs:504] called `Result::unwrap()` on an `Err` value: Widget { inner: TypedObjectRef { inner: 0x345caa80, type: GtkWindow } }
at: godot_core::private::set_gdext_hook::{{closure}} (/home/runner/.cargo/git/checkouts/gdext-067f4b88e7bd088f/8854ed8/godot-core/src/private.rs:352)
GDScript backtrace (most recent call first):
[0] _process (res://addons/godot_vscode_ide/plugin.gd:108)
ERROR: [panic library/core/src/panicking.rs:225] panic in a function that cannot unwind
at: godot_core::private::set_gdext_hook::{{closure}} (/home/runner/.cargo/git/checkouts/gdext-067f4b88e7bd088f/8854ed8/godot-core/src/private.rs:352)
GDScript backtrace (most recent call first):
[0] _process (res://addons/godot_vscode_ide/plugin.gd:108)
thread caused non-unwinding panic. aborting.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the popup flow on Ubuntu 24.04 using the reported Godot integration, then inspect wry-0.54.1's webkitgtk/mod.rs at line 504 and the GDScript call at res://addons/godot_vscode_ide/plugin.gd:108. Compare the Linux GTK path with the working macOS behavior; done means opening the vscode.dev login popup without a panic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100