Skip to content

WGPU won't start on specific windows computer #5294

Closed
@isXander

Description

@isXander

Description
Fails to create the surface on Windows 10 machine

thread 'main' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-core-0.19.0\src\instance.rs:521:39:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\std\src\panicking.rs:645
   1: core::panicking::panic_fmt
             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\core\src\panicking.rs:72
   2: core::panicking::panic
             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\core\src\panicking.rs:127
   3: enum2$<core::option::Option<enum2$<core::result::Result<wgpu_core::any_surface::AnySurface,wgpu_hal::InstanceError> > > >::unwrap<enum2$<core::result::Result<wgpu_core::any_surface::AnySurface,wgpu_hal::InstanceError> > >
             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112\library\core\src\option.rs:931
   4: wgpu_core::global::Global<wgpu_core::identity::IdentityManagerFactory>::instance_create_surface<wgpu_core::identity::IdentityManagerFactory>
             at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-core-0.19.0\src\instance.rs:521
   5: wgpu::backend::wgpu_core::impl$7::instance_create_surface
             at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.19.1\src\backend\wgpu_core.rs:529
   6: wgpu::context::impl$5::instance_create_surface<wgpu::backend::wgpu_core::ContextWgpuCore>
             at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.19.1\src\context.rs:1995
   7: wgpu::Instance::create_surface_unsafe
             at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.19.1\src\lib.rs:2051
   8: wgpu::Instance::create_surface<alloc::sync::Arc<winit::window::Window,alloc::alloc::Global> >
             at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.19.1\src\lib.rs:1984
   9: wgpu_test::impl$4::new::async_fn$0
             at D:\a\RustGameEngine\RustGameEngine\src\lib.rs:167
  10: wgpu_test::run::async_fn$0
             at D:\a\RustGameEngine\RustGameEngine\src\lib.rs:496
  11: pollster::block_on<enum2$<wgpu_test::run::async_fn_env$0> >
             at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pollster-0.3.0\src\lib.rs:128
  12: wgpu_test::main
             at D:\a\RustGameEngine\RustGameEngine\src\main.rs:4
  13: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112\library\core\src\ops\function.rs:250
  14: core::hint::black_box
             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112\library\core\src\hint.rs:286
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Repro steps
This is produced with the following source...
isXander/VoxelEngine@f63f938

At home on my own machine, it works, another similar machine works, my mac works. This computer does not.
I have enabled all backends.

Expected vs observed behavior
Crashes on unwrap, should run.

Extra materials

Platform

  • Windows 10
  • WGPU version listed in the commit cargo.toml
OsName                                     : Microsoft Windows 10 Education
OsType                                     : WINNT
OsOperatingSystemSKU                       : 121
OsVersion                                  : 10.0.19045
OsCSDVersion                               :
OsBuildNumber                              : 19045
OsHotFixes                                 : {KB5034466, KB5022502, KB5011048, KB5012170...}
OsBootDevice                               : \Device\HarddiskVolume1
OsSystemDevice                             : \Device\HarddiskVolume2
OsSystemDirectory                          : C:\windows\system32
OsSystemDrive                              : C:
OsWindowsDirectory                         : C:\windows
OsCountryCode                              : 44
OsCurrentTimeZone                          : 0
OsLocaleID                                 : 0809
OsLocale                                   : en-GB
OsLocalDateTime                            : 23/02/2024 14:50:22
OsLastBootUpTime                           : 21/02/2024 09:35:38
OsUptime                                   : 2.05:14:43.7469388
OsBuildType                                : Multiprocessor Free
OsCodeSet                                  : 1252
OsDataExecutionPreventionAvailable         : True
OsDataExecutionPrevention32BitApplications : True
OsDataExecutionPreventionDrivers           : True
OsDataExecutionPreventionSupportPolicy     : OptIn
OsDebug                                    : False
OsDistributed                              : False
OsEncryptionLevel                          : 256
OsForegroundApplicationBoost               : Maximum
OsTotalVisibleMemorySize                   : 16693720
OsFreePhysicalMemory                       : 11175300
OsTotalVirtualMemorySize                   : 19184088
OsFreeVirtualMemory                        : 13183424
OsInUseVirtualMemory                       : 6000664
OsTotalSwapSpaceSize                       :
OsSizeStoredInPagingFiles                  : 2490368
OsFreeSpaceInPagingFiles                   : 2481716
OsPagingFiles                              : {C:\pagefile.sys}
OsHardwareAbstractionLayer                 : 10.0.19041.3636
OsInstallDate                              : 26/07/2023 17:22:17
OsManufacturer                             : Microsoft Corporation
OsMaxNumberOfProcesses                     : 4294967295
OsMaxProcessMemorySize                     : 137438953344
OsMuiLanguages                             : {en-GB, en-US}
OsNumberOfLicensedUsers                    :
OsNumberOfProcesses                        : 194
OsNumberOfUsers                            : 5
OsOrganization                             : llt
OsArchitecture                             : 64-bit
OsLanguage                                 : en-GB
OsProductSuites                            : {TerminalServicesSingleSession}
OsOtherTypeDescription                     :
OsPAEEnabled                               :
OsPortableOperatingSystem                  : False
OsPrimary                                  : True
OsProductType                              : WorkStation
OsRegisteredUser                           : Windows User
OsSerialNumber                             : 00328-20021-50733-AA538
OsServicePackMajorVersion                  : 0
OsServicePackMinorVersion                  : 0
OsStatus                                   : OK
OsSuites                                   : {TerminalServices, TerminalServicesSingleSession}
OsServerLevel                              :

Information about your OS, version of wgpu, your tech stack, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions