Bug 12232 - The layout could not be loaded: The operation failed due to an internal error: No handler found for target: .
Summary: The layout could not be loaded: The operation failed due to an internal error...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 4.0.5
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 4.0.9 (from master)
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-05-14 09:50 UTC by Alex Krasov
Modified: 2013-07-02 20:56 UTC (History)
2 users (show)

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


Attachments
layout load exception (98.95 KB, image/png)
2013-05-14 09:50 UTC, Alex Krasov
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 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 Alex Krasov 2013-05-14 09:50:06 UTC
Created attachment 3963 [details]
layout load exception

Getting the error:
The layout could not be loaded: The operation failed due to an internal error: No handler found for target: .

when trying to load any layout from existing project.
The same layouts were fine before the update.

Please help.



Xamarin version info:

=== Xamarin Studio ===

Version 4.0.5 (build 4)
Installation UUID: a62e7195-20be-42fb-9719-8b8b960a4ef2
Runtime:
	Mono 2.10.12 (mono-2-10/c9b270d)
	GTK 2.24.16
	GTK# (2.12.0.0)
	Package version: 210120000

=== Apple Developer Tools ===

Xcode 4.6.2 (2067.2)
Build 4H1003

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.Android ===

Version: 4.6.4 (Business Edition)
Android SDK: /Users/oleksiykrasov/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)
		4.2   (API level 17)
Java SDK: /usr

=== Xamarin.iOS ===

Version: 6.2.4.2 (Business Edition)
Hash: c4f6316
Branch: 
Build date: 2013-22-04 18:55:23-0400

=== Build Information ===

Release ID: 400050004
Git revision: 5c86fd4af12c978b71fe8c62ff0f8846c6ab1ca8
Build date: 2013-05-03 19:25:06+0000
Xamarin addins: 603116b3659f75acbed00d7786768d2578832599

=== Operating System ===

Mac OS X 10.8.3
Darwin Oleksiys-MacBook-Pro.local 12.3.0 Darwin Kernel Version 12.3.0
    Sun Jan  6 22:37:10 PST 2013
    root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64





The log:

2013-05-14 09:46:14.973 XamarinStudio[712:1007] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
Starting Xamarin Studio
   Loading Workbench
      Initializing Main Window
WARNING [2013-05-14 09:46:17Z]: First run content index not found.
MacDir exists
Basedir=/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/monodoc
Error: did not find one of the files in sources//Library/Frameworks/Mono.framework/External/monodoc/MonoAndroid-man
WARNING [2013-05-14 09:46:20Z]: Cyclic dependency in project 'WLSMobileClient': file '/Users/oleksiykrasov/Work/WLSBoards/Mobile/Andorid/WLSMobileClient/WLSMobileClient/Resources/Layout/UserFriendListItemView.axml' depends on '/Users/oleksiykrasov/Work/WLSBoards/Mobile/Andorid/WLSMobileClient/WLSMobileClient/Resources/Layout/UserFriendListItemView.axml'
WARNING [2013-05-14 09:46:20Z]: Could not load MS Test project 'Tests/PocTests/PocTests/PocTests.csproj'. This project type is not supported by Xamarin Studio.
WARNING [2013-05-14 09:46:23Z]: Subversion addin could not load libsvn_client, so it will be disabled.
WARNING: Ignoring platform '.DS_Store', not a folder.
java.lang.ArrayIndexOutOfBoundsException: 0
	at com.android.ide.common.resources.ResourceRepository.processFolder(ResourceRepository.java:263)
	at com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.createProject(ResourceManager.java:500)
	at mono.android.Project.reloadResources(Project.java:82)
	at mono.android.Project.<init>(Project.java:71)
	at mono.android.AndroidDesignerHost.loadProject(AndroidDesignerHost.java:74)
	at mono.android.AndroidDesignerHost.processMessage(AndroidDesignerHost.java:89)
	at mono.android.ListenerThread.processMessages(HostProcessConnection.java:169)
	at mono.android.ListenerThread.run(HostProcessConnection.java:143)
Xamarin.AndroidDesigner.DesignerException: The operation failed due to an internal error: 0.
  at Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage (Xamarin.AndroidDesigner.BinaryMessage message) [0x001ee] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/JavaProcessConnection.cs:318 
  at Xamarin.AndroidDesigner.DesignerProject.EnsureLoaded () [0x000a9] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/DesignerProject.cs:541 
Xamarin.AndroidDesigner.DesignerException: The operation failed due to an internal error: 0.
  at Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage (Xamarin.AndroidDesigner.BinaryMessage message) [0x001ee] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/JavaProcessConnection.cs:318 
  at Xamarin.AndroidDesigner.DesignerProject.EnsureLoaded () [0x000a9] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/DesignerProject.cs:541 
Xamarin.AndroidDesigner.DesignerException: The operation failed due to an internal error: No handler found for target: .
  at Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage (Xamarin.AndroidDesigner.BinaryMessage message) [0x001ee] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/JavaProcessConnection.cs:318 
  at Xamarin.AndroidDesigner.AndroidDesignerSession.InitSession () [0x000c3] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/AndroidDesignerSession.cs:1048 
Xamarin.AndroidDesigner.DesignerException: The operation failed due to an internal error: No handler found for target: .
  at Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage (Xamarin.AndroidDesigner.BinaryMessage message) [0x001ee] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/JavaProcessConnection.cs:318 
  at Xamarin.AndroidDesigner.AndroidDesignerSession.InitSession () [0x000c3] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/AndroidDesignerSession.cs:1048 
ERROR [2013-05-14 09:47:57Z]: Failed to upload report to the server
System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x0006c] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/System/System.Net/HttpWebRequest.cs:871 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/System/System.Net/HttpWebRequest.cs:876 
  at MonoDevelop.Core.LogReporting.LogReportingService.TryUploadReport (System.String filename, System.Byte[] data) [0x000ff] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.LogReporting/LogReportingService.cs:180
Comment 1 Lluis Sanchez 2013-05-14 10:37:55 UTC
Looks like the designer is having trouble loading the resources from the resources folder. Maybe it has some structure that is not properly supported. Could you please attach a zip with the contents of the Resources folder of the project? you can mark the attachment as private.
Comment 2 Alex Krasov 2013-05-14 10:51:44 UTC
Thanks a lot for the heads up!
It happend to be a merge from git (happened in between version updates) which bring an extra folder under the 'Resources' created by another team member. After folder has been removed everything is working again. 

Thanks again!
Comment 3 Lluis Sanchez 2013-05-14 15:13:42 UTC
I'm glad that fixed your problem. What was the name of the folder and where was it located? I'd like to add some checks so that we can provide better error messages in cases like this.
Comment 4 Alex Krasov 2013-05-14 16:15:24 UTC
It was a temp folder committed by mistake to the git repo.
The folder name were: '-'
Comment 5 PJ 2013-06-24 16:18:45 UTC
This bug was marked as fixed for Xamarin Studio 4.0.9, which is currently in the beta channel. Try it out!
Comment 6 D. Gage 2013-07-02 20:56:15 UTC
I've got 4.0.9 (build 12) and am getting this bug on Windows 8.