Bug 31352 - Found managed Object in Native Object
Summary: Found managed Object in Native Object
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: master
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-06-24 10:05 UTC by Michael Murray
Modified: 2015-06-25 13:13 UTC (History)
2 users (show)

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:

Description Michael Murray 2015-06-24 10:05:50 UTC
When trying to navigate to a view from a tab bar, i'm getting this crash on all devices.  I have changed nothing from this release to the previous release other than an update to xamarin.iOS and xamarin studio.  I am dead in the water until i can resolve this and i have no idea what is causing it.

Below is the relevant crash log.

2015-06-23 17:17:28.023 T2GiOS[4804:60b] Xamarin.iOS: Internal consistency error, please file a bug (http://bugzilla.xamarin.com). Additional data: found managed object 0x42183f0=0x17633e50 (T2G.iOS.MenuViewController) in native object 0x176f5f10 (MenuViewController).
2015-06-23 17:17:28.025 T2GiOS[4804:60b] critical: Stacktrace:

2015-06-23 17:17:28.026 T2GiOS[4804:60b] critical:   at <unknown> <0xffffffff>
2015-06-23 17:17:28.027 T2GiOS[4804:60b] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
2015-06-23 17:17:28.030 T2GiOS[4804:60b] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/UIKit/UIApplication.cs:63
2015-06-23 17:17:28.033 T2GiOS[4804:60b] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x0001c] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/UIKit/UIApplication.cs:46
2015-06-23 17:17:28.035 T2GiOS[4804:60b] critical:   at T2G.iOS.Application.Main (string[]) [0x00009] in /Users/administrator/Projects/Tales2Go/Tales2Go/T2G.iOS/Main.cs:18
2015-06-23 17:17:28.036 T2GiOS[4804:60b] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
2015-06-23 17:17:28.037 T2GiOS[4804:60b] critical: 
Native stacktrace:

2015-06-23 17:17:28.516 T2GiOS[4804:60b] critical: 	0   T2GiOS                              0x00a829ef mono_handle_native_sigsegv + 238
2015-06-23 17:17:28.519 T2GiOS[4804:60b] critical: 	1   T2GiOS                              0x00a868bd sigabrt_signal_handler + 104
2015-06-23 17:17:28.520 T2GiOS[4804:60b] critical: 	2   libsystem_platform.dylib            0x38ceaf93 _sigtramp + 42
2015-06-23 17:17:28.521 T2GiOS[4804:60b] critical: 	3   libsystem_pthread.dylib             0x38cf0797 pthread_kill + 58
2015-06-23 17:17:28.522 T2GiOS[4804:60b] critical: 	4   libsystem_c.dylib                   0x38c36fdd abort + 76
2015-06-23 17:17:28.523 T2GiOS[4804:60b] critical: 	5   T2GiOS                              0x00b241ec xamarin_class_get_full_name + 0
2015-06-23 17:17:28.524 T2GiOS[4804:60b] critical: 	6   T2GiOS                              0x00b24150 xamarin_get_managed_object_for_ptr_fast + 224
2015-06-23 17:17:28.525 T2GiOS[4804:60b] critical: 	7   T2GiOS                              0x00a4add3 native_to_managed_trampoline_4 + 62
2015-06-23 17:17:28.526 T2GiOS[4804:60b] critical: 	8   T2GiOS                              0x00a52c15 -[MenuViewController loadView] + 52
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-06-24 10:32:10 UTC
Can you attach a project we can use to reproduce this error and track it down?
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-06-24 10:33:15 UTC
BTW you can downgrade to the previous version of Xamarin.iOS if you're blocked by this: https://kb.xamarin.com/customer/portal/articles/1699777-how-do-i-downgrade-to-an-older-version-
Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-06-25 09:56:28 UTC
@Michael, I can't reproduce this issue with the current Stable release (which was released yesterday), but I can with the previous Stable release, so I believe we've fixed this already.

Can you try and see confirm if that's the case?
Comment 6 Michael Murray 2015-06-25 13:13:31 UTC
Yes thank you.  Upgrading to the new release resolved the problem.

Thanks again for the help!