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

wezterm nightly crashes on Windows 11 when using WebGpu DX12 #4279

Closed
castiel652 opened this issue Sep 12, 2023 · 6 comments
Closed

wezterm nightly crashes on Windows 11 when using WebGpu DX12 #4279

castiel652 opened this issue Sep 12, 2023 · 6 comments
Labels
bug Something isn't working Windows Issue applies to Microsoft Windows

Comments

@castiel652
Copy link

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20230911-075810-70931f58

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

wezterm crashes after a short period of time.
Did some research and found that there's a possible fix of this issue on upstream wgpu so I guess we just need to wait til the new relase.
gfx-rs/wgpu#4106

To Reproduce

OS: Windows 11

Configuration

config.webgpu_preferred_adapter = {
backend= 'Dx12',
device = 18064,
device_type = 'IntegratedGpu',
name = 'Intel(R) UHD Graphics 770',
vendor = 32902,
}
config.front_end = 'WebGpu'

Expected Behavior

No response

Logs

15:53:08.118  ERROR  wgpu_hal::dx12 > ResizeBuffers failed: 0x887A0001
15:53:08.120  ERROR  wgpu_core::device::global > surface configuration failed: window is in use
15:53:08.136  ERROR  env_bootstrap             > panic at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.17.0\src\backend\direct.rs:771:18 - !?
   0: cairo_font_options_get_variations
   1: cairo_font_options_get_variations
   2: <unknown>
   3: git_filter_source_mode
   4: git_filter_source_mode
   5: git_filter_source_mode
   6: git_filter_source_mode
   7: cairo_raster_source_pattern_set_snapshot
   8: git_index_checksum
   9: git_index_checksum
  10: git_index_checksum
  11: git_index_checksum
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: cairo_font_options_get_variations
  16: cairo_font_options_get_variations
  17: cairo_font_options_get_variations
  18: cairo_font_options_get_variations
  19: DispatchMessageW
  20: DispatchMessageW
  21: TranslateAcceleratorW
  22: KiUserCallbackDispatcher
  23: NtUserPeekMessage
  24: PeekMessageW
  25: PeekMessageW
  26: cairo_font_options_get_variations
  27: <unknown>
  28: <unknown>
  29: <unknown>
  30: <unknown>
  31: git_filter_source_mode
  32: <unknown>
  33: cairo_raster_source_pattern_set_snapshot
  34: BaseThreadInitThunk
  35: RtlUserThreadStart

thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
    Invalid surface
', C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.17.0\src\backend\direct.rs:771:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
15:53:08.138  ERROR  window::os::windows::window > caught Any { .. }

Anything else?

No response

@castiel652 castiel652 added the bug Something isn't working label Sep 12, 2023
@wez wez added the Windows Issue applies to Microsoft Windows label Sep 13, 2023
@wez
Copy link
Owner

wez commented Sep 13, 2023

Yeah, we'll have to wait for a wgpu release and see if that helps

@castiel652
Copy link
Author

New release is out
https://github.com/gfx-rs/wgpu/releases/tag/v0.17.1

@wez
Copy link
Owner

wez commented Sep 28, 2023

ded7f67 should have that update included

@castiel652
Copy link
Author

Thanks will try it when I am back to the office!

@castiel652
Copy link
Author

No more crash.
Thanks!

wez added a commit that referenced this issue Oct 2, 2023
Copy link
Contributor

github-actions bot commented Nov 2, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Windows Issue applies to Microsoft Windows
Projects
None yet
Development

No branches or pull requests

2 participants