rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Surface configuration failed, leading to crash

Open Peeta586 opened this issue 9 months ago • 1 comments

Describe the bug

ibEGL warning: DRI3: Screen seems not DRI3 capable                                                                                                                                                           
libEGL warning: DRI2: failed to authenticate                                                                                                                                                                  
[2025-03-27T13:00:27Z ERROR wgpu::backend::wgpu_core] Handling wgpu errors as fatal by default                                                                                                                
                                                                                                                                                                                                              
thread 'main' panicked at 'wgpu error: Validation Error                                                                                                                                                       
                                                                                                                                                                                                              
Caused by:                                                                                                                                                                                                    
  In Surface::configure                                                                                                                                                                                       
    Invalid surface                                                                                                                                                                                           
                                                                                                                                                                                                              
'                                                                                                                                                                                                             
wgpu-24.0.1/src/backend/wgpu_core.rs:3432                                                                                                                                                                     
stack backtrace:                                                                                                                                                                                              
   6: core::panicking::panic_fmt                                                                                                                                                                              
   7: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error_inner                                                                                                                                           
   8: <wgpu::backend::wgpu_core::CoreSurface as wgpu::dispatch::SurfaceInterface>::configure                                                                                                                  
   9: wgpu::api::surface::Surface::configure                                                                                                                                                                  
  10: egui_wgpu::winit::Painter::configure_surface                                                                                                                                                            
  11: egui_wgpu::winit::Painter::resize_and_generate_depth_texture_view_and_msaa_view                                                                                                                         
  12: pollster::block_on                                                                                                                                                                                      
  13: <eframe::native::wgpu_integration::WgpuWinitApp as eframe::native::winit_integration::WinitApp>::resumed                                                                                                
  14: <eframe::native::run::WinitAppWrapper<T> as winit::application::ApplicationHandler<eframe::native::winit_integration::UserEvent>>::resumed                                                              
  15: winit::platform_impl::linux::x11::EventLoop<T>::run_on_demand                                                                                                                                           
  16: eframe::native::run::run_wgpu                                                                                                                                                                           
  17: eframe::run_native                                                                                                                                                                                      
                                                                                                                                                                                                              
Troubleshooting Rerun: https://www.rerun.io/docs/getting-started/troubleshooting 

environment

python=3.10
lerobot=latest
rerun-sdk=0.22.1

Peeta586 avatar Mar 27 '25 13:03 Peeta586

@Peeta586 What system are you running on? GPU(s), OS would be relevant. I can see from the log output already that you're running on Linux with X11, correct? You get this crash presumably on every startup via python? Also it might be helpful to get some additional log output - can you try running with RUST_LOG=trace and post that here?

Forcing either gl or vulkan via --renderer=gl or --renderer=vulkan might be interesting as well to try out.


Iirc upcoming wgpu versions will add a little bit more for this error message. But we should handle this a bit better, we're clearly installing wgpu error handlers too late (this still happens inside egui, re_renderer then later adds additional error handlers)

Wumpf avatar Mar 31 '25 12:03 Wumpf

Hi, I've got a similar problem. Here is what I got by with RUST_LOG=trace

$ RUST_LOG=trace rerun                
[2025-06-10T07:05:26Z DEBUG rerun::commands::entrypoint] Detected 16 cores. Using 14 compute threads.
[2025-06-10T07:05:26Z DEBUG rerun::commands::entrypoint] Parsing memory limit for Viewer
[2025-06-10T07:05:26Z DEBUG re_memory::memory_limit] Setting memory limit to 23.3 GiB, which is 75% of total available memory (31.1 GiB).
[2025-06-10T07:05:26Z DEBUG rerun::commands::entrypoint] Parsing memory limit for gRPC server
[2025-06-10T07:05:26Z DEBUG re_memory::memory_limit] Setting memory limit to 7.8 GiB, which is 25% of total available memory (31.1 GiB).
[2025-06-10T07:05:26Z INFO  re_grpc_server] Listening for gRPC connections on 0.0.0.0:9876. Connect by running `rerun --connect rerun+http://127.0.0.1:9876/proxy`
[2025-06-10T07:05:26Z DEBUG eframe] Using the wgpu renderer
[2025-06-10T07:05:26Z TRACE polling::epoll] created eventfd for notifier
[2025-06-10T07:05:26Z TRACE polling::epoll] add; epoll_fd=11 fd=13 ev=Event { key: 18446744073709551615, readable: false, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:05:26Z TRACE polling::epoll] add; epoll_fd=11 fd=12 ev=Event { key: 18446744073709551615, readable: true, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:05:26Z TRACE polling::epoll] new epoll_fd=11 notifier=EventFd(OwnedFd { fd: 12 })
[2025-06-10T07:05:26Z TRACE calloop::loop_logic] [calloop] Inserting new source #0
[2025-06-10T07:05:26Z TRACE polling::epoll] add; epoll_fd=11 fd=10 ev=Event { key: 0, readable: true, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:05:26Z TRACE calloop::loop_logic] [calloop] Inserting new source #1
[2025-06-10T07:05:26Z TRACE polling::epoll] add; epoll_fd=11 fd=14 ev=Event { key: 4294967296, readable: true, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:05:26Z TRACE eframe::native::run] Entering the winit event loop (run_app_on_demand)…
[2025-06-10T07:05:26Z DEBUG eframe::native::wgpu_integration] Event::Resumed
[2025-06-10T07:05:26Z DEBUG eframe::native::file_storage] Loading app state from "/home/wiss/qis/.local/share/rerun/app.ron"…
[2025-06-10T07:05:26Z INFO  winit::platform_impl::linux::x11::window] Guessed window scale factor: 1.25
[2025-06-10T07:05:26Z DEBUG egui_wgpu::setup] Creating wgpu instance with backends Backends(VULKAN | GL | METAL)
Can't open bumblebee display.
[2025-06-10T07:05:26Z WARN  wgpu_hal::gles::egl] No config found!
[2025-06-10T07:05:26Z WARN  wgpu_hal::gles::egl] EGL says it can present to the window but not natively
[2025-06-10T07:05:26Z WARN  wgpu_hal::gles::adapter] Max vertex attribute stride unknown. Assuming it is 2048
[2025-06-10T07:05:26Z WARN  wgpu_hal::gles::adapter] Max vertex attribute stride unknown. Assuming it is 2048
[2025-06-10T07:05:26Z INFO  egui_wgpu] There were 3 available wgpu adapters: {backend: Vulkan, device_type: IntegratedGpu, name: "Intel(R) Graphics (RKL GT1)", driver: "Intel open-source Mesa driver", driver_info: "Mesa 24.2.8-1ubuntu1~24.04.1", vendor: Intel (0x8086), device: 0x4C8A}, {backend: Vulkan, device_type: Cpu, name: "llvmpipe (LLVM 19.1.1, 256 bits)", driver: "llvmpipe", driver_info: "Mesa 24.2.8-1ubuntu1~24.04.1 (LLVM 19.1.1)", vendor: Mesa (0x10005)}, {backend: Gl, device_type: Other, name: "NVIDIA RTX A4000/PCIe/SSE2", driver_info: "3.3.0 NVIDIA 560.35.03", vendor: NVIDIA (0x10DE)}
[2025-06-10T07:05:26Z DEBUG egui_wgpu] Picked wgpu adapter: backend: Vulkan, device_type: IntegratedGpu, name: "Intel(R) Graphics (RKL GT1)", driver: "Intel open-source Mesa driver", driver_info: "Mesa 24.2.8-1ubuntu1~24.04.1", vendor: Intel (0x8086), device: 0x4C8A
[2025-06-10T07:05:26Z ERROR wgpu::backend::wgpu_core] Handling wgpu errors as fatal by default

thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
  In Surface::configure
    Invalid surface

'
wgpu-24.0.1/src/backend/wgpu_core.rs:3432
stack backtrace:
   6: core::panicking::panic_fmt
   7: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error_inner
   8: <wgpu::backend::wgpu_core::CoreSurface as wgpu::dispatch::SurfaceInterface>::configure
   9: wgpu::api::surface::Surface::configure
  10: egui_wgpu::winit::Painter::configure_surface
  11: egui_wgpu::winit::Painter::resize_and_generate_depth_texture_view_and_msaa_view
  12: pollster::block_on
  13: <eframe::native::wgpu_integration::WgpuWinitApp as eframe::native::winit_integration::WinitApp>::resumed
  14: <eframe::native::run::WinitAppWrapper<T> as winit::application::ApplicationHandler<eframe::native::winit_integration::UserEvent>>::resumed
  15: winit::platform_impl::linux::x11::EventLoop<T>::run_on_demand
  16: <winit::event_loop::EventLoop<T> as winit::platform::run_on_demand::EventLoopExtRunOnDemand>::run_on_demand


Troubleshooting Rerun: https://www.rerun.io/docs/getting-started/troubleshooting 
Report bugs: https://github.com/rerun-io/rerun/issues
[2025-06-10T07:05:26Z TRACE re_analytics] loaded analytics config config=Config { analytics_enabled: true, analytics_id: "cae422f6b04648288ebc68975e913ce5", session_id: cbd6f146-1210-43b3-bb18-2237fac1a2a1, opt_in_metadata: {}, config_file_path: "/home/wiss/qis/.config/rerun/analytics.json", data_dir_path: "/home/wiss/qis/.local/share/rerun/analytics", is_first_run: false }
[2025-06-10T07:05:26Z TRACE re_analytics] initialized analytics pipeline
[2025-06-10T07:05:26Z TRACE re_analytics::native::pipeline] pipeline catchup thread started analytics_id=cae422f6b04648288ebc68975e913ce5 session_id=cbd6f146-1210-43b3-bb18-2237fac1a2a1
[2025-06-10T07:05:26Z TRACE re_analytics::native::pipeline] pipeline thread started analytics_id=cae422f6b04648288ebc68975e913ce5 session_id=cbd6f146-1210-43b3-bb18-2237fac1a2a1
[2025-06-10T07:05:26Z TRACE re_analytics::native::pipeline] appending event to current session file… analytics_id=cae422f6b04648288ebc68975e913ce5 session_id=cbd6f146-1210-43b3-bb18-2237fac1a2a1
[2025-06-10T07:05:26Z TRACE re_analytics::native::pipeline] flushed pending events analytics_id=cae422f6b04648288ebc68975e913ce5 session_id=a8c1b3c0-d888-408f-8bf4-3333c6913a7a path="/home/wiss/qis/.local/share/rerun/analytics/a8c1b3c0-d888-408f-8bf4-3333c6913a7a.json"
[2025-06-10T07:05:26Z TRACE re_analytics::native::sink] Sending analytics: {
      "api_key": "phc_sgKidIE4WYYFSJHd8LEYY1UZqASpnfQKeMqlJfSXwqg",
      "batch": [
        {
          "timestamp": "2025-06-10T07:05:26.42408677Z",
          "event": "crash-panic",
          "distinct_id": "cae422f6b04648288ebc68975e913ce5",
          "properties": {
            "rerun_workspace": false,
            "debug": false,
            "features": "default map_view nasm native_viewer release web_viewer",
            "file_line": "wgpu-24.0.1/src/backend/wgpu_core.rs:3432",
            "llvm_version": "19.1.5",
            "session_id": "cbd6f146-1210-43b3-bb18-2237fac1a2a1",
            "target": "x86_64-unknown-linux-gnu",
            "git_hash": "f174b152927a0e2089ac0bdef5fe22c521d46305",
            "callstack": "   6: core::panicking::panic_fmt\n   7: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error_inner\n   8: <wgpu::backend::wgpu_core::CoreSurface as wgpu::dispatch::SurfaceInterface>::configure\n   9: wgpu::api::surface::Surface::configure\n  10: egui_wgpu::winit::Painter::configure_surface\n  11: egui_wgpu::winit::Painter::resize_and_generate_depth_texture_view_and_msaa_view\n  12: pollster::block_on\n  13: <eframe::native::wgpu_integration::WgpuWinitApp as eframe::native::winit_integration::WinitApp>::resumed\n  14: <eframe::native::run::WinitAppWrapper<T> as winit::application::ApplicationHandler<eframe::native::winit_integration::UserEvent>>::resumed\n  15: winit::platform_impl::linux::x11::EventLoop<T>::run_on_demand\n  16: <winit::event_loop::EventLoop<T> as winit::platform::run_on_demand::EventLoopExtRunOnDemand>::run_on_demand\n",
            "rust_version": "1.84.0 (9fc6b4312 2025-01-07)",
            "build_date": "2025-05-26T15:14:32Z",
            "event_id": 1,
            "rerun_version": "0.23.3"
          }
        }
      ]
    }
[2025-06-10T07:05:26Z TRACE re_analytics::native::pipeline] removed session file analytics_id=cae422f6b04648288ebc68975e913ce5 session_id=a8c1b3c0-d888-408f-8bf4-3333c6913a7a path="/home/wiss/qis/.local/share/rerun/analytics/a8c1b3c0-d888-408f-8bf4-3333c6913a7a.json"
[2025-06-10T07:05:26Z TRACE re_analytics::native::pipeline] pipeline catchup thread shut down analytics_id=cae422f6b04648288ebc68975e913ce5 session_id=cbd6f146-1210-43b3-bb18-2237fac1a2a1 res=Ok(())
[2025-06-10T07:05:26Z TRACE re_analytics::native::sink] events successfully flushed response=Response { url: "https://tel.rerun.io/", ok: true, status: 200, status_text: "OK", headers: Headers { headers: [("alt-svc", "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"), ("content-type", "text/html"), ("date", "Tue, 10 Jun 2025 07:05:26 GMT"), ("server", "Google Frontend"), ("transfer-encoding", "chunked"), ("via", "1.1 google")] }, bytes: "15 bytes", .. } analytics_id=cae422f6b04648288ebc68975e913ce5 session_id=cbd6f146-1210-43b3-bb18-2237fac1a2a1 num_events=1
[2025-06-10T07:05:27Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 10 }
[2025-06-10T07:05:27Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 14 }
[2025-06-10T07:05:27Z TRACE polling::epoll] drop; epoll_fd=11 notifier=EventFd(OwnedFd { fd: 12 })
[2025-06-10T07:05:27Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 13 }
[2025-06-10T07:05:27Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 12 }

ShenhanQian avatar Jun 10 '25 07:06 ShenhanQian

@ShenhanQian Looks like you have both an intel and an nvidia gpu but for some reason the intel one ends up being picked and then fails to create a surface to present to.

[2025-06-10T07:05:26Z INFO  egui_wgpu] There were 3 available wgpu adapters: {backend: Vulkan, device_type: IntegratedGpu, name: "Intel(R) Graphics (RKL GT1)", driver: "Intel open-source Mesa driver", driver_info: "Mesa 24.2.8-1ubuntu1~24.04.1", vendor: Intel (0x8086), device: 0x4C8A}, {backend: Vulkan, device_type: Cpu, name: "llvmpipe (LLVM 19.1.1, 256 bits)", driver: "llvmpipe", driver_info: "Mesa 24.2.8-1ubuntu1~24.04.1 (LLVM 19.1.1)", vendor: Mesa (0x10005)}, {backend: Gl, device_type: Other, name: "NVIDIA RTX A4000/PCIe/SSE2", driver_info: "3.3.0 NVIDIA 560.35.03", vendor: NVIDIA (0x10DE)}
[2025-06-10T07:05:26Z DEBUG egui_wgpu] Picked wgpu adapter: backend: Vulkan, device_type: IntegratedGpu, name: "Intel(R) Graphics (RKL GT1)", driver: "Intel open-source Mesa driver", driver_info: "Mesa 24.2.8-1ubuntu1~24.04.1", vendor: Intel (0x8086), device: 0x4C8A

Also this part is interesting:

Can't open bumblebee display.

Can you try starting with VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia.json to force the nvidia gpu? Do other vulkan applications like vkcube (usually pre-installed) work for you?

Wumpf avatar Jun 10 '25 07:06 Wumpf

Thanks for the instant response!

The program still fails to launch as follows:

$ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia.json RUST_LOG=trace rerun
[2025-06-10T07:24:14Z DEBUG rerun::commands::entrypoint] Detected 16 cores. Using 14 compute threads.
[2025-06-10T07:24:14Z DEBUG rerun::commands::entrypoint] Parsing memory limit for Viewer
[2025-06-10T07:24:14Z DEBUG re_memory::memory_limit] Setting memory limit to 23.3 GiB, which is 75% of total available memory (31.1 GiB).
[2025-06-10T07:24:14Z DEBUG rerun::commands::entrypoint] Parsing memory limit for gRPC server
[2025-06-10T07:24:14Z DEBUG re_memory::memory_limit] Setting memory limit to 7.8 GiB, which is 25% of total available memory (31.1 GiB).
[2025-06-10T07:24:14Z INFO  re_grpc_server] Listening for gRPC connections on 0.0.0.0:9876. Connect by running `rerun --connect rerun+http://127.0.0.1:9876/proxy`
[2025-06-10T07:24:14Z DEBUG eframe] Using the wgpu renderer
[2025-06-10T07:24:14Z TRACE polling::epoll] created eventfd for notifier
[2025-06-10T07:24:14Z TRACE polling::epoll] add; epoll_fd=11 fd=13 ev=Event { key: 18446744073709551615, readable: false, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:24:14Z TRACE polling::epoll] add; epoll_fd=11 fd=12 ev=Event { key: 18446744073709551615, readable: true, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:24:14Z TRACE polling::epoll] new epoll_fd=11 notifier=EventFd(OwnedFd { fd: 12 })
[2025-06-10T07:24:14Z TRACE calloop::loop_logic] [calloop] Inserting new source #0
[2025-06-10T07:24:14Z TRACE polling::epoll] add; epoll_fd=11 fd=10 ev=Event { key: 0, readable: true, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:24:14Z TRACE calloop::loop_logic] [calloop] Inserting new source #1
[2025-06-10T07:24:14Z TRACE polling::epoll] add; epoll_fd=11 fd=14 ev=Event { key: 4294967296, readable: true, writable: false, extra: EventExtra { flags: EventFlags(0x0) } }
[2025-06-10T07:24:14Z TRACE eframe::native::run] Entering the winit event loop (run_app_on_demand)…
[2025-06-10T07:24:14Z DEBUG eframe::native::wgpu_integration] Event::Resumed
[2025-06-10T07:24:14Z DEBUG eframe::native::file_storage] Loading app state from "/home/wiss/qis/.local/share/rerun/app.ron"…
[2025-06-10T07:24:14Z INFO  winit::platform_impl::linux::x11::window] Guessed window scale factor: 1.25
[2025-06-10T07:24:14Z DEBUG egui_wgpu::setup] Creating wgpu instance with backends Backends(VULKAN | GL | METAL)
[2025-06-10T07:24:14Z WARN  wgpu_hal::vulkan::instance] Unable to find extension: VK_KHR_surface
[2025-06-10T07:24:14Z WARN  wgpu_hal::vulkan::instance] Unable to find extension: VK_KHR_xlib_surface
[2025-06-10T07:24:14Z WARN  wgpu_hal::vulkan::instance] Unable to find extension: VK_KHR_xcb_surface
[2025-06-10T07:24:14Z WARN  wgpu_hal::vulkan::instance] Unable to find extension: VK_KHR_wayland_surface
[2025-06-10T07:24:14Z WARN  wgpu_hal::vulkan::instance] Unable to find extension: VK_EXT_swapchain_colorspace
[2025-06-10T07:24:14Z WARN  wgpu_hal::vulkan::instance] Unable to find extension: VK_KHR_get_physical_device_properties2
[2025-06-10T07:24:14Z WARN  wgpu_hal::gles::egl] No config found!
[2025-06-10T07:24:14Z WARN  wgpu_hal::gles::egl] EGL says it can present to the window but not natively
[2025-06-10T07:24:15Z WARN  wgpu_hal::gles::adapter] Max vertex attribute stride unknown. Assuming it is 2048
[2025-06-10T07:24:15Z WARN  wgpu_hal::gles::adapter] Max vertex attribute stride unknown. Assuming it is 2048
[2025-06-10T07:24:15Z INFO  egui_wgpu] The only available wgpu adapter was not suitable: backend: Gl, device_type: Other, name: "NVIDIA RTX A4000/PCIe/SSE2", driver_info: "3.3.0 NVIDIA 560.35.03", vendor: NVIDIA (0x10DE)
[2025-06-10T07:24:15Z TRACE eframe::native::run] event_result: Err(Wgpu(NoSuitableAdapterFound("`request_adapters` returned `None`")))
[2025-06-10T07:24:15Z ERROR eframe::native::run] Exiting because of error: WGPU error: Failed to create wgpu adapter, no suitable adapter found: `request_adapters` returned `None`
[2025-06-10T07:24:15Z DEBUG eframe::native::run] Asking to exit event loop…
[2025-06-10T07:24:15Z TRACE eframe::native::run] event_result: Ok(Wait)
[2025-06-10T07:24:15Z DEBUG eframe::native::run] Received Event::LoopExiting - saving app state…
[2025-06-10T07:24:15Z DEBUG eframe::native::run] eframe window closed
Error: WGPU error: Failed to create wgpu adapter, no suitable adapter found: `request_adapters` returned `None`
[2025-06-10T07:24:15Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 10 }
[2025-06-10T07:24:15Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 14 }
[2025-06-10T07:24:15Z TRACE polling::epoll] drop; epoll_fd=11 notifier=EventFd(OwnedFd { fd: 12 })
[2025-06-10T07:24:15Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 13 }
[2025-06-10T07:24:15Z TRACE polling::epoll] delete; epoll_fd=11 fd=BorrowedFd { fd: 12 }

vkcube also fails:

vkcube
Can't open bumblebee display.
Selected GPU 0: Intel(R) Graphics (RKL GT1), type: IntegratedGpu
vkcube: ./cube/cube.c:1369: demo_prepare_buffers: Assertion `!err' failed.
[1]    243398 IOT instruction (core dumped)  vkcube

xclock and glxgears works well

ShenhanQian avatar Jun 10 '25 07:06 ShenhanQian

thanks for responsiveness & logs in turn! vkcube failing implies that something with your vulkan setup is broken. A bit hard to diagnose, linux multi gpu & driver setups are always a bit tricky and I'm not running Linux myself. Other folks online running into Can't open bumblebee display. & similar are proposing all sort of solutions/workarounds, not sure what ends up actually working 🤷

Given that glxgears works Rerun's gl backend is likely to work so try running with --renderer gl and see what output that gives :)

Note that in the long run we'd like to deprecate our gl backend and only use Vulkan.

Wumpf avatar Jun 10 '25 07:06 Wumpf

actually the output from the previous log implies that it also struggles with the gl backend and now didn't find any vulkan adapter at all. Strange!

[2025-06-10T07:24:14Z WARN  wgpu_hal::gles::egl] EGL says it can present to the window but not natively
[...]
[2025-06-10T07:24:15Z INFO  egui_wgpu] The only available wgpu adapter was not suitable: backend: Gl, device_type: Other, name: "NVIDIA RTX A4000/PCIe/SSE2", driver_info: "3.3.0 NVIDIA 560.35.03", vendor: NVIDIA (0x10DE)
[2025-06-10T07:24:15Z TRACE eframe::native::run] event_result: Err(Wgpu(NoSuitableAdapterFound("`request_adapters` returned `None`")))
[2025-06-10T07:24:15Z ERROR eframe::native::run] Exiting because of error: WGPU error: Failed to create wgpu adapter, no suitable adapter found: `request_adapters` returned `None`

Wumpf avatar Jun 10 '25 07:06 Wumpf

--renderer=gl also doesn't work for my machine.

$ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia.json rerun --renderer=gl
[2025-06-10T07:35:59Z INFO  re_grpc_server] Listening for gRPC connections on 0.0.0.0:9876. Connect by running `rerun --connect rerun+http://127.0.0.1:9876/proxy`
[2025-06-10T07:35:59Z INFO  re_renderer::device_caps] Forcing graphics backend to Gl.
[2025-06-10T07:35:59Z INFO  winit::platform_impl::linux::x11::window] Guessed window scale factor: 1.25
[2025-06-10T07:35:59Z WARN  wgpu_hal::gles::egl] No config found!
[2025-06-10T07:35:59Z WARN  wgpu_hal::gles::egl] EGL says it can present to the window but not natively
[2025-06-10T07:35:59Z WARN  wgpu_hal::gles::adapter] Max vertex attribute stride unknown. Assuming it is 2048
[2025-06-10T07:35:59Z WARN  wgpu_hal::gles::adapter] Max vertex attribute stride unknown. Assuming it is 2048
[2025-06-10T07:35:59Z INFO  egui_wgpu] The only available wgpu adapter was not suitable: backend: Gl, device_type: Other, name: "NVIDIA RTX A4000/PCIe/SSE2", driver_info: "3.3.0 NVIDIA 560.35.03", vendor: NVIDIA (0x10DE)
[2025-06-10T07:35:59Z ERROR eframe::native::run] Exiting because of error: WGPU error: Failed to create wgpu adapter, no suitable adapter found: `request_adapters` returned `None`
Error: WGPU error: Failed to create wgpu adapter, no suitable adapter found: `request_adapters` returned `None`

With further trials, I find that both vkcube or vkcube --gpu_number 0 fails with

$ vkcube --gpu_number 0

Selected GPU 0: Intel(R) Graphics (RKL GT1), type: IntegratedGpu
vkcube: ./cube/cube.c:1369: demo_prepare_buffers: Assertion `!err' failed.
[1]    277154 IOT instruction (core dumped)  vkcube --gpu_number 0

but vkcube --gpu_number 1 works:

$ vkcube --gpu_number 1

Selected GPU 1: llvmpipe (LLVM 19.1.1, 256 bits), type: Cpu

saidly, it's CPU-based.

I guess I will try to get Vulkan work with my NVIDIA GPU then

ShenhanQian avatar Jun 10 '25 07:06 ShenhanQian

Alright. By reinstalling some nvidia packages, vkcube works with my A4000 GPU, then rerun runs successfully in the native viewer. Thanks a lot for the guidance!

ShenhanQian avatar Jun 10 '25 07:06 ShenhanQian

awesome!!

Given that @Peeta586 never responded with a log and you were able to resolve a similar issue. I'm closing this. Anyone hitting something like this again please open a new issue and link this for reference if you think it's related!

Wumpf avatar Jun 10 '25 08:06 Wumpf