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

exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) Segmentation fault #2548

Open
4 tasks done
argan719 opened this issue Aug 14, 2024 · 1 comment
Open
4 tasks done

exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) Segmentation fault #2548

argan719 opened this issue Aug 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@argan719
Copy link

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

When I try this on,

$ git clone https://github.com/iced-rs/iced.git
$ cd iced/
$ cd examples/
$ rustup update stable
$ cargo run --package tour

2024-08-14T04:18:06.236810Z WARN wgpu_core::instance: Missing downlevel flags: DownlevelFlags(SURFACE_VIEW_FORMATS)
The underlying API or device in use does not support enough features to be a fully compliant implementation of WebGPU. A subset of the features can still be used. If
you are running this program on native and not in a browser and wish to limit the features you use to the supported subset, call Adapter::downlevel_properties or Device::downlevel_properties to get a listing of the features the current platform supports.
2024-08-14T04:18:06.237432Z WARN wgpu_core::instance: DownlevelCapabilities {
flags: DownlevelFlags(
COMPUTE_SHADERS | FRAGMENT_WRITABLE_STORAGE | INDIRECT_EXECUTION | BASE_VERTEX | READ_ONLY_DEPTH_STENCIL | NON_POWER_OF_TWO_MIPMAPPED_TEXTURES | CUBE_ARRAY_TEXTURES | COMPARISON_SAMPLERS | INDEPENDENT_BLEND | VERTEX_STORAGE | ANISOTROPIC_FILTERING | FRAGMENT_STORAGE | MULTISAMPLED_SHADING | DEPTH_TEXTURE_AND_BUFFER_COPIES
| WEBGPU_TEXTURE_FORMAT_SUPPORT | BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED | UNRESTRICTED_INDEX_BUFFER | FULL_DRAW_INDEX_UINT32 | DEPTH_BIAS_CLAMP | VIEW_FORMATS | UNRESTRICTED_EXTERNAL_TEXTURE_COPIES | NONBLOCKING_QUERY_RESOLVE | VERTEX_AND_INSTANCE_INDEX_RESPECTS_RESPECTIVE_FIRST_VALUE_IN_INDIRECT_DRAW,
),
limits: DownlevelLimits,
shader_model: Sm5,
}
error: process didn't exit successfully: C:\Users\username\\iced\target\debug\tour.exe (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
Segmentation fault


The Environment is Window10 and Visual Code. The last one (cargo run --package tour) did make an error. Before that, all compiled well.

What is the expected behavior?

image

Version

crates.io release

Operating System

Windows

Do you have any log output?

2024-08-14T04:18:05.965129Z  WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_EXT_debug_utils    
2024-08-14T04:18:05.965638Z  WARN wgpu_hal::vulkan::instance: Unable to find extension: VK_EXT_swapchain_colorspace    
2024-08-14T04:18:05.966742Z  WARN wgpu_hal::vulkan::instance: InstanceFlags::VALIDATION requested, but unable to find layer: VK_LAYER_KHRONOS_validation
2024-08-14T04:18:05.976395Z  INFO wgpu_hal::vulkan::instance: Debug utils not enabled: debug_utils_user_data not passed to Instance::from_raw    
2024-08-14T04:18:06.118640Z  INFO iced_wgpu::window::compositor: Settings {
    present_mode: AutoVsync,
    backends: Backends(
        VULKAN | GL | METAL | DX12 | BROWSER_WEBGPU,
    ),
    default_font: Font {
        family: SansSerif,
        weight: Normal,
        stretch: Normal,
        style: Normal,
    },
    default_text_size: Pixels(
        16.0,
    ),
    antialiasing: None,
}
2024-08-14T04:18:06.121742Z  INFO wgpu_core::instance: Adapter Vulkan AdapterInfo { name: "Intel(R) HD Graphics 620", vendor: 32902, device: 22806, device_type: IntegratedGpu, driver: "?", driver_info: "?", backend: Vulkan }
2024-08-14T04:18:06.167225Z  INFO wgpu_core::instance: Adapter Dx12 AdapterInfo { name: "Intel(R) HD Graphics 620", vendor: 32902, device: 22806, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Dx12 }
2024-08-14T04:18:06.167828Z  INFO wgpu_core::instance: Adapter Dx12 AdapterInfo { name: "Microsoft Basic Render Driver", vendor: 5140, device: 140, device_type: Cpu, 
driver: "", driver_info: "", backend: Dx12 }
2024-08-14T04:18:06.168519Z  INFO wgpu_core::instance: Adapter Gl AdapterInfo { name: "Intel(R) HD Graphics 620", vendor: 32902, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Gl }
2024-08-14T04:18:06.182313Z  INFO iced_wgpu::window::compositor: Available adapters: [
    AdapterInfo {
        name: "Intel(R) HD Graphics 620",
        vendor: 32902,
        device: 22806,
        device_type: IntegratedGpu,
        driver: "?",
        driver_info: "?",
        backend: Vulkan,
    },
    AdapterInfo {
        name: "Intel(R) HD Graphics 620",
        vendor: 32902,
        device: 22806,
        device_type: IntegratedGpu,
        driver: "",
        driver_info: "",
        backend: Dx12,
    },
    AdapterInfo {
        name: "Microsoft Basic Render Driver",
        vendor: 5140,
        device: 140,
        device_type: Cpu,
        driver: "",
        driver_info: "",
        backend: Dx12,
    },
    AdapterInfo {
        name: "Intel(R) HD Graphics 620",
        vendor: 32902,
        device: 0,
        device_type: IntegratedGpu,
        driver: "",
        driver_info: "",
        backend: Gl,
    },
]
2024-08-14T04:18:06.232674Z  INFO wgpu_core::instance: Adapter Vulkan AdapterInfo { name: "Intel(R) HD Graphics 620", vendor: 32902, device: 22806, device_type: IntegratedGpu, driver: "?", driver_info: "?", backend: Vulkan }
2024-08-14T04:18:06.233371Z  INFO iced_wgpu::window::compositor: Selected: AdapterInfo {
    name: "Intel(R) HD Graphics 620",
    vendor: 32902,
    device: 22806,
    device_type: IntegratedGpu,
    driver: "?",
    driver_info: "?",
    backend: Vulkan,
}
2024-08-14T04:18:06.234593Z  INFO iced_wgpu::window::compositor: Available formats: Copied {
    it: Iter(
        [
            Rgba8UnormSrgb,
            Bgra8UnormSrgb,
            Rgba8Unorm,
            Bgra8Unorm,
        ],
    ),
}
2024-08-14T04:18:06.235781Z  INFO iced_wgpu::window::compositor: Available alpha modes: [
    Opaque,
    Inherit,
]
2024-08-14T04:18:06.236430Z  INFO iced_wgpu::window::compositor: Selected format: Rgba8UnormSrgb with alpha mode: Auto
2024-08-14T04:18:06.236810Z  WARN wgpu_core::instance: Missing downlevel flags: DownlevelFlags(SURFACE_VIEW_FORMATS)
The underlying API or device in use does not support enough features to be a fully compliant implementation of WebGPU. A subset of the features can still be used. If 
you are running this program on native and not in a browser and wish to limit the features you use to the supported subset, call Adapter::downlevel_properties or Device::downlevel_properties to get a listing of the features the current platform supports.
2024-08-14T04:18:06.237432Z  WARN wgpu_core::instance: DownlevelCapabilities {
    flags: DownlevelFlags(
        COMPUTE_SHADERS | FRAGMENT_WRITABLE_STORAGE | INDIRECT_EXECUTION | BASE_VERTEX | READ_ONLY_DEPTH_STENCIL | NON_POWER_OF_TWO_MIPMAPPED_TEXTURES | CUBE_ARRAY_TEXTURES | COMPARISON_SAMPLERS | INDEPENDENT_BLEND | VERTEX_STORAGE | ANISOTROPIC_FILTERING | FRAGMENT_STORAGE | MULTISAMPLED_SHADING | DEPTH_TEXTURE_AND_BUFFER_COPIES 
| WEBGPU_TEXTURE_FORMAT_SUPPORT | BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED | UNRESTRICTED_INDEX_BUFFER | FULL_DRAW_INDEX_UINT32 | DEPTH_BIAS_CLAMP | VIEW_FORMATS | UNRESTRICTED_EXTERNAL_TEXTURE_COPIES | NONBLOCKING_QUERY_RESOLVE | VERTEX_AND_INSTANCE_INDEX_RESPECTS_RESPECTIVE_FIRST_VALUE_IN_INDIRECT_DRAW,
    ),
    limits: DownlevelLimits,
    shader_model: Sm5,
}
error: process didn't exit successfully: `C:\Users\sure\Desktop\iced\target\debug\tour.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
Segmentation fault
@argan719 argan719 added the bug Something isn't working label Aug 14, 2024
@argan719 argan719 changed the title error: process didn't exit successfully: C:\Users\\\iced\target\debug\tour.exe (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) Segmentation fault exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) Segmentation fault Aug 14, 2024
@dtzxporter
Copy link
Contributor

I believe this is the same WGPU init bug that plagues many older drivers / integrated graphics. The issue is that WGPU initializes all of the devices in order to pick the most optimal (So you can run into issues like this). This should be forwarded to WGPU team.

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

No branches or pull requests

2 participants