Bug 6355 - VS2010 crash when opening Designer since MFA 4.2.5
Summary: VS2010 crash when opening Designer since MFA 4.2.5
Status: RESOLVED DUPLICATE of bug 7149
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-08-01 09:56 UTC by Peter Artelt
Modified: 2012-09-17 11:17 UTC (History)
3 users (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 DUPLICATE of bug 7149

Description Peter Artelt 2012-08-01 09:56:22 UTC
This would crash VS2010 when opening in designer

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:scrollbars="none">
        <TableLayout
            android:minWidth="25px"
            android:minHeight="25px"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:id="@+id/tableLayout1"
            android:stretchColumns="1">
            <TableRow
                android:id="@+id/tableRow1">
                <TextView
                    android:text="Sollzins p.a."
                    android:layout_column="0"
                    android:id="@+id/textView10"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
                <EditText
                    android:inputType="numberDecimal"
                    android:layout_column="1"
                    android:id="@+id/etSollZins"
                    android:text="3,95"
                    android:gravity="right"
                    android:numeric="decimal"
                    android:digits="0123456789,-" />
                <TextView
                    android:text="%"
                    android:layout_column="2"
                    android:id="@+id/textView11"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
            </TableRow>
            <TableRow
                android:id="@+id/tableRow2">
                <TextView
                    android:text="Sollzinsbindung"
                    android:layout_column="0"
                    android:id="@+id/textView12"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
                <EditText
                    android:inputType="number"
                    android:layout_column="1"
                    android:id="@+id/etSollzinsBindung"
                    android:layout_gravity="right"
                    android:text="10" />
                <TextView
                    android:text="Jahre"
                    android:layout_column="2"
                    android:id="@+id/textView13"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
            </TableRow>
            <TableRow
                android:id="@+id/tableRow4">
                <TextView
                    android:text="Sollzins nach Zinsbindung"
                    android:layout_column="0"
                    android:id="@+id/textView19" />
                <EditText
                    android:inputType="numberDecimal"
                    android:layout_column="1"
                    android:id="@+id/etZinsNachFestschreibung"
                    android:gravity="right"
                    android:text="5,00" />
                <TextView
                    android:text="%"
                    android:layout_column="2"
                    android:id="@+id/textView20" />
            </TableRow>
            <TableRow
                android:id="@+id/tableRow5">
                <TextView
                    android:text="Auszahlungskurs"
                    android:layout_column="0"
                    android:id="@+id/textView24" />
                <EditText
                    android:inputType="numberDecimal"
                    android:layout_column="1"
                    android:id="@+id/etAuszahlungskurs"
                    android:gravity="right"
                    android:text="100,00" />
                <TextView
                    android:text="%"
                    android:layout_column="2"
                    android:id="@+id/textView25"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
            </TableRow>
            <TableRow
                android:id="@+id/tableRow6">
                <TextView
                    android:text="Gebühren"
                    android:layout_column="0"
                    android:id="@+id/textView29" />
                <EditText
                    android:inputType="numberDecimal"
                    android:layout_column="1"
                    android:id="@+id/etGebuehren"
                    android:text="0,00"
                    android:gravity="right" />
                <TextView
                    android:text="%"
                    android:layout_column="2"
                    android:id="@+id/textView30"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
            </TableRow>
            <TableRow
                android:id="@+id/tableRow3">
                <TextView
                    android:text="Anfangstilgung"
                    android:layout_column="0"
                    android:id="@+id/textView14"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
                <EditText
                    android:inputType="numberDecimal"
                    android:layout_column="1"
                    android:id="@+id/etTilgung"
                    android:text="1,00"
                    android:gravity="right" />
                <TextView
                    android:text="%"
                    android:layout_column="2"
                    android:id="@+id/textView15"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
            </TableRow>
            <TableRow
                android:id="@+id/tableRow7">
                <TextView
                    android:text="Tilgungsfreie Monate"
                    android:layout_column="0"
                    android:id="@+id/textView34"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
                <EditText
                    android:inputType="number"
                    android:layout_column="1"
                    android:id="@+id/etTilgungsfreieMonate"
                    android:text="0"
                    android:gravity="right" />
            </TableRow>
            <TableRow
                android:id="@+id/tableRow8"
                android:background="@color/listseparator">
                <TextView
                    android:text="Effektivzins bis Sollzinsbindung"
                    android:layout_column="0"
                    android:id="@+id/textView38"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical" />
                <EditText
                    android:inputType="numberDecimal"
                    android:layout_column="1"
                    android:id="@+id/etEffektivZinsSollZinsBindung"
                    android:text="0,00"
                    android:gravity="right"
                    android:layout_height="match_parent" />
                <TextView
                    android:text="%"
                    android:layout_column="2"
                    android:id="@+id/textView39"
                    android:gravity="center_vertical"
                    android:layout_height="match_parent" />
            </TableRow>
        </TableLayout>
        <Button
            android:text="Rechnen"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:id="@+id/btRechnen" />
    </LinearLayout>
</ScrollView>

VS2010 Crash Details:
Problemsignatur:
  Problemereignisname:	CLR20r3
  Problemsignatur 01:	devenv.exe
  Problemsignatur 02:	10.0.40219.1
  Problemsignatur 03:	4d5f2a73
  Problemsignatur 04:	Xamarin.AndroidDesigner
  Problemsignatur 05:	1.0.0.0
  Problemsignatur 06:	500f4165
  Problemsignatur 07:	1c7
  Problemsignatur 08:	f9
  Problemsignatur 09:	System.NullReferenceException
  Betriebsystemversion:	6.1.7601.2.1.0.256.1
  Gebietsschema-ID:	1031

Zusatzinformationen zum Problem:
  LCID:	1033
Comment 1 Paul Stevens 2012-08-11 04:09:43 UTC
I have the same issue, it only crashes on certain layouts though. 

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:stretchColumns="*">
  <TableRow>
    <ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingLeft="10dp"
    android:src="@drawable/cube"
    android:layout_gravity="left|center"/>
    <TextView
    android:id="@+id/info_text"
    android:gravity="center"
    android:layout_gravity="center"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" />
  </TableRow>
  <TableRow>
    <TextView
    android:id="@+id/legal_text"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="10dip"
    android:textStyle="italic"
    android:layout_span="2"
    android:layout_margin="8dip"
    android:textColor="#cccccc" />
  </TableRow>
</TableLayout>

Problem signature:
  Problem Event Name:	CLR20r3
  Problem Signature 01:	devenv.exe
  Problem Signature 02:	10.0.40219.1
  Problem Signature 03:	4d5f2a73
  Problem Signature 04:	Xamarin.AndroidDesigner
  Problem Signature 05:	1.0.0.0
  Problem Signature 06:	500f4165
  Problem Signature 07:	1c7
  Problem Signature 08:	f9
  Problem Signature 09:	System.NullReferenceException
  OS Version:	6.1.7601.2.1.0.256.1
  Locale ID:	2057

Additional information about the problem:
  LCID:	1033

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt
Comment 2 Paul Stevens 2012-08-16 08:26:24 UTC
Some more information.

Once it has crashed on a specific layout, it will continue to crash on that layout no matter what corrections are made, even after a restart of the machine.

Additionally Visual studio will throw a Memory Could not be read at 0x0000000 error each time the designer attempts to load the project.
Comment 3 Goncalo Oliveira 2012-09-14 10:59:34 UTC
This seems to be related, so I'll add the details.

I'm having problems with the Visual Studio designer in the 4.2.5 release.
The screen locks aren't working, or better said, can't be reached. Sometimes the lock isn't visible at all, other times I can see the lock (briefly) under the text or under the right element - no interactivity is possible.
I need to set differences in the layouts for different screen sizes
(normal, large, etc) and this stops me from doing so. As a workaround I'm using Monodevelop when I need to set different layout settings - though, it has other bugs.
Comment 4 Lluis Sanchez 2012-09-17 11:17:36 UTC
Goncalo, this is an unrelated issue. Could you please file a new bug report for it? thanks.

*** This bug has been marked as a duplicate of bug 7149 ***