sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Sound File recompiles after every change, rather than waiting for it to be finished.

Open Retroeer opened this issue 7 months ago • 1 comments

Describe the bug

If you drag any of the float sliders in the Sound Editor, the file will continuously recompile.

To Reproduce

  1. Open any audio clip
  2. Drag any of the float sliders

Expected behavior

If you're dragging a slider, the Sound File should not recompile until you're actually done, similar to how the undo system waits.

Media/Files

No response

Additional context

This has crashed my editor twice now. Once around

2025/05/12 07:23:08.9578	[engine/AssetSystem] On-demand recompile of asset sounds/se_tan01.vsnd	
2025/05/12 07:23:08.9578	[engine/AssetSystem]  -> reason: At least one out-of-date dependency: sounds/se_tan01.wav.meta (file CRC changed)	
2025/05/12 07:23:09.0272	[engine/AssetSystem] Reloading Resource [1/1]: sounds/se_tan01.vsnd	

and another around

2025/05/12 07:35:50.0896	[engine/AssetSystem] On-demand recompile of asset sounds/se_tan01.vsnd	
2025/05/12 07:35:50.0896	[engine/AssetSystem]  -> reason: At least one out-of-date dependency: sounds/se_tan01.wav.meta (file CRC changed)	
2025/05/12 07:35:50.1372	[engine/AssetSystem] Reloading Resource [1/1]: sounds/se_tan01.vsnd	

Oddly enough, these were delayed crashes, and it took a couple seconds or so for the editor to crash while alt tabbed writing this very issue.

Retroeer avatar May 12 '25 11:05 Retroeer

It seems recompiling a Sound File can cause a permanent stall, essentially crashing the editor.

After recompiling a bunch of times and then moving your mouse off to the side it seems you can summon the crash.

https://github.com/user-attachments/assets/93b234dd-547e-4f59-8002-b251e6c947dd

Retroeer avatar May 12 '25 11:05 Retroeer