[Mono-osx] IOException: Sharing violation on path

Phi Le iamphi at gmail.com
Thu Aug 22 19:57:27 UTC 2013


Hi,

We have a .NET 4 application that uses mono 2.10.9 (packaged with the app)
on OSX.  We get the error "Sharing violation on path..." often, but haven't
been able to do anything about it.  We cannot reproduce the problem in
house, and we use our released product frequently on OSX.  This error does
not happen on Windows (this trace pattern).  We see this happening on 10.6,
10.7, and 10.8.  We are not aware of any file stream being leaked, not
closed.
Older version the application had this problem too. In the past, the
application has been packaged with mono 2.10.4 and 2.10.7.  The current
version uses mono 2.10.9 with sgen garbage collector.

Can we get information about this exception with respect to OSX, and
suggestions on how to reproduce and debug the issue?

Here are file of interest with respect to mono 2.10.7:
https://github.com/mono/mono/blob/2.10.7/mcs/class/corlib/System.IO/FileStream.cs#L196
    line 196: constructor of interest

https://github.com/mono/mono/blob/2.10.7/mcs/class/corlib/System.IO/MonoIO.cs#L135
  line 135: GetException returns the "Sharing violation on path {0}"
exception

https://github.com/mono/mono/blob/2.10.7/mono/io-layer/io.c
  numberous place sets the ERROR_SHARING_VIOLATION error code

https://github.com/mono/mono/blob/2.10.7/mono/io-layer/error.h

https://github.com/mono/mono/blob/2.10.7/mono/io-layer/error.c#L209
  line 209: WAPI related

Thank you,

Phi

Message: Sharing violation on path
/Users/username/Library/Caches/Axure-6-5-Standard/415E/1A95/Page/59/976f597f5ae84df18886bfa2cf90d959/976f597f5ae84df18886bfa2cf90d959.rppkg
Type: System.IO.IOException
Source: mscorlib

at System.IO.FileStream..ctor (System.String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
FileOptions options)
at System.IO.FileStream..ctor (System.String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize)
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
at System.IO.File.Create (System.String path, Int32 bufferSize)
at System.IO.File.Create (System.String path)
at System.IO.FileInfo.Create ()
at (wrapper remoting-invoke-with-check) System.IO.FileInfo:Create ()
at Axure.Platform.Mac.Storage.MXFileStorage.Create (Guid dataId,
System.String category)
at Axure.DocumentModel.Saving.DocumentFile.c (Guid A_0, System.String A_1)
at Axure.DocumentModel.Saving.DocumentFile.a
(Axure.DocumentModel.PackageObject A_0, Boolean A_1,
System.Collections.Generic.Dictionary`2& A_2)
at Axure.DocumentModel.Saving.DocumentFile.SavePackages (ICollection
packages, Boolean saveAllExternalObjects)
at (wrapper synchronized)
Axure.DocumentModel.Saving.DocumentFile:SavePackages
(System.Collections.ICollection,bool)
at Axure.DocumentModel.Saving.DocumentFile.SavePackage
(Axure.DocumentModel.PackageObject obj)
at (wrapper synchronized)
Axure.DocumentModel.Saving.DocumentFile:SavePackage
(Axure.DocumentModel.PackageObject)
at Axure.Client.UbiquityClientForm.b (Axure.DocumentModel.PackageObject A_0)
at Axure.Client.UbiquityClientForm.CommitOuterObject (Boolean clearEditors)
at Axure.Client.UbiquityClientForm.CommitOuterObject ()
at Axure.Client.Menus.FileEditMenus.az (System.Object A_0, System.EventArgs
A_1)
at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs
(object,System.EventArgs)
at Axure.Platform.Component.Commands.CommandInfo.OnValueChanged
(System.EventArgs e)
at Axure.Platform.Component.Commands.CommandInfo.set_Value (System.Object
value)
at Axure.Platform.Component.Commands.ButtonCommandInfo.set_Value
(System.Object value)
at
Axure.Platform.Mac.Controls.MXMenuDecorator+NSMenuItemEventManager.onAction
(MObjc.NSObject sender)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20130822/7ca425f2/attachment.html>


More information about the Mono-osx mailing list