Comments (13)
Reproduced in the 1.5.0
from assetbundles-browser.
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.
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.
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.
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.
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.
v1.6.0 same.
from assetbundles-browser.
The same problem with WebGL build on Unity 2018.2.0b8
from assetbundles-browser.
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.
@BrettKercher Issue still exists in Unity 2018.2.0f2 on package manager version 1.9.11
[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.
@alffanclub ah sorry :)
from assetbundles-browser.
no problem. we aren't getting these releases out as quickly as I'd like :)
from assetbundles-browser.
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)
- Standard Compression (LZMA) cannot display any component if used UI_Default shader
- Asset Details Panel: String too long for TextMeshGenerator. Cutting off characters. HOT 1
- Cannot see AssetBundles from packages folders (PackageManager)
- Want to show dependencies for individual assets in a column of Config
- Release v1.8.0 on Package Manager
- Streaming asset path
- Asset sizes should be shown as imported sizes, not on-disk sizes
- How to share AssetBundleBrowser settings with git? HOT 3
- [New Feature]SBP support HOT 2
- No way to sort assets by type HOT 2
- Not able to build asset bundle for Standalone OSX Intel or Standalone OSX 64
- Merge different manifest files into one main platform manifest file HOT 2
- error dependecy with SpriteAtlas
- Assets in embedded packages are not visible
- Is this project abandoned? HOT 3
- 【AD. Repo Share】Enhance Repo,Support Huge Project, etc
- [help]Hollolens2 single eye bug
- NavMesh Issue while Loading Assets into Game [Android] HOT 1
- How to trigger build bundles from code?
- Where should I put the downloaded file so that I can run it on the unity which do not support download from internet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assetbundles-browser.