Bug 20719 - "Compiler crashed with Code: 1." error displayed in Errors pad instead of the actual errors
Summary: "Compiler crashed with Code: 1." error displayed in Errors pad instead of the...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2014-06-19 12:29 UTC by Rob DeRosa
Modified: 2015-01-23 02:38 UTC (History)
4 users (show)

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


Attachments
Solution in which the problem occurs (3.39 MB, application/zip)
2014-06-19 12:29 UTC, Rob DeRosa
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 GitHub or 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:
RESOLVED NOT_REPRODUCIBLE

Description Rob DeRosa 2014-06-19 12:29:21 UTC
Created attachment 7118 [details]
Solution in which the problem occurs

When compiling projects, I consistently get the following single error in the Error pad:

/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/Microsoft.CSharp.targets: Error: Compiler crashed with code: 1. (ExpenseReporter.Forms)

Here is the build output (which contains the actual error(s)):
----------------------------------------------------------------

Building: ExpenseReporter.Core (Debug|iPhoneSimulator)

Building: ExpenseReporter.Forms (Debug)

Build started 6/19/2014 9:22:30 AM.
__________________________________________________
Project "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Forms/ExpenseReporter.Forms.csproj" (Build target(s)):
	
	Target PrepareForBuild:
		Configuration: Debug Platform: AnyCPU
	
	Target GenerateSatelliteAssemblies:
	No input files were specified for target GenerateSatelliteAssemblies, skipping.
	
	Target GenerateXamlG:
		Sources: Pages/MenuPage.xaml, Pages/AuthenticationPage.xaml, Pages/EditExpenseReport.xaml, Pages/LandingPage.xaml, Pages/ReportListPage.xaml
		Language: C#
		AssemblyName: ExpenseReporter.Forms
		OutputFiles obj/Debug/MenuPage.xaml.g.cs, obj/Debug/AuthenticationPage.xaml.g.cs, obj/Debug/EditExpenseReport.xaml.g.cs, obj/Debug/LandingPage.xaml.g.cs, obj/Debug/ReportListPage.xaml.g.cs
	
	Target GenerateTargetFrameworkMonikerAttribute:
	Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
	
	Target CoreCompile:
		Tool /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/ExpenseReporter.Forms.dll /resource:obj/Debug/ExpenseReporter.Forms.Pages.MenuPage.xaml /resource:obj/Debug/ExpenseReporter.Forms.Pages.AuthenticationPage.xaml /resource:obj/Debug/ExpenseReporter.Forms.Pages.EditExpenseReport.xaml /resource:obj/Debug/ExpenseReporter.Forms.Pages.LandingPage.xaml /resource:obj/Debug/ExpenseReporter.Forms.Pages.ReportListPage.xaml Properties/AssemblyInfo.cs Pages/MenuPage.xaml.cs Pages/RootPage.cs Pages/AuthenticationPage.xaml.cs ExpenseReporterApp.cs CustomControls/Entry.cs CustomControls/Button.cs Theme.cs CustomControls/Label.cs ContentPageBase.cs Pages/EditExpenseReport.xaml.cs Converters/HasValueConverter.cs Pages/LandingPage.xaml.cs Pages/ReportListPage.xaml.cs "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/ViewModels/AuthenticationViewModel.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/ViewModels/BaseViewModel.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/Models/User.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/Services/IDataService.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/Models/ExpenseReportEntry.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/Models/ExpenseReport.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/Models/BaseModel.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/ViewModels/ExpenseReportViewModel.cs" "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/ViewModels/ReportListViewModel.cs" obj/Debug/MenuPage.xaml.g.cs obj/Debug/AuthenticationPage.xaml.g.cs obj/Debug/EditExpenseReport.xaml.g.cs obj/Debug/LandingPage.xaml.g.cs obj/Debug/ReportListPage.xaml.g.cs /target:library /define:DEBUG /nostdlib /reference:../packages/Xamarin.Forms.1.1.0.6201/lib/portable-win+net45+wp80+MonoAndroid10+MonoTouch10/Xamarin.Forms.Core.dll /reference:../packages/Xamarin.Forms.1.1.0.6201/lib/portable-win+net45+wp80+MonoAndroid10+MonoTouch10/Xamarin.Forms.Xaml.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/Microsoft.CSharp.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Collections.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ComponentModel.EventBasedAsync.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ComponentModel.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Core.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Diagnostics.Contracts.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Diagnostics.Debug.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Diagnostics.Tools.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Dynamic.Runtime.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Globalization.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.IO.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Linq.Expressions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Linq.Queryable.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Linq.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Net.NetworkInformation.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Net.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Net.Requests.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Net.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ObjectModel.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Reflection.Emit.ILGeneration.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Reflection.Emit.Lightweight.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Reflection.Extensions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Reflection.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Reflection.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Resources.ResourceManager.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Runtime.Extensions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Runtime.InteropServices.WindowsRuntime.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Runtime.Serialization.Json.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Runtime.Serialization.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Runtime.Serialization.Xml.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Runtime.Serialization.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Runtime.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Security.Principal.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ServiceModel.Http.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ServiceModel.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ServiceModel.Security.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ServiceModel.Web.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.ServiceModel.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Text.Encoding.Extensions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Text.Encoding.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Text.RegularExpressions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Threading.Tasks.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Threading.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Windows.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Xml.Linq.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Xml.ReaderWriter.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Xml.Serialization.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Xml.XDocument.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Xml.XmlSerializer.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.Xml.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/System.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile49/mscorlib.dll /warn:4
Pages/LandingPage.xaml.cs(19,14): warning CS1998: Async block lacks `await' operator and will run synchronously
Pages/LandingPage.xaml.cs(24,14): warning CS1998: Async block lacks `await' operator and will run synchronously
		/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/ViewModels/ExpenseReportViewModel.cs(51,32): error CS1061: Type `ExpenseReporter.Core.IDataService' does not contain a definition for `SaveExpenseReport' and no extension method `SaveExpenseReport' of type `ExpenseReporter.Core.IDataService' could be found. Are you missing an assembly reference?
		/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Core/Services/IDataService.cs(6,19): (Location of the symbol related to previous error)
/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/Microsoft.CSharp.targets: error : Compiler crashed with code: 1.
	Task "Csc" execution -- FAILED
	Done building target "CoreCompile" in project "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Forms/ExpenseReporter.Forms.csproj".-- FAILED
	
Done building project "/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Forms/ExpenseReporter.Forms.csproj".-- FAILED

Build FAILED.

Warnings:

/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Forms/ExpenseReporter.Forms.csproj (Build) ->
/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

	Pages/LandingPage.xaml.cs(19,14): warning CS1998: Async block lacks `await' operator and will run synchronously
	Pages/LandingPage.xaml.cs(24,14): warning CS1998: Async block lacks `await' operator and will run synchronously

Errors:

/Users/Rob/Dropbox (Personal)/Projects/Xamarin/ExpenseReporter/ExpenseReporter.Forms/ExpenseReporter.Forms.csproj (Build) ->
/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

	/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/Microsoft.CSharp.targets: error : Compiler crashed with code: 1.

	 2 Warning(s)
	 1 Error(s)

Time Elapsed 00:00:02.3462960

---------------------- Done ----------------------

Build: 1 error, 2 warnings

----------------------------------------------------------------

Here is my Xamarin Studio info:

Xamarin Studio
Version 5.0.1 (build 3)
Installation UUID: 2bd781aa-d369-471a-9df8-19f8c9e01fb2
Runtime:
	Mono 3.4.0 ((no/c3fc3ba)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000204

I'm not sure if this is related to Xamarin.Forms or the compiler in general.
Comment 1 Marek Safar 2014-06-20 05:31:09 UTC
I cannot reproduce this with Mono 3.4. This looks like a bug in XS which checks for "Compiler crashed with code". I tested it using XS 5.1 and I cannot see the error
Comment 2 Mikayla Hutchinson [MSFT] 2014-06-20 14:00:01 UTC
FYI the error is from xbuild, not XS.
Comment 3 Roman 2015-01-23 02:38:18 UTC
Problem was resolved by recreating project and drag & drop old source code to it. Next time I send for you project in order to you can exercise with it. Sorry that I have not done it this time.
I have impression that I have signed to test your IDE