Bug 60086 - "generator.exe" exited with code -1073741819
Summary: "generator.exe" exited with code -1073741819
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 7.4 (15.3)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2017-10-10 11:21 UTC by Yong
Modified: 2017-10-17 08:29 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 60086 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:
CONFIRMED

Description Yong 2017-10-10 11:21:33 UTC
Dear Sir,

I am trying to create a xamarin bindings for DJI-SDK (https://github.com/dji-sdk/Mobile-SDK-Android/releases) by following the guide on your website. However I got a generic error when building the binding library.

here are more detailed log from ms build:

could you help please?

Thanks very much!
Regards,
Yong

>BINDINGSGENERATOR : warning BG8401: Skipping Dji.Thirdparty.Afinal.Core.AsyncTask.SerialExecutor, due to a duplicate field, method or nested type name.
1>   (TaskId:70)
1>  Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. (TaskId:70)
1>     at MonoDroid.Generation.InterfaceGen.GenerateDeclaration(StreamWriter sw, String indent, CodeGenerationOptions opt) (TaskId:70)
1>     at MonoDroid.Generation.InterfaceGen.Generate(StreamWriter sw, String indent, CodeGenerationOptions opt, GenerationInfo gen_info) (TaskId:70)
1>     at MonoDroid.Generation.InterfaceGen.Generate(CodeGenerationOptions opt, GenerationInfo gen_info) (TaskId:70)
1>     at Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options, DirectoryAssemblyResolver resolver) (TaskId:70)
1>     at Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options) (TaskId:70)
1>     at Xamarin.Android.Binder.CodeGenerator.Main(String[] args) (TaskId:70)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(438,5): error MSB6006: "generator.exe" exited with code -1073741819.
1>Done executing task "BindingsGenerator" -- FAILED. (TaskId:70)
1>Done building target "GenerateBindings" in project "DJISDKBinding.csproj" -- FAILED.: (TargetId:47)
Comment 1 Cody Beyer (MSFT) 2017-10-16 16:13:11 UTC
Unfortunately, we're unable to reproduce this report. If this issue is still occurring for you, please reopen this issue and attach a reproduction to the bug by starting with a clean Xamarin.Android project adding just the code necessary to demonstrate the issue
Comment 2 Yong 2017-10-17 08:29:27 UTC
Dear Sir,
I have uploaded the xamarin binding project on my google drive here:

https://drive.google.com/open?id=0B7J_ljvjFgkNSjFLb29BaExSYU0

it is more than the 8mb attachment file size limit.

Please have a look!

Thanks very much!

MS build log below:

1>Project 'DJISDKBinding' is not up to date. Error (0x8000FFFF). 
1>------ Build started: Project: DJISDKBinding, Configuration: Debug Any CPU ------
1>Build started 17/10/2017 09:13:19.
1>Environment at start of build:
1>ALLUSERSPROFILE = C:\ProgramData
1>ANDROID_HOME = C:\Users\Yong\AppData\Local\Android\android-sdk
1>ANDROID_NDK_PATH = C:\Program Files\Android\ndk\android-ndk-r14b
1>APPDATA = C:\Users\Yong\AppData\Roaming
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>COMPUTERNAME = YONGPC
1>ComSpec = C:\WINDOWS\system32\cmd.exe
1>DEVPATH = C:\ProgramData\Red Gate\.NET Reflector\DevPath
1>FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
1>FPS_BROWSER_USER_PROFILE_STRING = Default
1>FSHARPINSTALLDIR = C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\
1>GIT_LFS_PATH = C:\Program Files\Git LFS
1>GTK_BASEPATH = C:\Program Files (x86)\GtkSharp\2.12\
1>HOMEDRIVE = C:
1>HOMEPATH = \Users\Yong
1>BINDINGSGENERATOR : warning BG8401: Skipping Dji.Thirdparty.Afinal.Core.AsyncTask.SerialExecutor, due to a duplicate field, method or nested type name.
1>   (TaskId:47)
1>  Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. (TaskId:47)
1>     at MonoDroid.Generation.InterfaceGen.GenerateDeclaration(StreamWriter sw, String indent, CodeGenerationOptions opt) (TaskId:47)
1>     at MonoDroid.Generation.InterfaceGen.Generate(StreamWriter sw, String indent, CodeGenerationOptions opt, GenerationInfo gen_info) (TaskId:47)
1>     at MonoDroid.Generation.InterfaceGen.Generate(CodeGenerationOptions opt, GenerationInfo gen_info) (TaskId:47)
1>     at Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options, DirectoryAssemblyResolver resolver) (TaskId:47)
1>     at Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options) (TaskId:47)
1>     at Xamarin.Android.Binder.CodeGenerator.Main(String[] args) (TaskId:47)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(438,5): error MSB6006: "generator.exe" exited with code -1073741819.
1>Done executing task "BindingsGenerator" -- FAILED. (TaskId:47)
1>Done building target "GenerateBindings" in project "DJISDKBinding.csproj" -- FAILED.: (TargetId:36)
1>Target "_CheckForCompileOutputs: (TargetId:37)" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\DJISDKBinding.csproj" (target "_CleanGetCurrentAndPriorFileWrites" depends on it):
1>Set Property: _DocumentationFileProduced=false
1>Set Property: _DebugSymbolsProduced=false
1>Done building target "_CheckForCompileOutputs" in project "DJISDKBinding.csproj".: (TargetId:37)
1>Target "_SGenCheckForOutputs" skipped, due to false condition; ('$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')) was evaluated as ('Off' == 'On' or (''!='' and 'Off' == 'Auto')).
1>Target "_CleanGetCurrentAndPriorFileWrites: (TargetId:38)" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\DJISDKBinding.csproj" (target "_CleanRecordFileWrites" depends on it):
1>Using "ReadLinesFromFile" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "ReadLinesFromFile" (TaskId:48)
1>  Task Parameter:File=obj\Debug\DJISDKBinding.csproj.FileListAbsolute.txt (TaskId:48)
1>Done executing task "ReadLinesFromFile". (TaskId:48)
1>Using "ConvertToAbsolutePath" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "ConvertToAbsolutePath" (TaskId:49)
1>  Task Parameter:
1>      Paths=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=Java.Interop
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v7.1\Mono.Android.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=Mono.Android
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=System.Core
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=System
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=System.Runtime
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version= (TaskId:49)
1>  Output Item(s): 
1>      _ResolveAssemblyReferenceResolvedFilesAbsolute=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=Java.Interop
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v7.1\Mono.Android.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=Mono.Android
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=System.Core
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=System
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version=
1>          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll
1>                  CopyLocal=false
1>                  FrameworkFile=true
1>                  FusionName=System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
1>                  ImageRuntime=v4.0.30319
1>                  OriginalItemSpec=System.Runtime
1>                  ReferenceSourceTarget=ResolveAssemblyReference
1>                  ResolvedFrom={TargetFrameworkDirectory}
1>                  Version= (TaskId:49)
1>Done executing task "ConvertToAbsolutePath". (TaskId:49)
1>Using "FindUnderPath" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "FindUnderPath" (TaskId:50)
1>  Task Parameter:Path=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding (TaskId:50)
1>  Task Parameter:UpdateToAbsolutePaths=True (TaskId:50)
1>  Comparison path is "C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding". (TaskId:50)
1>Done executing task "FindUnderPath". (TaskId:50)
1>Task "FindUnderPath" (TaskId:51)
1>  Task Parameter:Path=bin\Debug\ (TaskId:51)
1>  Task Parameter:Files=obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:51)
1>  Task Parameter:UpdateToAbsolutePaths=True (TaskId:51)
1>  Comparison path is "bin\Debug\". (TaskId:51)
1>Done executing task "FindUnderPath". (TaskId:51)
1>Task "FindUnderPath" (TaskId:52)
1>  Task Parameter:Path=obj\Debug\ (TaskId:52)
1>  Task Parameter:Files=obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:52)
1>  Task Parameter:UpdateToAbsolutePaths=True (TaskId:52)
1>  Comparison path is "obj\Debug\". (TaskId:52)
1>  Output Item(s): _CleanCurrentFileWritesInIntermediate=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:52)
1>Done executing task "FindUnderPath". (TaskId:52)
1>Added Item(s): _CleanCurrentFileWritesWithNoReferences=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache
1>Using "RemoveDuplicates" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "RemoveDuplicates" (TaskId:53)
1>  Task Parameter:Inputs=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:53)
1>  Output Item(s): _CleanCurrentFileWrites=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:53)
1>Done executing task "RemoveDuplicates". (TaskId:53)
1>Done building target "_CleanGetCurrentAndPriorFileWrites" in project "DJISDKBinding.csproj".: (TargetId:38)
1>Target "_CleanRecordFileWrites: (TargetId:39)" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\DJISDKBinding.csproj" (target "CoreBuild" depends on it):
1>Task "RemoveDuplicates" (TaskId:54)
1>  Task Parameter:Inputs=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:54)
1>  Output Item(s): _CleanUniqueFileWrites=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:54)
1>Done executing task "RemoveDuplicates". (TaskId:54)
1>Task "MakeDir" (TaskId:55)
1>  Task Parameter:Directories=obj\Debug\ (TaskId:55)
1>Done executing task "MakeDir". (TaskId:55)
1>Using "WriteLinesToFile" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "WriteLinesToFile" (TaskId:56)
1>  Task Parameter:File=obj\Debug\DJISDKBinding.csproj.FileListAbsolute.txt (TaskId:56)
1>  Task Parameter:Lines=C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\obj\Debug\DJISDKBinding.csprojResolveAssemblyReference.cache (TaskId:56)
1>  Task Parameter:Overwrite=True (TaskId:56)
1>Done executing task "WriteLinesToFile". (TaskId:56)
1>Done building target "_CleanRecordFileWrites" in project "DJISDKBinding.csproj".: (TargetId:39)
1>
1>Project Performance Summary:
1>    36632 ms  C:\Users\Yong\source\repos\TextAnalyzerBinding\DJISDKBinding\DJISDKBinding.csproj   1 calls
1> 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========