xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.43k stars 507 forks source link

BTOUCH : error BI0000: Unexpected error (Xamarin.iOS Binding Project) #7205

Closed Sivamuhan-Sivasambu closed 4 years ago

Sivamuhan-Sivasambu commented 4 years ago

Steps to Reproduce

  1. Run the attached binding project

Expected Behavior

Binding project to build successfully

Actual Behavior

Throws en unexpected error without any other information than fill a bug report at https://github.com/xamarin/xamarin-macios/issues/new

Environment

Visual Studio for Mac

whitneyschmidt commented 4 years ago

@ziva006 I don't see the attached project.

Can you include your solution files and the build error logs?

To get full build logs just set the log verbosity to diagnostic at the following locations:

On Visual Studio for Windows you also want to add -v -v -v -v to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting Properties.

Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.

The easiest way to get exact version information:

Then copy/paste the version information (you can use the "Copy Information" button).

We look forward to hearing from you!

nickwilsonr commented 4 years ago

I just got this error. Here is exception from the diagnostics: Task "Message" BTouchEmitDebugInformation: false Done executing task "Message". Using "BTouch" task from assembly "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Tasks.dll". Task "BTouch" /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/btouch-native /v /nostdlib /baselib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /lib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS /r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /unsafe /d:"__UNIFIED__;__MOBILE__;__IOS__;DEBUG" /Users/nwilson/Projects/q5id-sentinel/src/Sentinel.iOS.Acuant.Common.Binding/ApiDefinitions.cs /s:/Users/nwilson/Projects/q5id-sentinel/src/Sentinel.iOS.Acuant.Common.Binding/StructsAndEnums.cs -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /tmpdir:/Users/nwilson/Projects/q5id-sentinel/src/Sentinel.iOS.Acuant.Common.Binding/obj/Debug/ios/ /sourceonly:/Users/nwilson/Projects/q5id-sentinel/src/Sentinel.iOS.Acuant.Common.Binding/obj/Debug/ios/sources.list /target-framework=Xamarin.iOS,v1.0 /Library/Frameworks/Mono.framework/Versions/Current/bin/csc -debug -unsafe -target:library -nowarn:436 -out:/Users/nwilson/Projects/q5id-sentinel/src/Sentinel.iOS.Acuant.Common.Binding/obj/Debug/ios/temp.dll -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/bgen/Xamarin.iOS.BindingAttributes.dll -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Drawing.Common.dll -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll -unsafe -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -define:__UNIFIED__;__MOBILE__;__IOS__;DEBUG -lib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS -nostdlib -noconfig /Users/nwilson/Projects/q5id-sentinel/src/Sentinel.iOS.Acuant.Common.Binding/ApiDefinitions.cs /Users/nwilson/Projects/q5id-sentinel/src/Sentinel.iOS.Acuant.Common.Binding/StructsAndEnums.cs -lib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS BTOUCH : error BI0000: Unexpected error - Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new System.FormatException: Input string was not in a correct format. at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000b2] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Text/StringBuilder.cs:1445 at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x0000e] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/String.Manipulation.cs:471 at System.String.Format (System.String format, System.Object[] args) [0x00018] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/String.Manipulation.cs:436 at BindingException..ctor (System.Int32 code, System.Boolean error, System.Exception innerException, System.String message, System.Object[] args) [0x00000] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at BindingException..ctor (System.Int32 code, System.Boolean error, System.String message, System.Object[] args) [0x00000] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at ErrorHelper.CreateError (System.Int32 code, System.String message, System.Object[] args) [0x00001] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at BindingTouch.Main3 (System.String[] args) [0x00eaf] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at BindingTouch.Main2 (System.String[] args) [0x00007] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at BindingTouch.Main (System.String[] args) [0x00002] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at System.Environment.get_StackTrace () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Environment.cs:316 at ErrorHelper.ShowInternal (System.Exception e) [0x00000] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at ErrorHelper.Show (System.Exception e, System.Boolean rethrow_errors) [0x00000] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 at BindingTouch.Main (System.String[] args) [0x00000] in <beef8fe568d14b1f8496c0ba2a4546ba>:0 The command exited with code 1. Done executing task "BTouch" -- FAILED.

spouliot commented 4 years ago

It might not be the same issue as the original report. A BI0000 means an exception occurred and terminated the tool.

System.FormatException: Input string was not in a correct format.

@nickwilsonr that looks like a bad format string on our side, potentially when trying to report an error. Can you share your project with us ?

If you can you try to compile it, from the command-line, with -v -v -v -v ? that should show in inner exception, which might pinpoint where the code is (and not just how it's reported). Thanks!

whitneyschmidt commented 4 years ago

@ziva006 We have not received the requested information.

If you are still experiencing this issue please provide all the requested information then click the Reopen Issue button.

Thanks!