Skip to content
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] create_window panics with RecvError #3645

Closed
moxaj opened this issue Mar 8, 2022 · 1 comment
Closed

[bug] create_window panics with RecvError #3645

moxaj opened this issue Mar 8, 2022 · 1 comment
Assignees

Comments

@moxaj
Copy link

moxaj commented Mar 8, 2022

Describe the bug

The exact message I see in the logs:

thread 'main' panicked at 'called Result::unwrap() on an Err value: RecvError': [...]\tauri-runtime-wry-0.3.2\src\lib.rs:1548

which is here. The line is: let window_id = rx.recv().unwrap();.

The problem is, I cannot reproduce this on my system, the issue was reported by end users. FWIW, I call create_window on the main thread (from inside Builder::setup), but I was told that this should be fine.

Reproduction

No response

Expected behavior

No response

Platform and versions

Operating System - Windows, version 10.0.19043 X64
Webview2 - 99.0.1150.30
Visual Studio Build Tools:
   - Visual Studio Build Tools 2019

Node.js environment
  Node.js - 16.13.2
  @tauri-apps/cli - 1.0.0-rc.5 (outdated, latest: 1.0.0-rc.7)
  @tauri-apps/api - 1.0.0-rc.1 (outdated, latest: 1.0.0-rc.2)

Global packages
  npm - 8.5.1
  pnpm - Not installed
  yarn - Not installed

Rust environment      
  rustup - 1.24.3
  rustc - 1.58.1
  cargo - 1.58.0
  toolchain - stable-x86_64-pc-windows-msvc 

App directory structure
/.git
/.github
/build
/node_modules
/opencv
/public
/src
/src-tauri

App
  tauri - 1.0.0-rc.3
  tauri-build - 1.0.0-rc.3
  tao - 0.6.2
  wry - 0.13.2
  build-type - bundle
  CSP - unset
  distDir - ../build
  devPath - http://localhost:3000/
  framework - React

Stack trace

No response

Additional context

No response

@moxaj moxaj added the type: bug label Mar 8, 2022
@lucasfernog lucasfernog self-assigned this Mar 12, 2022
@lucasfernog
Copy link
Member

PR fixing this: #3684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants