[LayaAir 2.0]LayaAirUnityPlugin 2.4beta IOException: Sharing violation

比较大的一个场景,导出材质,没重启Unity的情况下,第一次OK,再导出必报  报告文件写分享失败。
重启Unity后第一次导出成功,再次导出失败
 
我勾选了压缩的那一堆勾勾。
 

2020-01-09_110429.jpg

 
 
 
IOException: Sharing violation on path C:\xxxxxxxxxx\LayaScene_levels\Conventional\Assets\Game\mat\mat-red.lmat
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
(wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
n.a (System.String A_0, g A_1) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.b (UnityEngine.Material A_0, System.String A_1, System.String A_2) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.a (UnityEngine.GameObject A_0, UnityEngine.Material[] A_1, g A_2) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.j (UnityEngine.GameObject A_0, g A_1) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.a (UnityEngine.GameObject A_0, g A_1, g A_2, UnityEngine.Vector3 A_3, UnityEngine.Quaternion A_4, UnityEngine.Vector3 A_5, System.String& A_6) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.a (UnityEngine.GameObject A_0, System.String A_1, g A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.a (UnityEngine.GameObject A_0, System.String A_1, g A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.a (UnityEngine.GameObject A_0, System.String A_1, g A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.a (UnityEngine.GameObject A_0, System.String A_1, g A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.i () (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.k () (at <4c85cf47277b4445acd70e744ee59b72>:0)
p.b (System.String A_0) (at <4c85cf47277b4445acd70e744ee59b72>:0)
LayaAir3D.exportResource (System.Boolean isDebug, System.Int32 Platformindex, System.String lastname) (at <4c85cf47277b4445acd70e744ee59b72>:0)
a+k.b () (at <4c85cf47277b4445acd70e744ee59b72>:0)
m.b (m+a A_0) (at <4c85cf47277b4445acd70e744ee59b72>:0)
m.a () (at <4c85cf47277b4445acd70e744ee59b72>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
 
 
 
已邀请:

Aar0n

赞同来自:

能否确定 到什么情况下会出这个问题,比如哪个具体的东西, 或者,大到什么程度才会这样。。以目前的信息来看无法得知原因

Aar0n

赞同来自:

请尽快上传可复现的资源,如果错过今天,就要等明年的版本修复了

tiger24

赞同来自:

这个问题有解决吗?我的项目也出现了这个问题。电脑重启后的第一次导出成功,后面都是失效,也是提示一堆的错误。
 
IOException: Sharing violation on path D:\xxxx\bin\res\LayaSxxxxcene_newMap-2\Conventional\Assets\PolygonApocalypse\Materials\PolygonApocalypse_Material_Road_Standard_01.lmat
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
(wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
q.a (System.String A_0, c A_1) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.b (UnityEngine.Material A_0, System.String A_1, System.String A_2) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.a (UnityEngine.GameObject A_0, UnityEngine.Material[] A_1, c A_2) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.l (UnityEngine.GameObject A_0, c A_1) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.a (UnityEngine.GameObject A_0, c A_1, c A_2, UnityEngine.Vector3 A_3, UnityEngine.Quaternion A_4, UnityEngine.Vector3 A_5, System.String& A_6) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.a (UnityEngine.GameObject A_0, System.String A_1, c A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.a (UnityEngine.GameObject A_0, System.String A_1, c A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.a (UnityEngine.GameObject A_0, System.String A_1, c A_2, System.Boolean A_3, System.Boolean A_4, System.Boolean A_5) (at <e0e797a757a1432a94038eb628c06c00>:0)
n.j () (at <e0e797a757a1432a94038eb628c06c00>:0)
n.k () (at <e0e797a757a1432a94038eb628c06c00>:0)
n.b (System.String A_0) (at <e0e797a757a1432a94038eb628c06c00>:0)
LayaAir3D.exportResource (System.Boolean isDebug, System.Int32 Platformindex, System.String lastname) (at <e0e797a757a1432a94038eb628c06c00>:0)
LayaAir3D.ExportResources () (at <e0e797a757a1432a94038eb628c06c00>:0)
LayaAir3D.OnGUI () (at <e0e797a757a1432a94038eb628c06c00>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <df7127ba07dc446d9f5831a0ec7b1d63>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at D:/unity/Editor/Mono/HostView.cs:342)
UnityEditor.HostView.Invoke (System.String methodName) (at D:/unity/Editor/Mono/HostView.cs:336)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at D:/unity/Editor/Mono/HostView.cs:310)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect, System.Boolean customBorder, System.Boolean floatingWindow, System.Boolean isBottomTab) (at D:/unity/Editor/Mono/GUI/DockArea.cs:361)
UnityEditor.DockArea.OldOnGUI () (at D:/unity/Editor/Mono/GUI/DockArea.cs:320)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:266)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:438)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:421)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:401)
UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at D:/unity/Modules/UIElements/EventDispatcher.cs:511)
UnityEngine.Experimental.UIElements.EventDispatcher.Dispatch (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at D:/unity/Modules/UIElements/EventDispatcher.cs:307)
UnityEngine.Experimental.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.Experimental.UIElements.EventBase e, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at D:/unity/Modules/UIElements/Panel.cs:176)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at D:/unity/Modules/UIElements/UIElementsUtility.cs:245)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at D:/unity/Modules/UIElements/UIElementsUtility.cs:68)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at D:/unity/Modules/IMGUI/GUIUtility.cs:179)

要回复问题请先

商务合作
商务合作