Bug 22713 - Designer Crashes when adding editable text fields
Summary: Designer Crashes when adding editable text fields
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.16.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2014-09-05 19:53 UTC by graeme
Modified: 2015-07-02 09:13 UTC (History)
3 users (show)

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


Attachments
Screen Shot of error after EditText element is dragged onto interface builder (826.68 KB, image/png)
2014-09-08 19:28 UTC, graeme
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 for Bug 22713 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description graeme 2014-09-05 19:53:47 UTC
If I drag an editable text field onto the designer for android it crashes with "The layout could not be loaded: java.lang.System.arraycopy..."
Comment 1 Rajneesh Kumar 2014-09-08 05:28:57 UTC
I have checked this issue and not able to reproduce it. to reproduce this I have followed the instruction given in bug description. I observed that I an able to drag editable text field onto the designer for android without getting any crash or exception. I also able to deploy the application successfully.

Could you please provide us your environment info, steps to reproduce this issue ? Please let me know what I am missing to reproduce this. That will be helpful to reproduce this issue at our end.

Screencast: http://www.screencast.com/t/PnQMsDCpf

Environment Info:

=== Xamarin Studio ===

Version 5.3 (build 440)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Runtime:
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.Mac ===

Version: 1.10.0.10 (Enterprise Edition)

=== Xamarin.Android ===

Version: 4.16.0 (Enterprise Edition)
Android SDK: /Users/MM/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.iOS ===

Version: 7.4.0.108 (Enterprise Edition)
Hash: 77efa3f
Branch: 
Build date: 2014-08-26 07:59:55-0400

=== Build Information ===

Release ID: 503000440
Git revision: accb55419539e512cff857b14b80ec3107996511
Build date: 2014-09-01 08:53:05-04
Xamarin addins: 6dbac4b3a32df080bf98cde838ce89e573a92859

=== Operating System ===

Mac OS X 10.9.4
Darwin MacMini.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 2 graeme 2014-09-08 19:27:25 UTC
The first time this occurred was when I was walking through the Xamarin turtorial for Hello, Android http://developer.xamarin.com/guides/android/getting_started/hello,android/

I have tried shutting down Xamarin / shutting down my computer / and creating new android applications and the problem still persists

It appears to happen for any of the EditText elements

I have also experienced some permgen space exceptions that I'm not if tie in with this at all?

=== Xamarin Studio ===

Version 5.3 (build 440)
Installation UUID: dcceae34-dd3f-4b1b-9b67-63f3741e811f
Runtime:
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.4.0.108 (Starter Edition)
Hash: 77efa3f
Branch: 
Build date: 2014-08-26 07:59:55-0400

=== Xamarin.Mac ===

Version:

=== Xamarin.Android ===

Version: 4.16.0 (Trial Edition)
Android SDK: /Users/gfunk/Library/Developer/Xamarin/android-sdk-macosx
	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.3  (API level 15)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
Java SDK: /usr
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

=== Build Information ===

Release ID: 503000440
Git revision: accb55419539e512cff857b14b80ec3107996511
Build date: 2014-09-01 08:53:05-04
Xamarin addins: 6dbac4b3a32df080bf98cde838ce89e573a92859

=== Operating System ===

Mac OS X 10.9.4
Darwin Retinas-MacBook-Pro.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 3 graeme 2014-09-08 19:28:44 UTC
Created attachment 7966 [details]
Screen Shot of error after EditText element is dragged onto interface builder
Comment 4 Rajneesh Kumar 2014-09-09 02:13:33 UTC
I have checked this issue again, now I am able to reproduce it with the help of comment 4. Steps I have followed to reproduce:

1. Create an android application.
    NewSolution=>C#=>Android=>AndroidApplication
2. Go to Designer page
    Resourced=>layout=>Main.axml
3. Designer page will load with default content.
4. In drop down of android version "Android L(V21)" should be selected
5. Now drag and drop "Plain Text" from tool box on designer
6. Now change the android version to "Android 4.4W(V20)"
7. Again Now drag and drop "Plain Text" from tool box on designer
8. Observe the exception

I also observed that user is not able to change the android version "Android 4.4W(V20)".


Screencast: http://www.screencast.com/t/XxqvxpynMR

Environment Info:

=== Xamarin Studio ===

Version 5.3 (build 440)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Runtime:
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 6.0 (6256.20)
Build 6A280n

=== Xamarin.Mac ===

Version: 1.10.0.10 (Enterprise Edition)

=== Xamarin.Android ===

Version: 4.16.0 (Enterprise Edition)
Android SDK: /Users/MM/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.iOS ===

Version: 7.4.0.108 (Enterprise Edition)
Hash: 77efa3f
Branch: 
Build date: 2014-08-26 07:59:55-0400

=== Build Information ===

Release ID: 503000440
Git revision: accb55419539e512cff857b14b80ec3107996511
Build date: 2014-09-01 08:53:05-04
Xamarin addins: 6dbac4b3a32df080bf98cde838ce89e573a92859

=== Operating System ===

Mac OS X 10.9.4
Darwin MacMini.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 5 Brendan Zagaeski (Xamarin Team, assistant) 2014-09-10 18:13:47 UTC
Just to improve searchability of this bug, here's the transcribed error message from the screenshot from comment 3.

> The layout could not be loaded: java.lang.System.arraycopy([CI[CII)V
> 
> mono.android.DesignerException: java.lang.System.arraycopy([CI[CII)V
>   at mono.android.DesignerSession.render(DesignerSession.java:256)
>   at mono.android.DesignerSession.processMessage(DesignerSession.java:551)
>   at mono.android.MessageListener.executeMessage(MessageListener.java:87)
>   at mono.android.MessageListener$Runner.run(MessageListener.java:44)
>   at java.lang.Thread.run(Thread.java:745)