You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably related to #8196, but a slightly different variant.
Unlike that issue however, I don't face any issue when creating windows on setup, or from tauri.conf.json. Instead, I get this error:
failed to create webview: WebView2 error: WindowsError(Error { code: HRESULT(0x8007139F), message: "The group or resource is not in the correct state to perform the requested operation." })
when invoking a tauri command that creates a new webview window, after the main window is loaded. To provide more context, this is a flakey behavior, and would actually work sometimes (if it fails for the first call, will have to re-run the dev command, or re-open the built app. if it works for the first call, the subsequent calls always seem to be successful as well).
I have followed the suggestions on the related issue, and am on the latest webview2 version (121.0.2277.128). I have also tried to create all windows manually, including the main window (so nothing defined in tauri.conf.json, but that does not work as well.
Reproduction
Adding the following command to commands example of tauri
It works sometimes, and fails with the following error on others failed to create webview: WebView2 error: WindowsError(Error { code: HRESULT(0x8007139F), message: "The group or resource is not in the correct state to perform the requested operation." })
Describe the bug
This is probably related to #8196, but a slightly different variant.
Unlike that issue however, I don't face any issue when creating windows on setup, or from
tauri.conf.json
. Instead, I get this error:failed to create webview: WebView2 error: WindowsError(Error { code: HRESULT(0x8007139F), message: "The group or resource is not in the correct state to perform the requested operation." })
when invoking a tauri command that creates a new webview window, after the main window is loaded. To provide more context, this is a flakey behavior, and would actually work sometimes (if it fails for the first call, will have to re-run the dev command, or re-open the built app. if it works for the first call, the subsequent calls always seem to be successful as well).
I have followed the suggestions on the related issue, and am on the latest webview2 version (121.0.2277.128). I have also tried to create all windows manually, including the main window (so nothing defined in tauri.conf.json, but that does not work as well.
Reproduction
Adding the following command to commands example of tauri
#[command]
async fn open_new_window(
handle: tauri::AppHandle,
) {
let _docs_window = tauri::WebviewWindowBuilder::new(
&handle,
"newWindow",
tauri::WebviewUrl::App("index.html".into()),
)
.center()
.title("New Window")
.resizable(false)
.build()
.unwrap();
}
Expected behavior
It works sometimes, and fails with the following error on others
failed to create webview: WebView2 error: WindowsError(Error { code: HRESULT(0x8007139F), message: "The group or resource is not in the correct state to perform the requested operation." })
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: