I use in application MKMapView with custom MKAnnotation and custom
MKPinAnnotationView.
Image in PinView depends on some object state and I change it on timer
event.
In general it works fine but some time after start, monotouch got SIGSEGV
message and application has full crash without any exception. It happens
randomly every time.
Is it bug of monotouch?
public class MyPin : MKPinAnnotationView
{
private UIImage _img = UIImage.FromBundle( _imgPath );
private void UpdateImage()
{
var size = ...
LINE 311 -> base.Image = _img.Scale( size );
}
....
}
Stacktrace:
at (wrapper managed-to-native)
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_RectangleF
(intptr,intptr,System.Drawing.RectangleF) <IL 0x00025, 0xffffffff>
at MonoTouch.UIKit.UIImage.Draw (System.Drawing.RectangleF) [0x0000b] in
/Users/plasma/Source/iphone/monotouch/UIKit/UIImage.g.cs:179
at MonoTouch.UIKit.UIImage.Scale (System.Drawing.SizeF) [0x00006] in
/Users/plasma/Source/iphone/monotouch/UIKit/UIImage.cs:61
at SsdMac.MyPin.UpdateImage () [0x00096] in
/Users/lta/Projects/SsdMac/SsdMac/MyMapAnnotations.cs:311
at SsdMac.MyPin.set_ImgPath (string) [0x00007] in
/Users/lta/Projects/SsdMac/SsdMac/MyMapAnnotations.cs:286
at SsdMac.MyMapAnnotation.SetPinImg () [0x000a8] in
/Users/lta/Projects/SsdMac/SsdMac/MyMapAnnotations.cs:111
at SsdMac.MyMapAnnotation.Reload () [0x00000] in
/Users/lta/Projects/SsdMac/SsdMac/MyMapAnnotations.cs:90
at SsdMac.AppDelegate.ReloadAnnotations () [0x00018] in
/Users/lta/Projects/SsdMac/SsdMac/Main.cs:125
at SsdMac.AppDelegate.<OnTimer>m__0 () [0x00067] in
/Users/lta/Projects/SsdMac/SsdMac/Main.cs:101
at MonoTouch.Foundation.NSActionDispatcher.Apply () [0x00000] in
/Users/plasma/Source/iphone/monotouch/shared/Foundation/NSAction.cs:45
at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>
at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr)
<IL 0x0009f, 0xffffffff>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038]
in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:26
at MonoTouch.UIKit.UIApplication.Main (string[]) [0x00000] in
/Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:31
at SsdMac.Application.Main (string[]) [0x00000] in
/Users/lta/Projects/SsdMac/SsdMac/Main.cs:20
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
Native stacktrace:
0 SsdMac 0x000d1965
mono_handle_native_sigsegv + 343
1 SsdMac 0x0000ffb4
mono_sigsegv_signal_handler + 322
2 libSystem.B.dylib 0x989ee45b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 ImageIO 0x0282d9fd
ImageIO_make_purgeable +
58
5 ImageIO 0x027aad15
CGImageReadSessionReleaseCachedImageBlockData + 29
6 CoreGraphics 0x0102778c CGImageBlockRelease
+ 33
7 CoreGraphics 0x0100e74b
CGImageBlockSetRelease +
40
8 CoreGraphics 0x01096224 img_blocks_destroy +
23
9 CoreGraphics 0x0109adf3 img_interpolate_end
+ 22
10 CoreGraphics 0x0109ef32 img_data_lock + 7262
11 CoreGraphics 0x0109fa71 CGSImageDataLock +
172
12 libRIP.A.dylib 0x0cfcdf9a ripc_AcquireImage +
2446
13 libRIP.A.dylib 0x0cfcc0e9 ripc_DrawImage + 1158
14 CoreGraphics 0x011cb5e3 CGContextDrawImage +
450
15 UIKit 0x01cea10d -[UIImage
drawInRect:blendMode:alpha:] + 3055
16 UIKit 0x01ce86b6 -[UIImage
drawInRect:] +
78
17 ??? 0x0d0a08a4 0x0 + 218761380
18 ??? 0x0d0a07ee 0x0 + 218761198
19 ??? 0x0d0a06d0 0x0 + 218760912
20 ??? 0x0d0998a6 0x0 + 218732710
21 ??? 0x0d0a0220 0x0 + 218759712
22 ??? 0x0d0a01fc 0x0 + 218759676
23 ??? 0x0d1c266a 0x0 + 219948650
24 ??? 0x0d1c25b8 0x0 + 219948472
25 ??? 0x0d0a0f5c 0x0 + 218763100
26 ??? 0x0d0a0e2e 0x0 + 218762798
27 ??? 0x07758917 0x0 + 125143319
28 SsdMac 0x0000fd6f
mono_jit_runtime_invoke
+ 1332
29 SsdMac 0x001ee239 mono_runtime_invoke +
137
30 SsdMac 0x0029e9ab monotouch_trampoline
+
2527
31 Foundation 0x0140e94e
__NSThreadPerformPerform
+ 251
32 CoreFoundation 0x00ea08ff
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
33 CoreFoundation 0x00dfe88b
__CFRunLoopDoSources0 +
571
34 CoreFoundation 0x00dfdd86 __CFRunLoopRun + 470
35 CoreFoundation 0x00dfd840 CFRunLoopRunSpecific
+
208
36 CoreFoundation 0x00dfd761 CFRunLoopRunInMode +
97
37 GraphicsServices 0x0404c1c4 GSEventRunModal + 217
38 GraphicsServices 0x0404c289 GSEventRun + 115
39 UIKit 0x01ce0c93 UIApplicationMain +
1160
40 ??? 0x0a242744 0x0 + 170141508
41 ??? 0x0a24267a 0x0 + 170141306
42 ??? 0x0775be26 0x0 + 125156902
43 ??? 0x0775bbd2 0x0 + 125156306
44 ??? 0x0775bdfd 0x0 + 125156861
45 SsdMac 0x0000fd6f
mono_jit_runtime_invoke
+ 1332
46 SsdMac 0x001ee239 mono_runtime_invoke +
137
47 SsdMac 0x001f0920
mono_runtime_exec_main +
669
48 SsdMac 0x001efd0a
mono_runtime_run_main +
843
49 SsdMac 0x000a3c62 mono_jit_exec + 200
50 SsdMac 0x002a25eb main + 3838
51 SsdMac 0x000030c9 _start + 208
52 SsdMac 0x00002ff8 start + 40
Debug info from gdb:
Error connecting stdout and stderr (127.0.0.1:10001)
/tmp/mono-gdb-commands.MUEo5M:1: Error in sourced command file:
unable to debug self
=================================================================
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.
=================================================================
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/crash-application-with-SIGSEGV-tp3843696p3843696.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch