alexshikov/WavSplitter

Invalid data chunk id: LIST

Closed this issue · 3 comments

Getting and Unhandled Exception: System.InvalidOperationException: Invalid data chunk id: LIST
at WavSplitter.WavChunkHeader.ValidateDataChunkId(String chunkId)

Wow, didn't expect anybody using this :)

@niksen75 can you share the file you're trying to parse?

I'm getting something similar trying to use this as an editor script in Unity. The ChunkId is just "\0\0\0\0".

**InvalidOperationException: Invalid data chunk id: 
WavSplitter.WavChunkHeader.ValidateDataChunkId (System.String chunkId) (at Assets/Scripts/WavSplitter/WavChunkHeader.cs:31)
WavSplitter.WavChunkHeader.Read (System.IO.BinaryReader reader) (at Assets/Scripts/WavSplitter/WavChunkHeader.cs:22)
WavSplitter.WavReader.ReadChunkHeader (System.Boolean skipFllr) (at Assets/Scripts/WavSplitter/WavReader.cs:31)
WavSplitter.Splitter..ctor (System.IO.Stream input, System.Int32 fileSizeLimit) (at Assets/Scripts/WavSplitter/Splitter.cs:25)**
SynSelf.Editor.Tools.SSWAVSplitterWindow.OnGUI () (at Assets/Editor/SSWAVSplitterWindow.cs:46)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <9959c9185b684a4d9d56448296fb9048>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <9959c9185b684a4d9d56448296fb9048>:0)
UnityEditor.DockArea.OldOnGUI () (at <9959c9185b684a4d9d56448296fb9048>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <1aaa12d3c5d64d42836d89caff78b60b>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <04b2664316804d17bf325b884567dc2b>:0)

Should be fixed in the latest commit