Failure has occurred while loading a type.
Closed this issue · 5 comments
Using Chromapper version 0.10.763 (can't find any download option for any other version of release 10)
This happens when I click "audio" in the editor.
[Log] Failure has occurred while loading a type.
[Exception] [System.TypeLoadException] Failure has occurred while loading a type.
at Automapper.Methods.Onset.GetMap (System.String audioPath, System.Single bpm) [0x001e4] in <69b56cfb71a54a01b3ef5134118325ef>:0
at Automapper.Automapper.Audio () [0x0000a] in <69b56cfb71a54a01b3ef5134118325ef>:0
at Automapper.UI.UI.b__4_20 () [0x00000] in <69b56cfb71a54a01b3ef5134118325ef>:0
at UnityEngine.Events.InvokableCall.Invoke () [0x00010] in C:\build\output\unity\unity\Runtime\Export\UnityEvent\UnityEvent.cs:178
at UnityEngine.Events.UnityEvent.Invoke () [0x00022] in C:\build\output\unity\unity\Runtime\Export\UnityEvent\UnityEvent\UnityEvent_0.cs:58
at UnityEngine.UI.Button.Press () [0x00027] in /home/jenkins/agent/workspace/ChroMapper/checkout/Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:70
at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00010] in /home/jenkins/agent/workspace/ChroMapper/checkout/Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:114
at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00001] in /home/jenkins/agent/workspace/ChroMapper/checkout/Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:57
at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x0006f] in /home/jenkins/agent/workspace/ChroMapper/checkout/Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:272
I'm on CM stable v0.10.763, latest release 1.1.8.0 work fine for me. Try to clean up your plugin folder, and only have Automapper.dll inside it to see if it work properly. Also, make sure that your CM folder is somewhere that can't create issue, like on the Desktop for example.
PCMStream load as dynamic so it can be either AudioFileReader (mp3 and wav) or VorbisWaveReader (ogg), changing the dynamic to being only VorbisWaveReader seems to crash CM for OP. No idea how to fix and I can't reproduce the issue to debug it myself.
Didn't think it would help, but changed the audo file to a wav and similar results.
Should be fixed now, note that the plugin only work with OGG right now.
This indeed does work. Have a ko-fi place to say thank you?