Bug 3608 - SIGSEGV error caused by not upgrading designer file
Summary: SIGSEGV error caused by not upgrading designer file
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.3.x
Hardware: Macintosh Mac OS
: High normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-02-23 09:23 UTC by dmiser
Modified: 2012-04-24 14:37 UTC (History)
3 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 INVALID

Description dmiser 2012-02-23 09:23:20 UTC
Using this sample:
http://www.infoq.com/articles/monotouch-mvc

Running with XCode 4.3, MD 2.8.6.5 and MT 5.2.5, I receive the following stack trace when running and clicking on a link. It works fine with MT 5.04, 5.2.3, and 5.2.4, but breaks when running under 5.2.5.

Rolf's analysis:
That sample is old, and it needs to be migrated to a new IB logic. This should be done automatically (MonoDevelop asks you when you open the project), but then it seems like something goes wrong, because the designer.cs files aren't regenerated, no matter what I do.
 
This looks like a bug in the MonoDevelop migration process, can you file a bug about it (with a link to the sample project or your project)?

Stacktrace: 

  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x0009f, 0xffffffff>
  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29
   at MonoTouch.UIKit.UIApplication.Main (string[]) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:34
   at Example_HelloWorld_2.Application.Main (string[]) [0x00000] in /Users/danmiser/code/samplenav/Example_HelloWorld_2/Example_HelloWorld_2/Main.cs:14
   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Native stacktrace: 

        0   Example_HelloWorld_2                0x000908ec mono_handle_native_sigsegv + 284
         1   Example_HelloWorld_2                0x00005c88 mono_sigsegv_signal_handler + 248
         2   libsystem_c.dylib                   0x90d5659b _sigtramp + 43 
        3   ???                                 0xffffffff 0x0 + 4294967295 
        4   CoreFoundation                      0x011ae032 -[__NSArrayM getObjects:range:] + 626
         5   CoreFoundation                      0x01158f14 __NSArrayChunkIterate + 308
         6   CoreFoundation                      0x01124665 __NSArrayEnumerate + 997
         7   CoreFoundation                      0x01124056 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 102
         8   UIKit                               0x021c4c43 -[UIView(Geometry) hitTest:withEvent:] + 646
         9   UIKit                               0x021c4d45 __38-[UIView(Geometry) hitTest:withEvent:]_block_invoke_0 + 132
         10  CoreFoundation                      0x01158f4a __NSArrayChunkIterate + 362
         11  CoreFoundation                      0x01124665 __NSArrayEnumerate + 997
         12  CoreFoundation                      0x01124056 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 102
         13  UIKit                               0x021c4c43 -[UIView(Geometry) hitTest:withEvent:] + 646
         14  UIKit                               0x021c4d45 __38-[UIView(Geometry) hitTest:withEvent:]_block_invoke_0 + 132
         15  CoreFoundation                      0x01158f4a __NSArrayChunkIterate + 362
         16  CoreFoundation                      0x01124665 __NSArrayEnumerate + 997
         17  CoreFoundation                      0x01124056 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 102
         18  UIKit                               0x021c4c43 -[UIView(Geometry) hitTest:withEvent:] + 646
         19  UIKit                               0x021bf42d +[UIWindow _hitTestToPoint:pathIndex:forEvent:] + 378
         20  UIKit                               0x02191253 _UIApplicationHandleEvent + 1966
         21  GraphicsServices                    0x0478afa9 PurpleEventCallback + 1274
         22  CoreFoundation                      0x011951c5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
         23  CoreFoundation                      0x010fa022 __CFRunLoopDoSource1 + 146
         24  CoreFoundation                      0x010f890a __CFRunLoopRun + 2218
         25  CoreFoundation                      0x010f7db4 CFRunLoopRunSpecific + 212
         26  CoreFoundation                      0x010f7ccb CFRunLoopRunInMode + 123
         27  GraphicsServices                    0x04789879 GSEventRunModal + 207
         28  GraphicsServices                    0x0478993e GSEventRun + 114 
        29  UIKit                               0x02190a9b UIApplicationMain + 1175
         30  ???                                 0x0d4f5d95 0x0 + 223305109 
        31  ???                                 0x0d4f59e0 0x0 + 223304160 
        32  ???                                 0x0d4f4f4c 0x0 + 223301452 
        33  ???                                 0x0d4f4da4 0x0 + 223301028 
        34  ???                                 0x0d4f4ef6 0x0 + 223301366 
        35  Example_HelloWorld_2                0x00009ff2 mono_jit_runtime_invoke + 722
         36  Example_HelloWorld_2                0x00169eee mono_runtime_invoke + 126
         37  Example_HelloWorld_2                0x0016dfd4 mono_runtime_exec_main + 420
         38  Example_HelloWorld_2                0x001733f5 mono_runtime_run_main + 725
         39  Example_HelloWorld_2                0x000671f5 mono_jit_exec + 149 
        40  Example_HelloWorld_2                0x002116c9 main + 2825 
        41  Example_HelloWorld_2                0x00003045 start + 53 

================================================================= 
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. 
=================================================================
Comment 1 Mikayla Hutchinson [MSFT] 2012-02-23 18:36:14 UTC
MonoDevelop doesn't upgrade the designer files, only the project format. The old designer format works fine. The designer files are only regenerated when the corresponding H file is changed using the Xcode integration.
Comment 3 Jeffrey Stedfast 2012-04-24 14:33:14 UTC
The problem is that the delegate is being GC'd.

If you keep a class-level reference to the NavTableDelegate and the NavTableViewDataSource, it works fine.
Comment 4 Miguel de Icaza [MSFT] 2012-04-24 14:37:42 UTC
Ok, so not a bug then.