Bug 14068 - VS 2012 crashes when using Android
Summary: VS 2012 crashes when using Android
Status: VERIFIED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 1.10.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-08-19 07:46 UTC by Mike James
Modified: 2015-07-21 14:12 UTC (History)
10 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 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:
VERIFIED NOT_REPRODUCIBLE

Description Mike James 2013-08-19 07:46:59 UTC
Logs from customer: 


Mono.AndroidTools.AndroidLogger Error: 0 : [E:]: Error
finding Android/Java SDKs
System.NullReferenceException: Object reference not set to an instance of
an object.
at
Mono.Android.VisualStudio.MonoAndroidPackage.<>c__DisplayClassf.<SetupLogging>b__8(String
task, String message)
at Mono.AndroidTools.AndroidLogger.LogInfo(String task, String format,
Object[] args)
at Xamarin.AndroidTools.AndroidSdk.Refresh()

Mono.AndroidTools.AndroidLogger Error: 0 : [E:]: Error
finding SDK version
System.NullReferenceException: Object reference not set to an instance of
an object.
at
Mono.Android.VisualStudio.MonoAndroidPackage.<>c__DisplayClassf.<SetupLogging>b__8(String
task, String message)
at Mono.AndroidTools.AndroidLogger.LogInfo(String task, String format,
Object[] args)
at Xamarin.AndroidTools.MonoDroidSdk.LoadVersionInfo(CancellationToken
token)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : NotifyPathChange failed
System.Exception: Connection is closed
at
Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage(BinaryMessage
message)
at
Xamarin.AndroidDesigner.DesignerProject.NotifyProjectPathChange(String
path, Boolean isFolder, PathChange change)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : Resource reloading failed
System.Exception: Connection is closed
at
Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage(BinaryMessage
message)
at Xamarin.AndroidDesigner.DesignerProject.ReloadResources()
Mono.VisualStudio.Shell.ShellPackage Error: 0 : NotifyPathChange failed

Xamarin.Designer.DesignerException: The operation failed due to an internal
error: No handler found for target: .
at
Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage(BinaryMessage
message)
at
Xamarin.AndroidDesigner.DesignerProject.NotifyProjectPathChange(String
path, Boolean isFolder, PathChange change)
Mono.VisualStudio.Shell.ShellPackage Error: 0 : Resource reloading failed

Xamarin.Designer.DesignerException: The operation failed due to an internal
error: No handler found for target: .
at
Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage(BinaryMessage
message)
at Xamarin.AndroidDesigner.DesignerProject.ReloadResources()
Mono.VisualStudio.Shell.ShellPackage Error: 0 : NotifyPathChange failed

Xamarin.Designer.DesignerException: The operation failed due to an internal
error: No handler found for target: .
at
Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage(BinaryMessage
message)
at
Xamarin.AndroidDesigner.DesignerProject.NotifyProjectPathChange(String
path, Boolean isFolder, PathChange change)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : Resource reloading failed
Xamarin.Designer.DesignerException: The operation failed due to an internal
error: No handler found for target: .
at
Xamarin.AndroidDesigner.JavaProcessConnection.SendMessage(BinaryMessage
message)
at Xamarin.AndroidDesigner.DesignerProject.ReloadResources()

Opening editor:

Mono.VisualStudio.Shell.ShellPackage Error: 0 : ERROR:
java.lang.NumberFormatException: For input string: "ffffffff"

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
java.lang.Integer.parseInt(Integer.java:461)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseEnumFlagValues(AttrsXmlParser.java:536)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttributeTypes(AttrsXmlParser.java:475)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttr(AttrsXmlParser.java:369)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseDeclaredStyleable(AttrsXmlParser.java:410)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseResources(AttrsXmlParser.java:228)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.preload(AttrsXmlParser.java:153)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.AndroidTarget.<init>(AndroidTarget.java:26)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.AndroidDesignerHost.getAndroidTarget(AndroidDesignerHost.java:54)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.DesignerSession.initialize(DesignerSession.java:74)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.Project.createSession(Project.java:239)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.Project.processMessage(Project.java:270)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.ListenerThread.processMessages(HostProcessConnection.java:182)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.ListenerThread.run(HostProcessConnection.java:156)

Mono.VisualStudio.Shell.ShellPackage Error: 0 :

Mono.VisualStudio.Shell.ShellPackage Error: 0 : ERROR: Value in <attr
name="accessibilityEventTypes"><flag name="typeAllMask"
value="0xffffffff"></attr> is not a valid decimal or hexadecimal

Mono.VisualStudio.Shell.ShellPackage Error: 0 : ERROR:
java.lang.NumberFormatException: For input string: "ffffffff"

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
java.lang.Integer.parseInt(Integer.java:461)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseEnumFlagValues(AttrsXmlParser.java:536)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttributeTypes(AttrsXmlParser.java:475)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttr(AttrsXmlParser.java:369)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseDeclaredStyleable(AttrsXmlParser.java:410)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseResources(AttrsXmlParser.java:228)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.preload(AttrsXmlParser.java:153)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.AndroidTarget.<init>(AndroidTarget.java:26)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.AndroidDesignerHost.getAndroidTarget(AndroidDesignerHost.java:54)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.DesignerSession.initialize(DesignerSession.java:74)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.Project.createSession(Project.java:239)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.Project.processMessage(Project.java:270)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.ListenerThread.processMessages(HostProcessConnection.java:182)

Mono.VisualStudio.Shell.ShellPackage Error: 0 : at
mono.android.ListenerThread.run(HostProcessConnection.java:156)

Mono.VisualStudio.Shell.ShellPackage Error: 0 :

Mono.VisualStudio.Shell.ShellPackage Error: 0 : ERROR: Value in <attr
name="accessibilityFeedbackType"><flag name="feedbackAllMask"
value="0xffffffff"></attr> is not a valid decimal or hexadecimal
Comment 2 Sadik Ali 2015-07-16 06:21:52 UTC
I have checked this issue and unable to reproduce above behavior given in the bug description. I am using following steps:

1. Create Android Blank App
2. Set a breakpoint on a line
3. Deploy application

When I create application it creates successfully.When I deploy android application on device it deploy on successfully and hit breakpoint.

Screencast: http://www.screencast.com/t/0nZlNjr1Fhm

Please let me know if I missed any step.
It would be great if you provide Steps , sample project and ide logs to reproduce the above behavior. We don't have access to desk so I am unable to see your logs.

Environment Info:

Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

Xamarin   3.11.666.0 (ebae43a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.4.16 (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.10.2.0 (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 3 PJ 2015-07-16 13:53:50 UTC
As this is an old bug, let's have Mike James REOPEN if it's still happening instead of moving to NEEDINFO (where it might sit for a while). Setting to RESOLVED.
Comment 4 Akhilesh kumar 2015-07-21 14:12:48 UTC
I am closing this issue.

Feel free to reopen it, if anyone still facing this issue.