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

SIGSEGV on demo_app quit after wgpu 22.0.0 update #4874

Closed
trevyn opened this issue Jul 26, 2024 · 3 comments · Fixed by #4876
Closed

SIGSEGV on demo_app quit after wgpu 22.0.0 update #4874

trevyn opened this issue Jul 26, 2024 · 3 comments · Fixed by #4876
Labels
bug Something is broken

Comments

@trevyn
Copy link
Contributor

trevyn commented Jul 26, 2024

Describe the bug
egui_demo_app crashes on quit with EXC_BAD_ACCESS (SIGSEGV) after wgpu 22.0.0 update (#4847)

To Reproduce
Steps to reproduce the behavior:

  1. checkout egui master
  2. cargo run
  3. close demo app window or command-Q

Expected behavior
Clean quit

Screenshots

Desktop (please complete the following information):

  • OS: macOS 12.7.5 (21H1222)

Additional context
Works fine on commit b2d74ea, just before the wgpu update commit.

Process:               egui_demo_app [17052]
Path:                  /Users/USER/Documents/*/egui_demo_app
Identifier:            egui_demo_app
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        zsh [10718]
Responsible:           Electron [10688]
User ID:               501

Date/Time:             2024-07-26 07:44:53.4393 +0400
OS Version:            macOS 12.7.5 (21H1222)
Report Version:        12

Time Awake Since Boot: 61000 seconds
Time Since Wake:       549 seconds

System Integrity Protection: enabled

Crashed Thread:        0  main  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Codes:       0x0000000000000001, 0x0000000000000010
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [17052]

VM Region Info: 0x10 is not in any region.  Bytes before following region: 68719476720
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      commpage (reserved)        1000000000-7000000000   [384.0G] ---/--- SM=NUL  ...(unallocated)

Thread 0 Crashed:: main Dispatch queue: com.apple.main-thread
0   egui_demo_app                 	       0x102bd7258 alloc::sync::Arc$LT$T$C$A$GT$::drop_slow::ha4f3f5b38712d026 + 28
1   egui_demo_app                 	       0x102bdc25c wgpu_core::device::any_device::AnyDevice::new::drop_glue::h3de37e88b3431ce7 + 48
...
@trevyn trevyn added the bug Something is broken label Jul 26, 2024
@trevyn
Copy link
Contributor Author

trevyn commented Jul 26, 2024

@Wumpf

@Wumpf
Copy link
Collaborator

Wumpf commented Jul 26, 2024

Thanks for reporting! Repros cleanly on my mac as well, haven't checked if backend / platform is relevant here, likely not important.
Happens apparently whenever the surface is dropped after the device. Workaround and issue (huh or maybe even fix in wgpu, seems trivial) coming.

@Wumpf
Copy link
Collaborator

Wumpf commented Jul 26, 2024

well, this was fun. Details see above linked PRs

486c pushed a commit to 486c/egui that referenced this issue Oct 9, 2024
hacknus pushed a commit to hacknus/egui that referenced this issue Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants