Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Monodevelop Crash Problem

Discussion in 'Scripting' started by Ventuar, Jan 5, 2016.

  1. Ventuar

    Ventuar

    Joined:
    Oct 23, 2015
    Posts:
    7
    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! :) Screenshot (13).png
     
  2. apsdsm

    apsdsm

    Joined:
    Sep 26, 2013
    Posts:
    56
    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.
     
  3. Ventuar

    Ventuar

    Joined:
    Oct 23, 2015
    Posts:
    7
    Alright, apsdsm. I'll give Visual Studio a shot. Thanks!
     
  4. razielanarki

    razielanarki

    Joined:
    Jun 1, 2014
    Posts:
    58
    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 :)
     
  5. Martian-Games

    Martian-Games

    Joined:
    Jan 19, 2012
    Posts:
    43
    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!
     
    Last edited: Jan 2, 2017
  6. Orr10c

    Orr10c

    Joined:
    Sep 11, 2016
    Posts:
    45
    Helped me, Thanks alot.