uiwebview webthread crashing - uiwebview
My App with an UIWebView is crashing a lot. The crash is often slightly different, but it's always a crash of the "WebThread" with a similar stack trace.
I found this question but I don't think it's my case, I have iOS 6 and I'm not loading Office documents.
I'm using websocket to send messages to a server and using ajax commet to receive messages from a server.
The crashes always happen when I'm starting that connections.
Date/Time: 2012-10-01 14:18:07.184 -0300
OS Version: iOS 6.0 (10A403)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000054
Crashed Thread: 4
Thread 4 name: WebThread
Thread 4 Crashed:
0 WebCore 0x35f1b9a0 WebCore::RootInlineBox::ascentAndDescentForBox(WebCore::InlineBox*, WTF::HashMap<WebCore::InlineTextBox const*, std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow>, WTF::PtrHash<WebCore::InlineTextBox const*>, WTF::HashTraits<WebCore::InlineTextBox const*>, WTF::HashTraits<std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow> > >&, int&, int&, bool&, bool&) const + 1344
1 WebCore 0x35f1b1a4 WebCore::InlineFlowBox::computeLogicalBoxHeights(WebCore::RootInlineBox*, int&, int&, int&, int&, bool&, bool&, bool, WTF::HashMap<WebCore::InlineTextBox const*, std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow>, WTF::PtrHash<WebCore::InlineTextBox const*>, WTF::HashTraits<WebCore::InlineTextBox const*>, WTF::HashTraits<std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow> > >&, WebCore::FontBaseline, WebCore::VerticalPositionCache&) + 80
2 WebCore 0x35f1ade4 WebCore::RootInlineBox::alignBoxesInBlockDirection(int, WTF::HashMap<WebCore::InlineTextBox const*, std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow>, WTF::PtrHash<WebCore::InlineTextBox const*>, WTF::HashTraits<WebCore::InlineTextBox const*>, WTF::HashTraits<std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow> > >&, WebCore::VerticalPositionCache&) + 124
3 WebCore 0x35f1acc2 WebCore::RenderBlock::computeBlockDirectionPositionsForLine(WebCore::RootInlineBox*, WebCore::BidiRun*, WTF::HashMap<WebCore::InlineTextBox const*, std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow>, WTF::PtrHash<WebCore::InlineTextBox const*>, WTF::HashTraits<WebCore::InlineTextBox const*>, WTF::HashTraits<std::__1::pair<WTF::Vector<WebCore::SimpleFontData const*, 0ul>, WebCore::GlyphOverflow> > >&, WebCore::VerticalPositionCache&) + 54
4 WebCore 0x35f18846 WebCore::RenderBlock::createLineBoxesFromBidiRuns(WebCore::BidiRunList<WebCore::BidiRun>&, WebCore::InlineIterator const&, WebCore::LineInfo&, WebCore::VerticalPositionCache&, WebCore::BidiRun*) + 162
5 WebCore 0x35f0e30c WebCore::RenderBlock::layoutRunsAndFloatsInRange(WebCore::LineLayoutState&, WebCore::BidiResolver<WebCore::InlineIterator, WebCore::BidiRun>&, WebCore::InlineIterator const&, WebCore::BidiStatus const&, unsigned int) + 2048
6 WebCore 0x35f0cf00 WebCore::RenderBlock::layoutRunsAndFloats(WebCore::LineLayoutState&, bool) + 724
7 WebCore 0x35e4b562 WebCore::RenderBlock::layoutInlineChildren(bool, int&, int&) + 986
8 WebCore 0x35e46390 WebCore::RenderBlock::layoutBlock(bool, int) + 1132
9 WebCore 0x35e45c22 WebCore::RenderBlock::layout() + 38
10 WebCore 0x35e48cbc WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 556
11 WebCore 0x35e47f2c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 528
12 WebCore 0x35e463a0 WebCore::RenderBlock::layoutBlock(bool, int) + 1148
13 WebCore 0x35e45c22 WebCore::RenderBlock::layout() + 38
14 WebCore 0x35e48cbc WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 556
15 WebCore 0x35e47f2c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 528
16 WebCore 0x35e463a0 WebCore::RenderBlock::layoutBlock(bool, int) + 1148
17 WebCore 0x35e45c22 WebCore::RenderBlock::layout() + 38
18 WebCore 0x35e45aae WebCore::RenderView::layout() + 478
19 WebCore 0x35e404b2 WebCore::FrameView::layout(bool) + 1554
20 WebCore 0x35e782c6 WebCore::ThreadTimers::sharedTimerFiredInternal() + 134
21 WebCore 0x35e7820a WebCore::timerFired(__CFRunLoopTimer*, void*) + 62
22 CoreFoundation 0x39a615dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
23 CoreFoundation 0x39a6128c __CFRunLoopDoTimer + 268
24 CoreFoundation 0x39a5fefc __CFRunLoopRun + 1228
25 CoreFoundation 0x399d2eb8 CFRunLoopRunSpecific + 352
26 CoreFoundation 0x399d2d44 CFRunLoopRunInMode + 100
27 WebCore 0x35de4a70 RunWebThread(void*) + 440
28 libsystem_c.dylib 0x33e4730e _pthread_start + 306
29 libsystem_c.dylib 0x33e471d4 thread_start + 4
...
OS Version: iOS 6.0 (10A403)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000a4
Crashed Thread: 2
Thread 2 name: WebThread
Thread 2 Crashed:
0 WebCore 0x35ae72f6 WebCore::requiresLineBox(WebCore::InlineIterator const&, WebCore::LineInfo const&, WebCore::WhitespacePosition) + 30
1 WebCore 0x35ae7286 WebCore::RenderBlock::LineBreaker::skipLeadingWhitespace(WebCore::BidiResolver<WebCore::InlineIterator, WebCore::BidiRun>&, WebCore::LineInfo&, WebCore::RenderBlock::FloatingObject*, WebCore::LineWidth&) + 162
2 WebCore 0x35ae476e WebCore::RenderBlock::LineBreaker::nextLineBreak(WebCore::BidiResolver<WebCore::InlineIterator, WebCore::BidiRun>&, WebCore::LineInfo&, std::__1::pair<WebCore::RenderText*, WebCore::LazyLineBreakIterator>&, WebCore::RenderBlock::FloatingObject*, unsigned int) + 158
3 WebCore 0x35ae45de WebCore::RenderBlock::layoutRunsAndFloatsInRange(WebCore::LineLayoutState&, WebCore::BidiResolver<WebCore::InlineIterator, WebCore::BidiRun>&, WebCore::InlineIterator const&, WebCore::BidiStatus const&, unsigned int) + 2770
4 WebCore 0x35ae2f00 WebCore::RenderBlock::layoutRunsAndFloats(WebCore::LineLayoutState&, bool) + 724
5 WebCore 0x35a21562 WebCore::RenderBlock::layoutInlineChildren(bool, int&, int&) + 986
6 WebCore 0x35a1c390 WebCore::RenderBlock::layoutBlock(bool, int) + 1132
7 WebCore 0x35a1bc22 WebCore::RenderBlock::layout() + 38
8 WebCore 0x35a1ecbc WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 556
9 WebCore 0x35a1df2c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 528
10 WebCore 0x35a1c3a0 WebCore::RenderBlock::layoutBlock(bool, int) + 1148
11 WebCore 0x35a1bc22 WebCore::RenderBlock::layout() + 38
12 WebCore 0x35a1ecbc WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 556
13 WebCore 0x35a1df2c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 528
14 WebCore 0x35a1c3a0 WebCore::RenderBlock::layoutBlock(bool, int) + 1148
15 WebCore 0x35a1bc22 WebCore::RenderBlock::layout() + 38
16 WebCore 0x35a1baae WebCore::RenderView::layout() + 478
17 WebCore 0x35a164b2 WebCore::FrameView::layout(bool) + 1554
18 WebCore 0x35a4e2c6 WebCore::ThreadTimers::sharedTimerFiredInternal() + 134
19 WebCore 0x35a4e20a WebCore::timerFired(__CFRunLoopTimer*, void*) + 62
20 CoreFoundation 0x396375dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
21 CoreFoundation 0x3963728c __CFRunLoopDoTimer + 268
22 CoreFoundation 0x39635efc __CFRunLoopRun + 1228
23 CoreFoundation 0x395a8eb8 CFRunLoopRunSpecific + 352
24 CoreFoundation 0x395a8d44 CFRunLoopRunInMode + 100
25 WebCore 0x359baa70 RunWebThread(void*) + 440
26 libsystem_c.dylib 0x33a1d30e _pthread_start + 306
27 libsystem_c.dylib 0x33a1d1d4 thread_start + 4
I fixed the bug, I was sending javascript logs to cocoa like this, I fixed those crashes by removing this.
Actually, that's not necessary anymore for iOS 6 cause now it's possible to debug javascript using MAC OX safari =)
Related
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType pointSize]
when I want to generate a canvas on node this error is displayed and I don't know how to fix the problem. 2022-11-28 15:16:20.203 node[72232:1100211] -[__NSCFType pointSize]: unrecognized selector sent to instance 0x6000005e34e0 2022-11-28 15:16:20.210 node[72232:1100211] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType pointSize]: unrecognized selector sent to instance 0x6000005e34e0' *** First throw call stack: ( 0 CoreFoundation 0x00007ff80ea337c3 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007ff80e793bc3 objc_exception_throw + 48 2 CoreFoundation 0x00007ff80eab836b -[NSObject(NSObject) __retain_OA] + 0 3 CoreFoundation 0x00007ff80e99a515 ___forwarding___ + 1356 4 CoreFoundation 0x00007ff80e999f38 _CF_forwarding_prep_0 + 120 5 UIFoundation 0x00007ff81224426c +[NSFont initialize] + 381 6 libobjc.A.dylib 0x00007ff80e7864e5 CALLING_SOME_+initialize_METHOD + 17 7 libobjc.A.dylib 0x00007ff80e7861ee initializeNonMetaClass + 736 8 libobjc.A.dylib 0x00007ff80e785f6a initializeNonMetaClass + 92 9 libobjc.A.dylib 0x00007ff80e785f6a initializeNonMetaClass + 92 10 libobjc.A.dylib 0x00007ff80e785c18 _ZL24initializeAndMaybeRelockP10objc_classP11objc_objectR8mutex_ttILb0EEb + 232 11 libobjc.A.dylib 0x00007ff80e785995 lookUpImpOrForward + 1087 12 libobjc.A.dylib 0x00007ff80e78853d object_setClass + 88 13 CoreFoundation 0x00007ff80e93bd78 _CFRuntimeCreateInstance + 544 14 CoreText 0x00007ff810026f23 _Z11TCFBase_NEWI6CTFontJPK18__CTFontDescriptorRdRPK17CGAffineTransformRS3_EE6TCFRefIPT_EDpOT0_ + 43 15 CoreText 0x00007ff810026e1e CTFontCreateWithFontDescriptor + 108 16 libpangocairo-1.0.0.dylib 0x000000014572e9a2 _pango_cairo_core_text_font_new + 96 17 libpangocairo-1.0.0.dylib 0x000000014572d963 pango_core_text_font_map_new_font + 143 18 libpangocairo-1.0.0.dylib 0x000000014572d6a7 pango_core_text_fontset_new + 417 19 libpangocairo-1.0.0.dylib 0x000000014572d173 pango_core_text_font_map_load_fontset + 126 20 libpango-1.0.0.dylib 0x000000014585441d pango_itemize_with_font + 1249 21 libpango-1.0.0.dylib 0x000000014585f0d3 pango_layout_check_lines + 828 22 libpango-1.0.0.dylib 0x0000000145861993 pango_layout_get_line + 27 23 canvas.node 0x00000001456d16ca _ZN9Context2d11setTextPathEdd + 154 24 canvas.node 0x00000001456d14e0 _Z9paintTextRKN3Nan20FunctionCallbackInfoIN2v85ValueEEEb + 928 25 canvas.node 0x00000001456adfad _ZN3Nan3impL23FunctionCallbackWrapperERKN2v820FunctionCallbackInfoINS1_5ValueEEE + 189 26 node 0x00000001034d7589 _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE + 265 27 node 0x00000001034d7056 _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE + 550 28 node 0x00000001034d67cf _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE + 255 29 node 0x0000000103d4b439 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 57 30 node 0x0000000103cdde2a Builtins_InterpreterEntryTrampoline + 202 ) libc++abi: terminating with uncaught exception of type NSException node version: 16;17.1 I tried to change the version of node, to reinstall the canvas package, it did not change anything.
Core Data, NSPredicate causes NSInvalidArgumentException
I am calling this code on a background thread. backgroundContext.performAndWait { let fetchRequest:NSFetchRequest<BlogPost> = BlogPost.fetchRequest() fetchRequest.predicate = NSPredicate.init(format: "postid=%#", argumentArray: [someInt64Value]) // this line creates an exception _ = try? fetchRequest.execute() .... } If I remove the predicate, it works fine. The same predicate works just fine if used inside a fetchResultController. postid is Int64 but if I changed the predicate to any other key it would give the same NSInvalidArgumentException This is very similar to Core Data Error - NSDate localizedCaseInsensitiveCompare: unrecognised selector sent to instance 2016-10-11 21:58:13.918 BlogClient[44494:13192129] -[_SwiftValue longLongValue]: unrecognized selector sent to instance 0x618000243cc0 2016-10-11 21:58:13.922 BlogClient[44494:13192129] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_SwiftValue longLongValue]: unrecognized selector sent to instance 0x618000243cc0' *** First throw call stack: ( 0 CoreFoundation 0x000000010f59534b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010ebd921e objc_exception_throw + 48 2 CoreFoundation 0x000000010f604f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x000000010f51ac15 ___forwarding___ + 1013 4 CoreFoundation 0x000000010f51a798 _CF_forwarding_prep_0 + 120 5 CoreData 0x000000010f09762e -[NSSQLiteConnection execute] + 2270 6 CoreData 0x000000010f0aeaba newFetchedRowsForFetchPlan_MT + 1658 7 CoreData 0x000000010f274467 _executeFetchRequest + 55 8 CoreData 0x000000010f1f3be5 -[NSSQLFetchRequestContext executeRequestUsingConnection:] + 53 9 CoreData 0x000000010f220eb7 __52-[NSSQLDefaultConnectionManager handleStoreRequest:]_block_invoke + 215 10 libdispatch.dylib 0x0000000112b8b0cd _dispatch_client_callout + 8 11 libdispatch.dylib 0x0000000112b6830a _dispatch_barrier_sync_f_invoke + 340 12 CoreData 0x000000010f220d8c -[NSSQLDefaultConnectionManager handleStoreRequest:] + 236 13 CoreData 0x000000010f22861f -[NSSQLCoreDispatchManager routeStoreRequest:] + 351 14 CoreData 0x000000010f1ab7d9 -[NSSQLCore dispatchRequest:withRetries:] + 233 15 CoreData 0x000000010f1a711d -[NSSQLCore processFetchRequest:inContext:] + 93 16 CoreData 0x000000010f09dcf8 -[NSSQLCore executeRequest:withContext:error:] + 568 17 CoreData 0x000000010f191b79 __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke + 5609 18 CoreData 0x000000010f189966 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] + 390 19 CoreData 0x000000010f09d87e -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 654 20 CoreData 0x000000010f09be24 -[NSManagedObjectContext executeFetchRequest:error:] + 548 21 CoreData 0x000000010f0e154f -[NSManagedObjectContext(_NestedContextSupport) _parentObjectsForFetchRequest:inContext:error:] + 431 22 CoreData 0x000000010f1626b3 __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 611 23 CoreData 0x000000010f0e133d internalBlockToNSManagedObjectContextPerform + 93 24 libdispatch.dylib 0x0000000112b8b0cd _dispatch_client_callout + 8 25 libdispatch.dylib 0x0000000112b6d5e5 _dispatch_barrier_sync_f_slow_invoke + 617 26 libdispatch.dylib 0x0000000112b8b0cd _dispatch_client_callout + 8 27 libdispatch.dylib 0x0000000112b6b8d6 _dispatch_main_queue_callback_4CF + 406 28 CoreFoundation 0x000000010f5594f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 29 CoreFoundation 0x000000010f51ef8d __CFRunLoopRun + 2205 30 CoreFoundation 0x000000010f51e494 CFRunLoopRunSpecific + 420 31 GraphicsServices 0x0000000113b72a6f GSEventRunModal + 161 32 UIKit 0x000000010f9b8f34 UIApplicationMain + 159 33 BlogClient 0x000000010e5a8bdf main + 111 34 libdyld.dylib 0x0000000112bd768d start + 1 35 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
I found the issue. Passing an Int64 confuses the argumentArray, casting it to Int fixes the issue. This seems to be a bug in NSPredicate() filed as radar 28749194 let id:Int64 = 5785905063264256 // Making this Int works #objc class Test:NSObject { let postid = id } let predicate = NSPredicate(format: "postid == %#" , argumentArray: [id]) let mytest = Test() predicate.evaluate(with: mytest) //false but should be true
Why would app try to save to PLSharedManagedObjectContext?
The following is a crash report I received from my crash reporting service, HockeyApp. The reason for the failure is a failure to save in PLSharedManagedObjectContext. I (think) I am doing all of my saves in the main app delegate managedObjectContext. Why is the PLSharedManagedObjectContext the one being saved to? I think this is the relevant code: -(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { __ENTERING_METHOD__ DLog(#"info:%#",info); NSURL *assetURL = [info objectForKey:UIImagePickerControllerReferenceURL]; __block UIImage *originalImage = [info objectForKey:UIImagePickerControllerOriginalImage]; CGSize cropSize = CGSizeMake(320,320); CGFloat previewWindowHeight = 100.0f; ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; __block UIImage *previewImage; if (originalImage) { DLog(#"WE DO HAVE AN ORIGINAL IMAGE"); } else { DLog(#"WE DO NOT HAVE AN ORIGINAL IMAGE"); } ImageEditor *imageEditor = [[ImageEditor alloc] initWithNibName:nil bundle:nil]; [imageEditor setRotateEnabled:NO]; [imageEditor setCheckBounds:NO]; [imageEditor setSourceImage:originalImage]; [imageEditor setPreviewHeight1:[NSNumber numberWithDouble:previewWindowHeight]]; [imageEditor setCropSize:cropSize]; imageEditor.doneCallback = ^(UIImage *editedImage, UIImage *originalImageMax1024, BOOL canceled){ picker.delegate = nil; if(!canceled) { if (editedImage) { UIImage *scaledThumbnail = [HFImageEditorViewController getThumbnailForImage:editedImage size:CGSizeMake(PERSON_THUMBNAIL_SIZE,PERSON_THUMBNAIL_SIZE) round:PERSON_THUMBNAIL_ROUND]; [self setObjectCroppedImage:editedImage thumbnail:scaledThumbnail updateHeaderView:YES mocSave:NO]; [self setObjectMainImage:originalImageMax1024 mocSave:NO]; [Helper mocSave]; self.imageToShow = originalImage; } } [Helper controller:self dismissControllerModal:YES]; }; [library assetForURL:assetURL resultBlock:^(ALAsset *asset) { if (!originalImage) { originalImage = [UIImage imageWithCGImage:[[asset defaultRepresentation] fullResolutionImage]]; } [imageEditor setSourceImage:originalImage]; previewImage = [UIImage imageWithCGImage:[asset aspectRatioThumbnail]]; [imageEditor setPreviewImage:previewImage]; [imageEditor reset:NO]; //DLog(#"originalImage.imageOrientation:%d",originalImage.imageOrientation); [picker pushViewController:imageEditor animated:YES]; } failureBlock:^(NSError *error) { DLog(#"Failed to get asset from library"); if (originalImage) { [imageEditor setSourceImage:originalImage]; [imageEditor setPreviewImage:nil]; [imageEditor reset:NO]; [picker pushViewController:imageEditor animated:YES]; } else { [Helper showSimpleAlertWithTitle:NSLocalizedString(#"Image Could Not Be Set", #"Image Could Not Be Set") message:NSLocalizedString(#"Failed to retrieve selected image asset from the Library.", #"Failed to retrieve selected image asset from the Library.")]; [Helper controller:self dismissControllerModal:YES]; } }]; } This is the crash log I am receiving: Incident Identifier: 4DD4FE03-B8D4-4625-9039-64E4EE725AAB CrashReporter Key: 129951E7-CF2A-4BB0-A8AB-7BA954275E29 Hardware Model: iPhone5,2 Process: MyApp [144] Path: /Users/USER/MyApp.app/MyApp Identifier: com.myCom.myApp Version: 1.5.1 Code Type: ARM Parent Process: launchd [1] Date/Time: 2013-11-23 12:15:43 +0000 OS Version: iPhone OS 7.0.4 (11B554a) Report Version: 104 Exception Type: SIGABRT Exception Codes: #0 at 0x3a9031fc Crashed Thread: 0 Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to save context <PLSharedManagedObjectContext: 0x157b6110>: Error Domain=NSCocoaErrorDomain Code=134030 "The operation couldn’t be completed. (Cocoa error 134030.)" (null)' Last Exception Backtrace: 0 CoreFoundation 0x2fff6e83 __exceptionPreprocess + 131 1 libobjc.A.dylib 0x3a3536c7 objc_exception_throw + 38 2 PhotoLibraryServices 0x3667441d __copy_helper_block_279 + 1 3 CoreData 0x2fdd1855 developerSubmittedBlockToNSManagedObjectContextPerform + 89 4 libdispatch.dylib 0x3a8380af _dispatch_client_callout + 23 5 libdispatch.dylib 0x3a83a9a9 _dispatch_main_queue_callback_4CF + 268 6 CoreFoundation 0x2ffc15b1 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 7 CoreFoundation 0x2ffbfe7d __CFRunLoopRun + 1309 8 CoreFoundation 0x2ff2a471 CFRunLoopRunSpecific + 524 9 CoreFoundation 0x2ff2a253 CFRunLoopRunInMode + 106 10 GraphicsServices 0x34c642eb GSEventRunModal + 138 11 UIKit 0x327df845 UIApplicationMain + 1136 12 MyApp 0x0005b10b main (main.m:5) 13 libdyld.dylib 0x3a84cab7 start + 3 Thread 0 Crashed: 0 libsystem_kernel.dylib 0x3a9031fc __pthread_kill + 8 1 libsystem_c.dylib 0x3a8b402d abort + 76 2 MyApp 0x002235c7 uncaught_exception_handler + 27 3 CoreFoundation 0x2fff7185 __handleUncaughtException + 581 4 libobjc.A.dylib 0x3a353927 _objc_terminate() + 175 5 libc++abi.dylib 0x39d191b3 std::__terminate(void (*)()) + 79 6 libc++abi.dylib 0x39d18a09 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 1 7 libobjc.A.dylib 0x3a35379b objc_exception_throw + 250 8 PhotoLibraryServices 0x3667441d __copy_helper_block_279 + 1 9 CoreData 0x2fdd1855 developerSubmittedBlockToNSManagedObjectContextPerform + 89 10 libdispatch.dylib 0x3a8380af _dispatch_client_callout + 23 11 libdispatch.dylib 0x3a83a9a9 _dispatch_main_queue_callback_4CF + 268 12 CoreFoundation 0x2ffc15b1 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 13 CoreFoundation 0x2ffbfe7d __CFRunLoopRun + 1309 14 CoreFoundation 0x2ff2a471 CFRunLoopRunSpecific + 524 15 CoreFoundation 0x2ff2a253 CFRunLoopRunInMode + 106 16 GraphicsServices 0x34c642eb GSEventRunModal + 138 17 UIKit 0x327df845 UIApplicationMain + 1136 18 MyApp 0x0005b10b main (main.m:5) 19 libdyld.dylib 0x3a84cab7 start + 3 Thread 1: 0 libsystem_kernel.dylib 0x3a8f0838 kevent64 + 24 1 libdispatch.dylib 0x3a839623 _dispatch_mgr_thread + 39 Thread 2: 0 libsystem_kernel.dylib 0x3a8f0a84 mach_msg_trap + 20 1 CoreFoundation 0x2ffc1559 __CFRunLoopServiceMachPort + 157 2 CoreFoundation 0x2ffbfc79 __CFRunLoopRun + 793 3 CoreFoundation 0x2ff2a471 CFRunLoopRunSpecific + 524 4 CoreFoundation 0x2ff6e0db CFRunLoopRun + 98 5 CoreMotion 0x305e2369 CLSF_thorntonUpdate_6x6 + 57225 6 libsystem_pthread.dylib 0x3a969c5d _pthread_body + 141 7 libsystem_pthread.dylib 0x3a969bcf _pthread_start + 102 8 libsystem_pthread.dylib 0x3a967cd0 thread_start + 8 Thread 3: 0 libsystem_kernel.dylib 0x3a903c7c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x3a967cc4 start_wqthread + 8 Thread 4: 0 libsystem_kernel.dylib 0x3a903c7c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x3a967cc4 start_wqthread + 8 Thread 5: 0 libsystem_kernel.dylib 0x3a8f0a84 mach_msg_trap + 20 1 CoreFoundation 0x2ffc1559 __CFRunLoopServiceMachPort + 157 2 CoreFoundation 0x2ffbfc79 __CFRunLoopRun + 793 3 CoreFoundation 0x2ff2a471 CFRunLoopRunSpecific + 524 4 CoreFoundation 0x2ff2a253 CFRunLoopRunInMode + 106 5 Foundation 0x309654c1 +[NSURLConnection _resourceLoadLoop:] + 320 6 Foundation 0x309dac37 __NSThread__main__ + 1063 7 libsystem_pthread.dylib 0x3a969c5d _pthread_body + 141 8 libsystem_pthread.dylib 0x3a969bcf _pthread_start + 102 9 libsystem_pthread.dylib 0x3a967cd0 thread_start + 8 Thread 6: 0 libsystem_kernel.dylib 0x3a903440 __select + 20 1 libsystem_pthread.dylib 0x3a969c5d _pthread_body + 141 2 libsystem_pthread.dylib 0x3a969bcf _pthread_start + 102 3 libsystem_pthread.dylib 0x3a967cd0 thread_start + 8 Thread 7: 0 libsystem_kernel.dylib 0x3a903c7c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x3a967cc4 start_wqthread + 8 Thread 8: 0 libsystem_kernel.dylib 0x3a8f0ad4 semaphore_wait_trap + 8 1 MediaToolbox 0x31419a0f fpa_AsyncMovieControlThread + 1755 2 CoreMedia 0x30556217 figThreadMain + 195 3 libsystem_pthread.dylib 0x3a969c5d _pthread_body + 141 4 libsystem_pthread.dylib 0x3a969bcf _pthread_start + 102 5 libsystem_pthread.dylib 0x3a967cd0 thread_start + 8 Thread 9: 0 libsystem_kernel.dylib 0x3a903c7c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x3a967cc4 start_wqthread + 8 Thread 0 crashed with ARM Thread State: pc: 0x3a9031fc r7: 0x27dae3a4 sp: 0x27dae398 r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0xffffffff r4: 0x00000006 r5: 0x3c73018c r6: 0x15734ff0 r8: 0x32d7cdb2 r9: 0x3c730e30 r10: 0x32d62122 r11: 0x0000000e ip: 0x00000148 lr: 0x3a96aa53 cpsr: 0x00000010 EDIT: I think this code in ImageEditor may have something to do with it: - (IBAction)doneAction:(id)sender { __ENTERING_METHOD__ self.view.userInteractionEnabled = NO; [self startTransformHook]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ CGImageRef resultRef = [HFImageEditorViewController newTransformedImage:self.imageView.transform sourceImage:self.sourceImage.CGImage sourceSize:self.sourceImage.size sourceOrientation:self.sourceImage.imageOrientation outputWidth:self.outputWidth ? self.outputWidth : self.sourceImage.size.width cropSize:self.cropSize imageViewSize:self.imageView.bounds.size]; dispatch_async(dispatch_get_main_queue(), ^{ UIImage *transform = [UIImage imageWithCGImage:resultRef scale:1.0 orientation:UIImageOrientationUp]; CGImageRelease(resultRef); UIImage *scaledThumbnail = [HFImageEditorViewController getThumbnailForImage:transform size:_thumbnailSize round:_thumbnailRound]; self.view.userInteractionEnabled = YES; if(self.doneCallback) { self.doneCallback(transform, _sourceImage, NO); } [self endTransformHook]; }); }); } + (UIImage*)getThumbnailForImage:(UIImage*)mySourceImage size:(CGSize)size round:(BOOL)round { //TODO THIS SHOULD BE MOVED TO THE BACKGROUND UIImage *scaledImage = [HFImageEditorViewController scaledImage:mySourceImage toSize:size withQuality:kCGInterpolationHigh]; if (round) { CALayer *imageLayer = [CALayer layer]; imageLayer.frame = CGRectMake(0, 0, scaledImage.size.width, scaledImage.size.height); imageLayer.contents = (id) scaledImage.CGImage; imageLayer.masksToBounds = YES; imageLayer.cornerRadius = scaledImage.size.width/2; UIGraphicsBeginImageContext(scaledImage.size); [imageLayer renderInContext:UIGraphicsGetCurrentContext()]; scaledImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); } return scaledImage; }
PLSharedManagedObjectContext appears to be an undocumented class that's part of PhotoLibraryServices.framework. That framework is itself undocumented, but the fact that it shows up in your backtrace implicates it. As a result I don't think that this exception has anything really to do with your Core Data code. PhotoLibraryServices is using Core Data internally somewhere, and failing to do so. This might mean that you're doing something wrong with your photo handling, or it might be a framework bug. Either way, looking at your own Core Data code will almost certainly miss the point. Having said that, there's also an indication that a performBlock call might have been involved somehow. Depending on what your mocSave method does, there might be a connection.
UIAlertViewStyleSecureTextInput not working with ios 7
i have a issues to use a uialertView with a TextFiled in ios 7. UIAlertView *alert = [[UIAlertView alloc] initWithTitle:#"title" message:nil delegate:self cancelButtonTitle:#"ok" otherButtonTitles:#"cancel", nil]; alert.alertViewStyle = UIAlertViewStyleSecureTextInput; [[alert textFieldAtIndex:0] setKeyboardType:UIKeyboardTypeNumberPad]; [alert show]; but in new SDK of ios 7 Creasing and Cresh Can-sol like AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512 2013-09-09 10:39:51.659 Food.de[912:a0b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]' *** First throw call stack: ( 0 CoreFoundation 0x037a16f4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x02cc08b6 objc_exception_throw + 44 2 CoreFoundation 0x03742616 -[__NSArrayM objectAtIndex:] + 246 3 Food.de 0x0006583f -[HomeViewController addButtonToKeyboard] + 735 4 Food.de 0x00065e8e -[HomeViewController keyboardDidShow:] + 238 5 Foundation 0x02787089 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40 6 CoreFoundation 0x037fd634 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20 7 CoreFoundation 0x0375513b _CFXNotificationPost + 2859 8 Foundation 0x026c0de1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98 9 UIKit 0x01cb8e97 -[UIInputViewTransition postNotificationsForTransitionEnd] + 1054 10 UIKit 0x01caf4b8 __53-[UIPeripheralHost(UIKitInternal) executeTransition:]_block_invoke1329 + 455 11 UIKit 0x0188dc15 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 306 12 UIKit 0x018778bc -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 267 13 UIKit 0x01877ba4 -[UIViewAnimationState animationDidStop:finished:] + 80 14 QuartzCore 0x00cb2e84 _ZN2CA5Layer23run_animation_callbacksEPv + 304 15 libdispatch.dylib 0x0316b4b0 _dispatch_client_callout + 14 16 libdispatch.dylib 0x03159766 _dispatch_main_queue_callback_4CF + 340 17 CoreFoundation 0x03806b6e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14 18 CoreFoundation 0x037477eb __CFRunLoopRun + 1963 19 CoreFoundation 0x03746bf3 CFRunLoopRunSpecific + 467 20 CoreFoundation 0x03746a0b CFRunLoopRunInMode + 123 21 GraphicsServices 0x03e8fa27 GSEventRunModal + 192 22 GraphicsServices 0x03e8f84e GSEventRun + 104 23 UIKit 0x0182bf0b UIApplicationMain + 1225 24 Food.de 0x00006c1d main + 141 25 Food.de 0x00006b85 start + 53 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) if any one develop with ios 7 and know how to solve this problem then help . ..... if alert.alertViewStyle = UIAlertViewStyleSecureTextInput; my xcode Version 5.0 (5A11386k) is not working with ios 7 then we use old strategy like we do for ios 5 ? thanks .
The problem is on your HomeViewController. You have a [__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1] This means you are trying to access an index that doesn't exists, I think on line 246
A DialogViewController with RefreshRequested and EntryElement crash when text entered
A DialogViewController contains an EntryElement and RefreshRequested handler is set (see code below). Run in the simulator, debug mode, type some quick random text (containing spaces) in the EntryElement. Crash will follow. What I am doing wrong ? I guess this is a bug in DialogViewController not retaining some images that is garbage collected. Is there a switch to trace garbage collector and removed objects ? the offending code : [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { // class-level declarations UIWindow window; UINavigationController navController; DialogViewController dv ; public override bool FinishedLaunching (UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow (UIScreen.MainScreen.Bounds); navController = new UINavigationController(); var root = new RootElement("Test") { new Section("Quick type some text") { new EntryElement("that contains spaces", string.Empty, string.Empty) } }; dv = new DialogViewController(root, true); dv.RefreshRequested += HandleDvRefreshRequested; // comment this line fixes the bug window.MakeKeyAndVisible (); if (UIDevice.CurrentDevice.CheckSystemVersion (5, 0)) { window.RootViewController = navController; } else { window.AddSubview (navController.View); } return true; } void HandleDvRefreshRequested (object sender, EventArgs e) { dv.ReloadComplete(); } } Starting iOS simulator 5.0 Launching application Application launched. PID = 4730 Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll [External] Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll [External] Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.dll [External] Thread started: Loaded assembly: /Users/user/Documents/iphone-cinetoile/Cinetoile.UI2/bin/iPhoneSimulator/Debug/MyApp.exe Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/MonoTouch.Dialog-1.dll [External] Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll [External] Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll [External] Stacktrace: at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 at MyApp.Application.Main (string[]) [0x00000] in /Users/user/Documents/MyApp/Main.cs:17 at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) Native stacktrace: 0 MyApp 0x000908ec mono_handle_native_sigsegv + 284 1 MyApp 0x00005c88 mono_sigsegv_signal_handler + 248 2 libSystem.B.dylib 0x9141905b _sigtramp + 43 3 ??? 0xffffffff 0x0 + 4294967295 4 ??? 0x92c013ef 0x0 + 2462061551 5 ??? 0x92c011ee 0x0 + 2462061038 6 ??? 0x987a313c 0x0 + 2558144828 7 CoreGraphics 0x91b49e20 CGDataProviderRetain + 22 8 ??? 0x9880c456 0x0 + 2558575702 9 ImageIO 0x9754a0d2 CGImageReadCreateWithProvider + 185 10 ImageIO 0x97549fee CGImageSourceCreateWithDataProvider + 186 11 CoreGraphics 0x013c0d2f CGImageCreateWithPNGDataProvider + 87 12 WebCore 0x073ca2a5 WKGraphicsCreateImageFromBundleWithName + 373 13 WebCore 0x06c1c5bd _ZN7WebCore15GraphicsContext23drawLineForTextCheckingERKNS_10FloatPointEfNS0_21TextCheckingLineStyleE + 369 14 WebCore 0x06cf6e84 _ZN7WebCore13InlineTextBox28paintSpellingOrGrammarMarkerEPNS_15GraphicsContextERKNS_10FloatPointERKNS_14DocumentMarkerEPNS_11RenderStyleERKNS_4FontEb + 1684 15 WebCore 0x06cf6fb9 _ZN7WebCore13InlineTextBox20paintDocumentMarkersEPNS_15GraphicsContextERKNS_10FloatPointEPNS_11RenderStyleERKNS_4FontEb + 297 16 WebCore 0x06cf33fc _ZN7WebCore13InlineTextBox5paintERNS_9PaintInfoEiiii + 6490 17 WebCore 0x06cec3cd _ZN7WebCore13InlineFlowBox5paintERNS_9PaintInfoEiiii + 1065 18 WebCore 0x0724d24c _ZN7WebCore13RootInlineBox5paintERNS_9PaintInfoEiiii + 64 19 WebCore 0x071a8e2a _ZNK7WebCore17RenderLineBoxList5paintEPNS_20RenderBoxModelObjectERNS_9PaintInfoEii + 638 20 WebCore 0x07142089 _ZN7WebCore11RenderBlock11paintObjectERNS_9PaintInfoEii + 369 21 WebCore 0x0714248f _ZN7WebCore11RenderBlock5paintERNS_9PaintInfoEii + 307 22 WebCore 0x07141615 _ZN7WebCore11RenderBlock13paintChildrenERNS_9PaintInfoEii + 467 23 WebCore 0x071420ab _ZN7WebCore11RenderBlock11paintObjectERNS_9PaintInfoEii + 403 24 WebCore 0x0714248f _ZN7WebCore11RenderBlock5paintERNS_9PaintInfoEii + 307 25 WebCore 0x07141615 _ZN7WebCore11RenderBlock13paintChildrenERNS_9PaintInfoEii + 467 26 WebCore 0x071420ab _ZN7WebCore11RenderBlock11paintObjectERNS_9PaintInfoEii + 403 27 WebCore 0x0714248f _ZN7WebCore11RenderBlock5paintERNS_9PaintInfoEii + 307 28 WebCore 0x07141615 _ZN7WebCore11RenderBlock13paintChildrenERNS_9PaintInfoEii + 467 29 WebCore 0x071420ab _ZN7WebCore11RenderBlock11paintObjectERNS_9PaintInfoEii + 403 30 WebCore 0x0714248f _ZN7WebCore11RenderBlock5paintERNS_9PaintInfoEii + 307 31 WebCore 0x071961b0 _ZN7WebCore11RenderLayer10paintLayerEPS0_PNS_15GraphicsContextERKNS_7IntRectEjPNS_12RenderObjectEPN3WTF7HashMapIPNS_24OverlapTestRequestClientES4_NS9_7PtrHashISC_EENS9_10HashTraitsISC_EENSF_IS4_EEEEj + 3684 32 WebCore 0x0719648c _ZN7WebCore11RenderLayer10paintLayerEPS0_PNS_15GraphicsContextERKNS_7IntRectEjPNS_12RenderObjectEPN3WTF7HashMapIPNS_24OverlapTestRequestClientES4_NS9_7PtrHashISC_EENS9_10HashTraitsISC_EENSF_IS4_EEEEj + 4416 33 WebCore 0x071973bb _ZN7WebCore11RenderLayer5paintEPNS_15GraphicsContextERKNS_7IntRectEjPNS_12RenderObjectE + 101 34 WebCore 0x06bef809 _ZN7WebCore9FrameView13paintContentsEPNS_15GraphicsContextERKNS_7IntRectE + 591 35 WebKit 0x067a51d0 -[WebFrame(WebInternal) _drawRect:contentsOnly:] + 368 36 WebKit 0x067cc83c -[WebHTMLView drawSingleRect:] + 124 37 WebKit 0x067cc786 -[WebHTMLView drawRect:] + 118 38 WebCore 0x07392c2f _ZL12drawCallbackP6WKView6CGRectPv + 95 39 WebCore 0x073cd52c _ZL11_WKViewDrawP9CGContextP6WKView6CGRectb + 492 40 WebCore 0x073cd61f _ZL11_WKViewDrawP9CGContextP6WKView6CGRectb + 735 41 WebCore 0x073cd61f _ZL11_WKViewDrawP9CGContextP6WKView6CGRectb + 735 42 WebCore 0x073cd61f _ZL11_WKViewDrawP9CGContextP6WKView6CGRectb + 735 43 WebCore 0x073cd61f _ZL11_WKViewDrawP9CGContextP6WKView6CGRectb + 735 44 WebCore 0x073cd80e WKViewDisplayRect + 158 45 WebCore 0x073cead0 WKWindowDrawRect + 48 46 WebCore 0x0735daf0 _ZN7WebCore9TileCache9drawLayerEP9TileLayerP9CGContext + 880 47 WebCore 0x07362af1 -[TileLayer drawInContext:] + 49 48 QuartzCore 0x0417212d _ZL16backing_callbackP9CGContextPv + 88 49 QuartzCore 0x0409215d CABackingStoreUpdate_ + 2636 50 QuartzCore 0x04171fd2 _ZN2CA5Layer8display_Ev + 1370 51 QuartzCore 0x0415fcf1 -[CALayer _display] + 33 52 QuartzCore 0x04166281 _ZN2CA5Layer7displayEv + 165 53 QuartzCore 0x0415fd17 -[CALayer display] + 33 54 QuartzCore 0x04169c5c _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 256 55 QuartzCore 0x040effb9 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 395 56 QuartzCore 0x040f1ea6 _ZN2CA11Transaction6commitEv + 374 57 QuartzCore 0x040f1580 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 80 58 CoreFoundation 0x011959ce __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30 59 CoreFoundation 0x0112c670 __CFRunLoopDoObservers + 384 60 CoreFoundation 0x010f84f6 __CFRunLoopRun + 1174 61 CoreFoundation 0x010f7db4 CFRunLoopRunSpecific + 212 62 CoreFoundation 0x010f7ccb CFRunLoopRunInMode + 123 63 GraphicsServices 0x04789879 GSEventRunModal + 207 64 GraphicsServices 0x0478993e GSEventRun + 114 65 UIKit 0x02190a9b UIApplicationMain + 1175 66 ??? 0x0cda47fd 0x0 + 215631869 67 ??? 0x0cc78ea0 0x0 + 214404768 68 ??? 0x0cc78b98 0x0 + 214403992 69 ??? 0x0cc78cee 0x0 + 214404334 70 MyApp 0x00009ff2 mono_jit_runtime_invoke + 722 71 MyApp 0x00169eee mono_runtime_invoke + 126 72 MyApp 0x0016dfd4 mono_runtime_exec_main + 420 73 MyApp 0x001733f5 mono_runtime_run_main + 725 74 MyApp 0x000671f5 mono_jit_exec + 149 75 MyApp 0x002116c9 main + 2825 76 MyApp 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. =================================================================
It's a case of Autocorrection strikes back, aka bug #325 (and quite a few duplicates) and it's not MonoTouch specific. Something, deep down, the simulated iOS gets corrupted and shows up while it wants to draw it's little red line to show something is misspelled. This will only happen in the simulator and only when an UITextField has auto-correction enabled. Turning it off like this: new EntryElement("that contains spaces", string.Empty, string.Empty) { AutocorrectionType = UITextAutocorrectionType.No } will solve the issue (and you can do it only for your simulator builds with a #define).