-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[bug] dynamic create webview in current window crash in windows 10 #10010
Comments
I have encountered this issue as well. |
Can one of you please post the output of the |
Similar issues.
Whether in Win10/Win11, creating a window will crash, tauri:https://created It will happen, but there are no errors, |
@lindongchen Does this also happen if you remove the |
error[E0599]: no method named error[E0599]: no method named error[E0599]: no method named |
I have tracked the source code and found that many functions are enabled under the unstable flag, so removing the unstable flag seems meaningless @FabianLars |
Apologies, i only looked at your js example and forgot about the initial issue code... |
May I know which version can be fixed |
The implementations behind the |
I have a very important project that relies on this feature. Can you help optimize it |
No, sorry. I don't have any spare time myself. One thing I just noticed though, did you ever try making your |
Check We had an extra edit: nevermind, it does launch now when debugging but crashes in production builds still. |
Describe the bug
#[tauri::command]
pub fn create_webview_inner(
window: tauri::Window,
url: String,
x: f64,
y: f64,
width: f64,
height: f64,
) -> Result<String, String> {
let window_id = WINDOW_ID.fetch_add(1, atomic::Ordering::SeqCst);
let label = format!("webview_{}", window_id);
let webview_builder =
tauri::webview::WebviewBuilder::new(label.clone(), WebviewUrl::App(url.parse().unwrap()));
let _webview = window.add_child(
webview_builder.auto_resize(),
LogicalPosition::new(x, y),
LogicalSize::new(width, height),
);
Ok(label)
}
The above code can be allowed normally on Mac, but cannot be allowed on Windows
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: