Program crashes when trying to open HyperCard stack - livecode
I get a crash when I try to open a HyperCard stack to convert it to LiveCode format. Using LiveCode Community 7.0.1. Are there any reasons for this that anyone knows? Here's a bit from the problem details:
Process: LiveCode-Community [69341]
Path: /Applications/LiveCode Community 7.0.1.app/Contents/MacOS/LiveCode-Community
Identifier: com.runrev.livecode
Version: 7.0.1.10020 [RC 2] (7.0.1.10020 [RC 2])
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: LiveCode-Community [69341]
User ID: 502
Date/Time: 2015-07-01 11:04:58.427 +0100
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: F145239F-111C-2DD7-D8F5-0EA338CB5568
Sleep/Wake UUID: 40F13F91-3DAC-4E13-A409-3F01E823A448
Time Awake Since Boot: 420000 seconds
Time Since Wake: 2000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000000001000-0000000000942000 [ 9476K] r-x/rwx SM=COW /Applications/LiveCode Community 7.0.1.app/Contents/MacOS/LiveCode-Community
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_c.dylib 0x94305920 strlen + 16
1 com.runrev.livecode 0x001b0ab8 MCObject::setname_cstring(char const*) + 40
2 com.runrev.livecode 0x0017635a MCHcbmap::build() + 1562
3 com.runrev.livecode 0x001776b3 MCHcbkgd::build(MCHcstak*, MCStack*) + 339
4 com.runrev.livecode 0x001796a4 MCHcstak::build() + 1124
5 com.runrev.livecode 0x00179ad5 hc_import(__MCString*, MCSystemFileHandle*, MCStack*&) + 277
6 com.runrev.livecode 0x00124d76 MCDispatch::doreadfile(__MCString*, __MCString*, MCSystemFileHandle*&, MCStack*&) + 2086
7 com.runrev.livecode 0x0012512d MCDispatch::loadfile(__MCString*, MCStack*&) + 493
8 com.runrev.livecode 0x0012717c MCDispatch::findstackname(__MCName*) + 188
9 com.runrev.livecode 0x0020f0f4 MCStack::findstackname_string(__MCString*) + 84
10 com.runrev.livecode 0x00104902 MCGo::findstack(MCExecContext&, __MCString*, Chunk_term, MCCard*&) + 322
11 com.runrev.livecode 0x00104b53 MCGo::exec_ctxt(MCExecContext&) + 307
12 com.runrev.livecode 0x00171689 MCHandler::exec(MCExecContext&, MCParameter*) + 1081
13 com.runrev.livecode 0x001b2ca7 MCObject::exechandler(MCHandler*, MCParameter*) + 471
14 com.runrev.livecode 0x001b3bc1 MCObject::handleself(Handler_type, __MCName*, MCParameter*) + 193
15 com.runrev.livecode 0x001b3c82 MCObject::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 50
16 com.runrev.livecode 0x002d3bf2 MCKeywordsExecCommandOrFunction(MCExecContext&, bool, MCHandler*, MCParameter*, __MCName*, unsigned short, unsigned short, bool, bool) + 866
17 com.runrev.livecode 0x00215e92 MCComref::exec_ctxt(MCExecContext&) + 98
18 com.runrev.livecode 0x002d3fc2 MCKeywordsExecuteStatements(MCExecContext&, MCStatement*, Exec_errors) + 162
19 com.runrev.livecode 0x002d4183 MCKeywordsExecuteRepeatStatements(MCExecContext&, MCStatement*, unsigned short, unsigned short, bool&) + 35
20 com.runrev.livecode 0x002d471e MCKeywordsExecRepeatFor(MCExecContext&, MCStatement*, MCExpression*, MCVarref*, File_unit, unsigned short, unsigned short) + 1246
21 com.runrev.livecode 0x0018e529 MCRepeat::exec_ctxt(MCExecContext&) + 105
22 com.runrev.livecode 0x002d3fc2 MCKeywordsExecuteStatements(MCExecContext&, MCStatement*, Exec_errors) + 162
23 com.runrev.livecode 0x002d4158 MCKeywordsExecIf(MCExecContext&, MCExpression*, MCStatement*, MCStatement*, unsigned short, unsigned short) + 88
24 com.runrev.livecode 0x0018da4c MCIf::exec_ctxt(MCExecContext&) + 60
25 com.runrev.livecode 0x00171689 MCHandler::exec(MCExecContext&, MCParameter*) + 1081
26 com.runrev.livecode 0x001b2ca7 MCObject::exechandler(MCHandler*, MCParameter*) + 471
27 com.runrev.livecode 0x001b3bc1 MCObject::handleself(Handler_type, __MCName*, MCParameter*) + 193
28 com.runrev.livecode 0x001b3c82 MCObject::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 50
29 com.runrev.livecode 0x00123c41 MCDispatch::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 353
30 com.runrev.livecode 0x00201412 MCStack::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 482
31 com.runrev.livecode 0x00201412 MCStack::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 482
32 com.runrev.livecode 0x000db72a MCCard::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 362
33 com.runrev.livecode 0x001b3cbe MCObject::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 110
34 com.runrev.livecode 0x001b3cbe MCObject::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 110
35 com.runrev.livecode 0x002d3bf2 MCKeywordsExecCommandOrFunction(MCExecContext&, bool, MCHandler*, MCParameter*, __MCName*, unsigned short, unsigned short, bool, bool) + 866
36 com.runrev.livecode 0x00215e92 MCComref::exec_ctxt(MCExecContext&) + 98
37 com.runrev.livecode 0x002d3fc2 MCKeywordsExecuteStatements(MCExecContext&, MCStatement*, Exec_errors) + 162
38 com.runrev.livecode 0x002d3ee7 MCKeywordsExecSwitch(MCExecContext&, MCExpression*, MCExpression**, unsigned int, short, unsigned short*, MCStatement*, unsigned short, unsigned short) + 567
39 com.runrev.livecode 0x0018eeaf MCSwitch::exec_ctxt(MCExecContext&) + 95
40 com.runrev.livecode 0x00171689 MCHandler::exec(MCExecContext&, MCParameter*) + 1081
41 com.runrev.livecode 0x001b2ca7 MCObject::exechandler(MCHandler*, MCParameter*) + 471
42 com.runrev.livecode 0x001b3bc1 MCObject::handleself(Handler_type, __MCName*, MCParameter*) + 193
43 com.runrev.livecode 0x001b3c82 MCObject::handle(Handler_type, __MCName*, MCParameter*, MCObject*) + 50
44 com.runrev.livecode 0x001b1911 MCObject::message(__MCName*, MCParameter*, unsigned char, unsigned char, unsigned char) + 433
45 com.runrev.livecode 0x001b1723 MCObject::message_with_valueref_args(__MCName*, void*) + 115
46 com.runrev.livecode 0x002f45e0 MCPlatformHandleMenuSelect(MCPlatformMenu*, unsigned int) + 464
47 com.runrev.livecode 0x002e00ef -[com_runrev_livecode_MCMenuDelegate menuItemSelected:] + 207
48 libobjc.A.dylib 0x9aa47853 -[NSObject performSelector:withObject:] + 70
49 com.apple.AppKit 0x938407ee __36-[NSApplication sendAction:to:from:]_block_invoke + 51
50 libsystem_trace.dylib 0x90846c03 _os_activity_initiate + 89
51 com.apple.AppKit 0x93840707 -[NSApplication sendAction:to:from:] + 602
52 com.apple.AppKit 0x938403ad -[NSMenuItem _corePerformAction] + 479
53 com.apple.AppKit 0x9384009e -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 162
54 com.apple.AppKit 0x9383f71a -[NSMenu _performActionWithHighlightingForItemAtIndex:sendAccessibilityNotification:] + 79
55 com.apple.AppKit 0x93911e3b __38-[NSMenu performActionForItemAtIndex:]_block_invoke + 52
56 libsystem_trace.dylib 0x90846c03 _os_activity_initiate + 89
57 com.apple.AppKit 0x93911dff -[NSMenu performActionForItemAtIndex:] + 141
58 com.apple.AppKit 0x93911d5e -[NSMenu _internalPerformActionForItemAtIndex:] + 45
59 com.apple.AppKit 0x93911d29 -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 106
60 com.apple.AppKit 0x93911b82 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 120
61 com.apple.AppKit 0x938270b7 NSSLMMenuEventHandler + 679
62 com.apple.HIToolbox 0x9526f5a4 _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
63 com.apple.HIToolbox 0x950ad681 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2291
64 com.apple.HIToolbox 0x950ac65c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 402
65 com.apple.HIToolbox 0x950c0f25 SendEventToEventTarget + 88
66 com.apple.HIToolbox 0x9526f422 SendHICommandEvent(unsigned long, HICommand const*, unsigned long, unsigned long, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 447
67 com.apple.HIToolbox 0x9513327c SendMenuCommandWithContextAndModifiers + 72
68 com.apple.HIToolbox 0x95133220 SendMenuItemSelectedEvent + 207
69 com.apple.HIToolbox 0x951330db FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 145
70 com.apple.HIToolbox 0x952c1517 MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 775
71 com.apple.HIToolbox 0x9513387b _HandleMenuSelection2 + 512
72 com.apple.HIToolbox 0x95133665 _HandleMenuSelection + 55
73 com.apple.AppKit 0x937387f6 _NSHandleCarbonMenuEvent + 359
74 com.apple.AppKit 0x93667ae9 _DPSNextEvent + 1710
75 com.apple.AppKit 0x93666dc5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 350
76 com.runrev.livecode 0x002da8e9 MCPlatformWaitForEvent(double, bool) + 505
77 com.runrev.livecode 0x002f251c MCScreenDC::wait(double, unsigned char, unsigned char) + 460
78 com.runrev.livecode 0x0024568d X_main_loop_iteration() + 237
79 com.runrev.livecode 0x002f6673 MCPlatformHandleApplicationRun(bool&) + 19
80 com.runrev.livecode 0x002d9ef4 -[com_runrev_livecode_MCApplicationDelegate runMainLoop] + 84
81 com.apple.Foundation 0x95dcb166 __NSFireDelayedPerform + 489
82 com.apple.CoreFoundation 0x9148a006 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
83 com.apple.CoreFoundation 0x91489ab4 __CFRunLoopDoTimer + 1316
84 com.apple.CoreFoundation 0x9150554f __CFRunLoopDoTimers + 351
85 com.apple.CoreFoundation 0x91441531 __CFRunLoopRun + 2081
86 com.apple.CoreFoundation 0x91440aa6 CFRunLoopRunSpecific + 390
87 com.apple.CoreFoundation 0x9144090b CFRunLoopRunInMode + 123
88 com.apple.HIToolbox 0x950d38f8 RunCurrentEventLoopInMode + 262
89 com.apple.HIToolbox 0x950d3503 ReceiveNextEventCommon + 192
90 com.apple.HIToolbox 0x950d342c _BlockUntilNextEventMatchingListInModeWithFilter + 99
91 com.apple.AppKit 0x93667721 _DPSNextEvent + 742
92 com.apple.AppKit 0x93666dc5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 350
93 com.apple.AppKit 0x9365b77c -[NSApplication run] + 907
94 com.runrev.livecode 0x002dd057 main + 759
95 com.runrev.livecode 0x00002925 start + 53
First of all, this is a LiveCode bug. LiveCode should not crash and any crash is to be treated as a bug.
Second, there are a few reasons why a HyperCard stack can cause LiveCode to crash. To avoid this, try the following steps.
Turn off messages when importing a HyperCard stack. HyperCard scripts
may be slightly incompatible with LiveCode and the combination of
problems with LiveCode's debugger and problems in the HyperTalk
scripts may result in a crash.
Make sure to compact the HyperCard stack in HyperCard before taking
it to the Mac OS X environment. Garbage in the stack can cause a
crash.
Before copying the stack from Mac OS 9 to OSX, make a zip file of
your stack and zip it on the OSX machine. This preserves a few bits
that may be important.
Open the stack in HyperCard and go through all the cards. If there is
a corrupt card in the stack, copy all cards except for the corrupt
card, to a different HyperCard stack and import that into LiveCode.
Related
Crash in MetalContext with Xamarin
We have a crash in MetalContext with over 3000 crashes in a single day on iOS 10 devices only. We are unable to track down the root of the error and google reveals nobody else have the same issue. Is there anyone who has any clues to where we can begin to look? CRASH_INFO_ENTRY_0 Assertion failed: (_mcimpl->device == [_mcimpl->queue device]), function MetalContext, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/QuartzCore/QuartzCore-449.40.9/LayerKit/ogl/ogl-metal.mm, line 1005. tid_403 0 libsystem_kernel.dylib 0x18d19e8e8 __ulock_wait + 8 1 libdispatch.dylib 0x18d06c0d8 _dispatch_ulock_wait + 48 2 libdispatch.dylib 0x18d06c200 _dispatch_thread_event_wait_slow + 36 3 libdispatch.dylib 0x18d069df8 _dispatch_barrier_sync_f_slow + 236 4 QuartzCore 0x1913e7090 CABackingStoreGetFrontTexture(CABackingStore*) + 92 5 QuartzCore 0x1913e7118 CABackingStorePrepareFrontTexture + 64 6 QuartzCore 0x1914db0a4 CA::Layer::prepare_commit(CA::Transaction*) + 320 7 QuartzCore 0x1914577f8 CA::Context::commit_transaction(CA::Transaction*) + 264 8 QuartzCore 0x19147ec58 CA::Transaction::commit() + 512 9 QuartzCore 0x19147f678 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 120 10 CoreFoundation 0x18e17b7dc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 11 CoreFoundation 0x18e17940c __CFRunLoopDoObservers + 372 12 CoreFoundation 0x18e17989c __CFRunLoopRun + 1024 13 CoreFoundation 0x18e0a8048 CFRunLoopRunSpecific + 444 14 GraphicsServices 0x18fb2e198 GSEventRunModal + 180 15 UIKit 0x1940942fc -[UIApplication _run] + 684 16 UIKit 0x19408f034 UIApplicationMain + 208 17 NDC2010 0x100a321d4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (<unknown>:1) 18 NDC2010 0x1009ae138 Xamarin_iOS_UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63) 19 NDC2010 0x100526288 NDC2010_NDC2010_NDC2010Application_Main_string__ + 28620 20 NDC2010 0x100921ba4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 4204776 21 Mono 0x1019aa4e8 mono_jit_runtime_invoke + 1772 22 Mono 0x101a1ad64 do_runtime_invoke + 112 23 Mono 0x101a1d348 mono_runtime_exec_main + 832 24 Mono 0x101a1cf64 mono_runtime_run_main + 764 25 Mono 0x10198eb04 mono_jit_exec + 236 26 NDC2010 0x10051ed3c xamarin_main (monotouch-main.m:487) 27 NDC2010 0x101291970 main (main.arm64.m:133) 28 libdispatch.dylib 0x18d08c5b8 (Missing)
My app kept crashing with the same log, what fixed for me was a quick reset of device, i traced it to webView usage. I cant reset device every time so further testing revealed that i was using xcode 7.3 to build for ios10 that was the problem, after updating to xcode 8 and rebuilding the app i no longer get this crash. Hope this helps
Does Mac OS call display methods such as drawRect: concurrently from different threads? Isn't that dangerous when accessing the data model?
We have a subclass of NSTableRowView that overwrites drawSelectionInRect: (which is internally called by drawRect:). This method needs to access the NSManagedObjectContext, so as a sanity check we have an assertion there that we are in the main thread. Now it turns out that sometimes Apple calls drawRect from a non-main-thread (example stack trace below). Does this mean it could even do that concurrently from two different threads? I.e. we have to take care of thread safety ourselves when overwriting drawRect: and using the data model? ERROR: Assertion failed: [NSThread isMainThread]: (ZS_AppDelegate.m:1287) ( 0 tomedo_kunden 0x00000001008af46a -[ZS_AppDelegate loggedInUser] + 554 1 tomedo_kunden 0x00000001016feca7 +[Nutzer loggedInUser] + 71 2 tomedo_kunden 0x0000000100f33397 +[ZSUserDefaults(MacOS) colorFromPreferences:] + 167 3 tomedo_kunden 0x00000001003d8265 -[Besuch(BesuchCategory) baseTextColor] + 101 4 tomedo_kunden 0x000000010071f846 -[ZSTableRowView drawSelectionInRect:] + 806 5 AppKit 0x00007fffd189d26c -[NSTableRowView drawRect:] + 242 6 AppKit 0x00007fffd184eba3 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1318 7 AppKit 0x00007fffd184f053 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 2518 8 AppKit 0x00007fffd184e548 __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 267 9 AppKit 0x00007fffd184e071 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 1589 10 AppKit 0x00007fffd184da36 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 80 11 AppKit 0x00007fffd19839ff -[_NSBackingLayerContents drawLayer:inContext:] + 162 12 QuartzCore 0x00007fffd96a1e42 -[CALayer drawInContext:] + 257 13 AppKit 0x00007fffd19834d8 -[_NSTiledLayer drawTile:inContext:] + 624 14 AppKit 0x00007fffd198320e -[_NSTiledLayerContents drawLayer:inContext:] + 176 15 QuartzCore 0x00007fffd96a1e42 -[CALayer drawInContext:] + 257 16 AppKit 0x00007fffd1983155 -[NSTileLayer drawInContext:] + 169 17 QuartzCore 0x00007fffd9584a38 CABackingStoreUpdate_ + 3740 18 QuartzCore 0x00007fffd96a1a3c ___ZN2CA5Layer8display_Ev_block_invoke + 75 19 QuartzCore 0x00007fffd96a169d _ZN2CA5Layer8display_Ev + 1803 20 AppKit 0x00007fffd198306c -[NSTileLayer display] + 119 21 QuartzCore 0x00007fffd9695546 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 572 22 QuartzCore 0x00007fffd9695671 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35 23 QuartzCore 0x00007fffd968ae88 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280 24 QuartzCore 0x00007fffd9581d55 _ZN2CA11Transaction6commitEv + 475 25 AppKit 0x00007fffd19701d9 __58-[_NSScrollingConcurrentVBLMonitor _updateScrollAnimation]_block_invoke + 972 26 AppKit 0x00007fffd196aa3a -[_NSScrollingConcurrentSharedData threadSafePropertyAccess:] + 44 27 AppKit 0x00007fffd196d127 -[_NSScrollingConcurrentVBLMonitor _updateScrollAnimation] + 672 28 AppKit 0x00007fffd196c84e -[_NSScrollingConcurrentVBLMonitor _synchronizeForVBLSerialNumber:timestamp:updateDuration:] + 561 29 AppKit 0x00007fffd196c5ad __42-[_NSScrollingConcurrentVBLMonitor resume]_block_invoke + 218 30 AppKit 0x00007fffd196c4ca __45-[NSScreen(NSScreenUpdate) addUpdateHandler:]_block_invoke_2 + 212 31 libdispatch.dylib 0x000000010345ffcc _dispatch_client_callout + 8 32 libdispatch.dylib 0x0000000103476bca _dispatch_continuation_pop + 1025 33 libdispatch.dylib 0x000000010346c6bc _dispatch_source_latch_and_call + 195 34 libdispatch.dylib 0x0000000103462e15 _dispatch_source_invoke + 1106 35 libdispatch.dylib 0x00000001034768f0 _dispatch_continuation_pop + 295 36 libdispatch.dylib 0x000000010346deda _dispatch_async_redirect_invoke + 777 37 libdispatch.dylib 0x0000000103462247 _dispatch_root_queue_drain + 671 38 libdispatch.dylib 0x0000000103461f58 _dispatch_worker_thread3 + 114 39 libsystem_pthread.dylib 0x00000001034d78c2 _pthread_wqthread + 1299 40 libsystem_pthread.dylib 0x00000001034d739d start_wqthread + 13 )
NSView subclasses can draw concurrently in recent releases of OS X. This behavior can be turned off by overriding canDrawConcurrently and returning NO. You might find it preferable to separate the view from the model a little more and isolate the data to be rendered from the CoreData managed data a bit; pull the data to be rendered out into a local-only representation and let AppKit concurrently update the view. https://developer.apple.com/reference/appkit/nsview/1483425-candrawconcurrently
Xcode 6.1.1 crashes when opening project. Why?
After upgrading Xcode to 6.1.1, there's one project I just can't open anymore. It happens while "Loading xxx...". Here's the dump: Process: Xcode [9343] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 6.1.1 (6611) Build Info: IDEFrameworks-6611000000000000~4 App Item ID: 497799835 App External ID: 810788292 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [9343] User ID: 503 Date/Time: 2014-12-04 09:13:16.198 -0500 OS Version: Mac OS X 10.10.2 (14C68k) Report Version: 11 Anonymous UUID: 4D866B4F-CB26-6063-CCCD-E67B869C790D Sleep/Wake UUID: AFB5AAC7-3418-4089-9431-D5F33891A437 Time Awake Since Boot: 12000 seconds Time Since Wake: 1100 seconds Crashed Thread: 10 Dispatch queue: IBPlatformToolRequestQueue.IBCocoaTouchFramework-EightAndLater Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: ProductBuildVersion: 6A2008a UNCAUGHT EXCEPTION (IBAssertionFailure): ASSERTION FAILURE: [item ibBaselineCount] >= 1 Reason: An item that references the first attribute must have multiple baselines File: /SourceCache/IBAutolayoutFoundationIOS/IDEInterfaceBuilder-6254/AutolayoutFoundation/Model/IBAutolayoutCommon.m:221 Method: CGFloat IBLayoutAttributeValueOfAttributeForItemInCoordinateSpaceOfItem(IBLayoutAttribute, NSObject<IBAutolayoutItem> *__strong, NSObject<IBAutolayoutItem> *__strong, IBUserInterfaceLayoutDirection) UserInfo: { IBAbstractPlatformToolExceptionBacktrace = " 0. CoreFoundation 0x000000010e8d9f1d __exceptionPreprocess\n 1. libobjc.A.dylib 0x000000010d5c0bb7 objc_exception_throw\n 2. CoreFoundation 0x000000010e8d9b79 -[NSException raise]\n 3. IBAutolayoutFoundation 0x000000010cc7cb9a IBLayoutAttributeValueOfAttributeForItemInCoordinateSpaceOfItem\n 4. IBAutolayoutFoundation 0x000000010ccaef34 -[IBLayoutConstraint roundingAdjustmentWithUserInterfaceLayoutDirection:]\n 5. IBAutolayoutFoundation 0x000000010cc8f1c3 -[IBAutolayoutEngine _attemptToAddConstraint:toView:returningConstraintsOrConstraintAbstractionsMakingSystemOverConstrained:constraintsOrAbstractionsForRepresentedConstraintsBlock:]\n 6. IBAutolayoutFoundation 0x000000010cc8f43d -[IBAutolayoutEngine attemptToAddConstraint:toView:returningConstraintsMakingSystemOverConstrained:]\n 7. IBAutolayoutFoundation 0x000000010cc63009 +[IBAutolayoutArbiter attemptToAddConstraint:byModifyingLayoutEngine:mutuallyExclusiveConstraintBreakageStrategy:mutableConstraintsToAdd:mutableConstraintsToRemove:]\n 8. IBAutolayoutFoundation 0x000000010cc8d6be -[IBAutolayoutEngine performEngineBootstrappingConstraintAdditionOperationForAddingConstraint:]\n 9. IBAutolayoutFoundation 0x000000010cc8dc44 __90-[IBAutolayoutEngine iterateViewsAndGenerateRepresentedConstraintsAndMapToRealConstraints]_block_invoke662\n 10. CoreFoundation 0x000000010e813a45 __NSDictionaryEnumerate\n 11. IBAutolayoutFoundation 0x000000010cc8d9c6 -[IBAutolayoutEngine iterateViewsAndGenerateRepresentedConstraintsAndMapToRealConstraints]\n 12. IBAutolayoutFoundation 0x000000010cc882f3 -[IBAutolayoutEngine initWithArbitrationUnit:options:]\n 13. IBAutolayoutFoundation 0x000000010cc6e818 -[IBAutolayoutArbitrationUnit computeStatus]\n 14. ??? 0x000000010b0987a5 [IBCocoaTouchTool computeAutolayoutStatusForRequest:document:]\n 15. IBFoundation 0x000000010cde08ef __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke\n 16. IBFoundation 0x000000010cde0686 -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]\n 17. IBFoundation 0x000000010cde0350 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke\n 18. libdispatch.dylib 0x0000000111ed5af4 _dispatch_client_callout\n 19. libdispatch.dylib 0x0000000111ec2e95 _dispatch_barrier_sync_f_slow_invoke\n 20. libdispatch.dylib 0x0000000111ed5af4 _dispatch_client_callout\n 21. libdispatch.dylib 0x0000000111ec1265 _dispatch_main_queue_callback_4CF\n 22. CoreFoundation 0x000000010e841fe9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__\n 23. CoreFoundation 0x000000010e804eeb __CFRunLoopRun\n 24. CoreFoundation 0x000000010e804486 CFRunLoopRunSpecific\n 25. Foundation 0x000000010d17db42 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]\n 26. IBFoundation 0x000000010cdbf955 -[IBAbstractPlatformTool startServingReceiveChannel:]\n 27. IBFoundation 0x000000010cdbfa2f -[IBAbstractPlatformTool startServingSocket:]\n 28. IBFoundation 0x000000010cdbfcf2 +[IBAbstractPlatformTool main]\n 29. ??? 0x000000010b0cae90 [IBViewRenderer .cxx_destruct]\n 30. libdyld.dylib 0x0000000111f06145 start"; } Hints: None Backtrace: 0 0x00007fff91dae654 __exceptionPreprocess (in CoreFoundation) 1 0x00000001018f7274 DVTFailureHintExceptionPreprocessor (in DVTFoundation) 2 0x00007fff9497f76e objc_exception_throw (in libobjc.A.dylib) 3 0x00007fff91dae209 -[NSException raise] (in CoreFoundation) 4 0x000000010bc8c9d9 -[IBAbstractMessageChannelToolProxy _errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:shouldRaiseOnFailures:waitForCrashLog:] (in IDEInterfaceBuilderKit) 5 0x000000010bc8c8fd -[IBAbstractMessageChannelToolProxy errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:] (in IDEInterfaceBuilderKit) 6 0x000000011054c06e (in IDEInterfaceBuilderCocoaTouchIntegration) 7 0x00000001105413d3 (in IDEInterfaceBuilderCocoaTouchIntegration) 8 0x000000010ba8d51d -[IBPlatformToolRequester processRequests] (in IDEInterfaceBuilderKit) 9 0x000000010192dc9c __DVTDispatchAsync_block_invoke (in DVTFoundation) 10 0x00007fff94d8d323 _dispatch_call_block_and_release (in libdispatch.dylib) 11 0x00007fff94d88c13 _dispatch_client_callout (in libdispatch.dylib) 12 0x00007fff94d8c365 _dispatch_queue_drain (in libdispatch.dylib) 13 0x00007fff94d8decc _dispatch_queue_invoke (in libdispatch.dylib) 14 0x00007fff94d8b6b7 _dispatch_root_queue_drain (in libdispatch.dylib) 15 0x00007fff94d99fe4 _dispatch_worker_thread3 (in libdispatch.dylib) 16 0x00007fff96cac637 _pthread_wqthread (in libsystem_pthread.dylib) 17 0x00007fff96caa40d start_wqthread (in libsystem_pthread.dylib) abort() called Application Specific Signatures: IBAssertionFailure Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff91dae66c __exceptionPreprocess + 172 1 DVTFoundation 0x00000001018f7274 DVTFailureHintExceptionPreprocessor + 194 2 libobjc.A.dylib 0x00007fff9497f76e objc_exception_throw + 43 3 CoreFoundation 0x00007fff91dae209 -[NSException raise] + 9 4 IDEInterfaceBuilderKit 0x000000010bc8c9d9 -[IBAbstractMessageChannelToolProxy _errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:shouldRaiseOnFailures:waitForCrashLog:] + 178 5 IDEInterfaceBuilderKit 0x000000010bc8c8fd -[IBAbstractMessageChannelToolProxy errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:] + 98 6 IDEInterfaceBuilderCocoaTouchIntegration 0x000000011054c06e IBUISegmentConfiguration + 4812 7 IDEInterfaceBuilderCocoaTouchIntegration 0x00000001105413d3 IBIsObjectIllegalCocoaTouchOutletEndPoint + 10699 8 IDEInterfaceBuilderKit 0x000000010ba8d51d -[IBPlatformToolRequester processRequests] + 1161 9 DVTFoundation 0x000000010192dc9c __DVTDispatchAsync_block_invoke + 106 10 libdispatch.dylib 0x00007fff94d8d323 _dispatch_call_block_and_release + 12 11 libdispatch.dylib 0x00007fff94d88c13 _dispatch_client_callout + 8 12 libdispatch.dylib 0x00007fff94d8c365 _dispatch_queue_drain + 1100 13 libdispatch.dylib 0x00007fff94d8decc _dispatch_queue_invoke + 202 14 libdispatch.dylib 0x00007fff94d8b6b7 _dispatch_root_queue_drain + 463 15 libdispatch.dylib 0x00007fff94d99fe4 _dispatch_worker_thread3 + 91 16 libsystem_pthread.dylib 0x00007fff96cac637 _pthread_wqthread + 729 17 libsystem_pthread.dylib 0x00007fff96caa40d start_wqthread + 13 Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff9730d136 __psynch_cvwait + 10 1 com.apple.Foundation 0x00007fff979cb220 -[NSCondition waitUntilDate:] + 343 2 com.apple.Foundation 0x00007fff979c10d8 -[NSConditionLock lockWhenCondition:beforeDate:] + 232 3 com.apple.dt.IBFoundation 0x00000001082c8ea6 -[IBSemaphore decrementWithTimeout:] + 179 4 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010ba8ccea -[IBPlatformToolRequester waitForRequestWithID:timeout:] + 352 5 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb8f6f6 -[IBDocumentAutolayoutManager autolayoutStatusForArbitrationUnitContainingObject:] + 200 6 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb903ea -[IBDocumentAutolayoutManager isItemMisplaced:] + 69 7 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb90a4b __61-[IBDocumentAutolayoutManager itemsWithCleanAutolayoutStatus]_block_invoke + 42 8 com.apple.dt.IBFoundation 0x00000001082598cd -[NSSet(IBSetAdditions) ib_setByFilteringUsingBlock:] + 246 9 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb909f0 -[IBDocumentAutolayoutManager itemsWithCleanAutolayoutStatus] + 145 10 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb829a7 -[IBDocumentAutolayoutManager preserveCleanAutolayoutStatusDuring:] + 55 11 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb6b59c -[IBDocument preserveCleanAutolayoutStatusDuring:] + 79 12 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bd2c9be -[IBResourceManager synchronizeObjectPropertyValuesWithVariantContext] + 112 13 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bd29de7 __66-[IBResourceManager setupVariantContextWithContainerRepositories:]_block_invoke + 870 14 com.apple.dt.IDEKit 0x0000000102ef7cac -[IDEMediaResourceVariantContext registerVariantContextObserverWithOptions:block:] + 194 15 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bd299a0 -[IBResourceManager setupVariantContextWithContainerRepositories:] + 493 16 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bd29f4b -[IBResourceManager setResourceProvidingContainer:] + 196 17 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb45d77 -[IBDocument setResourceProvidingContainer:] + 79 18 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb449eb -[IBDocument refreshWorkspaceSourcedContent] + 120 19 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bb44cbe -[IBDocument registerWorkspaceDocument:forEditorViewController:] + 271 20 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010ba2fa3b -[IBAbstractDocumentEditor viewDidInstall] + 166 21 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000010bd7ebb8 -[IBStoryboardDocumentEditor viewDidInstall] + 51 22 com.apple.dt.DVTKit 0x0000000101f4240f -[DVTViewController _didInstallContentView:] + 244 23 com.apple.dt.DVTKit 0x0000000101d458bc -[DVTControllerContentView _viewDidInstall] + 330 24 com.apple.dt.DVTKit 0x0000000101d4516c -[DVTControllerContentView viewDidMoveToWindow] + 97 25 com.apple.AppKit 0x00007fff904a0997 -[NSView _setWindow:] + 3274 26 com.apple.AppKit 0x00007fff9049dc83 -[NSView addSubview:] + 463 27 com.apple.AppKit 0x00007fff9054aea3 -[NSView setSubviews:] + 947 28 com.apple.dt.DVTKit 0x0000000101d379a1 -[DVTBorderedView setContentView:] + 193 29 com.apple.dt.IDEKit 0x0000000102928f43 -[IDEEditorContext _setEditorView] + 324 30 com.apple.dt.IDEKit 0x0000000102ae75eb -[IDEEditorContext setupNewEditor:] + 946 31 com.apple.dt.IDEKit 0x0000000102ae91f2 __91-[IDEEditorContext _openNavigableItem:documentExtension:document:shouldInstallEditorBlock:]_block_invoke + 1311 32 com.apple.dt.IDEKit 0x000000010293c01b -[IDEEditorContext _performBlockInsideReentrantGuard:] + 132 33 com.apple.dt.IDEKit 0x000000010293be6e -[IDEEditorContext _openNavigableItem:documentExtension:document:shouldInstallEditorBlock:] + 3521 34 com.apple.dt.IDEKit 0x000000010296f805 -[IDEEditorContext _openNavigableItem:withContentsOfURL:documentExtension:shouldInstallEditorBlock:] + 1713 35 com.apple.dt.IDEKit 0x0000000102aeace0 -[IDEEditorContext _notifyDelegateAndOpenNavigableItem:withContentsURL:documentExtensionIdentifier:locationToSelect:annotationRepresentedObject:stateDictionary:annotationWantsIndicatorAnimation:exploreAnnotationRepresentedObject:highlightSelection:skipSubDocumentNavigationUnlessEditorIsReplaced:] + 3652 36 com.apple.dt.IDEKit 0x0000000102aec74b -[IDEEditorContext _notifyDelegateAndOpenEditorHistoryItem:previousHistoryItemOrNil:skipSubDocumentNavigationUnlessEditorIsReplaced:] + 955 37 com.apple.dt.IDEKit 0x0000000102ae82a7 -[IDEEditorContext _openEditorHistoryItem:previousHistoryItemOrNil:skipSubDocumentNavigationUnlessEditorIsReplaced:] + 381 38 com.apple.dt.IDEKit 0x000000010296d9fe -[IDEEditorContext _openEditorHistoryItem:updateHistory:] + 346 39 com.apple.dt.IDEKit 0x000000010296cc01 -[IDEEditorContext _openEditorHistoryItemFromStateSaving:] + 448 40 com.apple.dt.IDEKit 0x00000001029a217d -[IDEEditorBasicMode _setPersistentRepresentation:forIdentifier:] + 519 41 com.apple.dt.IDEKit 0x0000000102db60be __60-[IDEEditorModeViewController _setPersistentRepresentation:]_block_invoke + 84 42 com.apple.CoreFoundation 0x00007fff91ce3536 __53-[__NSArrayI enumerateObjectsWithOptions:usingBlock:]_block_invoke + 70 43 com.apple.CoreFoundation 0x00007fff91ce3469 -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 297 44 com.apple.dt.IDEKit 0x00000001029688ce -[IDEEditorModeViewController _setPersistentRepresentation:] + 201 45 com.apple.dt.IDEKit 0x00000001029686d1 -[IDEEditorModeViewController revertStateWithDictionary:] + 170 46 com.apple.dt.DVTFoundation 0x000000010177797b -[DVTStateToken _pullStateFromDictionary:] + 327 47 com.apple.dt.DVTFoundation 0x000000010177779d -[DVTStateToken pullStateFromRepository] + 168 48 com.apple.dt.IDEKit 0x0000000102948f18 -[IDEViewController revertState] + 48 49 com.apple.dt.IDEKit 0x0000000102922bc0 -[IDEEditorArea _updateStateSavingRegistrations] + 442 50 com.apple.dt.IDEKit 0x000000010294b48f -[IDEEditorArea _refreshEditorContextsAndPreserveCurrentEditorHistoryStack:] + 705 51 com.apple.dt.IDEKit 0x0000000102b27d0a __31-[IDEEditorArea viewDidInstall]_block_invoke + 429 52 com.apple.dt.DVTFoundation 0x00000001019081ab __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke183 + 83 53 com.apple.dt.DVTFoundation 0x0000000101883d78 DVTInvokeWithStrongOwnership + 75 54 com.apple.dt.DVTFoundation 0x00000001017375fc -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] + 328 55 com.apple.Foundation 0x00007fff9799aa93 NSKeyValueNotifyObserver + 382 56 com.apple.Foundation 0x00007fff97999c68 NSKeyValueDidChange + 463 57 com.apple.Foundation 0x00007fff9799e7cd -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] + 118 58 com.apple.dt.IDEFoundation 0x0000000102335a12 __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke + 321 59 com.apple.dt.IDEFoundation 0x0000000102335c6a __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke321 + 59 60 com.apple.Foundation 0x00007fff97ace108 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7 61 com.apple.Foundation 0x00007fff979ba725 -[NSBlockOperation main] + 97 62 com.apple.Foundation 0x00007fff979993bc -[__NSOperationInternal _start:] + 653 63 com.apple.Foundation 0x00007fff97998fc3 __NSOQSchedule_f + 184 64 libdispatch.dylib 0x00007fff94d88c13 _dispatch_client_callout + 8 65 libdispatch.dylib 0x00007fff94d94cbf _dispatch_main_queue_callback_4CF + 861 66 com.apple.CoreFoundation 0x00007fff91d01c79 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 67 com.apple.CoreFoundation 0x00007fff91cbe30f __CFRunLoopRun + 2159 68 com.apple.CoreFoundation 0x00007fff91cbd858 CFRunLoopRunSpecific + 296 69 com.apple.HIToolbox 0x00007fff8fcc52df RunCurrentEventLoopInMode + 235 70 com.apple.HIToolbox 0x00007fff8fcc505a ReceiveNextEventCommon + 431 71 com.apple.HIToolbox 0x00007fff8fcc4e9b _BlockUntilNextEventMatchingListInModeWithFilter + 71 72 com.apple.AppKit 0x00007fff90488cf1 _DPSNextEvent + 964 73 com.apple.AppKit 0x00007fff904884a0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194 74 com.apple.dt.DVTKit 0x0000000101e5e6fd -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 237 75 com.apple.AppKit 0x00007fff9047c463 -[NSApplication run] + 594 76 com.apple.AppKit 0x00007fff90467914 NSApplicationMain + 1832 77 libdyld.dylib 0x00007fff9496e5c9 start + 1 While I see the problem originates from IB (An item that references the first attribute must have multiple baselines), I have no clue what to try and change in my storyboard file, which is rather big. Anyone had the same fate? Any ideas?
I may suggest to open your storyboard file as source and remove baseline constraints from scenes You may remove it one by one to localize error reason
In my case the issue was that I had some contraints that were conflicting. I opened Main.storyboard with a text editor and removed the contraints tags from a couple of views and it let me open the file without crashing.
What does this stack trace indicate? Crash caused by Xamarin.Media.MediaPicker.TakePhotoAsync on iOS8
What does this stack trace indicate? Crash caused by Xamarin.Media.MediaPicker.TakePhotoAsync on iOS8 on iPad2 I've logged a bug at... https://bugzilla.xamarin.com/show_bug.cgi?id=22853 But I'd like to make sure that it is not something I'm doing. It works fine on iOS7. OS Version: iOS 8.0 (12A365) Report Version: 105 Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000002c Triggered by Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x3ab05dfc __pthread_kill + 8 1 libsystem_pthread.dylib 0x3ab85d0e pthread_kill + 58 2 libsystem_c.dylib 0x3aaa5934 abort + 72 3 TouchContainer 0x00bd5b3a mono_handle_native_sigsegv (mini-exceptions.c:2360) 4 TouchContainer 0x00bdef72 mono_sigsegv_signal_handler (mini.c:6868) 5 libsystem_platform.dylib 0x3ab800a0 _sigtramp + 40 6 UIKit 0x30212304 _UIViewTopDownSubtreeTraversal + 260 7 UIKit 0x30212304 _UIViewTopDownSubtreeTraversal + 260 8 UIKit 0x305ab842 -[UIView(UIConstraintBasedLayout_EngineDelegate) _invalidateSystemLayoutSizeFittingSizeAtEngineDelegateLevel] + 118 9 UIKit 0x300429c0 -[UIView(AdditionalLayoutSupport) _setNeedsUpdateConstraintsNeedingLayout:] + 68 10 UIKit 0x305aa4e2 -[UIView(AdditionalLayoutSupport) _setSubviewWantsAutolayoutTripWantsAutolayout:] + 206 11 UIKit 0x2ff88588 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1352 12 UIKit 0x2ff88032 -[UIView(Hierarchy) addSubview:] + 26 13 UIKit 0x3024b2a2 __56-[UIPresentationController _transplantView:toSuperview:]_block_invoke + 242 14 UIKit 0x3024af8c -[UIPresentationController _performBlockWithoutTriggeringResponderEvents:] + 96 15 UIKit 0x3024b1a6 -[UIPresentationController _transplantView:toSuperview:] + 78 16 UIKit 0x3024e474 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 768 17 UIKit 0x3024d358 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 148 18 UIKit 0x2fffb916 _applyBlockToCFArrayCopiedToStack + 306 19 UIKit 0x2ff777da _afterCACommitHandler + 454 20 CoreFoundation 0x2caca842 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18 21 CoreFoundation 0x2cac7f24 __CFRunLoopDoObservers + 272 22 CoreFoundation 0x2cac8326 __CFRunLoopRun + 910 23 CoreFoundation 0x2ca15dac CFRunLoopRunSpecific + 472 24 CoreFoundation 0x2ca15bbe CFRunLoopRunInMode + 102 25 GraphicsServices 0x33d4904c GSEventRunModal + 132 26 UIKit 0x2ffe0efc UIApplicationMain + 1436 27 TouchContainer 0x001d81ec wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 268 28 TouchContainer 0x0018533c MonoTouch_UIKit_UIApplication_Main_string___intptr_intptr (UIApplication.cs:122) 29 TouchContainer 0x001852fc MonoTouch_UIKit_UIApplication_Main_string___string_string (UIApplication.cs:88) 30 TouchContainer 0x000ad800 Touch_Container_Application_Main_string__ (MainClass.cs:84) 31 TouchContainer 0x0036e9b4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196 32 TouchContainer 0x00be115c mono_jit_runtime_invoke (mini.c:6730) 33 TouchContainer 0x00c2059a mono_runtime_invoke (object.c:2831) 34 TouchContainer 0x00c242a2 mono_runtime_exec_main (object.c:4088) 35 TouchContainer 0x00c240ea mono_runtime_run_main (object.c:3714) 36 TouchContainer 0x00bcea74 mono_jit_exec (driver.g.c:1009) 37 TouchContainer 0x00c59894 monotouch_main (monotouch-main.m:469) 38 TouchContainer 0x00bb0da0 main (main.armv7.m:65) 39 TouchContainer 0x000a9024 start + 36
It seems that what I was doing wrong was calling TakePhotoAsync from the Clicked event of an ActionSheet. The action sheet was still presented when the photo picker was presented. Pre iOS8 there must have been defensive code to silently work in this apparently illegal situation. The solution was to run the TakePhotoAsync in a BeginInvokeOnMainThread call. This queues the call on the main thread and allows the ActionSheet some space to finish closing.
Google Maps SDK for iOS crashing on startup using Monotouch bindings
I am trying to test out the new Google SDK for iOS using the GoogleMapsSample on GitHub, however, every time I run the app crashes trying to create an instance of GMSMapView. This is happening when trying to run on both the simulator and the device. I have enabled the SDK from the developer console and updated the GMSServices.ProvideAPIKey call to use my iOS API key, from what I have read that is pretty much all that's required? I did notice this bug which was logged against the actual SDK which mentions an issue relating to OpenGL so not sure if that's what the issue is here. However, as I can't get access to a log using the simulator I ran it on the device and checked the log out using XCode and the error does seem to relate to this - stack trace: Incident Identifier: {Incident Id} CrashReporter Key: {CrashReporter key} Hardware Model: iPhone5,2 Process: GoogleMapsSample [6085] Path: /var/mobile/Applications/{AppId}/GoogleMapsSample.app/GoogleMapsSample Identifier: GoogleMapsSample Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2013-02-27 18:28:21.300 +0000 OS Version: iOS 6.0.2 (10A551) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x00000180 Crashed Thread: 6 Last Exception Backtrace: 0 CoreFoundation 0x372913e2 __exceptionPreprocess + 158 1 libobjc.A.dylib 0x33cc995e objc_exception_throw + 26 2 CoreData 0x32330828 +[NSEntityDescription entityForName:inManagedObjectContext:] + 100 3 GoogleMapsSample 0x0010a3c6 -[GMSTileDataCache fetchTilesImmediateWithPredicate:sortDescriptor:completionHandler:] (GMSTileDataCache.mm:794) 4 GoogleMapsSample 0x00106af0 __47-[GMSTileDataCache startWithCompletionHandler:]_block_invoke_0 (GMSTileDataCache.mm:170) 5 libdispatch.dylib 0x3096478e _dispatch_call_block_and_release + 6 6 libdispatch.dylib 0x30967b36 _dispatch_queue_drain + 138 7 libdispatch.dylib 0x30965678 _dispatch_queue_invoke + 40 8 libdispatch.dylib 0x3096860e _dispatch_root_queue_drain + 206 9 libdispatch.dylib 0x309687d4 _dispatch_worker_thread2 + 88 10 libsystem_c.dylib 0x3337f7ec _pthread_wqthread + 356 11 libsystem_c.dylib 0x3337f680 start_wqthread + 4 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 dyld 0x2fe9bcf6 ImageLoaderMachOCompressed::trieWalk(unsigned char const*, unsigned char const*, char const*) + 42 1 dyld 0x2fe9be88 ImageLoaderMachOCompressed::findExportedSymbol(char const*, ImageLoader const**) const + 72 2 dyld 0x2fe96ca4 ImageLoaderMachO::findExportedSymbol(char const*, bool, ImageLoader const**) const + 28 3 dyld 0x2fe93592 ImageLoader::findExportedSymbolInDependentImagesExcept(char const*, ImageLoader const**, ImageLoader const**&, ImageLoader const**, ImageLoader const**) const + 50 4 dyld 0x2fe936f0 ImageLoader::findExportedSymbolInImageOrDependentImages(char const*, ImageLoader::LinkContext const&, ImageLoader const**) const + 64 5 dyld 0x2fe91d12 dlsym + 474 6 libdyld.dylib 0x37ad79c6 dlsym + 54 7 libGFXShared.dylib 0x3362e5c4 gfxInitializeLibrary + 1256 8 GLEngine 0x379bce6a gliInitializeLibrary + 42 9 OpenGLES 0x36a9fa4e eagl_init + 418 10 OpenGLES 0x36a9f6a4 -[EAGLSharegroup initWithAPI:sharedWithCompute:] + 116 11 OpenGLES 0x36a9e45e -[EAGLContext initWithAPI:properties:] + 186 12 OpenGLES 0x36a9e2f2 -[EAGLContext initWithAPI:sharedWithCompute:] + 138 13 GoogleMapsSample 0x00081ada -[GMSIOSGLContext initWithAPI:] (GMSIOSGLContext.mm:14) 14 GoogleMapsSample 0x001275b6 gmscore::renderer::GMSIOSGLContextPool::GMSIOSGLContextPool() (GLContextPool.mm:108) 15 GoogleMapsSample 0x0012733a __GetGLContextPool_block_invoke_0 (GLContextPool.mm:204) 16 libdispatch.dylib 0x309645d8 _dispatch_client_callout + 20 17 libdispatch.dylib 0x30965586 dispatch_once_f + 42 18 GoogleMapsSample 0x001272da gmscore::renderer::GLContextPool::GetGLContextPool() (once.h:68) 19 GoogleMapsSample 0x00142b60 -[GMSEntityRendererView initWithFrame:context:] (GMSEntityRendererView.mm:53) 20 GoogleMapsSample 0x001562be -[GMSGestureHandlerView initWithFrame:context:gestures:] (GMSGestureHandlerView.mm:282) 21 GoogleMapsSample 0x000fc6d6 -[GMSVectorMapView initWithFrame:connection:tileServiceRegistry:tileRequestCoordinator:serverControlledParameters:resourceManager:resources:networkMonitor:context:flags:locationPipeline:] (GMSVectorMapView.mm:245) 22 GoogleMapsSample 0x00097bc6 -[GMSVectorMapViewBridge sharedInit:] (GMSVectorMapViewBridge.mm:108) 23 GoogleMapsSample 0x000977f0 -[GMSVectorMapViewBridge initWithFrame:camera:] (GMSVectorMapViewBridge.mm:84) 24 GoogleMapsSample 0x00080caa +[GMSMapView mapWithFrame:camera:] (GMSMapView.m:36) 25 GoogleMapsSample 0x00183058 wrapper_managed_to_native_ApiDefinition_Messaging_IntPtr_objc_msgSend_RectangleF_GMSCamera_intptr_intptr_System_Drawing_RectangleF_GoogleMaps_GMSCamera + 456 26 GoogleMapsSample 0x004ff57c GoogleMapsSample_MapViewController_LoadView (MapViewController.cs:21) 27 GoogleMapsSample 0x00edae94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196 28 GoogleMapsSample 0x018ebd84 mono_jit_runtime_invoke (mini.c:5783) 29 GoogleMapsSample 0x0195b644 mono_runtime_invoke (object.c:2790) 30 GoogleMapsSample 0x018d9816 native_to_managed_trampoline_GoogleMapsSample_MapViewController_LoadView (registrar.m:10129) 31 UIKit 0x3805d41c -[UIViewController loadViewIfRequired] + 64 32 UIKit 0x3809dd2c -[UIWindow addRootViewControllerViewIfPossible] + 60 33 UIKit 0x38099ac8 -[UIWindow _setHidden:forced:] + 360 34 UIKit 0x380db19c -[UIWindow makeKeyAndVisible] + 56 35 GoogleMapsSample 0x01549600 wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_void_objc_msgSend_intptr_intptr + 64 36 GoogleMapsSample 0x004ff22c GoogleMapsSample_AppDelegate_FinishedLaunching_MonoTouch_UIKit_UIApplication_MonoTouch_Foundation_NSDictionary (AppDelegate.cs:35) 37 GoogleMapsSample 0x00edae94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196 38 GoogleMapsSample 0x018ebd84 mono_jit_runtime_invoke (mini.c:5783) 39 GoogleMapsSample 0x0195b644 mono_runtime_invoke (object.c:2790) 40 GoogleMapsSample 0x018c9608 native_to_managed_trampoline_GoogleMapsSample_AppDelegate_FinishedLaunching (registrar.m:5515) 41 UIKit 0x3809ea74 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248 42 UIKit 0x3809e5f8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164 43 UIKit 0x38096806 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694 44 UIKit 0x3803ecea -[UIApplication handleEvent:withNewEvent:] + 1006 45 UIKit 0x3803e778 -[UIApplication sendEvent:] + 68 46 UIKit 0x3803e1ba _UIApplicationHandleEvent + 6194 47 GraphicsServices 0x315235f4 _PurpleEventCallback + 588 48 GraphicsServices 0x31523222 PurpleEventCallback + 30 49 CoreFoundation 0x372663e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32 50 CoreFoundation 0x37266386 __CFRunLoopDoSource1 + 134 51 CoreFoundation 0x3726520a __CFRunLoopRun + 1378 52 CoreFoundation 0x371d8238 CFRunLoopRunSpecific + 352 53 CoreFoundation 0x371d80c4 CFRunLoopRunInMode + 100 54 UIKit 0x38095440 -[UIApplication _run] + 664 55 UIKit 0x3809228c UIApplicationMain + 1116 56 GoogleMapsSample 0x01576fa8 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 236 57 GoogleMapsSample 0x004fef5c GoogleMapsSample_Application_Main_string__ (Main.cs:17) 58 GoogleMapsSample 0x00edae94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196 59 GoogleMapsSample 0x018ebd84 mono_jit_runtime_invoke (mini.c:5783) 60 GoogleMapsSample 0x0195b644 mono_runtime_invoke (object.c:2790) 61 GoogleMapsSample 0x0195e3aa mono_runtime_exec_main (object.c:3972) 62 GoogleMapsSample 0x01961cce mono_runtime_run_main (object.c:3602) 63 GoogleMapsSample 0x01905be6 mono_jit_exec (driver.c:1125) 64 GoogleMapsSample 0x019ae5f4 main (main.m:445) 65 GoogleMapsSample 0x0016d20c start + 36 Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x378c25d0 kevent64 + 24 1 libdispatch.dylib 0x30969d22 _dispatch_mgr_invoke + 806 2 libdispatch.dylib 0x30965374 _dispatch_mgr_thread + 32 Thread 2: 0 libsystem_kernel.dylib 0x378d2d98 __workq_kernreturn + 8 1 libsystem_c.dylib 0x3337fad6 _pthread_workq_return + 14 2 libsystem_c.dylib 0x3337f7f2 _pthread_wqthread + 362 3 libsystem_c.dylib 0x3337f680 start_wqthread + 4 Thread 3: 0 libsystem_kernel.dylib 0x378c1e80 semaphore_wait_trap + 8 1 GoogleMapsSample 0x01900992 mono_sem_wait (mono-semaphore.c:115) 2 GoogleMapsSample 0x019a0cea finalizer_thread (gc.c:1078) 3 GoogleMapsSample 0x0198bff6 start_wrapper (threads.c:784) 4 GoogleMapsSample 0x018f3942 thread_start_routine (wthreads.c:287) 5 GoogleMapsSample 0x019392dc GC_start_routine (pthread_support.c:1468) 6 libsystem_c.dylib 0x3338a0de _pthread_start + 306 7 libsystem_c.dylib 0x33389fa4 thread_start + 4 Thread 4 name: WebThread Thread 4: 0 libsystem_kernel.dylib 0x378c1e30 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x378c1fd0 mach_msg + 48 2 CoreFoundation 0x372662b6 __CFRunLoopServiceMachPort + 126 3 CoreFoundation 0x3726502c __CFRunLoopRun + 900 4 CoreFoundation 0x371d8238 CFRunLoopRunSpecific + 352 5 CoreFoundation 0x371d80c4 CFRunLoopRunInMode + 100 6 WebCore 0x38ef9a58 _ZL12RunWebThreadPv + 440 7 libsystem_c.dylib 0x3338a0de _pthread_start + 306 8 libsystem_c.dylib 0x33389fa4 thread_start + 4 Thread 5: 0 libsystem_kernel.dylib 0x378d2d98 __workq_kernreturn + 8 1 libsystem_c.dylib 0x3337fad6 _pthread_workq_return + 14 2 libsystem_c.dylib 0x3337f7f2 _pthread_wqthread + 362 3 libsystem_c.dylib 0x3337f680 start_wqthread + 4 Thread 6 name: Dispatch queue: com.google.maps.TileDataCacheQueue Thread 6 Crashed: 0 libsystem_kernel.dylib 0x378d2350 __pthread_kill + 8 1 libsystem_c.dylib 0x333a7fb2 pthread_kill + 54 2 libsystem_c.dylib 0x333e4366 abort + 90 3 GoogleMapsSample 0x019330a4 mono_handle_native_sigsegv (mini-exceptions.c:2325) 4 GoogleMapsSample 0x018ea55e mono_sigsegv_signal_handler (mini.c:5878) 5 libsystem_c.dylib 0x333b1d38 _sigtramp + 40 6 GoogleMapsSample 0x01994b34 mono_domain_get (domain.c:1818) 7 GoogleMapsSample 0x0195b644 mono_runtime_invoke (object.c:2790) 8 GoogleMapsSample 0x019c0058 monotouch_throw_monotouch_exception (monotouch-glue.m:1420) 9 GoogleMapsSample 0x019c00e8 monotouch_exception_handler (monotouch-glue.m:1426) 10 CoreFoundation 0x372916cc __handleUncaughtException + 624 11 libobjc.A.dylib 0x33cc9a46 _ZL15_objc_terminatev + 126 12 libc++abi.dylib 0x361ee118 _ZL19safe_handler_callerPFvvE + 76 13 libc++abi.dylib 0x361ee1b0 std::terminate() + 16 14 libc++abi.dylib 0x361ef59a __cxa_throw + 118 15 libobjc.A.dylib 0x33cc999e objc_exception_throw + 90 16 CoreData 0x32330828 +[NSEntityDescription entityForName:inManagedObjectContext:] + 100 17 GoogleMapsSample 0x0010a3c6 -[GMSTileDataCache fetchTilesImmediateWithPredicate:sortDescriptor:completionHandler:] (GMSTileDataCache.mm:794) 18 GoogleMapsSample 0x00106af0 __47-[GMSTileDataCache startWithCompletionHandler:]_block_invoke_0 (GMSTileDataCache.mm:170) 19 libdispatch.dylib 0x30964790 _dispatch_call_block_and_release + 8 20 libdispatch.dylib 0x30967b36 _dispatch_queue_drain + 138 21 libdispatch.dylib 0x30965678 _dispatch_queue_invoke + 40 22 libdispatch.dylib 0x30968610 _dispatch_root_queue_drain + 208 23 libdispatch.dylib 0x309687d4 _dispatch_worker_thread2 + 88 24 libsystem_c.dylib 0x3337f7ee _pthread_wqthread + 358 25 libsystem_c.dylib 0x3337f680 start_wqthread + 4 Thread 6 crashed with ARM Thread State (32-bit): r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3a484524 r4: 0x00000006 r5: 0x0aa4c000 r6: 0x01a14b1e r7: 0x0aa4af9c r8: 0x00000000 r9: 0x3a480898 r10: 0x01a14b44 r11: 0x05a9385c ip: 0x00000148 sp: 0x0aa4af90 lr: 0x333a7fb7 pc: 0x378d2350 cpsr: 0x00000010 Version info: Mono 2.10.11 (mono-2-10/2baeee2) GTK 2.24.14 GTK# (2.12.0.0) Package version: 210110000 Xcode 4.5.1 (1842) Build 4G1004 Monotouch: 6.2.0.65 Any ideas?
Update #2 Google suggested a workaround and it has been implemented. I have successfully deployed to device :) you can find the working solution on MonoTouch-Bindings Repo Google will fix this on their upcoming release as stated here. Happy Coding Update There is a bug on Google Maps that makes it impossible to use it in Xamarin.iOS, this bug has been reported to google here http://code.google.com/p/gmaps-api-issues/issues/detail?id=5018 Please Star it so google notices and fixes it faster ;) I have updated the bindings to version 1.1.0 of Google Maps you can find them here https://github.com/mono/monotouch-bindings/tree/master/GoogleMaps Please note I have not updated the sample to reflect the Api changes yet. Hope this helps Alex
Xamarin did not update to the newer version since they did the last update on 14 december. I believe that this crash relates to this issue. Maybe the API keys you can generate today are just build for 1.1.0 and newer.