Bug 14224 - XCode crashes when opening Storyboard
Summary: XCode crashes when opening Storyboard
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-08-24 07:47 UTC by Christian Rishøj
Modified: 2013-08-24 12:35 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Crash trace from Xcode (90.06 KB, text/plain)
2013-08-24 07:47 UTC, Christian Rishøj
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Christian Rishøj 2013-08-24 07:47:44 UTC
Created attachment 4709 [details]
Crash trace from Xcode

Trace from XCode attached.
Comment 1 Sebastien Pouliot 2013-08-24 10:37:53 UTC
What tool created that storyboard ?
Comment 2 Christian Rishøj 2013-08-24 12:00:48 UTC
The storyboard was created by Xamarin itself. Reproducible with a "blank" storyboard freshly created in the same project. 

Interestingly, things work when opening the storyboard only from within XCode. Perhaps related to the XCode project file generation?
Comment 3 Sebastien Pouliot 2013-08-24 12:06:21 UTC
Can you provide us with all the version numbers of what you're using ?

The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button). 

-> addin: not sure if it's the template ship with XS or something that happens when XS starts Xcode
Comment 4 Christian Rishøj 2013-08-24 12:18:47 UTC
Here are the version numbers:

=== Xamarin Studio ===

Version 4.1.9 (build 6)
Installation UUID: a2c3ebba-03b0-42fb-a504-a5d1b522dea9
Runtime:
	Mono 3.2.2 ((no/a0fc6ba)
	GTK+ 2.24.20 theme: Raleigh
	GTK# (2.12.0.0)
	Package version: 302020000

=== Apple Developer Tools ===

Xcode 5.0 (3329.43)
Build 5A11365x

=== Xamarin.iOS ===

Version: 6.9.6.0 (Business Edition)
Hash: d46e8f2
Branch: 
Build date: 2013-19-08 09:52:00-0400

=== Xamarin.Android ===

Not Installed

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 401090006
Git revision: 123fc693ab9ba2690f93fcfe2cd3499335049ff4
Build date: 2013-08-06 15:11:38+0000
Xamarin addins: ad4a498b75333e43547e87574c1ec8c7cae05de0

=== Operating System ===

Mac OS X 10.8.4
Darwin Christians-MacBook.local 12.4.0 Darwin Kernel Version 12.4.0
    Wed May  1 17:57:12 PDT 2013
    root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
Comment 5 Christian Rishøj 2013-08-24 12:21:10 UTC
I've just tried created a new "iPhone Storyboard" solution, and opening the generated storyboard in this solution works fine. This leads me to believe it has to do with the XCode project files that XS generates for the specific project I'm working on.
Comment 6 Christian Rishøj 2013-08-24 12:23:48 UTC
In the IDE log, I see the following:

ERROR [2013-08-24 18:18:20Z]: Error in code formatter
System.ArgumentException: count < 0
  at Mono.TextEditor.TextDocument.GetTextAt (Int32 offset, Int32 count) [0x00054] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:290 
  at Mono.TextEditor.TextDocument.ICSharpCode.NRefactory.Editor.ITextSource.GetText (Int32 offset, Int32 length) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:1851 
  at ICSharpCode.NRefactory.CSharp.FormattingChanges.<ApplyChanges>m__329 (Int32 o, Int32 l, System.String v) [0x00008] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Formatter/FormattingChanges.cs:62 
  at ICSharpCode.NRefactory.CSharp.FormattingChanges.ApplyChanges (Int32 startOffset, Int32 length, System.Action`3 documentReplace, System.Func`4 filter) [0x000f6] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Formatter/FormattingChanges.cs:99 
  at ICSharpCode.NRefactory.CSharp.FormattingChanges.ApplyChanges (Int32 startOffset, Int32 length) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Formatter/FormattingChanges.cs:62 
  at MonoDevelop.CSharp.Formatting.CSharpFormatter.FormatText (MonoDevelop.CSharp.Formatting.CSharpFormattingPolicy policy, MonoDevelop.Ide.Gui.Content.TextStylePolicy textPolicy, System.String mimeType, System.String input, Int32 startOffset, Int32 endOffset) [0x00126] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/CSharpFormatter.cs:123
Comment 7 Christian Rishøj 2013-08-24 12:35:41 UTC
Turns out this is not related to XS at all. XCode was crashing while scanning the SVN control directory:

8/24/13 6:31:14.342 PM Xcode[14554]:  IDESourceControlFileScanning: Could not find a repository for working copy at <DVTFilePath:0x7ff2de22b1f0:'/Users/christian/Projects/tl-db'>
8/24/13 6:31:14.346 PM Xcode[14554]: -[NSAlert beginSheetModalForWindow:completionHandler:]: unrecognized selector sent to instance 0x7ff2df561a40
8/24/13 6:31:14.346 PM Xcode[14554]: [MT] DVTAssertions: UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[NSAlert beginSheetModalForWindow:completionHandler:]: unrecognized selector sent to instance 0x7ff2df561a40
UserInfo: (null)
Hints: None

My apologies for wasting your time.