microsoft / WindowsCompositionSamples

The Windows Composition Samples have moved here: https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
MIT License
1.12k stars 287 forks source link

Crash when quickly minimize/restore window #366

Closed HO-COOH closed 5 months ago

HO-COOH commented 7 months ago

Issue Type

[x] Bug Report
[ ] Feature Request
[ ] Sample request
[ ] Documentation issue or request
[ ] Other – Please describe:

UserVoice link

Current Behavior

Crash

Expected Behavior

Not crash

Steps to Reproduce (for bugs)

  1. Open whatever sample
  2. Click on taskbar icon to quickly minimize then restore the window
  3. the app crash

https://github.com/microsoft/WindowsCompositionSamples/assets/42881734/2d13d1fd-c7d5-45b6-bbb3-274e53a7b367

Your Environment

HO-COOH commented 7 months ago

UPDATE: It does NOT crash if I attach a debugger (clone the code and switch to commit 4807746 then build a debug build). But it crashes 100% of the time without a debugger, and it does not create a dmp file, indicating something quite serious.