Bug 14135 - Crash with quotation marks when using U.S. International - PC input source
Summary: Crash with quotation marks when using U.S. International - PC input source
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.1.8
Hardware: Macintosh Mac OS
: High normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-08-21 08:04 UTC by kissling
Modified: 2013-08-22 02:16 UTC (History)
1 user (show)

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

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

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

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


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

Related Links:
Status:
RESOLVED FIXED

Description kissling 2013-08-21 08:04:38 UTC
When using U.S. International - PC as the OS X input source, quotation marks always have to be confirmed with space, as they are also needed for umlauts (https://en.wikipedia.org/wiki/Dead_keys).

Since the latest alpha, Xamarin Studio regularly crashes when using quotation marks.

- When writing the quotation mark, it gets underlined correctly, indicating that it can be turned into an umlaut or to a quotation mark by hitting space.

- When hitting space, the underlined quotation mark is still visible, followed by a finalized quotation mark.
An exception pops up:

System.ArgumentOutOfRangeException:  must be <= charArrayLength (32) was :33
Parameter name: textIndex
  at Mono.TextEditor.TextViewMargin.TranslateToUTF8Index (System.Char[] charArray, UInt32 textIndex, System.UInt32& curIndex, System.UInt32& byteIndex) [0x0008e] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs:1201 
  at Mono.TextEditor.TextViewMargin.ColumnToX (Mono.TextEditor.DocumentLine line, Int32 column) [0x004cd] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs:3062 
  at Mono.TextEditor.TextViewMargin.LocationToPoint (DocumentLocation loc, Boolean useAbsoluteCoordinates) [0x00021] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs:2924 
  at Mono.TextEditor.TextViewMargin.LocationToPoint (DocumentLocation loc) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs:2911 
  at Mono.TextEditor.TextEditor.LocationToPoint (DocumentLocation loc) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs:1169 
  at MonoDevelop.SourceEditor.SourceEditorView.CreateCodeCompletionContext (Int32 triggerOffset) [0x0003f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1780 
  at MonoDevelop.SourceEditor.SourceEditorView.get_CurrentCodeCompletionContext () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1724 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00139] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:128 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00005] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:223 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.CSharp.Formatting.CSharpTextEditorIndentation.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x005d9] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/CSharpTextEditorIndentation.cs:605 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.DocFood.DocFoodTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs:63 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Debugger.ExceptionCaughtTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0006a] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ExceptionCaughtDialog.cs:441 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00007] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:241 




- Hitting OK in the exception dismisses the underlined quotation mark, and work can continue.


- When using a quotation mark as the first character of the line, Xamarin Studio quits after dismissing the exception. Solution state is not saved, and auto-saves have to be used in order to recover typed code.


- Combinations like " followed by ) turn into ) instead of "), as the " is deleted after the exception pops up.




Version information:

=== Xamarin Studio ===

Version 4.1.9 (build 6)
Installation UUID: 938751df-f7a5-457d-b87b-379763e0ada1
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 ===

Version: 4.8.2 (Business Edition)
Android SDK: /Users/***/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

=== 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 ***.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 1 kissling 2013-08-21 08:19:33 UTC
Sometimes, Xamarin Studio is also quit when using a quotation mark mid-line.
At the beginning of lines, it crashes always.
Comment 2 Mike Krüger 2013-08-22 02:16:04 UTC
fixed