Search Unity

MonoDevelop-Unity: Unhandled Exception.

Discussion in 'Editor & General Support' started by renderhjs, Jan 29, 2013.

  1. renderhjs

    renderhjs

    Joined:
    Aug 16, 2011
    Posts:
    90
    Yesterday everything was fine, but starting today all I get is this error message and I can't open any document at all anymore.



    The only difference was that I pulled a GIT update this morning adding some source files to the project, but it shouldn't affect Monodevelop-Unity itself.



    The details in the Error message:
    -----------------------------------------------------------------------------------------
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: String was not recognized as a valid Boolean.

    at System.Boolean.Parse(String value)

    at NGit.Util.FS.ReadPipe(FilePath dir, String[] command, String encoding) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Util\FS.cs:line 297

    at NGit.Util.FS_Win32_Cygwin.Resolve(FilePath dir, String pn) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Util\FS_Win32_Cygwin.cs:line 97

    at NGit.BaseRepositoryBuilder`2.LoadConfig() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 822

    at NGit.BaseRepositoryBuilder`2.GetConfig() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 798

    at NGit.BaseRepositoryBuilder`2.GuessWorkTreeOrFail() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 844

    at NGit.BaseRepositoryBuilder`2.SetupWorkTree() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 759

    at NGit.BaseRepositoryBuilder`2.Setup() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 679

    at NGit.Storage.File.FileRepository..ctor(FilePath gitDir) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Storage.File\FileRepository.cs:line 111

    at NGit.Storage.File.FileRepository..ctor(String gitDir) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Storage.File\FileRepository.cs:line 127

    at MonoDevelop.VersionControl.Git.LocalGitRepository..ctor(String path) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl.Git\MonoDevelop.VersionControl.Git\GitRepository.cs:line 1478

    at MonoDevelop.VersionControl.Git.GitRepository..ctor(FilePath path, String url) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl.Git\MonoDevelop.VersionControl.Git\GitRepository.cs:line 71

    at MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference(FilePath path, String id) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl.Git\MonoDevelop.VersionControl.Git\GitVersionControl.cs:line 61

    at MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference(String path, String id) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl\VersionControlService.cs:line 199

    at MonoDevelop.VersionControl.VersionControlService.GetRepository(IWorkspaceObject entry) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl\VersionControlService.cs:line 185

    at MonoDevelop.VersionControl.Views.SubviewAttachmentHandler.AttachViewContents(Document document) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl.Views\SubviewAttachmentHandler.cs:line 47

    at MonoDevelop.VersionControl.Views.SubviewAttachmentHandler.HandleDocumentOpened(Object sender, DocumentEventArgs e) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl.Views\SubviewAttachmentHandler.cs:line 71

    at MonoDevelop.Ide.Gui.Workbench.OnDocumentOpened(DocumentEventArgs e) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 988

    at MonoDevelop.Ide.Gui.Workbench.WrapDocument(IWorkbenchWindow window) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 577

    at MonoDevelop.Ide.Gui.ViewCommandHandlers..ctor(IWorkbenchWindow window) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\ViewCommandHandlers.cs:line 49

    at MonoDevelop.Ide.Gui.SdiWorkspaceWindow..ctor(DefaultWorkbench workbench, IViewContent content, Notebook tabControl, TabLabel tabLabel) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\SdiWorkspaceWindow.cs:line 98

    at MonoDevelop.Ide.Gui.DefaultWorkbench.ShowView(IViewContent content, Boolean bringToFront) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\DefaultWorkbench.cs:line 381

    at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 1093

    at MonoDevelop.Ide.Gui.Workbench.RealOpenFile(FileOpenInformation openFileInfo) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 772

    at MonoDevelop.Ide.Gui.Workbench.OpenDocument(FilePath fileName, Int32 line, Int32 column, OpenDocumentOptions options, String encoding, IViewDisplayBinding binding) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 390

    at MonoDevelop.Ide.Gui.Workbench.OpenDocument(FilePath fileName, OpenDocumentOptions options) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 321

    at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectFileNodeCommandHandler.ActivateItem() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Pads.ProjectPad\ProjectFileNodeBuilder.cs:line 182

    at MonoDevelop.Ide.Gui.Components.NodeCommandHandler.ActivateMultipleItems() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\NodeCommandHandler.cs:line 100

    at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.ActivateCurrentItem() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\ExtensibleTreeView.cs:line 867

    at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.OnNodeActivated(Object sender, RowActivatedArgs args) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\ExtensibleTreeView.cs:line 1968

    --- End of inner exception stack trace ---

    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

    at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

    at System.Delegate.DynamicInvokeImpl(Object[] args)

    at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)

    at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)

    at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
     
    Last edited: Jan 29, 2013
  2. Captain Ford

    Captain Ford

    Joined:
    Jan 30, 2013
    Posts:
    5
    I'm having exactly the same problem. I can't open any file in MonoDevelop, and I get exactly the same exception, with exactly the same stack trace.

    For me, this is the first time I've ever opened the project on this computer, but it worked fine on the computer where I first developed it. The only difference for me is that it was originally created on a trial version of Unity Pro, and I'm currently working with the free version.
     
  3. Captain Ford

    Captain Ford

    Joined:
    Jan 30, 2013
    Posts:
    5
    I added this problem to Unity Answers, since it's more likely to be noticed there: http://answers.unity3d.com/questions/390738/monodevelop-uncaught-exceptions.html

    Also, I discovered that (at least on my machine) this problem isn't limited to just opening files. If I attempt to open the VersionControl dropdown menu, it produces a ton of exceptions and crashes. Can you verify this?

    And another question. Were you using github?
     
    Last edited: Jan 30, 2013
  4. Captain Ford

    Captain Ford

    Joined:
    Jan 30, 2013
    Posts:
    5
  5. Captain Ford

    Captain Ford

    Joined:
    Jan 30, 2013
    Posts:
    5
    And here's the workaround:

     
  6. renderhjs

    renderhjs

    Joined:
    Aug 16, 2011
    Posts:
    90
    Ahh thanks for that, yes it fixed it. I already installed Unity again today but it didn't fix it, disabling the GIT support plugin in monodevelop did.
     
  7. Captain Ford

    Captain Ford

    Joined:
    Jan 30, 2013
    Posts:
    5
    Yay. :)

    Thanks for letting me know. I appreciate it.
     
  8. renderhjs

    renderhjs

    Joined:
    Aug 16, 2011
    Posts:
    90
    I was about to paste the reply in your unity Aswers thread but the Unity servers have some issues of late with my Answers account (claim bug). Maybe mark that one as resolved yourself, I am sure some people will search and find it in the future ;)
     
  9. Dubious-Drewski

    Dubious-Drewski

    Joined:
    Aug 19, 2012
    Posts:
    51
    I must be missing something. I also have this problem. I try to open Monodevelop, it tells me "Unhandled exception", and then closes the program. So...

    This doesn't work for me, because monodevelop won't even boot that far. How are you guys able access "Tools/Add-in Manager" at all?
     
  10. Chioni

    Chioni

    Joined:
    Jul 19, 2013
    Posts:
    1
    I am having the same problem as Dubious Drewski. When I open a C# script in Unity, MonoDevelop immediately gives the following error message. I am not able to access any options.

    Unhandled Exception. MonoDevelop will now close.
    Details:
    System.Configuration.ConfigurationErrorsException: Fehler beim Erstellen des Webproxys, der im Konfigurationsabschnitt system.net/defaultProxy angegeben ist. ---> System.Net.Sockets.SocketException: Ein ungültiges Argument wurde angegeben

    bei System.Net.SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, Boolean autoReset, Boolean signaled)

    bei System.Net.NetworkAddressChangePolled..ctor()

    bei System.Net.AutoWebProxyScriptEngine.AutoDetector.Initialize()

    bei System.Net.AutoWebProxyScriptEngine.AutoDetector.get_CurrentAutoDetector()

    bei System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, Boolean useRegistry)

    bei System.Net.WebProxy.UnsafeUpdateFromRegistry()

    bei System.Net.WebProxy..ctor(Boolean enableAutoproxy)

    bei System.Net.Configuration.DefaultProxySectionInternal..ctor(DefaultProxySection section)

    bei System.Net.Configuration.DefaultProxySectionInternal.GetSection()

    --- Ende der internen Ausnahmestapelüberwachung ---

    bei System.Net.Configuration.DefaultProxySectionInternal.GetSection()

    bei System.Net.WebRequest.get_InternalDefaultWebProxy()

    bei System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)

    bei System.Net.HttpRequestCreator.Create(Uri Uri)

    bei System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)

    bei System.Net.WebRequest.Create(String requestUriString)

    bei MonoDevelop.Ide.WelcomePage.WelcomePageNewsFeed.<UpdateNewsXmlAsync>b__3(Object state) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.WelcomePage\WelcomePageNewsFeed.cs:Zeile 124.

    bei System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

    bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

    bei System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

    bei System.Threading.ThreadPoolWorkQueue.Dispatch()

    bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()



    Is there probably a possibility to access Tools/Add-in-Manager manually without opening MonoDevelop?

    I hope someone can help me
     
  11. Dubious-Drewski

    Dubious-Drewski

    Joined:
    Aug 19, 2012
    Posts:
    51
    I half-fixed the problem.

    I reinstalled Monodevelop. This required me to install something called GTK# for .NET 2.12.20 (Was that always a requirement?)

    Anyway, Monodevelop runs now, but every hour or so, the whole interface glitches up and I have to restart. Sometimes it's a plain old CTD. It's really unstable, and I don't know what's going on. Before this mystery-change that started this all, Monodevelop used to run fine.

    It's very upsetting.
     
  12. Cawas

    Cawas

    Joined:
    Jan 14, 2010
    Posts:
    121
    In my case, I fixed my very similar error by garbage collecting my git. I didn't touch MonoDevelop although it is certainlly a bug there as well.