Description
Description
I encountered a Crash when our product called RenderTargetBitmap.Render() to render control as an image. The software does not log, but the EventView in Windows logs the Crash information. as follows:
I could not reproduce this issue on our product software, but I wrote a test software to render 3D files, and successfully reproduced this issue on the test software. Also this issue can only be reproduced on one of my two computers.
After comparing my environment on both computers, I found that the problem was with the d3d9.dll file. When I modified the configuration file of the test program, I made the test program refer to the file d3d9.dll with version 10.0.19041.1865. I can reproduce this issue on any computer if it refers to the file d3d9.dll with version 10.0.19041.2788. I can't reproduce the issue on any computer.
This is the test program and 3D file I use for testing.
RenderTest.zip
This file is actually a .7z file, but Github does not support .7z file upload. So after downloading this file, please change the extension to .7z, and then unzip it.
The reason I created this issue is that I want to know what exactly causes the crash, because I have not been able to reproduce this issue on our product software, and I am not sure if replacing d3d9.dll will solve the problem in our product.
And what is the best way to upgrade DirectX? Our products run on the following Windows environments:
Edition Windows 10 IoT Enterprise LTSC
Version 21H2
Installed on 2/1/2022
OS build 19044.1889
Experience Windows Feature Experience Pack 120.2212.4180.0
Reproduction Steps
- Run the program I provided above.
- Click on the "Select a file to Render" button.
- Double click on the RenderTest\3D Files\Egg Hunter Hatchlings.stl file in the folder I provided above.
Observe that during the rendering process of the stl file, the RenderTest program is stuck. - While RenderTest is stuck, keep clicking the "Select a file to Render" button frantically to try to continue selecting files for rendering.
- After clicking for a while, the software will get stuck.
The time it takes to reproduce the crash problem may be related to the CPU it is running on; the worse the CPU, the more likely it is to recover.
Expected behavior
RenderTargetBitmap does not cause software crash.
Actual behavior
RenderTargetBitmap does cause software crash.
Regression?
No response
Known Workarounds
Replace C:\windows\system32\d3d9.dll
Impact
No response
Configuration
No response
Other information
No response