Bank copy errors when using 2.0 integration

#1

I just cleared out the old integration from my Unity project and put in the new one. I am getting this error:

IOException: Win32 IO returned ERROR_INVALID_NAME. Path: C:\Unity Projects\MyGame\Assets\StreamingAssetsC:
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131)
System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96)
System.IO.DirectoryInfo.Create () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:116)
System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96)
System.IO.DirectoryInfo.Create () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:116)
System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96)
System.IO.DirectoryInfo.Create () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
FMODUnity.EventManager.CopyToStreamingAssets () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:538)
UnityEngine.Debug:LogException(Exception)
FMODUnity.EventManager:CopyToStreamingAssets() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:556)
FMODUnity.EventManager:OnCacheChange() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:597)
FMODUnity.EventManager:Update() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:609)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
0 Likes

#2

Thanks for reporting this. We have found and fixed the problem for the next release.

In the meantime you can find the fix on our Github:

0 Likes

#3

@cameron-fmod Great thanks! I noticed the Issues tab on that Github repo is missing. Is what I did the best way to report bugs?

0 Likes

#4

I did not realize that Issues had been disabled on the repo, I have just re-enabled it now.

Either here or on Github, whatever works best at the time.

0 Likes

#5

@cameron-fmod

Hello, we are experiencing the same errors with version 2.0 Unity integration.

We are choosing the Mulitple Platform Build option and if the pathing is set to relative these error occur but if set to absolute path, the errors seems to go away. Although this would not be desired since we are using version control (Plastic SCM)

We have tried to modified the EventManager.cs like suggested but it didn’t seem to help.

These are the errors we got from the console.

FMOD Studio: copy banks for platform Windows : copying banks from FMODAssets\Desktop to C:/Users/Metanaut/wkspaces/ruberg/Assets/StreamingAssets
UnityEngine.Debug:LogError(Object)
FMODUnity.EventManager:CopyToStreamingAssets() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:555)
FMODUnity.EventManager:OnCacheChange() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:597)
FMODUnity.EventManager:Update() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:609)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

and

IOException: Win32 IO returned ERROR_INVALID_NAME. Path: C:\Users\Metanaut\wkspaces\ruberg\Assets\StreamingAssetsC:
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)
System.IO.Directory.CreateDirectory (System.String path) (at :0)
System.IO.DirectoryInfo.Create () (at :0)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)
System.IO.Directory.CreateDirectory (System.String path) (at :0)
System.IO.DirectoryInfo.Create () (at :0)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)
System.IO.Directory.CreateDirectory (System.String path) (at :0)
System.IO.DirectoryInfo.Create () (at :0)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)
System.IO.Directory.CreateDirectory (System.String path) (at :0)
System.IO.DirectoryInfo.Create () (at :0)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)
System.IO.Directory.CreateDirectory (System.String path) (at :0)
System.IO.DirectoryInfo.Create () (at :0)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
FMODUnity.EventManager.CopyToStreamingAssets () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:538)
UnityEngine.Debug:LogException(Exception)
FMODUnity.EventManager:CopyToStreamingAssets() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:556)
FMODUnity.EventManager:OnCacheChange() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:597)
FMODUnity.EventManager:Update() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:609)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

2 Likes

#6

My group has also come across this issue and even after implementing the proposed change, we were still getting the following error:

I stepped through the code and found that the pathway being generated for both the source and target was putting in a second full path instead of just the sub directory or file name. below are pictures on where I found the issue to stem from and how I fixed it.

0 Likes

#7

This change was done in the same EventManager editor file that had the initial proposed change. Hope this helps

0 Likes