Search Issue Tracker

Fix In Review for 2022.1.X

Fixed in 2021.2.X

Fix In Review for 2019.4.X, 2020.3.X, 2021.1.X

Votes

0

Found in

2019.4

2021.1.0a2

2021.1.15f1

2021.2

2022.1

Issue ID

1354002

Regression

Yes

Crash on AudioCustomFilter::GetOrCreateDSP when recompiling scripts while in Play Mode

Audio

-

How to reproduce:
1. Open the attached project "MusicTheoryApp.zip"
2. Open the script "ToggleButton.cs"
3. Inside the script, add "Debug.Log("Test");" in Start() method and don't save it
4. Enter Play Mode
5. Save the script "ToggleButton.cs"
6. Return to the Editor
7. If it didn't crash - Exit Play Mode

Expected result: Editor doesn't crash
Actual result: Editor crashes

Reproducible with: 2019.4.29f1, 2021.1.0a2, 2021.1.16f1, 2021.2.0b6, 2022.1.0a4
Not reproducible with: 2020.1.0a1, 2020.3.15f2, 2021.1.0a1

Notes:
- This wasn't reproducible on macOS Big Sur 11.2.4 & Visual Studio 2019
- This was reproducible on Windows 8 & Visual Studio 2017
- Bug was reported using Windows 10 & Visual Studio 2017
- The crash on 2019.4.29f1 has a different stack trace and was fixed on 2020.1.0a1

Stack trace:
0x00007FF7BC661012 (Unity) AudioCustomFilter::GetOrCreateDSP
0x00007FF7BC63CE15 (Unity) AudioSource::ApplyFilters
0x00007FF7BC619B77 (Unity) AudioModule::SetBypassOnDSP
0x00007FF7BB6909D8 (Unity) MonoBehaviour::AddToManager
0x00007FF7BB718ED4 (Unity) SerializableManagedRefsUtilities::AwakeInstancesAfterBackupRestoration
0x00007FF7BB693B67 (Unity) MonoManager::EndReloadAssembly
0x00007FF7BB69A7BE (Unity) MonoManager::ReloadAssembly
0x00007FF7BBE3959E (Unity) ReloadAllUsedAssemblies
0x00007FF7BC05B8A9 (Unity) ImportAndPostprocessOutOfDateAssets
0x00007FF7BC06738B (Unity) RefreshInternalV2
0x00007FF7BC06F3B6 (Unity) StopAssetImportingV2
0x00007FF7BC068539 (Unity) RefreshV2
0x00007FF7BC000660 (Unity) AssetDatabase::Refresh
0x00007FF7BBB68C0E (Unity) Application::AutoRefresh
0x00007FF7BBF9A080 (Unity) ContainerWindow::ContainerWndProc

  1. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0b12

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.