Bug 13938 - The layout could not be loaded: Empty region!
Summary: The layout could not be loaded: Empty region!
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 4.0.12
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Jérémie Laval
Depends on:
Reported: 2013-08-12 21:34 UTC by unpong
Modified: 2017-02-10 18:25 UTC (History)
2 users (show)

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

problem project (14.82 KB, application/x-zip-compressed)
2013-08-29 23:03 UTC, unpong

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 unpong 2013-08-12 21:34:50 UTC
mono.android.DesignerException: Empty region!

at mono.android.DesignerSession.load(DesignerSession.java:129)

at mono.android.DesignerSession.processMessage(DesignerSession.java:462)

at mono.android.ListenerThread.processMessages(HostProcessConnection.java:182)

at mono.android.ListenerThread.run(HostProcessConnection.java:156)

This problem found when the Xamarin Studio generate AndroidManifest.xml from "Option->Build->Android Application".
Comment 1 Lluis Sanchez 2013-08-29 06:22:37 UTC
I can't reproduce this issue. Do you have a sample project that I can use to see the problem?
Comment 2 unpong 2013-08-29 23:03:03 UTC
Created attachment 4758 [details]
problem project
Comment 3 Lluis Sanchez 2013-08-30 04:11:06 UTC
The problem is caused by the @drawable/app icon specified in the manifest. Looks like the Android SDK doesn't like .ico files. I'll do some research on that. As a workaround, try using a .png file instead of .icon.
Comment 4 unpong 2013-08-30 07:15:29 UTC
Thank you very much.
Comment 5 Stephen Shaw 2017-02-10 18:25:55 UTC
This appears to work now, however, I'm guessing you probably only want to use a .png anyways.