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

Segfault SIGSEGV (Address boundary error) when running examples on main #13492

Closed
RobWalt opened this issue May 24, 2024 · 6 comments
Closed
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior C-Hardware-Specific This bug is isolated to specific hardware or driver configurations S-Needs-Investigation This issue requires detective work to figure out what's going wrong

Comments

@RobWalt
Copy link
Contributor

RobWalt commented May 24, 2024

I did check out discord and the existing issues and I think this hasn't been reported yet. Feel free to close it, if I oversaw something.

Bevy version

ec01c2d

[Optional] Relevant system information

  • Rust: v1.78.0
  • nixos-unstable (nixpkgs is locked to 33d1e753c82ffc557b4a585c77de43d4c922ebb5)
  • Hyprland window manager (wayland)
  • AdapterInfo {
      name: "AMD Radeon RX 6600",
      vendor: 4098,
      device: 29695,
      device_type: DiscreteGpu,
      driver: "AMD open-source driver",
      driver_info: "2023.Q4.2 (LLPC)",
      backend: Vulkan 
    }
    

Also checked:

  • wgpu for rendering problems (v0.19.2) ✅ works
    tested with cargo rr --bin wgpu-examples X, where X
    • hello
    • hello_triangle
    • hello_windows
    • bunnymark
    • skybox
    • water
  • winit for input and window management (v0.29.15) ✅ works
    tested with cargo rr --features wayland --example X, where X
    • window
    • timer
    • multiwindow
  • gilrs for gamepad inputs, seems unrelated, I can test it as well though

What you did

I did intend to try out some new features on main and ran a few examples on the mentioned commit. Just to name one: the clear_color example.

What went wrong

All of the examples which are graphical in any way seem to segfault with

fish: Job 1, 'cargo rr --features wayland --e…' terminated by signal SIGSEGV (Address boundary error)

There's not even a window popping up before the app crashes.

I tried to verify it isn't my setup by running the same examples on the latest release tag (v0.13.2) and everything worked fine there.

Additional information

Logs

Naga ommitted for less noise

RUST_LOG=naga=info,debug cargo rr --features wayland --example clear_color 2>log

    Finished `release` profile [optimized] target(s) in 0.13s
     Running `target/release/examples/clear_color`
2024-05-24T04:54:07.515328Z DEBUG bevy_app::plugin_group: added plugin: bevy_core::TaskPoolPlugin
2024-05-24T04:54:07.515338Z DEBUG bevy_app::app: added plugin: bevy_core::TaskPoolPlugin
2024-05-24T04:54:07.516397Z DEBUG bevy_app::plugin_group: added plugin: bevy_core::TypeRegistrationPlugin
2024-05-24T04:54:07.516402Z DEBUG bevy_app::app: added plugin: bevy_core::TypeRegistrationPlugin
2024-05-24T04:54:07.516416Z DEBUG bevy_app::plugin_group: added plugin: bevy_core::FrameCountPlugin
2024-05-24T04:54:07.516419Z DEBUG bevy_app::app: added plugin: bevy_core::FrameCountPlugin
2024-05-24T04:54:07.516426Z DEBUG bevy_app::plugin_group: added plugin: bevy_time::TimePlugin
2024-05-24T04:54:07.516427Z DEBUG bevy_app::app: added plugin: bevy_time::TimePlugin
2024-05-24T04:54:07.516486Z DEBUG bevy_app::plugin_group: added plugin: bevy_transform::TransformPlugin
2024-05-24T04:54:07.516488Z DEBUG bevy_app::app: added plugin: bevy_transform::TransformPlugin
2024-05-24T04:54:07.516519Z DEBUG bevy_app::app: added plugin: bevy_hierarchy::valid_parent_check_plugin::ValidParentCheckPlugin<bevy_transform::components::global_transform::GlobalTransform>
2024-05-24T04:54:07.516540Z DEBUG bevy_app::plugin_group: added plugin: bevy_hierarchy::HierarchyPlugin
2024-05-24T04:54:07.516541Z DEBUG bevy_app::app: added plugin: bevy_hierarchy::HierarchyPlugin
2024-05-24T04:54:07.516551Z DEBUG bevy_app::plugin_group: added plugin: bevy_diagnostic::DiagnosticsPlugin
2024-05-24T04:54:07.516552Z DEBUG bevy_app::app: added plugin: bevy_diagnostic::DiagnosticsPlugin
2024-05-24T04:54:07.517615Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 24.05 NixOS", kernel: "6.6.30", cpu: "AMD Ryzen 9 7950X3D 16-Core Processor", core_count: "16", memory: "61.9 GiB" }
2024-05-24T04:54:07.517623Z DEBUG bevy_app::plugin_group: added plugin: bevy_input::InputPlugin
2024-05-24T04:54:07.517625Z DEBUG bevy_app::app: added plugin: bevy_input::InputPlugin
2024-05-24T04:54:07.517818Z DEBUG bevy_app::plugin_group: added plugin: bevy_window::WindowPlugin
2024-05-24T04:54:07.517821Z DEBUG bevy_app::app: added plugin: bevy_window::WindowPlugin
2024-05-24T04:54:07.517958Z DEBUG bevy_app::plugin_group: added plugin: bevy_a11y::AccessibilityPlugin
2024-05-24T04:54:07.517961Z DEBUG bevy_app::app: added plugin: bevy_a11y::AccessibilityPlugin
2024-05-24T04:54:07.517964Z DEBUG bevy_app::plugin_group: added plugin: bevy_asset::AssetPlugin
2024-05-24T04:54:07.517965Z DEBUG bevy_app::app: added plugin: bevy_asset::AssetPlugin
2024-05-24T04:54:07.518057Z DEBUG bevy_app::plugin_group: added plugin: bevy_scene::ScenePlugin
2024-05-24T04:54:07.518058Z DEBUG bevy_app::app: added plugin: bevy_scene::ScenePlugin
2024-05-24T04:54:07.518135Z DEBUG bevy_app::plugin_group: added plugin: bevy_winit::WinitPlugin
2024-05-24T04:54:07.518137Z DEBUG bevy_app::app: added plugin: bevy_winit::WinitPlugin
2024-05-24T04:54:07.518186Z DEBUG bevy_app::app: added plugin: bevy_winit::accessibility::AccessKitPlugin
2024-05-24T04:54:07.518368Z DEBUG sctk: Bound new global [50] wl_output v4    
2024-05-24T04:54:07.518376Z DEBUG sctk: Bound new global [51] wl_output v4    
2024-05-24T04:54:07.518379Z DEBUG sctk: Bound new global [49] zxdg_output_manager_v1 v3    
2024-05-24T04:54:07.518392Z DEBUG sctk: Bound new global [14] wl_seat v7    
2024-05-24T04:54:07.519929Z DEBUG sctk: Bound new global [40] wp_cursor_shape_manager_v1 v1    
2024-05-24T04:54:07.519939Z DEBUG sctk: supported wl_shm format Argb8888    
2024-05-24T04:54:07.519941Z DEBUG sctk: supported wl_shm format Xrgb8888    
2024-05-24T04:54:07.519943Z DEBUG sctk: supported wl_shm format Xbgr8888    
2024-05-24T04:54:07.519945Z DEBUG sctk: supported wl_shm format Abgr8888    
2024-05-24T04:54:07.519946Z DEBUG sctk: supported wl_shm format Bgr888    
2024-05-24T04:54:07.519948Z DEBUG sctk: supported wl_shm format Rgbx4444    
2024-05-24T04:54:07.519949Z DEBUG sctk: supported wl_shm format Rgba4444    
2024-05-24T04:54:07.519951Z DEBUG sctk: supported wl_shm format Rgbx5551    
2024-05-24T04:54:07.519952Z DEBUG sctk: supported wl_shm format Rgba5551    
2024-05-24T04:54:07.519953Z DEBUG sctk: supported wl_shm format Rgb565    
2024-05-24T04:54:07.519955Z DEBUG sctk: supported wl_shm format Xbgr2101010    
2024-05-24T04:54:07.519956Z DEBUG sctk: supported wl_shm format Abgr2101010    
2024-05-24T04:54:07.519958Z DEBUG sctk: supported wl_shm format Xbgr16161616f    
2024-05-24T04:54:07.519959Z DEBUG sctk: supported wl_shm format Abgr16161616f    
2024-05-24T04:54:07.519961Z DEBUG sctk: supported wl_shm format Xbgr16161616    
2024-05-24T04:54:07.519962Z DEBUG sctk: supported wl_shm format Abgr16161616    
2024-05-24T04:54:07.519983Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
2024-05-24T04:54:07.521238Z DEBUG bevy_app::plugin_group: added plugin: bevy_render::RenderPlugin
2024-05-24T04:54:07.521243Z DEBUG bevy_app::app: added plugin: bevy_render::RenderPlugin
2024-05-24T04:54:07.580254Z DEBUG wgpu_hal::vulkan::instance: Instance version: 0x40310c    
2024-05-24T04:54:07.580266Z  INFO wgpu_hal::vulkan::instance: Debug utils not enabled: debug_utils_user_data not passed to Instance::from_raw    
2024-05-24T04:54:07.580267Z DEBUG wgpu_hal::vulkan::instance: Enabling device properties2    
2024-05-24T04:54:07.580275Z DEBUG wgpu_core::instance: Instance::new: created Vulkan backend    
2024-05-24T04:54:07.580330Z DEBUG wgpu_core::instance: Instance::new: failed to create Gl backend: InstanceError { message: "unable to open libEGL", source: Some(Library(DlOpen { desc: "libEGL.so: cannot open shared object file: No such file or directory" })) }    
2024-05-24T04:54:07.587036Z  INFO wgpu_core::instance: Adapter Vulkan AdapterInfo { name: "AMD Radeon RX 6600", vendor: 4098, device: 29695, device_type: DiscreteGpu, driver: "AMD open-source driver", driver_info: "2023.Q4.2 (LLPC)", backend: Vulkan }    
2024-05-24T04:54:07.587136Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 6600", vendor: 4098, device: 29695, device_type: DiscreteGpu, driver: "AMD open-source driver", driver_info: "2023.Q4.2 (LLPC)", backend: Vulkan }
2024-05-24T04:54:07.587156Z DEBUG wgpu_hal::vulkan::adapter: Supported extensions: ["VK_KHR_swapchain", "VK_KHR_swapchain_mutable_format", "VK_EXT_robustness2", "VK_KHR_draw_indirect_count", "VK_EXT_conservative_rasterization"]    
2024-05-24T04:54:07.591756Z DEBUG bevy_render: Configured wgpu adapter Limits: Limits {
    max_texture_dimension_1d: 16384,
    max_texture_dimension_2d: 16384,
    max_texture_dimension_3d: 8192,
    max_texture_array_layers: 8192,
    max_bind_groups: 8,
    max_bindings_per_bind_group: 1000,
    max_dynamic_uniform_buffers_per_pipeline_layout: 8,
    max_dynamic_storage_buffers_per_pipeline_layout: 8,
    max_sampled_textures_per_shader_stage: 4294967295,
    max_samplers_per_shader_stage: 4294967295,
    max_storage_buffers_per_shader_stage: 4294967295,
    max_storage_textures_per_shader_stage: 4294967295,
    max_uniform_buffers_per_shader_stage: 4294967295,
    max_uniform_buffer_binding_size: 2147483648,
    max_storage_buffer_binding_size: 2147483648,
    max_vertex_buffers: 16,
    max_buffer_size: 2147483647,
    max_vertex_attributes: 64,
    max_vertex_buffer_array_stride: 16383,
    min_uniform_buffer_offset_alignment: 32,
    min_storage_buffer_offset_alignment: 32,
    max_inter_stage_shader_components: 128,
    max_compute_workgroup_storage_size: 32768,
    max_compute_invocations_per_workgroup: 1024,
    max_compute_workgroup_size_x: 1024,
    max_compute_workgroup_size_y: 1024,
    max_compute_workgroup_size_z: 1024,
    max_compute_workgroups_per_dimension: 65535,
    max_push_constant_size: 128,
    max_non_sampler_bindings: 4294967295,
}
2024-05-24T04:54:07.591768Z DEBUG bevy_render: Configured wgpu adapter Features: Features(
    DEPTH_CLIP_CONTROL | TIMESTAMP_QUERY | INDIRECT_FIRST_INSTANCE | SHADER_F16 | BGRA8UNORM_STORAGE | FLOAT32_FILTERABLE | RG11B10UFLOAT_RENDERABLE | DEPTH32FLOAT_STENCIL8 | TEXTURE_COMPRESSION_BC | TEXTURE_FORMAT_16BIT_NORM | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | PIPELINE_STATISTICS_QUERY | TIMESTAMP_QUERY_INSIDE_PASSES | TEXTURE_BINDING_ARRAY | BUFFER_BINDING_ARRAY | STORAGE_RESOURCE_BINDING_ARRAY | SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING | UNIFORM_BUFFER_AND_STORAGE_TEXTURE_ARRAY_NON_UNIFORM_INDEXING | PARTIALLY_BOUND_BINDING_ARRAY | MULTI_DRAW_INDIRECT | MULTI_DRAW_INDIRECT_COUNT | PUSH_CONSTANTS | ADDRESS_MODE_CLAMP_TO_ZERO | ADDRESS_MODE_CLAMP_TO_BORDER | POLYGON_MODE_LINE | POLYGON_MODE_POINT | CONSERVATIVE_RASTERIZATION | VERTEX_WRITABLE_STORAGE | CLEAR_TEXTURE | SPIRV_SHADER_PASSTHROUGH | MULTIVIEW | SHADER_UNUSED_VERTEX_OUTPUT | TEXTURE_FORMAT_NV12 | SHADER_F64 | SHADER_I16 | SHADER_PRIMITIVE_INDEX | DUAL_SOURCE_BLENDING,
)
2024-05-24T04:54:07.591843Z DEBUG bevy_app::app: added plugin: bevy_hierarchy::valid_parent_check_plugin::ValidParentCheckPlugin<bevy_render::view::visibility::InheritedVisibility>
2024-05-24T04:54:07.591848Z DEBUG bevy_app::app: added plugin: bevy_render::view::window::WindowRenderPlugin
2024-05-24T04:54:07.591850Z DEBUG bevy_app::app: added plugin: bevy_render::view::window::screenshot::ScreenshotPlugin
2024-05-24T04:54:07.594575Z DEBUG bevy_app::app: added plugin: bevy_render::camera::CameraPlugin
2024-05-24T04:54:07.594646Z DEBUG bevy_app::app: added plugin: bevy_render::camera::projection::CameraProjectionPlugin<bevy_render::camera::projection::Projection>
2024-05-24T04:54:07.594675Z DEBUG bevy_app::app: added plugin: bevy_render::camera::projection::CameraProjectionPlugin<bevy_render::camera::projection::OrthographicProjection>
2024-05-24T04:54:07.594684Z DEBUG bevy_app::app: added plugin: bevy_render::camera::projection::CameraProjectionPlugin<bevy_render::camera::projection::PerspectiveProjection>
2024-05-24T04:54:07.594701Z DEBUG bevy_app::app: added plugin: bevy_render::extract_resource::ExtractResourcePlugin<bevy_render::camera::manual_texture_view::ManualTextureViews>
2024-05-24T04:54:07.594703Z DEBUG bevy_app::app: added plugin: bevy_render::extract_resource::ExtractResourcePlugin<bevy_render::camera::clear_color::ClearColor>
2024-05-24T04:54:07.594707Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_render::camera::camera::CameraMainTextureUsages>
2024-05-24T04:54:07.594718Z DEBUG bevy_app::app: added plugin: bevy_render::view::ViewPlugin
2024-05-24T04:54:07.594786Z DEBUG bevy_app::app: added plugin: bevy_render::extract_resource::ExtractResourcePlugin<bevy_render::view::Msaa>
2024-05-24T04:54:07.594789Z DEBUG bevy_app::app: added plugin: bevy_render::view::visibility::VisibilityPlugin
2024-05-24T04:54:07.594799Z DEBUG bevy_app::app: added plugin: bevy_render::view::visibility::range::VisibilityRangePlugin
2024-05-24T04:54:07.594818Z DEBUG bevy_app::app: added plugin: bevy_render::mesh::MeshPlugin
2024-05-24T04:54:07.594874Z DEBUG bevy_app::app: added plugin: bevy_render::render_asset::RenderAssetPlugin<bevy_render::mesh::mesh::GpuMesh, bevy_render::texture::image::GpuImage>
2024-05-24T04:54:07.594888Z DEBUG bevy_app::app: added plugin: bevy_render::globals::GlobalsPlugin
2024-05-24T04:54:07.594925Z DEBUG bevy_app::app: added plugin: bevy_render::mesh::morph::MorphPlugin
2024-05-24T04:54:07.594934Z DEBUG bevy_app::app: added plugin: bevy_render::batching::gpu_preprocessing::BatchingPlugin
2024-05-24T04:54:07.594940Z DEBUG bevy_app::app: added plugin: bevy_render::extract_resource::ExtractResourcePlugin<bevy_render::render_asset::RenderAssetBytesPerFrame>
2024-05-24T04:54:07.594947Z DEBUG bevy_app::plugin_group: added plugin: bevy_render::texture::ImagePlugin
2024-05-24T04:54:07.594948Z DEBUG bevy_app::app: added plugin: bevy_render::texture::ImagePlugin
2024-05-24T04:54:07.594952Z DEBUG bevy_app::app: added plugin: bevy_render::render_asset::RenderAssetPlugin<bevy_render::texture::image::GpuImage>
2024-05-24T04:54:07.594975Z DEBUG bevy_app::plugin_group: added plugin: bevy_render::pipelined_rendering::PipelinedRenderingPlugin
2024-05-24T04:54:07.594977Z DEBUG bevy_app::app: added plugin: bevy_render::pipelined_rendering::PipelinedRenderingPlugin
2024-05-24T04:54:07.594984Z DEBUG bevy_app::plugin_group: added plugin: bevy_core_pipeline::CorePipelinePlugin
2024-05-24T04:54:07.594985Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::CorePipelinePlugin
2024-05-24T04:54:07.595082Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::core_2d::Core2dPlugin
2024-05-24T04:54:07.595089Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::core_2d::camera_2d::Camera2d>
2024-05-24T04:54:07.595132Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::core_3d::Core3dPlugin
2024-05-24T04:54:07.595142Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::skybox::SkyboxPlugin
2024-05-24T04:54:07.595248Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::skybox::Skybox>
2024-05-24T04:54:07.595254Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::UniformComponentPlugin<bevy_core_pipeline::skybox::SkyboxUniforms>
2024-05-24T04:54:07.595269Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::core_3d::camera_3d::Camera3d>
2024-05-24T04:54:07.595313Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::deferred::copy_lighting_id::CopyDeferredLightingIdPlugin
2024-05-24T04:54:07.595336Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::blit::BlitPlugin
2024-05-24T04:54:07.595348Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::msaa_writeback::MsaaWritebackPlugin
2024-05-24T04:54:07.595356Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::tonemapping::TonemappingPlugin
2024-05-24T04:54:07.607304Z DEBUG bevy_app::app: added plugin: bevy_render::extract_resource::ExtractResourcePlugin<bevy_core_pipeline::tonemapping::TonemappingLuts>
2024-05-24T04:54:07.607320Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::tonemapping::Tonemapping>
2024-05-24T04:54:07.607323Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::tonemapping::DebandDither>
2024-05-24T04:54:07.607329Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::upscaling::UpscalingPlugin
2024-05-24T04:54:07.607332Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::bloom::BloomPlugin
2024-05-24T04:54:07.607493Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::bloom::settings::BloomSettings>
2024-05-24T04:54:07.607496Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::UniformComponentPlugin<bevy_core_pipeline::bloom::downsampling_pipeline::BloomUniforms>
2024-05-24T04:54:07.607510Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::fxaa::FxaaPlugin
2024-05-24T04:54:07.607783Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::fxaa::Fxaa>
2024-05-24T04:54:07.607789Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::contrast_adaptive_sharpening::CASPlugin
2024-05-24T04:54:07.607900Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::contrast_adaptive_sharpening::ContrastAdaptiveSharpeningSettings>
2024-05-24T04:54:07.607902Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::UniformComponentPlugin<bevy_core_pipeline::contrast_adaptive_sharpening::CASUniform>
2024-05-24T04:54:07.607910Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::motion_blur::MotionBlurPlugin
2024-05-24T04:54:07.608063Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_core_pipeline::motion_blur::MotionBlur>
2024-05-24T04:54:07.608066Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::UniformComponentPlugin<bevy_core_pipeline::motion_blur::MotionBlur>
2024-05-24T04:54:07.608072Z DEBUG bevy_app::app: added plugin: bevy_core_pipeline::dof::DepthOfFieldPlugin
2024-05-24T04:54:07.608371Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::UniformComponentPlugin<bevy_core_pipeline::dof::DepthOfFieldUniform>
2024-05-24T04:54:07.608385Z DEBUG bevy_app::plugin_group: added plugin: bevy_sprite::SpritePlugin
2024-05-24T04:54:07.608390Z DEBUG bevy_app::app: added plugin: bevy_sprite::SpritePlugin
2024-05-24T04:54:07.608559Z DEBUG bevy_app::app: added plugin: bevy_sprite::mesh2d::mesh::Mesh2dRenderPlugin
2024-05-24T04:54:07.608707Z DEBUG bevy_app::app: added plugin: bevy_sprite::mesh2d::color_material::ColorMaterialPlugin
2024-05-24T04:54:07.608739Z DEBUG bevy_app::app: added plugin: bevy_sprite::mesh2d::material::Material2dPlugin<bevy_sprite::mesh2d::color_material::ColorMaterial>
2024-05-24T04:54:07.608751Z DEBUG bevy_app::app: added plugin: bevy_render::render_asset::RenderAssetPlugin<bevy_sprite::mesh2d::material::PreparedMaterial2d<bevy_sprite::mesh2d::color_material::ColorMaterial>>
2024-05-24T04:54:07.608776Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_sprite::SpriteSource>
2024-05-24T04:54:07.608796Z DEBUG bevy_app::plugin_group: added plugin: bevy_text::TextPlugin
2024-05-24T04:54:07.608797Z DEBUG bevy_app::app: added plugin: bevy_text::TextPlugin
2024-05-24T04:54:07.608897Z DEBUG bevy_app::plugin_group: added plugin: bevy_ui::UiPlugin
2024-05-24T04:54:07.608899Z DEBUG bevy_app::app: added plugin: bevy_ui::UiPlugin
2024-05-24T04:54:07.609076Z DEBUG bevy_app::app: added plugin: bevy_ui::accessibility::AccessibilityPlugin
2024-05-24T04:54:07.609303Z DEBUG bevy_app::plugin_group: added plugin: bevy_pbr::PbrPlugin
2024-05-24T04:54:07.609307Z DEBUG bevy_app::app: added plugin: bevy_pbr::PbrPlugin
2024-05-24T04:54:07.613055Z DEBUG bevy_app::app: added plugin: bevy_pbr::render::mesh::MeshRenderPlugin
2024-05-24T04:54:07.613649Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::BinnedRenderPhasePlugin<bevy_core_pipeline::core_3d::Opaque3d, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.613663Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::BinnedRenderPhasePlugin<bevy_core_pipeline::core_3d::AlphaMask3d, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.613669Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::BinnedRenderPhasePlugin<bevy_pbr::render::light::Shadow, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.613675Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::BinnedRenderPhasePlugin<bevy_core_pipeline::deferred::Opaque3dDeferred, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.613680Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::BinnedRenderPhasePlugin<bevy_core_pipeline::deferred::AlphaMask3dDeferred, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.613685Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::SortedRenderPhasePlugin<bevy_core_pipeline::core_3d::Transmissive3d, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.613690Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::SortedRenderPhasePlugin<bevy_core_pipeline::core_3d::Transparent3d, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.613709Z DEBUG bevy_app::app: added plugin: bevy_pbr::material::MaterialPlugin<bevy_pbr::pbr_material::StandardMaterial>
2024-05-24T04:54:07.613723Z DEBUG bevy_app::app: added plugin: bevy_render::extract_instances::ExtractInstancesPlugin<bevy_asset::id::AssetId<bevy_pbr::pbr_material::StandardMaterial>>
2024-05-24T04:54:07.613730Z DEBUG bevy_app::app: added plugin: bevy_render::render_asset::RenderAssetPlugin<bevy_pbr::material::PreparedMaterial<bevy_pbr::pbr_material::StandardMaterial>>
2024-05-24T04:54:07.613768Z DEBUG bevy_app::app: added plugin: bevy_pbr::prepass::PrepassPipelinePlugin<bevy_pbr::pbr_material::StandardMaterial>
2024-05-24T04:54:07.614014Z DEBUG bevy_app::app: added plugin: bevy_pbr::prepass::PrepassPlugin<bevy_pbr::pbr_material::StandardMaterial>
2024-05-24T04:54:07.614020Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::BinnedRenderPhasePlugin<bevy_core_pipeline::prepass::Opaque3dPrepass, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.614025Z DEBUG bevy_app::app: added plugin: bevy_render::render_phase::BinnedRenderPhasePlugin<bevy_core_pipeline::prepass::AlphaMask3dPrepass, bevy_pbr::render::mesh::MeshPipeline>
2024-05-24T04:54:07.614047Z DEBUG bevy_app::app: added plugin: bevy_pbr::ssao::ScreenSpaceAmbientOcclusionPlugin
2024-05-24T04:54:07.614502Z DEBUG bevy_app::app: added plugin: bevy_render::extract_resource::ExtractResourcePlugin<bevy_pbr::light::ambient_light::AmbientLight>
2024-05-24T04:54:07.614511Z DEBUG bevy_app::app: added plugin: bevy_pbr::render::fog::FogPlugin
2024-05-24T04:54:07.614586Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_pbr::fog::FogSettings>
2024-05-24T04:54:07.614591Z DEBUG bevy_app::app: added plugin: bevy_render::extract_resource::ExtractResourcePlugin<bevy_pbr::material::DefaultOpaqueRendererMethod>
2024-05-24T04:54:07.614593Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_pbr::light::ShadowFilteringMethod>
2024-05-24T04:54:07.614595Z DEBUG bevy_app::app: added plugin: bevy_pbr::lightmap::LightmapPlugin
2024-05-24T04:54:07.614624Z DEBUG bevy_app::app: added plugin: bevy_pbr::light_probe::LightProbePlugin
2024-05-24T04:54:07.614950Z DEBUG bevy_app::app: added plugin: bevy_pbr::PbrProjectionPlugin<bevy_render::camera::projection::Projection>
2024-05-24T04:54:07.614958Z DEBUG bevy_app::app: added plugin: bevy_pbr::PbrProjectionPlugin<bevy_render::camera::projection::PerspectiveProjection>
2024-05-24T04:54:07.614961Z DEBUG bevy_app::app: added plugin: bevy_pbr::PbrProjectionPlugin<bevy_render::camera::projection::OrthographicProjection>
2024-05-24T04:54:07.614964Z DEBUG bevy_app::app: added plugin: bevy_pbr::render::gpu_preprocess::GpuMeshPreprocessPlugin
2024-05-24T04:54:07.615139Z DEBUG bevy_app::app: added plugin: bevy_pbr::volumetric_fog::VolumetricFogPlugin
2024-05-24T04:54:07.615405Z DEBUG bevy_app::app: added plugin: bevy_pbr::deferred::DeferredPbrLightingPlugin
2024-05-24T04:54:07.615410Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::ExtractComponentPlugin<bevy_pbr::deferred::PbrDeferredLightingDepthId>
2024-05-24T04:54:07.615413Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::UniformComponentPlugin<bevy_pbr::deferred::PbrDeferredLightingDepthId>
2024-05-24T04:54:07.615515Z DEBUG bevy_app::plugin_group: added plugin: bevy_gltf::GltfPlugin
2024-05-24T04:54:07.615517Z DEBUG bevy_app::app: added plugin: bevy_gltf::GltfPlugin
2024-05-24T04:54:07.615609Z DEBUG bevy_app::plugin_group: added plugin: bevy_audio::AudioPlugin
2024-05-24T04:54:07.615611Z DEBUG bevy_app::app: added plugin: bevy_audio::AudioPlugin
2024-05-24T04:54:07.622910Z DEBUG bevy_app::plugin_group: added plugin: bevy_gilrs::GilrsPlugin
2024-05-24T04:54:07.622917Z DEBUG bevy_app::app: added plugin: bevy_gilrs::GilrsPlugin
2024-05-24T04:54:07.623090Z DEBUG gilrs::gamepad: Loaded 611 mappings.    
2024-05-24T04:54:07.628640Z  INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event1 (ASRock LED Controller) connected.    
2024-05-24T04:54:07.628645Z DEBUG gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event1: uuid: 03000000-ce26-0000-a201-000010010000, ff_supported: false, axes: [EvCode { kind: 3, code: 0 }, EvCode { kind: 3, code: 1 }, EvCode { kind: 3, code: 2 }, EvCode { kind: 3, code: 3 }, EvCode { kind: 3, code: 4 }, EvCode { kind: 3, code: 5 }, EvCode { kind: 3, code: 6 }, EvCode { kind: 3, code: 7 }, EvCode { kind: 3, code: 8 }, EvCode { kind: 3, code: 16 }, EvCode { kind: 3, code: 40 }], buttons: [EvCode { kind: 1, code: 314 }, EvCode { kind: 1, code: 315 }, EvCode { kind: 1, code: 353 }, EvCode { kind: 1, code: 356 }, EvCode { kind: 1, code: 408 }, EvCode { kind: 1, code: 438 }, EvCode { kind: 1, code: 103 }, EvCode { kind: 1, code: 105 }, EvCode { kind: 1, code: 106 }, EvCode { kind: 1, code: 108 }, EvCode { kind: 1, code: 116 }, EvCode { kind: 1, code: 138 }, EvCode { kind: 1, code: 139 }, EvCode { kind: 1, code: 142 }, EvCode { kind: 1, code: 143 }, EvCode { kind: 1, code: 148 }, EvCode { kind: 1, code: 174 }, EvCode { kind: 1, code: 227 }, EvCode { kind: 1, code: 248 }], axes_info: AxesInfo { info: {0: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 1: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 2: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 3: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 4: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 5: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 6: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 7: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 8: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 16: AxisInfo { min: 0, max: 255, deadzone: Some(0) }, 40: AxisInfo { min: 0, max: 255, deadzone: Some(0) }} }    
2024-05-24T04:54:07.628805Z DEBUG bevy_app::plugin_group: added plugin: bevy_animation::AnimationPlugin
2024-05-24T04:54:07.628808Z DEBUG bevy_app::app: added plugin: bevy_animation::AnimationPlugin
2024-05-24T04:54:07.628925Z DEBUG bevy_app::plugin_group: added plugin: bevy_gizmos::GizmoPlugin
2024-05-24T04:54:07.628927Z DEBUG bevy_app::app: added plugin: bevy_gizmos::GizmoPlugin
2024-05-24T04:54:07.629361Z DEBUG bevy_app::app: added plugin: bevy_render::extract_component::UniformComponentPlugin<bevy_gizmos::LineGizmoUniform>
2024-05-24T04:54:07.629397Z DEBUG bevy_app::app: added plugin: bevy_render::render_asset::RenderAssetPlugin<bevy_gizmos::GpuLineGizmo>
2024-05-24T04:54:07.629425Z DEBUG bevy_app::app: added plugin: bevy_gizmos::aabb::AabbGizmoPlugin
2024-05-24T04:54:07.629442Z DEBUG bevy_app::app: added plugin: bevy_gizmos::light::LightGizmoPlugin
2024-05-24T04:54:07.629461Z DEBUG bevy_app::app: added plugin: bevy_gizmos::pipeline_2d::LineGizmo2dPlugin
2024-05-24T04:54:07.629479Z DEBUG bevy_app::app: added plugin: bevy_gizmos::pipeline_3d::LineGizmo3dPlugin
2024-05-24T04:54:07.629495Z DEBUG bevy_app::plugin_group: added plugin: bevy_internal::default_plugins::IgnoreAmbiguitiesPlugin
2024-05-24T04:54:07.629496Z DEBUG bevy_app::app: added plugin: bevy_internal::default_plugins::IgnoreAmbiguitiesPlugin
2024-05-24T04:54:07.636731Z DEBUG wgpu_core::device::resource: Create view for texture Id(0,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.636751Z DEBUG wgpu_core::device::resource: Create view for texture Id(1,1,vk) filters usages to TextureUses(RESOURCE | COLOR_TARGET)    
2024-05-24T04:54:07.636758Z DEBUG wgpu_core::device::resource: Create view for texture Id(2,1,vk) filters usages to TextureUses(RESOURCE | COLOR_TARGET)    
2024-05-24T04:54:07.636774Z DEBUG wgpu_core::device::resource: Create view for texture Id(3,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.636788Z DEBUG wgpu_core::device::resource: Create view for texture Id(4,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.636794Z DEBUG wgpu_core::device::resource: Create view for texture Id(5,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.636800Z DEBUG wgpu_core::device::resource: Create view for texture Id(6,1,vk) filters usages to TextureUses(RESOURCE | COLOR_TARGET)    
2024-05-24T04:54:07.636814Z DEBUG wgpu_core::device::resource: Create view for texture Id(7,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.636848Z DEBUG wgpu_core::device::resource: Create view for texture Id(8,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.636857Z DEBUG wgpu_core::device::resource: Create view for texture Id(9,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.636996Z DEBUG wgpu_core::device::resource: Create view for texture Id(10,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.637038Z DEBUG wgpu_core::device::resource: Create view for texture Id(11,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.637059Z DEBUG bevy_app::app: added plugin: bevy_render::extract_instances::ExtractInstancesPlugin<bevy_pbr::light_probe::environment_map::EnvironmentMapIds>
2024-05-24T04:54:07.637661Z  INFO bevy_input::gamepad: Gamepad { id: 0 } Connected
2024-05-24T04:54:07.645592Z DEBUG wgpu_core::device::global: configuring surface with SurfaceConfiguration { usage: TextureUsages(RENDER_ATTACHMENT), format: Bgra8UnormSrgb, width: 960, height: 1035, present_mode: Fifo, desired_maximum_frame_latency: 2, alpha_mode: Auto, view_formats: [] }    
2024-05-24T04:54:07.646155Z DEBUG wgpu_core::present: Created CURRENT Surface Texture Id(12,1,vk)    
2024-05-24T04:54:07.646161Z DEBUG wgpu_core::device::resource: Create view for texture Id(12,1,vk) filters usages to TextureUses(COLOR_TARGET)    
2024-05-24T04:54:07.646516Z DEBUG wgpu_core::device::resource: Create view for texture Id(13,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.646606Z DEBUG wgpu_core::device::resource: Create view for texture Id(14,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.646616Z DEBUG wgpu_core::device::resource: Create view for texture Id(15,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.646665Z DEBUG wgpu_core::device::resource: Create view for texture Id(16,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.646686Z DEBUG wgpu_core::resource: Buffer Id(0,1,vk) map state -> Idle    
2024-05-24T04:54:07.646785Z DEBUG wgpu_core::resource: Buffer Id(3,1,vk) map state -> Idle    
2024-05-24T04:54:07.646797Z DEBUG wgpu_core::resource: Buffer Id(5,1,vk) map state -> Idle    
2024-05-24T04:54:07.646831Z DEBUG wgpu_core::device::resource: Create view for texture Id(17,1,vk) filters usages to TextureUses(RESOURCE | DEPTH_STENCIL_READ | DEPTH_STENCIL_WRITE)    
2024-05-24T04:54:07.646844Z DEBUG wgpu_core::device::resource: Create view for texture Id(18,1,vk) filters usages to TextureUses(RESOURCE | DEPTH_STENCIL_READ | DEPTH_STENCIL_WRITE)    
2024-05-24T04:54:07.646847Z DEBUG wgpu_core::device::resource: Create view for texture Id(17,1,vk) filters usages to TextureUses(RESOURCE)    
2024-05-24T04:54:07.646850Z DEBUG wgpu_core::device::resource: Create view for texture Id(18,1,vk) filters usages to TextureUses(RESOURCE | DEPTH_STENCIL_READ | DEPTH_STENCIL_WRITE)    
2024-05-24T04:54:07.646884Z DEBUG wgpu_core::device::resource: Create view for texture Id(19,1,vk) filters usages to TextureUses(RESOURCE | COLOR_TARGET)    
2024-05-24T04:54:07.646897Z DEBUG wgpu_core::device::resource: Create view for texture Id(20,1,vk) filters usages to TextureUses(RESOURCE | COLOR_TARGET)    
2024-05-24T04:54:07.646912Z DEBUG wgpu_core::device::resource: Create view for texture Id(21,1,vk) filters usages to TextureUses(COLOR_TARGET)    
2024-05-24T04:54:07.646997Z DEBUG wgpu_core::resource: Buffer Id(8,1,vk) map state -> Idle    
2024-05-24T04:54:07.647101Z DEBUG bevy_render::render_resource::pipeline_cache: processing shader AssetId<bevy_render::render_resource::shader::Shader>{uuid: 00000000-0000-0000-6cc4-840912a5e8f4}, with shader defs [UInt("AVAILABLE_STORAGE_BUFFER_BINDINGS", 4294967295)]
2024-05-24T04:54:07.647928Z DEBUG bevy_render::render_resource::pipeline_cache: processing shader AssetId<bevy_render::render_resource::shader::Shader>{uuid: 00000000-0000-0000-ec22-bb39efb0c4c0}, with shader defs [Bool("TONEMAP_METHOD_NONE", true), UInt("AVAILABLE_STORAGE_BUFFER_BINDINGS", 4294967295)]
2024-05-24T04:54:07.650605Z DEBUG bevy_render::render_resource::pipeline_cache: processing shader AssetId<bevy_render::render_resource::shader::Shader>{uuid: 00000000-0000-0000-0000-5d010254293f}, with shader defs [UInt("AVAILABLE_STORAGE_BUFFER_BINDINGS", 4294967295)]

Bisect

I did a bisect and here are my findings:

  • on 961b24d, the window pops up for a brief moment but then the error appears, this also seems to be the first bad commit
@RobWalt RobWalt added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels May 24, 2024
@JMS55
Copy link
Contributor

JMS55 commented May 24, 2024

Can you run it through GDB and see where it crashes?

@RobWalt
Copy link
Contributor Author

RobWalt commented May 24, 2024

Can you run it through GDB and see where it crashes?

I'm not too familiar with GDB. Can you give me some instructions on what to do exactly?

@JMS55
Copy link
Contributor

JMS55 commented May 24, 2024

  1. Compile an example that doesn't use any assets, e.g. 3d_scene (or set BEVY_ASSET_ROOT if needed)
  2. gdb target/debug/examples/foo
  3. r

@Friz64
Copy link
Contributor

Friz64 commented May 24, 2024

What happens when you disable AMDVLK (so the Mesa Vulkan (RADV) drivers are used)?

@alice-i-cecile alice-i-cecile added C-Hardware-Specific This bug is isolated to specific hardware or driver configurations A-Rendering Drawing game state to the screen S-Needs-Investigation This issue requires detective work to figure out what's going wrong and removed S-Needs-Triage This issue needs to be labelled labels May 24, 2024
@RobWalt
Copy link
Contributor Author

RobWalt commented May 25, 2024

  1. Compile an example that doesn't use any assets, e.g. 3d_scene (or set BEVY_ASSET_ROOT if needed)

    1. gdb target/debug/examples/foo

    2. r

Ahh, ok sorry. I thought you had some specific breakpoints in mind. Here's the gdb output

(gdb) r
Starting program: /home/aviac/repos/github/RobWalt/bevy/target/debug/examples/clear_color
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/apab5i73dqa09wx0q27b6fbhd1r18ihl-glibc-2.39-31/lib/libthread_db.so.1".
[New Thread 0x7ffff7b366c0 (LWP 372130)]
[New Thread 0x7ffff79356c0 (LWP 372131)]
[New Thread 0x7ffff77316c0 (LWP 372132)]
[New Thread 0x7ffff752d6c0 (LWP 372133)]
[New Thread 0x7ffff73296c0 (LWP 372134)]
[New Thread 0x7ffff71256c0 (LWP 372135)]
[New Thread 0x7ffff6f216c0 (LWP 372136)]
[New Thread 0x7ffff6d1d6c0 (LWP 372137)]
[New Thread 0x7ffff6b166c0 (LWP 372138)]
[New Thread 0x7ffff69156c0 (LWP 372139)]
[New Thread 0x7ffff67116c0 (LWP 372140)]
[New Thread 0x7ffff650d6c0 (LWP 372141)]
[New Thread 0x7ffff63096c0 (LWP 372142)]
[New Thread 0x7ffff61056c0 (LWP 372143)]
[New Thread 0x7ffff5f016c0 (LWP 372144)]
[New Thread 0x7ffff5cfd6c0 (LWP 372145)]
[New Thread 0x7ffff5af96c0 (LWP 372146)]
[New Thread 0x7ffff58f56c0 (LWP 372147)]
[New Thread 0x7ffff56f16c0 (LWP 372148)]
[New Thread 0x7ffff54ed6c0 (LWP 372149)]
[New Thread 0x7ffff52e96c0 (LWP 372150)]
[New Thread 0x7ffff50e26c0 (LWP 372151)]
[New Thread 0x7ffff4ee16c0 (LWP 372152)]
[New Thread 0x7ffff4cdd6c0 (LWP 372153)]
[New Thread 0x7ffff4ad66c0 (LWP 372154)]
[New Thread 0x7ffff48d26c0 (LWP 372155)]
[New Thread 0x7ffff46d16c0 (LWP 372156)]
[New Thread 0x7ffff44ca6c0 (LWP 372157)]
[New Thread 0x7ffff42c96c0 (LWP 372158)]
[New Thread 0x7fff87fff6c0 (LWP 372159)]
[New Thread 0x7fff87dfe6c0 (LWP 372160)]
[New Thread 0x7fff87bfd6c0 (LWP 372161)]
2024-05-25T07:48:34.834429Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 24.05 NixOS", kernel: "6.6.31", cpu: "AMD Ryzen 9 7950X3D 16-Core Processor", core_count: "16", memory: "61.9 GiB" }
2024-05-25T07:48:34.840251Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
warning: Missing auto-load script at offset 0 in section .debug_gdb_scripts
of file /nix/store/qdfdv7axm2zxj19k43g9j68qgcphdraz-mesa-24.0.6-drivers/lib/libvulkan_nouveau.so.
Use `info auto-load python-scripts [REGEXP]' to list them.
[Detaching after vfork from child process 372162]
[Detaching after vfork from child process 372163]
[Detaching after vfork from child process 372164]
[New Thread 0x7fff713fb6c0 (LWP 372167)]
[New Thread 0x7fff70bfa6c0 (LWP 372168)]
2024-05-25T07:48:35.213692Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 6600", vendor: 4098, device: 29695, device_type: DiscreteGpu, driver: "AMD open-source driver", driver_info: "2023.Q4.2 (LLPC)", backend: Vulkan }
[Detaching after vfork from child process 372169]
[New Thread 0x7fff56fff6c0 (LWP 372170)]
[New Thread 0x7fff567fe6c0 (LWP 372171)]
[New Thread 0x7fff55ffd6c0 (LWP 372172)]
[New Thread 0x7fff5577a6c0 (LWP 372175)]
2024-05-25T07:48:35.548877Z  INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event1 (ASRock LED Controller) connected.
[New Thread 0x7fff555796c0 (LWP 372176)]
[New Thread 0x7fff553786c0 (LWP 372177)]
[New Thread 0x7fff549776c0 (LWP 372178)]
2024-05-25T07:48:35.624592Z  INFO bevy_input::gamepad: Gamepad { id: 0 } Connected

Thread 8 "Async Compute T" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff6f216c0 (LWP 372136)]
0x00007fff6149fdcd in ?? () from /nix/store/b35zqnyfcknmaa0q7hfdfffnxrw2d2z7-amdvlk-2023.Q4.2/lib/amdvlk64.so

Here's also the lldb output

(lldb) r
Process 380466 launched: '/home/aviac/repos/github/RobWalt/bevy/target/debug/examples/clear_color' (x86_64)
2024-05-25T07:51:40.590588Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 24.05 NixOS", kernel: "6.6.31", cpu: "AMD Ryzen 9 7950X3D 16-Core Processor", core_count: "16", memory: "61.9 GiB" }
2024-05-25T07:51:40.598919Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
Process 380466 stopped and restarted: thread 1 received signal: SIGCHLD
Process 380466 stopped and restarted: thread 1 received signal: SIGCHLD
Process 380466 stopped and restarted: thread 1 received signal: SIGCHLD
2024-05-25T07:51:41.023016Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 6600", vendor: 4098, device: 29695, device_type: DiscreteGpu, driver: "AMD open-source driver", driver_info: "2023.Q4.2 (LLPC)", backend: Vulkan }
Process 380466 stopped and restarted: thread 1 received signal: SIGCHLD
2024-05-25T07:51:41.307041Z  INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event1 (ASRock LED Controller) connected.
2024-05-25T07:51:41.382348Z  INFO bevy_input::gamepad: Gamepad { id: 0 } Connected
Process 380466 stopped
* thread #7, name = 'Async Compute T', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x8)
    frame #0: 0x00007fff6149fdcd amdvlk64.so`___lldb_unnamed_symbol50394 + 29
amdvlk64.so`___lldb_unnamed_symbol50394:
->  0x7fff6149fdcd <+29>: movzbl 0x8(%rsi), %esi
    0x7fff6149fdd1 <+33>: movslq (%rdx,%rsi,4), %rax
    0x7fff6149fdd5 <+37>: addq   %rdx, %rax
    0x7fff6149fdd8 <+40>: jmpq   *%rax

What happens when you disable AMDVLK (so the Mesa Vulkan (RADV) drivers are used)?

Yeah I was also considering the driver to be the issue. Especially since I recently update to a newer version. But a rollback to the previous version also didn't fix it yet. I'll try out your suggestion! ... Yeah that seems to work for me. Thanks for the idea!

Not so sure what the learnings are from this issue here. I guess I have to wait until it's fixed in the amdvlk drivers.

Sorry for the trouble right before the release. I'm closing this.

@RobWalt RobWalt closed this as completed May 25, 2024
@RobWalt
Copy link
Contributor Author

RobWalt commented May 25, 2024

More details for anyone else stumbling over this issue:

  • After the update I was on version 2023.Q4.2 of the amdvlk driver and I thought that was the issue
  • It seems to persist after downgrading to 2023.Q4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior C-Hardware-Specific This bug is isolated to specific hardware or driver configurations S-Needs-Investigation This issue requires detective work to figure out what's going wrong
Projects
None yet
Development

No branches or pull requests

4 participants