Bug 13211 - Unknown token type, Assertion: should not be reached at mono/metadata/class.c:6750
Summary: Unknown token type, Assertion: should not be reached at mono/metadata/class.c...
Status: REOPENED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.6.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on: 14011 14013 14017 14019 14042 14043 14045 14050
Blocks:
  Show dependency tree
 
Reported: 2013-07-12 13:04 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-04-14 00:58 UTC (History)
2 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 for Bug 13211 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:
REOPENED

Description Brendan Zagaeski (Xamarin Team, assistant) 2013-07-12 13:04:25 UTC
Filed on behalf of a user. It sounds like occasionally the debugger might start successfully, but it often produces this error:

Forwarding debugger port 8931
Forwarding console port 8932
Detecting existing process
Loaded assembly: /data/data/TEST_SKETCH.TEST_SKETCH/files/.__override__/TEST_SKETCH.dll
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: System.Core.dll [External]
[monodroid-gc] GREF GC Threshold: 46800
[] unknown token type 47000000
[] * Assertion: should not be reached at /Users/builder/data/lanes/monodroid-lion-bs1/0cc7ae3b/source/mono/mono/metadata/class.c:6750
[mono] Stacktrace:
[mono]
[mono]
[mono] Unhandled Exception:
[mono] System.NullReferenceException: Object reference not set to an instance of an object
[mono] [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object

--------

Version information:
Xamarin Studio
Version 4.0.9 (build 12)
Installation UUID: 7a33cb31-5b6f-492c-bbaf-a745029848ae
Runtime:
Microsoft .NET 4.0.30319.18047
GTK 2.24.13
GTK# (2.12.0.0)

Xamarin.Android
Version: 4.6.8 (Business Edition)
Android SDK: C:\Users\Alberto\AppData\Local\Android\android-sdk
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.2 (API level 17)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_31
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

Build Information
Release ID: 400090012
f9c5c24e88417feb0319953db6d5fc650d416608
Build date: 2013-06-21 14:03:10Z
Xamarin addins: 898d8afaabb160c025e21656f1490fa149397bff

Operating System
Windows 6.1.7601.65536 (64-bit)
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2013-07-12 13:07:17 UTC
I was unable to reproduce on Mac using the Android emulators.
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2013-07-12 14:00:28 UTC
The user's testing devices:

Samsung mini next
Samsung ace 2
Samsung galaxy tab 2
Comment 4 Rodrigo Kumpera 2016-04-14 00:49:23 UTC
Probably fixed by the current batch of hardening changes.
Comment 5 Rodrigo Kumpera 2016-04-14 00:51:23 UTC
Plus the solution doesn't build with C7.
Comment 6 Rodrigo Kumpera 2016-04-14 00:58:06 UTC
Probably worth having the build issue looked by the Android team.

Here's the build output: https://gist.github.com/kumpera/9e54f83237d7223d072aac576f021bac

Here's what my machine has: 
=== Xamarin Studio Community ===

Version 6.0 (build 4968)
Installation UUID: f41fbb89-4c97-47ed-b5cf-537131740ed7
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch/a3fabf1) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000122

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.1 (9077)
Build 7B85

=== Xamarin.iOS ===

Version: 9.8.0.244 (Xamarin Studio Community)
Hash: 977921b
Branch: cycle7
Build date: 2016-04-07 14:20:17-0400

=== Xamarin.Android ===

Version: 6.1.0.37 (Xamarin Studio Community)
Android SDK: /Users/kumpera/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)

SDK Tools Version: 22.6.1
SDK Platform Tools Version: 19.0.1
SDK Build Tools Version: 17.0.0

Java SDK: /usr
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Not Installed

=== Xamarin.Mac ===

Version: 2.8.0.244 (Xamarin Studio Community)

=== Build Information ===

Release ID: 600004968
Git revision: ab7092ce63351276394f283e4f9c8646baf51fce
Build date: 2016-04-08 09:30:34-04
Xamarin addins: be0a0aef6ec8b075b4ba4690bd147d1e33c2abd7
Build lane: monodevelop-lion-cycle7

=== Operating System ===

Mac OS X 10.11.3
Darwin tijuca.local 15.3.0 Darwin Kernel Version 15.3.0
    Thu Dec 10 18:40:58 PST 2015
    root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64