Monodevelop Crash Problem

I have this strange bug or something where after I have been using monodevelop for some time, it will get a weird crash screen that looks the picture at the bottom of the post.

If you can’t see it, it says this:

A fatal error has occurred

Details of errors, along with anonymous installation information, can be sent to Xamarin to help improve MonoDevelop-Unity. Do you wish to send this information?

It gives me 3 options with that: Do not send, Send this time, and Always send. It also has a details button, which has this in it, if anyone can make sense of it:

System.IO.IOException: The process cannot access the file ‘C:\Users<My account name>\AppData\Local\Temp\tmp1CB6.tmp’ because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at MonoDevelop.Components.CairoExtensions.LoadImage(Assembly assembly, String resource) in c:\buildslave\monodevelop\build\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components\CairoExtensions.cs:line 547
at MonoDevelop.Components.MainToolbar.LazyImage.get_Img() in c:\buildslave\monodevelop\build\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.MainToolbar\RoundButton.cs:line 45
at MonoDevelop.Components.MainToolbar.LazyImage.op_Implicit(LazyImage lazy) in c:\buildslave\monodevelop\build\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.MainToolbar\RoundButton.cs:line 57
at MonoDevelop.Components.MainToolbar.RoundButton.GetIcon() in c:\buildslave\monodevelop\build\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.MainToolbar\RoundButton.cs:line 159
at MonoDevelop.Components.MainToolbar.RoundButton.OnExposeEvent(EventExpose evnt) in c:\buildslave\monodevelop\build\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.MainToolbar\RoundButton.cs:line 181
at Gtk.Widget.exposeevent_cb(IntPtr widget, IntPtr evnt)

NOTE: I am using unity 4.6.9, and this has not been happening until recently, and, the error message always pops up once I open up monodevelop, since the first time it appeared. I have tried uninstalling unity, deleting all monodevelop files, then re-installing unity 4.6.9 with monodevelop again. After about 5 times of opening up monodevelop, the same message appears.

Any help would be appreciated. Thanks! :slight_smile:

I don’t know why that crash happened, but I can tell you that MonoDevelop with Unity has never been particularly stable.

Since you’re on Windows I’d strongly suggest ditching MonoDevelop and downloading Microsoft Visual Studio Community Edition instead. It’s free (as in free beer), you can get it up and running with Unity very easily these days, and it’s very solid.

Alright, apsdsm. I’ll give Visual Studio a shot. Thanks!

i get the same error about once in every 5-6 files opened from unity (it’s been like this since the monodevelop upgrade, both on w81, and w10, using the latest stable 5.x release)
also sometimes md wont let me copy-paste stuff into it from outside files, and i have to restart it for copy-paste to work again.

i thought there would be a solution other than “don’t use md, duh” since the upgrade, but one can dream :slight_smile:

Yeah this has been an issue for several years, as far as I know, and I’ve yet to hear of a solution that works. I have a few tips though:

  1. When you open Unity Editor, make sure MonoDev is closed (not already open to some project).
  2. When you want to open a script by double clicking (on an error, for example), wait until the SECOND blink of yellow in your Windows-Toolbar before clicking to open MonoDev. 100% reproducible crash if you click the MonoDev on toolbar before the 2nd blink!

There are a few characteristics of MonoDev that I prefer over Visual Studio … so I feel this is still a relevant question.

Hope it helps!

Helped me, Thanks alot.