Forum Xamarin.iOS

Is it just me or Xamarin.iOS crashes A LOT?

laygrlaygr MXMember, University
edited June 2014 in Xamarin.iOS

I keep randomly getting this error:

mono-rt: at <0xffffffff>

mono-rt: at (wrapper managed-to-native) MonoTouch.Foundation.NSObject.monotouch_release_managed_ref (intptr)

mono-rt: at MonoTouch.Foundation.NSObject.ReleaseManagedRef () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/Foundation/NSObject.cs:92

mono-rt: at MonoTouch.Foundation.NSObject/NSObject_Disposer.Drain (MonoTouch.Foundation.NSObject) [0x00062] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:708

mono-rt: at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr)

mono-rt: at <0xffffffff>

mono-rt: at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr)

mono-rt: at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38

mono-rt: at iOS.Application.Main (string[]) [0x00008] in /Users/Laygr/Dropbox/MisDocumentos/Programacion/Reserbus/MobileApp/iOS/Main.cs:17

mono-rt: at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr)

Native stacktrace:


Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

and then my app crashes.

Happens either on simulator or on real device.

I'm thinking that it must be only me, because it is making Xamarin almost unusable, but I'm not doing nothing special, I think...


  • RolfBjarneKvingeRolfBjarneKvinge USXamarin Team Xamurai

    Can you get a symbolicated crash report from Xcode's Organizer?

  • laygrlaygr MXMember, University

    Hi RolfBjarneKvinge,

    I'm attaching the symbolicated crash report.
    My app is called (for now) "iOS".

    I had to change the file extension from .crash to .txt in order to upload it.

    Thanks in advance.

  • RolfBjarneKvingeRolfBjarneKvinge USXamarin Team Xamurai

    I believe you're running into this problem:

  • laygrlaygr MXMember, University

    I'll give it a try and report if the problem disappeared.

  • laygrlaygr MXMember, University

    There was indeed an error on my storyboard related to a searchbar controller.

  • SebastianHermannSebastianHermann USMember
    edited August 2014

    I have the same issue. How have you fixed this? The solution provided in Stackoverflow didn't work for me.

    I added this to my TableViewController:

     protected override void Dispose (bool disposing)
          this.InvokeOnMainThread(delegate {
                 searchDisplayController.SearchResultsSource = null;
                 searchDisplayController.Delegate = null;
                 base.Dispose (disposing);
  • laygrlaygr MXMember, University
    edited August 2014

    My storyboard had some errors. I fixed them and everything worked.
    Try this:

    • Make sure that there are no unconnected outlets (or the ruins of a once connected outlet).

    • Clean the project.

    Overriding the Dispose method seems unnecessary to me:

Sign In or Register to comment.