Search Unity

Bug Changing platform to WebGL breaks audio files FSBTool ERROR

Discussion in 'Editor & General Support' started by avidwriter, Dec 12, 2022.

  1. avidwriter

    avidwriter

    Joined:
    Dec 21, 2021
    Posts:
    9
    I just upgraded my project to 2022.2 and am getting lots of these errors when importing the audio files after selecting the WebGL platform build from standalone. It didn't do this in 2022.1 releases. Any ideas? thanks

    Code (CSharp):
    1. Errors during import of AudioClip Assets/3rdParty/Footsteps - Essentials/Footsteps_Gravel/Footsteps_Gravel_Walk/Footsteps_Gravel_Walk_09.wav:
    2. FSBTool ERROR: Preview file already set! Cannot have multiple preview files.
    3. FSBTool ERROR: Could not initialise FSBank. Error code: 10
    4. FSBTool ERROR: Could not initialise FSBank: Already initialized.
    5.  
    6. (Filename: C:\build\output\unity\unity\Modules\AssetPipelineEditor\Public\AudioImporter.cpp Line: 1062)
    7.  
    8.  
    9.  
     
  2. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    91
    I'm having this same issue
    Code (CSharp):
    1. FSBTool ERROR: Preview file already set! Cannot have multiple preview files.
    2. FSBTool ERROR: Could not initialise FSBank. Error code: 10
    3. FSBTool ERROR: Could not initialise FSBank: Already initialized.
    4.  
    5. 0x00007ff78dc89c9d (Unity) StackWalker::GetCurrentCallstack
    6. 0x00007ff78dc8ed69 (Unity) StackWalker::ShowCallstack
    7. 0x00007ff78ec5b081 (Unity) GetStacktrace
    8. 0x00007ff78f317412 (Unity) DebugStringToFile
    9. 0x00007ff78ef7557c (Unity) ImportToObjects
    10. 0x00007ff78ef73ec3 (Unity) ImportAsset
    11. 0x00007ff78ef97f5a (Unity) AssetImportWorker::Import
    12. 0x00007ff78efc838a (Unity) AssetImportManager::ImportInProcess
    13. 0x00007ff78efc5304 (Unity) AssetImportManager::Import
    14. 0x00007ff78efc8cb1 (Unity) ImportOutOfDateAssets
    15. 0x00007ff78efd3c69 (Unity) RefreshInternalV2
    16. 0x00007ff78efdb86f (Unity) StopAssetImportingV2Internal
    17. 0x00007ff78efde4bd (Unity) VerifyAssetsForBuildTargetV2
    18. 0x00007ff78ef4e513 (Unity) AssetDatabase::VerifyAssetsForBuildTarget
    19. 0x00007ff78f678992 (Unity) ApplyBuildTargetSwitchInternal
    20. 0x00007ff78f692964 (Unity) SwitchActiveBuildTargetForEmulation
    21. 0x00007ff78e63ceba (Unity) EditorUserBuildSettings::SwitchActiveBuildTargetSync
    22. 0x00007ff78d2bcc7a (Unity) EditorUserBuildSettings_CUSTOM_SwitchActiveBuildTarget
    23. 0x0000022b35230615 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorUserBuildSettings:SwitchActiveBuildTarget (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget)
    24. 0x0000022b352304ab (Mono JIT Code) UnityEditor.EditorUserBuildSettingsUtils:SetActive (UnityEditor.Build.BuildPlatform,UnityEditor.BuildTarget)
    25. 0x0000022b352302c3 (Mono JIT Code) UnityEditor.EditorUserBuildSettingsUtils:SetActive (UnityEditor.Build.BuildPlatform)
    26. 0x0000022b331dd49b (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    27. 0x0000022b331ca4fb (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    28. 0x0000022b331a6b8b (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    29. 0x0000022b331a164a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    30. 0x0000022b331a1463 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    31. 0x0000022b3318e54b (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    32. 0x0000022b331763af (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    33. 0x0000022b33049a5b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    34. 0x0000022b330492db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    35. 0x0000022b33049163 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    36. 0x0000022b330485db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    37. 0x0000022b330456e3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    38. 0x0000022aeaf8bd93 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
    39. 0x0000022aeaf8b8f3 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
    40. 0x0000022aeaf8b62f (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
    41. 0x0000022aeaf8b363 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    42. 0x0000022b3303cfdb (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    43. 0x0000022b32bc70ee (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    44. 0x0000022b32bc69bb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    45. 0x0000022aeaf35c33 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
    46. 0x0000022aeaf35a83 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    47. 0x0000022aeaf359bb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    48. 0x0000022b32bc6e93 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    49. 0x0000022b32bc1d83 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    50. 0x0000022b32bc1bdb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    51. 0x0000022b32eeed93 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    52. 0x0000022b32eee683 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    53. 0x0000022b32eee43f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
    54. 0x0000022b32eee35b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    55. 0x0000022b32eee1ad (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    56. 0x0000022b32eee266 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    57. 0x00007ffca5370394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
    58. 0x00007ffca52aeb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
    59. 0x00007ffca52aecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
    60. 0x00007ff78dbb1d74 (Unity) scripting_method_invoke
    61. 0x00007ff78db92724 (Unity) ScriptingInvocation::Invoke
    62. 0x00007ff78db8d385 (Unity) ScriptingInvocation::Invoke<void>
    63. 0x00007ff78dcd5afa (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    64. 0x00007ff78e6aff68 (Unity) GUIView::ProcessRetainedMode
    65. 0x00007ff78ec8ddf6 (Unity) GUIView::OnInputEvent
    66. 0x00007ff78e6afeb3 (Unity) GUIView::ProcessInputEventFromAPI
    67. 0x00007ff78e6afd88 (Unity) GUIView::ProcessInputEvent
    68. 0x00007ff78ec8ec2e (Unity) GUIView::ProcessEventMessages
    69. 0x00007ff78ec88656 (Unity) GUIView::GUIViewWndProc
    70. 0x00007ffd0f538271 (USER32) DispatchMessageW
    71. 0x00007ffd0f537d31 (USER32) DispatchMessageW
    72. 0x00007ff78ec61733 (Unity) MainMessageLoop
    73. 0x00007ff78ec66820 (Unity) WinMain
    74. 0x00007ff79002b72e (Unity) __scrt_common_main_seh
    75. 0x00007ffd0fae247d (KERNEL32) BaseThreadInitThunk
    76. 0x00007ffd1070dfb8 (ntdll) RtlUserThreadStart
     
  3. avidwriter

    avidwriter

    Joined:
    Dec 21, 2021
    Posts:
    9
    this issue looks similar, wonder if the fix will work for us too
     
  4. Zephus

    Zephus

    Joined:
    May 25, 2015
    Posts:
    356
    I have the exact same issue. WebGL just doesn't work with most of my audio files. And if I switch back to Windows build they are still broken with the same errors. Only after deleting the Library folder do they work again.

    edit: I just figured out what the issue is. Apparently my sound effects were too short. Every single audio file that is under some (arbitrary?) length is met with this error. Changing audio format doesn't work, change file name and deleting folders doesn't work. But after I added some slience to the end of my sound effects, suddenly it worked.
     
    Last edited: Dec 26, 2022