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

panicked at 'GTK may only be used from the main thread #3

Open
romanoff opened this issue Jan 27, 2024 · 0 comments
Open

panicked at 'GTK may only be used from the main thread #3

romanoff opened this issue Jan 27, 2024 · 0 comments

Comments

@romanoff
Copy link

After compiling desktop version, getting this error:

RUST_BACKTRACE=1 ./bene  ~/Downloads/portable-epubs.epub
thread 'tokio-runtime-worker' panicked at 'GTK may only be used from the main thread.', /home/aromanov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/webkit2gtk-2.0.1/src/auto/uri_scheme_response.rs:26:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/std/src/panicking.rs:593:5
   1: core::panicking::panic_fmt
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/panicking.rs:67:14
   2: core::ops::function::FnOnce::call_once{{vtable.shim}}
   3: core::ops::function::FnOnce::call_once{{vtable.shim}}
   4: bene_app::main::{{closure}}::{{closure}}::{{closure}}
   5: tokio::runtime::task::core::Core<T,S>::poll
   6: tokio::runtime::task::harness::Harness<T,S>::poll
   7: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
   8: tokio::runtime::scheduler::multi_thread::worker::Context::run
   9: tokio::runtime::context::scoped::Scoped<T>::set
  10: tokio::runtime::context::runtime::enter_runtime
  11: tokio::runtime::scheduler::multi_thread::worker::run
  12: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  13: tokio::runtime::task::harness::Harness<T,S>::poll
  14: tokio::runtime::blocking::pool::Inner::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Also had following problem during cargo tauri build

   Compiling tao v0.23.0
   Compiling muda v0.11.2
   Compiling specta v2.0.0-rc.7 (https://github.com/oscartbeaumont/specta?rev=673e3f55d246cd90e70c706ba4ca7f5818e99ba9#673e3f55)
   Compiling tauri-specta v2.0.0-rc.4 (https://github.com/oscartbeaumont/tauri-specta?branch=tauri2-alpha18#123e1833)
   Compiling bene-epub v0.1.0 (/home/aromanov/src/rust/bene/rs/crates/bene-epub)
    Finished release [optimized] target(s) in 1m 07s
    Bundling bene_0.0.0_amd64.deb (/home/aromanov/src/rust/bene/rs/target/release/bundle/deb/bene_0.0.0_amd64.deb)
    Bundling bene_0.0.0_amd64.AppImage (/home/aromanov/src/rust/bene/rs/target/release/bundle/appimage/bene_0.0.0_amd64.AppImage)
       Error failed to bundle project: error running appimage.sh

Not sure if it's related cause I still got binary

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

No branches or pull requests

1 participant