-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
Repro:
RayTracerRepro.zip
- Ensure you have a recent nightly build installed (https://github.com/dotnet/installer/blob/main/README.md#installers-and-binaries)... I have 6.0.100-preview.4.21179.9.
- Unzip this project (an old parallel loops demo app).
dotnet watch- Click the parallel check box (it repros without it, but not as fast or consistently)
- Click the Start button. The ball should start bouncing.
notepad Raytracer.cs- Edit L139 (
return new Color(0, 0, 0);) to change one or more of the arguments to be a double value between 0 and 1 (e.g.return new Color(0, 0, .5);. Ctrl-S to save. - Repeat step 7, changing the values and saving, until this is printed out by dotnet watch:
watch : Hot reload of changes succeeded.
watch : Exited with error code -1073741819
watch : Waiting for a file to change before restarting dotnet...
The AV ends up coming from the patched method:
OS Thread Id: 0x5e54
Child SP IP Call Site
000000306157D1F8 00007FFE81620D04 Microsoft.ParallelComputingPlatform.ParallelExtensions.Samples.RayTracer.TraceRay(Microsoft.ParallelComputingPlatform.ParallelExtensions.Samples.Ray, Microsoft.ParallelComputingPlatform.ParallelExtensions.Samples.Scene, Int32)
000000306157FC00 00007ffe814a2d7d [DebuggerU2MCatchHandlerFrame: 000000306157fc00]
cc: @mikem8361, @tommcdon