Bug 56189 - Bad stacktrace found while debugging 56030.
Summary: Bad stacktrace found while debugging 56030.
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: 15.2.2
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2017-05-10 18:51 UTC by Chris King
Modified: 2017-06-16 08:50 UTC (History)
4 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 FIXED

Description Chris King 2017-05-10 18:51:34 UTC
Reproduction: 

Clone Xamarin.Forms to c1fbfae03
Use VS to build Xamarin.Forms in Visual Studio; We know env setup can be a pain (installing all the SDKs etc) so feel free to reach out for support; we promise open other issues to make it worth your while. :)
Run create-nuget.bat to create a private nuget package
Open reproduction in https://bugzilla.xamarin.com/show_bug.cgi?id=56030
Install the private nuget package
Re-open VS
Rebuild
Set a breakpoint at https://github.com/xamarin/Xamarin.Forms/blob/c1fbfae03ca04dd70a31a00042c745658cc8bd97/Xamarin.Forms.Platform.Android/FastRenderers/LabelRenderer.cs#L215 which should be just at the top of UpdoateColor()
Run the reproduction and see that the breakpoint is hit
Note that the top of the stack is `VisualElementPackager..ctor` but I'm expecting `UpdateColor`
Comment 1 Chris King 2017-05-10 18:52:02 UTC
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA185
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA185
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA185
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA185
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-80000-00000-AA185
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.18.00214.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Clang with Microsoft CodeGen   14.0.25516
Clang with Microsoft CodeGen

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio   2.2.0.11
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JetBrains ReSharper Ultimate 10.0.2   Build 104.0.20151218.120627
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

tangible T4 Editor   2.3.0
tangible engineering GmbH

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio Tools for Apache Cordova   Update 10
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.5.0.443 (c871575)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.3.0.13 (448f54f)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.10.0.30 (30b6e87)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Joaquin Jares 2017-05-31 19:06:02 UTC
We found a probable root cause for this. I'm assigning to Dean, who was working on that. Dean, feel free to kick it back to me if appropriate.
Comment 3 dean.ellis 2017-06-16 08:50:53 UTC
I suspect this is related to recent issues with debugging. Its possible that old debug symbols are being picked up. 

related commits 

xamarin-android/master/71511791
xamarin-android/master/08fcb24f
xamarin-android/master/57c8bee2
xamarin-android/master/2f89b364

the latest being xamarin-android/master/71511791.

We'd need to re-test on a XVS build which includes that commit.
I am going to mark this as fixed for now since one of those commits is probably responsible for this issue.