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

wgpu surface_configure fails (intel+nvidia hybrid laptop) #100

Open
flukejones opened this issue Aug 30, 2023 · 0 comments
Open

wgpu surface_configure fails (intel+nvidia hybrid laptop) #100

flukejones opened this issue Aug 30, 2023 · 0 comments
Labels
T: bug Type: Something isn't working

Comments

@flukejones
Copy link

flukejones commented Aug 30, 2023

Two runs:

RUST_BACKTRACE=1 cargo run -- -w
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
     Running `target/debug/lapce -w`
2023-08-30T21:44:38.360517Z ERROR lapce_app::keypress: Failed to load from "/home/luke/.config/lapce-debug/keymaps.toml": no keymaps
2023-08-30T21:44:39.957400Z ERROR wgpu_hal::gles::egl: EGL 'eglGetPlatformDisplay' code 0x3004: eglGetPlatformDisplay    
thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
    Parent device is lost
', /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/backend/direct.rs:771:18
stack backtrace:
   0: rust_begin_unwind
             at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:593:5
   1: core::panicking::panic_fmt
             at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/panicking.rs:67:14
   2: wgpu::backend::direct::Context::handle_error_fatal
             at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/backend/direct.rs:345:9
   3: <wgpu::backend::direct::Context as wgpu::context::Context>::surface_configure
             at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/backend/direct.rs:771:13
   4: <T as wgpu::context::DynContext>::surface_configure
             at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/context.rs:2154:9
   5: wgpu::Surface::configure
             at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/lib.rs:4581:9
   6: floem_vger::VgerRenderer::new
             at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/vger/src/lib.rs:73:9
   7: floem::renderer::Renderer::new
             at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/renderer.rs:68:20
   8: floem::context::PaintState::new
             at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/context.rs:1161:23
   9: floem::window_handle::WindowHandle::new
             at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/window_handle.rs:73:27
  10: floem::app_handle::ApplicationHandle::new_window
             at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/app_handle.rs:196:29
  11: floem::app::Application::window
             at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/app.rs:98:9
  12: lapce_app::app::AppData::create_windows
             at ./lapce-app/src/app.rs:322:27
  13: lapce_app::app::launch
             at ./lapce-app/src/app.rs:3305:15
  14: lapce::main
             at ./lapce-app/src/bin/lapce.rs:4:5
  15: core::ops::function::FnOnce::call_once
             at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
WGPU_BACKEND=gl WGPU_ADAPTER_NAME="UHD" RUST_BACKTRACE=full cargo run -- -w
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/lapce -w`
2023-08-30T21:38:16.715649Z ERROR lapce_app::keypress: Failed to load from "/home/luke/.config/lapce-debug/keymaps.toml": no keymaps
2023-08-30T21:38:16.902593Z ERROR wgpu_hal::gles::egl: EGL 'eglGetPlatformDisplay' code 0x3004: eglGetPlatformDisplay    
thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
    Parent device is lost
', /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/backend/direct.rs:771:18
stack backtrace:
   0:     0x55bf91c12f61 - std::backtrace_rs::backtrace::libunwind::trace::he648b5c8dd376705
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x55bf91c12f61 - std::backtrace_rs::backtrace::trace_unsynchronized::h5da3e203eef39e9f
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x55bf91c12f61 - std::sys_common::backtrace::_print_fmt::h8d28d3f20588ae4c
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x55bf91c12f61 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd9a5b0c9c6b058c0
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x55bf91c47e1f - core::fmt::rt::Argument::fmt::h0afc04119f252b53
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/fmt/rt.rs:138:9
   5:     0x55bf91c47e1f - core::fmt::write::h50b1b3e73851a6fe
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/fmt/mod.rs:1094:21
   6:     0x55bf91c0bc07 - std::io::Write::write_fmt::h184eaf275e4484f0
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/io/mod.rs:1714:15
   7:     0x55bf91c12d75 - std::sys_common::backtrace::_print::hf58c3a5a25090e71
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x55bf91c12d75 - std::sys_common::backtrace::print::hb9cf0a7c7f077819
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x55bf91c14453 - std::panicking::default_hook::{{closure}}::h066adb2e3f3e2c07
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:269:22
  10:     0x55bf91c141e4 - std::panicking::default_hook::h277fa2776900ff14
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:288:9
  11:     0x55bf91c14a49 - std::panicking::rust_panic_with_hook::hceaf38da6d9db792
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:705:13
  12:     0x55bf91c14947 - std::panicking::begin_panic_handler::{{closure}}::h2bce3ed2516af7df
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:597:13
  13:     0x55bf91c133c6 - std::sys_common::backtrace::__rust_end_short_backtrace::h090f3faf8f98a395
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:151:18
  14:     0x55bf91c14692 - rust_begin_unwind
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:593:5
  15:     0x55bf91c44933 - core::panicking::panic_fmt::h4ec8274704d163a3
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/panicking.rs:67:14
  16:     0x55bf907e39e4 - wgpu::backend::direct::Context::handle_error_fatal::hbb2f275bb544ea81
                               at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/backend/direct.rs:345:9
  17:     0x55bf907eae08 - <wgpu::backend::direct::Context as wgpu::context::Context>::surface_configure::h7d5b1336817cf0d1
                               at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/backend/direct.rs:771:13
  18:     0x55bf90804684 - <T as wgpu::context::DynContext>::surface_configure::h62637b451c335751
                               at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/context.rs:2154:9
  19:     0x55bf90887520 - wgpu::Surface::configure::h0522ee74ef29c608
                               at /home/luke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.17.0/src/lib.rs:4581:9
  20:     0x55bf901d6b97 - floem_vger::VgerRenderer::new::h0b6622016ebbf1e2
                               at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/vger/src/lib.rs:73:9
  21:     0x55bf901c5256 - floem::renderer::Renderer::new::h36023c4c932fc661
                               at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/renderer.rs:68:20
  22:     0x55bf901027fe - floem::context::PaintState::new::h63d7128386c2a93f
                               at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/context.rs:1161:23
  23:     0x55bf9011278c - floem::window_handle::WindowHandle::new::h389dac1df0c7b66a
                               at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/window_handle.rs:73:27
  24:     0x55bf90140c3e - floem::app_handle::ApplicationHandle::new_window::h1d313a716654d574
                               at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/app_handle.rs:196:29
  25:     0x55bf8c8d5a4a - floem::app::Application::window::hada86382721c17a6
                               at /home/luke/.cargo/git/checkouts/floem-69eea0a757d1e3ee/53823652d957/src/app.rs:98:9
  26:     0x55bf8c430fa2 - lapce_app::app::AppData::create_windows::h0cd7d481c55c1155
                               at /home/luke/Projects/lapce/lapce-app/src/app.rs:322:27
  27:     0x55bf8c43a16e - lapce_app::app::launch::ha92c911aa3b7a84e
                               at /home/luke/Projects/lapce/lapce-app/src/app.rs:3305:15
  28:     0x55bf8bb33207 - lapce::main::h5fb7151bb68e6583
                               at /home/luke/Projects/lapce/lapce-app/src/bin/lapce.rs:4:5
  29:     0x55bf8bb331ab - core::ops::function::FnOnce::call_once::h3c64005149980313
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:250:5
  30:     0x55bf8bb3323e - std::sys_common::backtrace::__rust_begin_short_backtrace::h958691ec0c13a7aa
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:135:18
  31:     0x55bf8bb33161 - std::rt::lang_start::{{closure}}::h37f5d85c751e40cd
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:166:18
  32:     0x55bf91c04a2b - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h75ba4244a1c7bb54
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13
  33:     0x55bf91c04a2b - std::panicking::try::do_call::h0a2baa36dea975a1
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40
  34:     0x55bf91c04a2b - std::panicking::try::h0e42aa233d4224d4
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19
  35:     0x55bf91c04a2b - std::panic::catch_unwind::hefdfd8f482606434
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14
  36:     0x55bf91c04a2b - std::rt::lang_start_internal::{{closure}}::h457959f0f91da23b
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48
  37:     0x55bf91c04a2b - std::panicking::try::do_call::h112cfd1acb38183b
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40
  38:     0x55bf91c04a2b - std::panicking::try::ha64f15b20cec18ca
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19
  39:     0x55bf91c04a2b - std::panic::catch_unwind::hbacc2b68ee2c119e
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14
  40:     0x55bf91c04a2b - std::rt::lang_start_internal::h5f408694586c2a05
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20
  41:     0x55bf8bb3313a - std::rt::lang_start::hb8450eefc57d1f6f
                               at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:165:17
  42:     0x55bf8bb3322e - main
  43:     0x7f700d62814a - __libc_start_call_main
  44:     0x7f700d62820b - __libc_start_main_alias_2
  45:     0x55bf8bb33025 - _start
  46:                0x0 - <unknown>

Graphics: Intel UHD Graphics 770 + RTX4080
Distro: Fedora 39

Possible related issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Type: Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants