Bug 29908 - The "ConvertPdbToMdb" task failed unexpectedly
Summary: The "ConvertPdbToMdb" task failed unexpectedly
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.11 (C5)
Hardware: PC Windows
: High normal
Target Milestone: 4.0.4 (C6SR4)
Assignee: Bugzilla
Depends on:
Reported: 2015-05-09 21:17 UTC by Jerome Laban
Modified: 2016-08-29 23:54 UTC (History)
10 users (show)

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

VS version log (2.88 KB, text/plain)
2015-05-09 21:17 UTC, Jerome Laban

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:

Description Jerome Laban 2015-05-09 21:17:09 UTC
Created attachment 11143 [details]
VS version log

Using VS2015 RC, the exception at the end of the description occurs. I'm currently not able to determine the reason why this is happening, nor produce a repro case, but it looks like Roslyn is producing information unknown to Microsoft.Cci.

By default, this issue is blocking as it fails all mdb files generation, and prevents debugging.

The stack trace :

2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018: The "ConvertPdbToMdb" task failed unexpectedly.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018: Microsoft.Cci.Pdb.PdbDebugException: Unknown custom metadata item kind: 7
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Microsoft.Cci.Pdb.PdbFunction.ReadCustomMetadata(BitAccess bits) in c:\w\5061f921\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\PdbFunction.cs:line 329
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Microsoft.Cci.Pdb.PdbFunction..ctor(String module, ManProcSym proc, BitAccess bits) in c:\w\5061f921\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\PdbFunction.cs:line 251
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Microsoft.Cci.Pdb.PdbFunction.LoadManagedFunctions(String module, BitAccess bits, UInt32 limit, Boolean readStrings) in c:\w\5061f921\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\PdbFunction.cs:line 125
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Microsoft.Cci.Pdb.PdbFile.LoadFuncsFromDbiModule(BitAccess bits, DbiModuleInfo info, IntHashTable names, ArrayList funcList, Boolean readStrings, MsfDirectory dir, Dictionary`2 nameIndex, PdbReader reader) in c:\w\5061f921\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\PdbFile.cs:line 300
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Microsoft.Cci.Pdb.PdbFile.LoadFunctions(Stream read, BitAccess bits, Boolean readAllStrings) in c:\w\5061f921\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\PdbFile.cs:line 398
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Pdb2Mdb.Converter.Convert(String filename) in c:\w\5061f921\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\Driver.cs:line 37
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Xamarin.iOS.Tasks.ConvertPdbToMdb.Execute() in c:\w\5061f921\XamarinVS\msbuild\Xamarin.iOS.Tasks\Tasks\ConvertPdbToMdbTask.cs:line 32
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(109,3): warning MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__1.MoveNext()
Comment 1 Niels 2015-05-19 05:26:40 UTC
I have the same issue on VS2015RC: Error: "The "ConvertPdbToMdb" task failed unexpectedly" when building iOS project.
Comment 2 Emanuel 2016-05-18 16:05:45 UTC
This bug was fixed in the latest stable (XVS v4).
Comment 3 Randy 2016-08-29 23:54:44 UTC
Randomly seeing this error, stable channel, msbuild VS2015 Update 3

31>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(79,3): error MSB4018: The "ConvertPdbToMdb" task failed unexpectedly.