Bug 12970 - Xamarin Studio crashes when closing Android Designer tab
Summary: Xamarin Studio crashes when closing Android Designer tab
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 4.0.9
Hardware: PC Windows
: Normal normal
Target Milestone: 4.2.4 (from master)
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-06-30 13:36 UTC by Corey Sunwold
Modified: 2014-02-10 16:29 UTC (History)
3 users (show)

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:

Description Corey Sunwold 2013-06-30 13:36:54 UTC
Description of Problem:
When viewing a .axml file in Xamarin Studio, if you double click the text of a button to change the text and immediately close the tab Xamarin Studio crashes.

Steps to reproduce the problem:
1. Open Xamarin Studio
2. Click File -> New Solution
3. Choose C# -> Android -> Android Ice Cream Sandwich Application
4. Enter a name for the solution and Click OK
4. In the Solution explorer, navigate to Resources\layout\Main.axml
5. Open Main.axml and wait for the Android designer to completely load
6. Double click the text of the button on the generated axml file, the text should now be editable
7. Click the X on the current tab to close the tab.

Actual Results:
A dialog message appears with the text "Xamarin Studio has stopped working" and Xamarin Studio crashes

Expected Results:
The tab for Main.axml should close

How often does this happen? 
Every time these steps are followed.

Additional Information:
An unhandled exception of type 'System.StackOverflowException' occurred in pango-sharp.dll
Comment 1 Lluis Sanchez 2013-07-01 12:59:33 UTC
This has been fixed. The fix will be included in upcoming releases.
Comment 2 Nischal 2014-01-20 03:24:07 UTC
We have checked and seeing error System.Reflection.TargetInvocationException"
if Cursor position is in "Text field" and X button for current tab (.axml file) is clicked. Hence reopening this issue.

Screencast: http://screencast.com/t/3kSR3j2jGc

Supplement Info:
Error Details: https://gist.github.com/saurabh360/f052396e0dfeef540eb0
Ide Log: https://gist.github.com/saurabh360/f519543c6d3003bed07e

Environment Info:
Xamarin Studio
Version 4.2.3 (build 127)
Git revision: 781819ed590c05a48201be53eb9602b56a4c1fde

Xam.Android 4.13.0-33(Mac master)
Xam.Android 4.13.0-4 (Window master)
Comment 3 Lluis Sanchez 2014-01-29 12:39:21 UTC
Fixed in 4.2.4
Comment 4 Prashant manu 2014-02-10 07:24:12 UTC
We have checked and now Xamarin Studio does not crashes when closing Android Designer tab.

Screencast for this: http://screencast.com/t/WUfx6nzT

Environment Info:
XS 4.2.4 (build 14)
Build Information
Git revision: d36f82139fd61a0cda68d5baabb1c7b8402116b9
Xamarin addins: 79a1e35d2f486ba15541d74724e764c81878ab16
Xam.Android 4.12.0-22