rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
5.85k stars 264 forks source link

Crash when running across SSH with X11 forwarding #1324

Closed mchhoy closed 1 year ago

mchhoy commented 1 year ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Enable X11 forwarding on the server:
nano /etc/ssh/sshd_config.d/ssh_user.conf

Use the following sshd_config, but use a new port:

X11Forwarding yes

Then

sudo service ssh restart

Then on the client

ssh [address] -X

  1. cargo install rerun
  2. WINIT_UNIX_BACKEND=x11 rerun

(I tried this idea https://github.com/rust-windowing/winit/issues/305)

$ WINIT_UNIX_BACKEND=x11 rerun
2023-02-16T07:42:09.613480Z  INFO re_sdk_comms::server: Hosting a SDK server over TCP at 0.0.0.0:9876. Connect with the Rerun logging SDK.
2023-02-16T07:42:09.657696Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1    
Segmentation fault (core dumped)

Expected behavior X11 forwarding should show the screen on the client

Desktop (please complete the following information):


Workaround exists: Enforce using gl backend using WGPU_BACKEND=gl

mchhoy commented 1 year ago

With RUST_LOG=trace:


RUST_LOG=trace WINIT_UNIX_BACKEND=x11 rerun
2023-02-16T08:01:42.464579Z  INFO re_sdk_comms::server: Hosting a SDK server over TCP at 0.0.0.0:9876. Connect with the Rerun logging SDK.
2023-02-16T08:01:42.464659Z DEBUG eframe: Using the wgpu renderer
2023-02-16T08:01:42.506455Z TRACE mio::poll: registering event source with poller: token=Token(0), interests=READABLE    
2023-02-16T08:01:42.507497Z DEBUG eframe::native::run: Entering the winit event loop (run_return)…
2023-02-16T08:01:42.507529Z DEBUG eframe::native::file_storage: Loading app state from "/home/michael/.local/share/rerunviewer/app.ron"…
2023-02-16T08:01:42.510815Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1    
2023-02-16T08:01:42.510825Z DEBUG winit::platform_impl::platform::x11::window: Calculated physical dimensions: 1600x1200    
Segmentation fault (core dumped)
``
mchhoy commented 1 year ago

Also note I currently use

https://github.com/sebcrozet/kiss3d

with the same setup and it works fine

Wumpf commented 1 year ago

@mchhoy thank you for logging this issue! So far fairly in the dark what could cause this, haven't seen this crash so far. I just landed a PR (#1332) that allows us to force a different graphics backend. If you don't mind and have the time, could you please run WGPU_BACKEND=gl RUST_LOG=wgpu_hal=debug,wgpu=debug cargo run from latest main and report back what it logs out?

Thank you!

mchhoy commented 1 year ago

Erm some other error now .. also I forgot to note that I am in a docker container.

Git commit 6c2b291280676cfae2b6f1ff523753243d314cea

/home/michael/rerun/crates/rerun$ cargo --version
cargo 1.67.1 (8ecd4f20a 2023-01-10)

/home/michael/rerun/crates/rerun$ WGPU_BACKEND=gl RUST_LOG=wgpu_hal=debug,wgpu=debug cargo run
    Finished dev [optimized + debuginfo] target(s) in 0.28s
     Running `/host/mnt/data_1/michael/rerun/target/debug/rerun`
2023-02-17T02:03:52.492017Z DEBUG wgpu_hal::gles::egl: Client extensions: [
    "EGL_EXT_device_base",
    "EGL_EXT_device_enumeration",
    "EGL_EXT_device_query",
    "EGL_EXT_platform_base",
    "EGL_KHR_client_get_all_proc_addresses",
    "EGL_EXT_client_extensions",
    "EGL_KHR_debug",
    "EGL_EXT_platform_device",
    "EGL_EXT_platform_wayland",
    "EGL_KHR_platform_wayland",
    "EGL_EXT_platform_x11",
    "EGL_KHR_platform_x11",
    "EGL_MESA_platform_xcb",
    "EGL_MESA_platform_gbm",
    "EGL_KHR_platform_gbm",
    "EGL_MESA_platform_surfaceless",
]    
2023-02-17T02:03:52.492090Z  INFO wgpu_hal::gles::egl: Loading Wayland library to get the current display    
error: XDG_RUNTIME_DIR not set in the environment.
2023-02-17T02:03:52.492144Z  INFO wgpu_hal::gles::egl: Loading X11 library to get the current display    
2023-02-17T02:03:52.494892Z  INFO wgpu_hal::gles::egl: Using X11 platform    
2023-02-17T02:03:52.494930Z  INFO wgpu_hal::gles::egl: Enabling EGL debug output    
libEGL warning: DRI3: failed to query the version
libEGL warning: DRI2: failed to authenticate
2023-02-17T02:03:52.538479Z  INFO wgpu_hal::gles::egl: Display vendor "Mesa Project", version (1, 5)    
2023-02-17T02:03:52.538514Z DEBUG wgpu_hal::gles::egl: Display extensions: [
    "EGL_EXT_create_context_robustness",
    "EGL_KHR_cl_event2",
    "EGL_KHR_config_attribs",
    "EGL_KHR_context_flush_control",
    "EGL_KHR_create_context",
    "EGL_KHR_create_context_no_error",
    "EGL_KHR_fence_sync",
    "EGL_KHR_get_all_proc_addresses",
    "EGL_KHR_gl_colorspace",
    "EGL_KHR_gl_renderbuffer_image",
    "EGL_KHR_gl_texture_2D_image",
    "EGL_KHR_gl_texture_3D_image",
    "EGL_KHR_gl_texture_cubemap_image",
    "EGL_KHR_image_base",
    "EGL_KHR_no_config_context",
    "EGL_KHR_reusable_sync",
    "EGL_KHR_surfaceless_context",
    "EGL_EXT_pixel_format_float",
    "EGL_KHR_wait_sync",
    "EGL_MESA_configless_context",
    "EGL_MESA_drm_image",
    "EGL_MESA_query_driver",
]    
2023-02-17T02:03:52.538551Z  INFO wgpu_hal::gles::egl:  EGL surface: +srgb    
2023-02-17T02:03:52.538558Z  INFO wgpu_hal::gles::egl:  Trying native-render    
2023-02-17T02:03:52.538590Z  INFO wgpu_hal::gles::egl:  EGL context: +debug    
2023-02-17T02:03:52.538599Z  INFO wgpu_hal::gles::egl:  EGL context: +robust access    
2023-02-17T02:03:52.545500Z  INFO wgpu_hal::gles::egl:  EGL context: +surfaceless    
2023-02-17T02:03:52.548219Z  INFO wgpu_hal::gles::egl: Max label length: 256    
2023-02-17T02:03:52.548231Z  INFO wgpu_hal::gles::egl: Enabling GLES debug output    
2023-02-17T02:03:52.548255Z  INFO wgpu_hal::gles::adapter: Vendor: Mesa/X.org    
2023-02-17T02:03:52.548260Z  INFO wgpu_hal::gles::adapter: Renderer: llvmpipe (LLVM 12.0.0, 256 bits)    
2023-02-17T02:03:52.548264Z  INFO wgpu_hal::gles::adapter: Version: OpenGL ES 3.2 Mesa 21.2.6    
2023-02-17T02:03:52.548269Z DEBUG wgpu_hal::gles::adapter: Extensions: {
    "GL_EXT_texture_border_clamp",
    "GL_EXT_clip_cull_distance",
    "GL_OES_sample_variables",
    "GL_NV_pixel_buffer_object",
    "GL_KHR_blend_equation_advanced",
    "GL_OES_texture_npot",
    "GL_OES_primitive_bounding_box",
    "GL_KHR_robustness",
    "GL_OES_EGL_image_external",
    "GL_EXT_shader_group_vote",
    "GL_EXT_geometry_shader",
    "GL_OES_vertex_array_object",
    "GL_EXT_disjoint_timer_query",
    "GL_EXT_draw_buffers_indexed",
    "GL_OES_standard_derivatives",
    "GL_OES_draw_elements_base_vertex",
    "GL_OES_required_internalformat",
    "GL_EXT_texture_shadow_lod",
    "GL_KHR_parallel_shader_compile",
    "GL_EXT_buffer_storage",
    "GL_OES_EGL_sync",
    "GL_OES_depth_texture_cube_map",
    "GL_EXT_draw_buffers",
    "GL_EXT_depth_clamp",
    "GL_OES_fbo_render_mipmap",
    "GL_KHR_robust_buffer_access_behavior",
    "GL_EXT_primitive_bounding_box",
    "GL_OES_texture_half_float",
    "GL_EXT_blend_func_extended",
    "GL_EXT_read_format_bgra",
    "GL_EXT_texture_compression_bptc",
    "GL_MESA_bgra",
    "GL_NV_read_stencil",
    "GL_OES_element_index_uint",
    "GL_EXT_texture_view",
    "GL_EXT_texture_format_BGRA8888",
    "GL_EXT_texture_cube_map_array",
    "GL_EXT_render_snorm",
    "GL_OES_get_program_binary",
    "GL_OES_texture_float",
    "GL_OES_texture_cube_map_array",
    "GL_EXT_multi_draw_arrays",
    "GL_EXT_texture_query_lod",
    "GL_OES_texture_storage_multisample_2d_array",
    "GL_EXT_geometry_point_size",
    "GL_NV_read_depth",
    "GL_EXT_draw_instanced",
    "GL_KHR_texture_compression_astc_sliced_3d",
    "GL_EXT_blend_minmax",
    "GL_EXT_occlusion_query_boolean",
    "GL_NV_conditional_render",
    "GL_EXT_unpack_subimage",
    "GL_EXT_texture_sRGB_decode",
    "GL_EXT_base_instance",
    "GL_OES_shader_image_atomic",
    "GL_OES_surfaceless_context",
    "GL_OES_texture_half_float_linear",
    "GL_OES_depth24",
    "GL_OES_texture_stencil8",
    "GL_OES_sample_shading",
    "GL_OES_tessellation_point_size",
    "GL_ANGLE_pack_reverse_row_order",
    "GL_EXT_float_blend",
    "GL_OES_gpu_shader5",
    "GL_OES_shader_io_blocks",
    "GL_EXT_texture_compression_s3tc",
    "GL_OES_stencil8",
    "GL_EXT_tessellation_shader",
    "GL_OES_texture_buffer",
    "GL_EXT_texture_compression_rgtc",
    "GL_NV_image_formats",
    "GL_EXT_shader_framebuffer_fetch_non_coherent",
    "GL_MESA_shader_integer_functions",
    "GL_OES_packed_depth_stencil",
    "GL_OES_texture_float_linear",
    "GL_EXT_texture_type_2_10_10_10_REV",
    "GL_EXT_texture_rg",
    "GL_KHR_texture_compression_astc_ldr",
    "GL_OES_mapbuffer",
    "GL_OES_EGL_image",
    "GL_EXT_polygon_offset_clamp",
    "GL_EXT_discard_framebuffer",
    "GL_EXT_gpu_shader5",
    "GL_OES_EGL_image_external_essl3",
    "GL_OES_texture_view",
    "GL_OES_copy_image",
    "GL_ANGLE_texture_compression_dxt3",
    "GL_OES_depth_texture",
    "GL_OES_geometry_shader",
    "GL_EXT_robustness",
    "GL_MESA_framebuffer_flip_y",
    "GL_ANGLE_texture_compression_dxt5",
    "GL_EXT_shader_implicit_conversions",
    "GL_EXT_texture_sRGB_R8",
    "GL_EXT_map_buffer_range",
    "GL_EXT_separate_shader_objects",
    "GL_OES_texture_3D",
    "GL_EXT_texture_filter_minmax",
    "GL_KHR_debug",
    "GL_EXT_texture_norm16",
    "GL_EXT_texture_sRGB_RG8",
    "GL_KHR_no_error",
    "GL_EXT_texture_compression_dxt1",
    "GL_KHR_context_flush_control",
    "GL_OES_tessellation_shader",
    "GL_EXT_color_buffer_float",
    "GL_EXT_shader_io_blocks",
    "GL_EXT_shader_integer_mix",
    "GL_APPLE_texture_max_level",
    "GL_OES_compressed_ETC1_RGB8_texture",
    "GL_EXT_clip_control",
    "GL_OES_rgb8_rgba8",
    "GL_EXT_texture_buffer",
    "GL_NV_read_depth_stencil",
    "GL_OES_draw_buffers_indexed",
    "GL_ANDROID_extension_pack_es31a",
    "GL_OES_shader_multisample_interpolation",
    "GL_EXT_EGL_image_storage",
    "GL_OES_texture_border_clamp",
    "GL_EXT_tessellation_point_size",
    "GL_EXT_draw_elements_base_vertex",
    "GL_EXT_compressed_ETC1_RGB8_sub_texture",
    "GL_EXT_copy_image",
    "GL_EXT_frag_depth",
    "GL_NV_draw_buffers",
    "GL_NV_read_buffer",
    "GL_NV_fbo_color_attachments",
    "GL_EXT_texture_compression_s3tc_srgb",
    "GL_EXT_sRGB_write_control",
    "GL_EXT_color_buffer_half_float",
    "GL_OES_geometry_point_size",
    "GL_OES_vertex_half_float",
    "GL_OES_viewport_array",
}    
2023-02-17T02:03:52.548422Z  INFO wgpu_hal::gles::adapter: SL version: OpenGL ES GLSL ES 3.20    
2023-02-17T02:03:52.553989Z DEBUG wgpu_hal::gles::device: Naga generated shader:
#version 320 es
#extension GL_EXT_texture_shadow_lod : require

precision highp float;
precision highp int;

struct VertexOutput {
    vec2 tex_coord;
    vec4 color;
    vec4 position;
};
struct Locals {
    vec2 screen_size;
    uvec2 _padding;
};
layout(std140, binding = 0) uniform Locals_block_0Vertex { Locals _group_0_binding_0_vs; };

layout(location = 0) in vec2 _p2vs_location0;
layout(location = 1) in vec2 _p2vs_location1;
layout(location = 2) in uint _p2vs_location2;
layout(location = 0) smooth out vec2 _vs2fs_location0;
layout(location = 1) smooth out vec4 _vs2fs_location1;

vec3 linear_from_gamma_rgb(vec3 srgb) {
    bvec3 cutoff = lessThan(srgb, vec3(0.040449999272823334));
    vec3 lower = (srgb / vec3(12.920000076293945));
    vec3 higher = pow(((srgb + vec3(0.054999999701976776)) / vec3(1.0549999475479126)), vec3(2.4000000953674316));
    return mix(higher, lower, cutoff);
}

vec3 gamma_from_linear_rgb(vec3 rgb) {
    bvec3 cutoff_1 = lessThan(rgb, vec3(0.0031308000907301903));
    vec3 lower_1 = (rgb * vec3(12.920000076293945));
    vec3 higher_1 = ((vec3(1.0549999475479126) * pow(rgb, vec3((1.0 / 2.4000000953674316)))) - vec3(0.054999999701976776));
    return mix(higher_1, lower_1, cutoff_1);
}

vec4 gamma_from_linear_rgba(vec4 linear_rgba) {
    vec3 _e2 = gamma_from_linear_rgb(linear_rgba.xyz);
    return vec4(_e2, linear_rgba.w);
}

vec4 unpack_color(uint color) {
    return (vec4(float((color & 255u)), float(((color >> 8u) & 255u)), float(((color >> 16u) & 255u)), float(((color >> 24u) & 255u))) / vec4(255.0));
}

vec4 position_from_screen(vec2 screen_pos) {
    float _e7 = _group_0_binding_0_vs.screen_size.x;
    float _e18 = _group_0_binding_0_vs.screen_size.y;
    return vec4((((2.0 * screen_pos.x) / _e7) - 1.0), (1.0 - ((2.0 * screen_pos.y) / _e18)), 0.0, 1.0);
}

void main() {
    vec2 a_pos = _p2vs_location0;
    vec2 a_tex_coord = _p2vs_location1;
    uint a_color = _p2vs_location2;
    VertexOutput out_ = VertexOutput(vec2(0.0), vec4(0.0), vec4(0.0));
    out_.tex_coord = a_tex_coord;
    vec4 _e6 = unpack_color(a_color);
    out_.color = _e6;
    vec4 _e8 = position_from_screen(a_pos);
    out_.position = _e8;
    VertexOutput _e9 = out_;
    _vs2fs_location0 = _e9.tex_coord;
    _vs2fs_location1 = _e9.color;
    gl_Position = _e9.position;
    gl_Position.yz = vec2(-gl_Position.y, gl_Position.z * 2.0 - gl_Position.w);
    return;
}

2023-02-17T02:03:52.554020Z DEBUG wgpu_hal::gles::device: Rebind buffer: Some("r_locals") -> Locals_block_0Vertex, register=UniformBuffers, slot=0    
2023-02-17T02:03:52.554044Z  INFO wgpu_hal::gles::device:       Compiled shader NativeShader(5)    
2023-02-17T02:03:52.554110Z DEBUG wgpu_hal::gles::device: Naga generated shader:
#version 320 es
#extension GL_EXT_texture_shadow_lod : require

precision highp float;
precision highp int;

struct VertexOutput {
    vec2 tex_coord;
    vec4 color;
    vec4 position;
};
struct Locals {
    vec2 screen_size;
    uvec2 _padding;
};
layout(binding = 0) uniform highp sampler2D _group_1_binding_0_fs;

layout(location = 0) smooth in vec2 _vs2fs_location0;
layout(location = 1) smooth in vec4 _vs2fs_location1;
layout(location = 0) out vec4 _fs2p_location0;

vec3 linear_from_gamma_rgb(vec3 srgb) {
    bvec3 cutoff = lessThan(srgb, vec3(0.040449999272823334));
    vec3 lower = (srgb / vec3(12.920000076293945));
    vec3 higher = pow(((srgb + vec3(0.054999999701976776)) / vec3(1.0549999475479126)), vec3(2.4000000953674316));
    return mix(higher, lower, cutoff);
}

vec3 gamma_from_linear_rgb(vec3 rgb) {
    bvec3 cutoff_1 = lessThan(rgb, vec3(0.0031308000907301903));
    vec3 lower_1 = (rgb * vec3(12.920000076293945));
    vec3 higher_1 = ((vec3(1.0549999475479126) * pow(rgb, vec3((1.0 / 2.4000000953674316)))) - vec3(0.054999999701976776));
    return mix(higher_1, lower_1, cutoff_1);
}

vec4 gamma_from_linear_rgba(vec4 linear_rgba) {
    vec3 _e2 = gamma_from_linear_rgb(linear_rgba.xyz);
    return vec4(_e2, linear_rgba.w);
}

vec4 unpack_color(uint color) {
    return (vec4(float((color & 255u)), float(((color >> 8u) & 255u)), float(((color >> 16u) & 255u)), float(((color >> 24u) & 255u))) / vec4(255.0));
}

void main() {
    VertexOutput in_1 = VertexOutput(_vs2fs_location0, _vs2fs_location1, gl_FragCoord);
    vec4 tex_linear = texture(_group_1_binding_0_fs, vec2(in_1.tex_coord));
    vec4 _e5 = gamma_from_linear_rgba(tex_linear);
    vec4 out_color_gamma = (in_1.color * _e5);
    _fs2p_location0 = out_color_gamma;
    return;
}

2023-02-17T02:03:52.554145Z  INFO wgpu_hal::gles::device:       Compiled shader NativeShader(6)    
2023-02-17T02:03:52.554322Z  INFO wgpu_hal::gles::device:       Linked program NativeProgram(4)    
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: No such file or directory (os error 2)', crates/re_renderer/src/renderer/mesh_renderer.rs:286:25
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/panicking.rs:64:14
   2: core::result::unwrap_failed
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1791:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1113:23
   4: <re_renderer::renderer::mesh_renderer::MeshRenderer as re_renderer::renderer::Renderer>::create_renderer
             at /host/mnt/data_1/michael/rerun/crates/re_renderer/src/renderer/mesh_renderer.rs:286:25
   5: re_renderer::context::Renderers::get_or_create::{{closure}}
             at /host/mnt/data_1/michael/rerun/crates/re_renderer/src/context.rs:61:13
   6: type_map::concurrent::Entry<T>::or_insert_with
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/type-map-0.5.0/src/lib.rs:283:54
   7: re_renderer::context::Renderers::get_or_create
             at /host/mnt/data_1/michael/rerun/crates/re_renderer/src/context.rs:59:9
   8: re_renderer::context::RenderContext::new
             at /host/mnt/data_1/michael/rerun/crates/re_renderer/src/context.rs:130:13
   9: re_viewer::customize_eframe
             at /host/mnt/data_1/michael/rerun/crates/re_viewer/src/lib.rs:119:41
  10: re_viewer::native::run_native_app::{{closure}}
             at /host/mnt/data_1/michael/rerun/crates/re_viewer/src/native.rs:36:25
  11: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5
  12: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/boxed.rs:2000:9
  13: eframe::native::run::wgpu_integration::WgpuWinitApp::init_run_state
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1153:27
  14: <eframe::native::run::wgpu_integration::WgpuWinitApp as eframe::native::run::WinitApp>::on_event
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1302:25
  15: eframe::native::run::run_and_return::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:161:28
  16: winit::platform_impl::platform::sticky_exit_callback
  17: winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/x11/mod.rs:334:17
  18: winit::platform_impl::platform::x11::EventLoop<T>::run_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/x11/mod.rs:443:31
  19: winit::platform_impl::platform::EventLoop<T>::run_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/mod.rs:785:56
  20: <winit::event_loop::EventLoop<T> as winit::platform::run_return::EventLoopExtRunReturn>::run_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform/run_return.rs:51:9
  21: eframe::native::run::run_and_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:124:5
  22: eframe::native::run::wgpu_integration::run_wgpu::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1410:17
  23: eframe::native::run::with_event_loop::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:108:9
  24: std::thread::local::LocalKey<T>::try_with
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/thread/local.rs:446:16
  25: std::thread::local::LocalKey<T>::with
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/thread/local.rs:422:9
  26: eframe::native::run::with_event_loop
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:101:5
  27: eframe::native::run::wgpu_integration::run_wgpu
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1407:13
  28: eframe::run_native
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/lib.rs:207:13
  29: re_viewer::native::run_native_app
             at /host/mnt/data_1/michael/rerun/crates/re_viewer/src/native.rs:32:5
  30: rerun::run::run_impl::{{closure}}
             at ./src/run.rs:235:9
  31: rerun::run::run::{{closure}}
             at ./src/run.rs:133:36
  32: rerun::main::{{closure}}
             at ./src/main.rs:11:9
  33: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/park.rs:283:63
  34: tokio::runtime::coop::with_budget
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/coop.rs:102:5
  35: tokio::runtime::coop::budget
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/coop.rs:68:5
  36: tokio::runtime::park::CachedParkThread::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/park.rs:283:31
  37: tokio::runtime::context::BlockingRegionGuard::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/context.rs:315:13
  38: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/scheduler/multi_thread/mod.rs:66:9
  39: tokio::runtime::runtime::Runtime::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/runtime.rs:284:45
  40: rerun::main
             at ./src/main.rs:10:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
teh-cmc commented 1 year ago

You're hitting #1258 @mchhoy (and #1322).

I'll fix that today, in the meantime you can cd to the root of the workspace, cargo run once again, and you should be good to go. Or run in release mode: cargo run --release, that'll take care of the issue too.

teh-cmc commented 1 year ago

:point_up: Both issues should be fixed on latest main.

mchhoy commented 1 year ago

Previously I couldn't build from the workspace root as the web viewer crate didn't compile (maybe because there is no browser available or something)

Anyway now it works :)

 WGPU_BACKEND=gl RUST_LOG=wgpu_hal=debug,wgpu=debug cargo run --release

OR

WGPU_BACKEND=gl RUST_LOG=wgpu_hal=debug,wgpu=debug cargo run

image

But without WGPU_BACKEND=gl

RUST_LOG=wgpu_hal=debug,wgpu=debug cargo run
    Finished dev [optimized + debuginfo] target(s) in 0.29s
     Running `/host/mnt/data_1/michael/rerun/target/debug/rerun`
2023-02-20T02:26:44.032310Z  INFO wgpu_hal::vulkan::instance: Unable to find extension: VK_EXT_swapchain_colorspace    
2023-02-20T02:26:44.032865Z  WARN wgpu_hal::vulkan::instance: Unable to find layer: VK_LAYER_KHRONOS_validation    
2023-02-20T02:26:44.040622Z  INFO wgpu_hal::vulkan::instance: Instance version: 0x402083    
2023-02-20T02:26:44.040636Z  INFO wgpu_hal::vulkan::instance: Enabling debug utils    
2023-02-20T02:26:44.040660Z  INFO wgpu_hal::vulkan::instance: Enabling device properties2    
2023-02-20T02:26:44.042522Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        loader_add_implicit_layer: Disabling implicit layer VK_LAYER_MESA_device_select for using an old API version 1.2 versus application requested 1.3    
2023-02-20T02:26:44.042539Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042573Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        loader_add_implicit_layer: Disabling implicit layer VK_LAYER_MESA_device_select for using an old API version 1.2 versus application requested 1.3    
2023-02-20T02:26:44.042579Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042587Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_8bit_storage (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042593Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042599Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_16bit_storage (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042605Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042611Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_bind_memory2 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042617Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042623Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_buffer_device_address (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042628Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042634Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_copy_commands2 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042640Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042646Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_create_renderpass2 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042651Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042657Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_dedicated_allocation (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.3    
2023-02-20T02:26:44.042662Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042668Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_descriptor_update_template (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042674Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042680Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_device_group (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.4    
2023-02-20T02:26:44.042685Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042691Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_draw_indirect_count (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042697Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042704Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_driver_properties (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042711Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042715Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_external_fence (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042721Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042726Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_external_memory (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042743Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042748Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_external_semaphore (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042757Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042762Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_get_memory_requirements2 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042767Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042773Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_image_format_list (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042778Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042783Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_imageless_framebuffer (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042789Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042794Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_incremental_present (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.2    
2023-02-20T02:26:44.042800Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042805Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_maintenance1 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.2    
2023-02-20T02:26:44.042810Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042815Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_maintenance2 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042820Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042826Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_maintenance3 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042831Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042836Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_multiview (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042841Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042846Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_push_descriptor (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.2    
2023-02-20T02:26:44.042851Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042857Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_relaxed_block_layout (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042862Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042867Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_sampler_mirror_clamp_to_edge (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.3    
2023-02-20T02:26:44.042872Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042878Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_separate_depth_stencil_layouts (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042883Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042887Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_shader_atomic_int64 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042891Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042897Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_shader_draw_parameters (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042902Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042907Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_storage_buffer_storage_class (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042913Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042918Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_swapchain (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.70    
2023-02-20T02:26:44.042923Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042928Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_uniform_buffer_standard_layout (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042933Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042939Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_KHR_variable_pointers (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042945Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042950Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_calibrated_timestamps (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.2    
2023-02-20T02:26:44.042955Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042961Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_conditional_rendering (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.2    
2023-02-20T02:26:44.042967Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042972Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_custom_border_color (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.12    
2023-02-20T02:26:44.042977Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042983Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_extended_dynamic_state (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042988Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.042993Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_extended_dynamic_state2 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.042998Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043004Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_host_query_reset (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043009Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043014Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_index_type_uint8 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043020Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043025Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_line_rasterization (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043032Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043038Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_multi_draw (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043047Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043052Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_post_depth_coverage (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043058Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043063Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_private_data (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043068Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043073Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_provoking_vertex (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043078Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043084Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_sampler_filter_minmax (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.2    
2023-02-20T02:26:44.043089Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043095Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_scalar_block_layout (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043100Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043105Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_separate_stencil_usage (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043110Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043116Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_shader_stencil_export (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043121Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043126Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_shader_viewport_index_layer (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043131Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043137Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_transform_feedback (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043143Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043149Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_vertex_attribute_divisor (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.3    
2023-02-20T02:26:44.043154Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043159Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_EXT_vertex_input_dynamic_state (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.2    
2023-02-20T02:26:44.043164Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043170Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_GOOGLE_decorate_string (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043175Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043180Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        Device Extension: VK_GOOGLE_hlsl_functionality1 (/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so) version 0.0.1    
2023-02-20T02:26:44.043185Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    
2023-02-20T02:26:44.043197Z  INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
        loader_add_implicit_layer: Disabling implicit layer VK_LAYER_MESA_device_select for using an old API version 1.2 versus application requested 1.3    
2023-02-20T02:26:44.043203Z  INFO wgpu_hal::vulkan::instance:   objects: (type: INSTANCE, hndl: 0x560d8a8a8620, name: ?)    

Rerun caught a signal: SIGSEGV
Troubleshooting Rerun: https://www.rerun.io/docs/getting-started/troubleshooting

             at src/crash_handler.rs:77:9
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: ash::extensions::khr::surface::Surface::get_physical_device_surface_support
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/ash-0.37.2+1.3.238/src/extensions/khr/surface.rs:32:9
      wgpu_hal::vulkan::adapter::<impl wgpu_hal::Adapter<wgpu_hal::vulkan::Api> for wgpu_hal::vulkan::Adapter>::surface_capabilities
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-hal-0.15.1/src/vulkan/adapter.rs:1540:17
   5: wgpu_core::instance::<impl wgpu_core::hub::Global<G>>::request_adapter::gather::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.15.0/src/instance.rs:743:36
      alloc::vec::Vec<T,A>::retain::{{closure}}
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1562:32
      alloc::vec::Vec<T,A>::retain_mut::process_loop
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1642:21
      alloc::vec::Vec<T,A>::retain_mut
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1668:9
      alloc::vec::Vec<T,A>::retain
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1562:9
   6: wgpu_core::instance::<impl wgpu_core::hub::Global<G>>::request_adapter::gather
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.15.0/src/instance.rs:739:25
   7: wgpu_core::instance::<impl wgpu_core::hub::Global<G>>::request_adapter
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.15.0/src/instance.rs:769:40
   8: <wgpu::backend::direct::Context as wgpu::context::Context>::instance_request_adapter
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.15.0/src/backend/direct.rs:576:18
      <T as wgpu::context::DynContext>::instance_request_adapter
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.15.0/src/context.rs:1932:47
   9: wgpu::Instance::request_adapter
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.15.0/src/lib.rs:1424:23
  10: egui_wgpu::winit::Painter::ensure_render_state_for_surface::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/egui-wgpu-0.21.0/src/winit.rs:107:28
      egui_wgpu::winit::Painter::set_window::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/egui-wgpu-0.21.0/src/winit.rs:185:63
      pollster::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/pollster-0.3.0/src/lib.rs:128:15
  11: eframe::native::run::wgpu_integration::WgpuWinitApp::init_run_state
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1114:17
      <eframe::native::run::wgpu_integration::WgpuWinitApp as eframe::native::run::WinitApp>::on_event
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1302:25
  12: eframe::native::run::run_and_return::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:161:28
  13: winit::platform_impl::platform::sticky_exit_callback
      winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/x11/mod.rs:334:17
  14: winit::platform_impl::platform::x11::EventLoop<T>::run_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/x11/mod.rs:443:31
  15: winit::platform_impl::platform::EventLoop<T>::run_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/mod.rs:785:56
      <winit::event_loop::EventLoop<T> as winit::platform::run_return::EventLoopExtRunReturn>::run_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform/run_return.rs:51:9
      eframe::native::run::run_and_return
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:124:5
  16: eframe::native::run::wgpu_integration::run_wgpu::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1410:17
      eframe::native::run::with_event_loop::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:108:9
      std::thread::local::LocalKey<T>::try_with
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/thread/local.rs:446:16
      std::thread::local::LocalKey<T>::with
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/thread/local.rs:422:9
  17: eframe::native::run::with_event_loop
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:101:5
      eframe::native::run::wgpu_integration::run_wgpu
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/native/run.rs:1407:13
  18: eframe::run_native
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/eframe-0.21.3/src/lib.rs:207:13
  19: re_viewer::native::run_native_app
             at /host/mnt/data_1/michael/rerun/crates/re_viewer/src/native.rs:32:5
  20: rerun::run::run_impl::{{closure}}
             at src/run.rs:246:9
      rerun::run::run::{{closure}}
             at src/run.rs:142:36
      rerun::main::{{closure}}
             at src/main.rs:11:9
      tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/park.rs:283:63
      tokio::runtime::coop::with_budget
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/coop.rs:102:5
      tokio::runtime::coop::budget
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/coop.rs:68:5
      tokio::runtime::park::CachedParkThread::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/park.rs:283:31
  21: tokio::runtime::context::BlockingRegionGuard::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/context.rs:315:13
      tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/scheduler/multi_thread/mod.rs:66:9
  22: tokio::runtime::runtime::Runtime::block_on
             at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/runtime.rs:284:45
  23: rerun::main
             at src/main.rs:10:5
  24: core::ops::function::FnOnce::call_once
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5

Rerun caught a signal: SIGSEGV
Troubleshooting Rerun: https://www.rerun.io/docs/getting-started/troubleshooting

Segmentation fault (core dumped)
mchhoy commented 1 year ago

BTW the error when building the workspace root instead of crates/rerun is:

 Build web viewer wasm…
  wasm build cmd: "cargo" "build" "--target-dir" "/host/mnt/data_1/michael/rerun/target_wasm" "-p" "re_viewer" "--lib" "--target" "wasm32-unknown-unknown"
     Compiling re_renderer v0.2.0 (/host/mnt/data_1/michael/rerun/crates/re_renderer)
     Compiling re_viewer v0.2.0 (/host/mnt/data_1/michael/rerun/crates/re_viewer)
      Finished dev [optimized + debuginfo] target(s) in 14.54s
  compile status: exit status: 0
  compile stderr: 
  wasm-bindgen cmd: "wasm-bindgen" "/host/mnt/data_1/michael/rerun/target_wasm/wasm32-unknown-unknown/debug/re_viewer.wasm" "--out-dir" "/host/mnt/data_1/michael/rerun/crates/re_web_server/../../web_viewer" "--no-modules" "--no-typescript"
  thread 'main' panicked at 'Failed to generate JS bindings: No such file or directory (os error 2). target_path: "/host/mnt/data_1/michael/rerun/target_wasm/wasm32-unknown-unknown/debug/re_viewer.wasm", build_dir: /host/mnt/data_1/michael/rerun/crates/re_web_server/../../web_viewer', crates/re_web_server/build.rs:193:31
  stack backtrace:
     0: rust_begin_unwind
               at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:575:5
     1: core::panicking::panic_fmt
               at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/panicking.rs:64:14
     2: build_script_build::build_web::{{closure}}
               at ./build.rs:193:31
     3: core::result::Result<T,E>::unwrap_or_else
               at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1504:23
     4: build_script_build::build_web
               at ./build.rs:189:18
     5: build_script_build::main
               at ./build.rs:269:9
     6: core::ops::function::FnOnce::call_once
               at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
mchhoy commented 1 year ago

BTW this is the GDB backtrace

Thread 1 "rerun" received signal SIGSEGV, Segmentation fault.
0x00007fffbcbc8734 in ?? () from /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so
(gdb) 
(gdb) 
(gdb) bt
#0  0x00007fffbcbc8734 in  () at /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so
#1  0x00007fffbcbc9015 in  () at /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so
#2  0x000055555630066d in ash::extensions::khr::surface::Surface::get_physical_device_surface_support (physical_device=..., queue_family_index=0, surface=..., self=<optimized out>)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/ash-0.37.2+1.3.238/src/extensions/khr/surface.rs:32
#3  wgpu_hal::vulkan::adapter::<impl wgpu_hal::Adapter<wgpu_hal::vulkan::Api> for wgpu_hal::vulkan::Adapter>::surface_capabilities (self=<optimized out>, surface=0x37dec140a00) at src/vulkan/adapter.rs:1540
#4  0x00005555561c6c14 in wgpu_core::instance::<impl wgpu_core::hub::Global<G>>::request_adapter::gather::{{closure}} (exposed=<optimized out>)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.15.0/src/instance.rs:743
#5  alloc::vec::Vec<T,A>::retain::{{closure}} (elem=<optimized out>) at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1562
#6  alloc::vec::Vec<T,A>::retain_mut::process_loop (original_len=1, g=0x7fffffff5d00, f=<optimized out>) at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1642
#7  alloc::vec::Vec<T,A>::retain_mut (self=0x7fffffff5e08, f=...) at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1668
#8  alloc::vec::Vec<T,A>::retain (self=0x7fffffff5e08, f=...) at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/alloc/src/vec/mod.rs:1562
#9  0x000055555620ddc7 in wgpu_core::instance::<impl wgpu_core::hub::Global<G>>::request_adapter::gather
    (instance=..., inputs=<optimized out>, compatible_surface=..., force_software=false, device_types=0x7fffffff5e98)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.15.0/src/instance.rs:739
#10 0x000055555628bb39 in wgpu_core::instance::<impl wgpu_core::hub::Global<G>>::request_adapter (self=0x37dec375010, desc=0x7fffffff7520, inputs=...)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.15.0/src/instance.rs:769
#11 0x00005555562c1a62 in <wgpu::backend::direct::Context as wgpu::context::Context>::instance_request_adapter (options=<optimized out>, self=<optimized out>) at src/backend/direct.rs:576
#12 <T as wgpu::context::DynContext>::instance_request_adapter (self=0x5555575e0ab8, options=<optimized out>) at src/context.rs:1932
#13 0x000055555620ea98 in wgpu::Instance::request_adapter (self=<optimized out>, options=0x0) at src/lib.rs:1424
#14 0x0000555555eccff1 in egui_wgpu::winit::Painter::ensure_render_state_for_surface::{{closure}} () at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/egui-wgpu-0.21.0/src/winit.rs:107
#15 egui_wgpu::winit::Painter::set_window::{{closure}} () at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/egui-wgpu-0.21.0/src/winit.rs:185
#16 pollster::block_on (fut=...) at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/pollster-0.3.0/src/lib.rs:128
#17 0x0000555555e9fcb4 in eframe::native::run::wgpu_integration::WgpuWinitApp::init_run_state (self=0x7fffffff9600, event_loop=0x37dec1b2c10, storage=..., window=...) at src/native/run.rs:1114
#18 <eframe::native::run::wgpu_integration::WgpuWinitApp as eframe::native::run::WinitApp>::on_event (self=0x7fffffff9600, event_loop=0x37dec1b2c10, event=<optimized out>) at src/native/run.rs:1302
#19 0x0000555555ed96cc in eframe::native::run::run_and_return::{{closure}} (event=..., event_loop=0x0, control_flow=0x7fffffff8b60) at src/native/run.rs:161
#20 0x0000555555e7c131 in winit::platform_impl::platform::sticky_exit_callback (evt=..., target=0x37dec1b2c10, control_flow=0x7fffffff8b60, callback=0x7fffffff8da8)
--Type <RET> for more, q to quit, c to continue without paging--
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/mod.rs:884
#21 winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration (this=0x7ffff5f9daf0, control_flow=0x7fffffff8b60, cause=0x7fffffff8c80, callback=0x7fffffff8da8)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/x11/mod.rs:334
#22 0x0000555555e7c851 in winit::platform_impl::platform::x11::EventLoop<T>::run_return (self=0x7ffff5f9daf0, callback=...)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/x11/mod.rs:443
#23 0x0000555555e75282 in winit::platform_impl::platform::EventLoop<T>::run_return (self=0x7ffff5f9daf0, callback=...)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform_impl/linux/mod.rs:785
#24 <winit::event_loop::EventLoop<T> as winit::platform::run_return::EventLoopExtRunReturn>::run_return (self=0x7ffff5f9daf0, event_handler=...)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.28.1/src/platform/run_return.rs:51
#25 eframe::native::run::run_and_return (event_loop=0x7ffff5f9daf0, winit_app=...) at src/native/run.rs:124
#26 0x0000555555ea729c in eframe::native::run::wgpu_integration::run_wgpu::{{closure}} (event_loop=0x7ffff5f9daf0, native_options=...) at src/native/run.rs:1410
#27 eframe::native::run::with_event_loop::{{closure}} (event_loop=<optimized out>) at src/native/run.rs:108
#28 std::thread::local::LocalKey<T>::try_with (self=<optimized out>, f=...) at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/thread/local.rs:446
#29 std::thread::local::LocalKey<T>::with (self=<optimized out>, f=...) at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/thread/local.rs:422
#30 0x0000555555ea0a79 in eframe::native::run::with_event_loop (f=..., native_options=...) at src/native/run.rs:101
#31 eframe::native::run::wgpu_integration::run_wgpu (app_name=..., native_options=..., app_creator=...) at src/native/run.rs:1407
#32 0x0000555555e75a65 in eframe::run_native (app_name=..., native_options=..., app_creator=...) at src/lib.rs:207
#33 0x00005555559916f5 in re_viewer::native::run_native_app (app_creator=...) at crates/re_viewer/src/native.rs:32
#34 0x00005555557aec67 in rerun::run::run_impl::{{closure}} () at crates/rerun/src/run.rs:246
#35 rerun::run::run::{{closure}} () at crates/rerun/src/run.rs:142
#36 rerun::main::{{closure}} () at crates/rerun/src/main.rs:11
#37 tokio::runtime::park::CachedParkThread::block_on::{{closure}} () at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/park.rs:283
#38 tokio::runtime::coop::with_budget () at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/coop.rs:102
#39 tokio::runtime::coop::budget () at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/coop.rs:68
#40 tokio::runtime::park::CachedParkThread::block_on (self=<optimized out>, f=...) at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/park.rs:283
#41 0x00005555557b82c9 in tokio::runtime::context::BlockingRegionGuard::block_on (self=0x7fffffffc228, f=...)
--Type <RET> for more, q to quit, c to continue without paging--
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/context.rs:315
#42 tokio::runtime::scheduler::multi_thread::MultiThread::block_on (self=<optimized out>, handle=<optimized out>, future=...)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/scheduler/multi_thread/mod.rs:66
#43 0x00005555557ad8f0 in tokio::runtime::runtime::Runtime::block_on (self=<optimized out>, future=...)
    at /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/runtime.rs:284
#44 0x00005555557ad634 in rerun::main () at crates/rerun/src/main.rs:10
mchhoy commented 1 year ago

This is for 96437ee8979a2b629526875b515684bebb2e69c6

Wumpf commented 1 year ago

It's a bit concerning that you're getting a segfault, wgpu should manage to detect that the Vulkan backend is not suitable and bail out before getting into a hard crash. So this is still a bug on the wgpu side of things, unclear though if it is a bug is in the lavapipe vulkan implementation.

Given though that there's now a viable workaround (albeit given your screenshot the gamma-curve is wrong..) and the target is outside of what we're currently supporting (we only have limited support for software rasterizers like lavapipe)

For posterity:

The workaround is to run with the opengl backend, via WGPU_BACKEND=gl. I.e. for a source build that woudl be WGPU_BACKEND=gl cargo run --release


BTW the error when building the workspace root instead of crates/rerun

Can you check that wasm-bindgen is 0.2.84 or higher? We had very misleading errors with bindgen in the past for version mismatch. If this persists please open a new issue about that specifically. Thanks!