Bug 6068 - Crash While Committing Animation
Summary: Crash While Committing Animation
Status: RESOLVED DUPLICATE of bug 6069
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-07-10 18:45 UTC by Jeff
Modified: 2012-07-16 11:53 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 DUPLICATE of bug 6069

Description Jeff 2012-07-10 18:45:51 UTC
I have an app that is crashing while drawing images onto tableviewcells. This screen spawns a thread that retrieves an image from a url and then commits a thumbnail image transition to draw it on the appropriate cell. Occasionally, this will crash the app with the stack trace pasted below. 
Screenshot:
http://i.imgur.com/igtSD.png

iPhone(587,0x9a44000) malloc: *** error for object 0x9464b50: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Stacktrace:

  at MonoTouch.UIKit.UIView.CommitAnimations () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIView.g.cs:817
  at Baesman.iPhone.SubscriptionDataSource.RefreshImage (Baesman.iPhone.BaesmanTableViewCell) [0x00018] in /Users/admin/Projects/BaesmanGroup/Mobile/Trunk/iPhone/Classes/Options Screens/Supscriptions/SubscriptionDataSource.cs:178
  at Baesman.iPhone.SubscriptionDataSource.RequestImage (object) [0x000a2] in /Users/admin/Projects/BaesmanGroup/Mobile/Trunk/iPhone/Classes/Options Screens/Supscriptions/SubscriptionDataSource.cs:159
  at Baesman.iPhone.SubscriptionDataSource.GetImage (Baesman.iPhone.BaesmanTableViewCell,string) [0x0004d] in /Users/admin/Projects/BaesmanGroup/Mobile/Trunk/iPhone/Classes/Options Screens/Supscriptions/SubscriptionDataSource.cs:129
  at Baesman.iPhone.SubscriptionDataSource/<GetCell>c__AnonStorey3.<>m__B () [0x00000] in /Users/admin/Projects/BaesmanGroup/Mobile/Trunk/iPhone/Classes/Options Screens/Supscriptions/SubscriptionDataSource.cs:102
  at System.Threading.Thread.StartInternal () [0x0001d] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading/Thread.cs:696
  at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	0   iPhone                              0x007003a8 mono_handle_native_sigsegv + 280
	1   iPhone                              0x007230fc sigabrt_signal_handler + 180
	2   libsystem_c.dylib                   0x3188d7ed _sigtramp + 48
	3   libsystem_c.dylib                   0x3188320f pthread_kill + 54
	4   libsystem_c.dylib                   0x3187c29f abort + 94
	5   libsystem_c.dylib                   0x31837381 free + 380
	6   libobjc.A.dylib                     0x357b8d79 object_dispose + 20
	7   CoreFoundation                      0x3720c61f -[NSObject dealloc] + 82
	8   UIKit                               0x339789b1 -[UIViewAnimationState dealloc] + 92
	9   libobjc.A.dylib                     0x357b8175 _objc_rootRelease + 36
	10  UIKit                               0x33977a5f +[UIViewAnimationState popAnimationState] + 2410
	11  iPhone                              0x0027efb4 wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_void_objc_msgSend_intptr_intptr + 68
	12  iPhone                              0x000a12dc Baesman_iPhone_SubscriptionDataSource_RefreshImage_Baesman_iPhone_BaesmanTableViewCell + 252
	13  iPhone                              0x000a10c4 Baesman_iPhone_SubscriptionDataSource_RequestImage_object + 1112
	14  iPhone                              0x000a0b48 Baesman_iPhone_SubscriptionDataSource_GetImage_Baesman_iPhone_BaesmanTableViewCell_string + 664
	15  iPhone                              0x000e1c28 Baesman_iPhone_SubscriptionDataSource__GetCellc__AnonStorey3__m__B + 156
	16  iPhone                              0x0054da98 System_Threading_Thread_StartInternal + 216
	17  iPhone                              0x0057a328 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
	18  iPhone                              0x006ec9e8 mono_jit_runtime_invoke + 1644
	19  iPhone                              0x00794e74 mono_runtime_invoke + 128
	20  iPhone                              0x00794fd0 mono_runtime_delegate_invoke + 96
	21  iPhone                              0x007b8008 start_wrapper + 492
	22  iPhone                              0x007d042c thread_start_routine + 152
	23  iPhone                              0x007ead64 GC_start_routine + 92
	24  libsystem_c.dylib                   0x31844735 _pthread_start + 320
	25  libsystem_c.dylib                   0x318445f0 thread_start + 8

=================================================================
Got a SIGABRT 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 Sebastien Pouliot 2012-07-16 11:53:07 UTC
different crash but (very likely) the same issue (thread related)

*** This bug has been marked as a duplicate of bug 6069 ***