Coder Social home page Coder Social logo

Comments (13)

Arugin avatar Arugin commented on September 18, 2024 2

Reproduced in the 1.5.0

from assetbundles-browser.

alffanclub avatar alffanclub commented on September 18, 2024 1

Hi @NoxMortem - since you are using the version in package manager (not pulling directly from github) it is expected that this would still be broken as we have not pushed a new update out. This update (1.7.0) should be coming this week.

-Bill

from assetbundles-browser.

alffanclub avatar alffanclub commented on September 18, 2024

Thanks for letting me know about this. I can think of a few things that might cause this, though I don't believe I've seen it. I'll try out a few scenarios to see what I can come up with.
To help me repro, are you running on Mac or Windows?
Thanks,
Bill

from assetbundles-browser.

RDeluxe avatar RDeluxe commented on September 18, 2024

Hi,

I'm on Windows, and I fixed the bug. A Replace("\\", "/") is missing in the AssetBuildTab.DirectoryCopy method.

I've been refactoring the code to use some C#6 features and to better respect .NET naming conventions, I don't know if you might be interested in supporting such a refactoring. In any case, I will probably push it on a forked version

from assetbundles-browser.

alffanclub avatar alffanclub commented on September 18, 2024

Thanks for working out the fix. I'd be happy to look at your changes. The reason it's in a public repo is to get this kind of feedback. If you do have a fork you push up somewhere, please share a link here so I can see what kinds of things you're doing.

from assetbundles-browser.

dfineberg avatar dfineberg commented on September 18, 2024

I'm also getting this on Windows 10.
Here's the stack trace:

IOException: Sharing violation on path AssetBundles/StandaloneWindows\StandaloneWindows" or "AssetBundles\StandaloneWindows\StandaloneWindows
System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) (at :0)
AssetBundleBrowser.AssetBundleBuildTab.DirectoryCopy (System.String sourceDirName, System.String destDirName) (at Assets/AssetBundles-Browser/Editor/AssetBundleBuildTab.cs:387)
AssetBundleBrowser.AssetBundleBuildTab.ExecuteBuild () (at Assets/AssetBundles-Browser/Editor/AssetBundleBuildTab.cs:365)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:136)

EDIT:
this did the trick for me (thanks for the pointer @RDeluxe ):
string newFilePath = Path.Combine( Path.GetDirectoryName(filePath).Replace("\\", "/").Replace(sourceDirName, destDirName), Path.GetFileName(filePath));

from assetbundles-browser.

sr4dev avatar sr4dev commented on September 18, 2024

v1.6.0 same.

from assetbundles-browser.

ishtilkind avatar ishtilkind commented on September 18, 2024

The same problem with WebGL build on Unity 2018.2.0b8

from assetbundles-browser.

horeaper avatar horeaper commented on September 18, 2024

Only happens when "Copy to StreamingAssets" is checked, and no assets are copied.
Fixed by changing the output path from the default "AssetBundles/StandaloneWindows64" to "AssetBundles\StandaloneWindows64"
I'm pretty sure this problem only happens on windows platform...

from assetbundles-browser.

NoxMortem avatar NoxMortem commented on September 18, 2024

@BrettKercher Issue still exists in Unity 2018.2.0f2 on package manager version 1.9.11
grafik

[Exception] IOException: Sharing violation on path AssetBundles/StandaloneWindows\rednerpult" or 
"AssetBundles\StandaloneWindows\rednerpult
File.Copy()    <f826c2584fc94ec19a48a6576640bdc5>:0

AssetBundleBuildTab.DirectoryCopy()    C:/Users/Kevin Streicher/AppData/Local/Unity/cache/packages/packages.unity.com/[email protected]/Editor/AssetBundleBuildTab.cs:386
384:               Path.GetFileName(filePath));
-->386:           File.Copy(filePath, newFilePath, true);
387:       }
388:   }

AssetBundleBuildTab.ExecuteBuild()    C:/Users/Kevin Streicher/AppData/Local/Unity/cache/packages/packages.unity.com/[email protected]/Editor/AssetBundleBuildTab.cs:364
363:       if(m_CopyToStreaming.state)
-->364:           DirectoryCopy(m_UserData.m_OutputPath, m_streamingPath);
365:   }

EditorApplication.Internal_CallDelayFunctions()    C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200

from assetbundles-browser.

NoxMortem avatar NoxMortem commented on September 18, 2024

@alffanclub ah sorry :)

from assetbundles-browser.

alffanclub avatar alffanclub commented on September 18, 2024

no problem. we aren't getting these releases out as quickly as I'd like :)

from assetbundles-browser.

kakins avatar kakins commented on September 18, 2024

I'm getting this error even using 1.7.0.

EDIT
This was due to me adding a trailing forward slash ("/") at the end of the Output Path in the Asset Bundles Browser window.

from assetbundles-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.