Unity Issue Tracker - Type error is thrown when a new ComputeShader is instantiated after destroying previous ComputeShader
Fixed
UUM-145390
Type error is thrown when a new ComputeShader is instantiated after destroying previous ComputeShader
Unity: WebGPU
In Progress
6.3.X
6000.3.9f1 onwards
6000.3.20f1
6.0.X
6000.0.68f1 onwards
Fixed
6.7.X
6000.7.0a2
6.6.X
6000.6.0b3
6.5.X
6000.5.0a7 onwards
6000.5.3f1
Won't Fix
6.4.X
6000.4.0b9 onwards
Unity 6000.4 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
How to reproduce:
Open the attached project “IN-140439”
In Project Settings, ensure that WebGPU is selected as the Graphics API
Build and Run the project for Web
Observe the browser and its console
Actual result: “TypeError: can't access property "label", wgpu[o] is undefined” is thrown and the game stops running after “[GenericComputeLifecycleRepro] Cycle 2: dispatch ResetCounter.” is printed in the Web console
Expected result: No errors are thrown and the test finishes successfully with “[GenericComputeLifecycleRepro] Repro finished.” printed to the Web console