Bug 10999 - app crash Got a SIGSEGV
Summary: app crash Got a SIGSEGV
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 6.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 7.2.0 (iOS 7.1)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-08 11:37 UTC by mdeandreis
Modified: 2016-01-11 17:35 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description mdeandreis 2013-03-08 11:37:46 UTC
Hi, my application works fine when i try to debug it on the simulator.. On the other hand, when i try to run the app on Ipad crashed.

Here i have a json class
{     
   "sections": [ 
      {
          "header": "General",
          "type":"string",
          "id":"General",
          "elements": [
              { 
                  "type" : "string",
                  "id": "Document Name",
                  "caption" : "Name"
              },
              {
	                "type" : "string",
	                 "id": "Document Author",
	                 "caption" : "Author"
              },
              {
	                "type" : "string",
	                 "id": "Document Creation Date",
	                 "caption" : "Creation Date"
              },
              {
	                "type" : "string",
	                 "id": "Version",
	                 "caption" : "Version"
              },
              {
	                "type" : "string",
	                 "id": "Path",
	                 "caption" : "Path"
              },
              {
	                "type" : "string",
	                 "id": "Format",
	                 "caption" : "Format"
              },
               {
	                "type" : "boolean",
	                 "id": "Checkout",
	                 "caption" : "Checkout"
              }

             ]
          },
          {
          
	             	"header":"",
	             	"elements":[
	             	{
	             		"type":"string",
	             		"id":"buttonIndex",
	             		"caption":"Index",
	             		"accessory": "disclosure-indicator"	             		
	             	}
	             	]
             	},
           {
	             	"header":"",
	             	"elements":[
	             	{
	             		"type":"string",
	             		"id":"buttonHistoryVersion",
	             		"caption":"History Version",
	             		"accessory": "disclosure-indicator"	             		
	             	}
	             	]
            }
     ]
}

Here I push the view...

Document document=(Document)entry;
DocumentPropertiesDialog doc= new DocumentPropertiesDialog(controller.DetailViewController);
DialogViewController dc= new DialogViewController(doc.CrearMenu document),true);
dc.TableView.ScrollEnabled=false;
						controller.DetailViewController.NavigationController.PopToRootViewController (false);
controller.DetailViewController.NavigationController.PushViewController (dc, false);


Here I have the class that´s read the json element

public JsonElement CreateMenu (Document document)
		{
			if (document.Checkout) {
				jsonElement = JsonElement.FromFile ("DocumentInfoViewController.json");

				var checkout = jsonElement ["Checkout"] as BooleanElement;
				checkout.Caption = "Checkout".Localize ();
				checkout.Value= document.Checkout;
				checkout.ValueChanged+=delegate {
				document.Checkout=false;};
				
				};
			} else
			{
				jsonElement= JsonElement.FromFile ("DocumentInfoViewControllerCheckoutCanceled.json");
			}

			var labelDocumentName=jsonElement["Document Name"] as StringElement;
			labelDocumentName.Caption="Name".Localize ();
			labelDocumentName.Value=document.Name;
			var labelDocumentAuthor=jsonElement["Document Author"] as StringElement;
			labelDocumentAuthor.Caption="Author".Localize ();
			labelDocumentAuthor.Value=document.Author;
			var labelDocumentCreationDate=jsonElement["Document Creation Date"] as StringElement;
			labelDocumentCreationDate.Caption="Creation Date".Localize ();
			labelDocumentCreationDate.Value=document.CreationDate.ToString ();
			var labelDocumentVersion=jsonElement["Version"] as StringElement;
			labelDocumentVersion.Caption="Version".Localize ();
			labelDocumentVersion.Value=document.Version;
			var labelDocumentPath=jsonElement["Path"] as StringElement;
			labelDocumentPath.Caption="Path".Localize ();
			labelDocumentPath.Value=document.Version;
			var labelDocumentFormat=jsonElement["Format"] as StringElement;
			labelDocumentFormat.Caption="Format".Localize ();
			labelDocumentFormat.Value=document.Format;
			var buttonIndex= jsonElement["buttonIndex"] as StyledStringElement;
			buttonIndex.Caption="Index".Localize ();
			buttonIndex.Tapped+= delegate {
				CreateIndexView();

			}; 

			var buttonHistory= jsonElement["buttonHistoryVersion"] as StyledStringElement;
			buttonHistory.Caption="History Version".Localize ();
			buttonHistory.Tapped+= delegate {
				HistoryVersionView ();
			};

			return jsonElement;
		}


The exception that´s thrown is:
Stacktrace:

  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
  at Axentria.Application.Main (string[]) [0x00000] in /Users/Usuario/SVN/Mobile/Axentria/Axentria/Main.cs:17
  at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	0   Axentria                            0x004fbf91 mono_handle_native_sigsegv + 244
	1   Axentria                            0x004c339d mono_sigsegv_signal_handler + 172
	2   libsystem_c.dylib                   0x388eae93 _sigtramp + 42
	3   UIKit                               0x35375053 <redacted> + 4786
	4   CoreFoundation                      0x38ae26cd <redacted> + 20
	5   CoreFoundation                      0x38ae09c1 <redacted> + 276
	6   CoreFoundation                      0x38ae0d17 <redacted> + 742
	7   CoreFoundation                      0x38a53ebd CFRunLoopRunSpecific + 356
	8   CoreFoundation                      0x38a53d49 CFRunLoopRunInMode + 104
	9   GraphicsServices                    0x353562eb GSEventRunModal + 74
	10  UIKit                               0x353c0301 UIApplicationMain + 1120
	11  Axentria                            0x00048754 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 240
	12  Axentria                            0x0043afb0 Axentria_Application_Main_string__ + 152
	13  Axentria                            0x00286580 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
	14  Axentria                            0x004c4973 mono_jit_runtime_invoke + 1054
	15  Axentria                            0x0051f0f3 mono_runtime_invoke + 90
	16  Axentria                            0x00521b8f mono_runtime_exec_main + 306
	17  Axentria                            0x00524e1b mono_runtime_run_main + 482
	18  Axentria                            0x004d674f mono_jit_exec + 94
	19  Axentria                            0x00562a74 main + 2216
	20  Axentria                            0x000025a8 start + 40

=================================================================
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.
=================================================================

I dont have any idea what´s the problem

Thanks a lot Martin
Comment 2 GouriKumari 2013-07-09 18:26:08 UTC
Could you add a test solution to reproduce the bug.
Comment 3 PJ 2013-11-19 16:44:52 UTC
This bug was targeted for a past milestone, moving to the next non-hotfix active milestone.
Comment 4 GouriKumari 2016-01-11 17:35:56 UTC
Hope this bug got resolved in our latest release. If not please add a testcase to reproduce this issue and reopen the message. Based on Comment #2, I am closing this meesage.