BTOUCH error BI0000: Unexpected error after creating an binding using objective sharpie.

RichardHeesbeenRichardHeesbeen NLMember
edited August 2015 in Xamarin.iOS

Hi,

After using Objective Sharpie on the Oovoo SDK and trying to build the binding i'm getting an BTOUCH error/exception as follows:

BTOUCH: error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.NullReferenceException: Object reference not set to an instance of an object
at Generator.GetGetterExportAttribute (System.Reflection.PropertyInfo pinfo) [0x0002c] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:2247
at Generator.GenerateProtocolTypes (System.Type type, System.String class_visibility, System.String TypeName, System.String protocol_name, Foundation.ProtocolAttribute protocolAttribute) [0x00405] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:4943
at Generator.Generate (System.Type type) [0x002a5] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:5131
at Generator.Go () [0x00b97] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:2504
at BindingTouch.Main2 (System.String[] args) [0x00ccd] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/btouch.cs:405
at BindingTouch.Main (System.String[] args) [0x0001d] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/btouch.cs:89

I'm completely lost now, it's not giving me any hint on where it's going wrong.

I attached the project (without the .a file, because it's to big) in the hope someone can point me in the right direction.

Kind Regards,
Richard.

Posts

  • FrankOrtnerFrankOrtner USUniversity
    edited August 2015

    Hi,

    i get exactly the same error on binding the ArcGIS SDK.

    no hints ...

    Here is the building log:

    Build started 05.08.2015 13:56:38.

    Project "/Users/macbook/Bindings/Iseo.Esri.ObjCBinding/Iseo.Esri.ObjCBinding.csproj" (Build target(s)):
    Target _CreateGeneratedSourcesDir:
    Created directory "obj/Debug/ios/"

    Target _CollectBundleResources:
    CollectBundleResources Task
    BundleResources:
    OptimizePNGs: False
    ProjectDir: /Users/macbook/Bindings/Iseo.Esri.ObjCBinding
    ResourcePrefix: Resources

    Target _CreateEmbeddedResources:
    CreateEmbeddedResources Task
    BundleResources:
    Prefix: monotouch

    Target PrepareForBuild:
    Configuration: Debug Platform: AnyCPU

    Target GenerateSatelliteAssemblies:
    No input files were specified for target GenerateSatelliteAssemblies, skipping.

    Target _GenerateBindings:
    BTouchEmitDebugInformation: false
    BTouch Task
    BTouchToolPath: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/
    BTouchToolExe: btouch-native
    AdditionalLibPaths:
    AllowUnsafeBlocks: True
    ApiDefinitions:
    ApiDefinition.cs
    BaseLibDll: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
    CompilerPath:
    CoreSources:
    StructsAndEnums.cs
    DefineConstants: MOBILE;IOS;DEBUG;
    EmitDebugInformation: False
    GeneratedSourcesDir: obj/Debug/ios/
    GeneratedSourcesFileList: obj/Debug/ios//sources.list
    Namespace:
    NativeLibraries:
    NoStdLib: False
    OutputAssembly:
    References:
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll
    Resources:
    Sources:
    Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/btouch-native execution started with arguments: /v /baselib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /unsafe /d:"MOBILE;IOS;DEBUG" ApiDefinition.cs /s:StructsAndEnums.cs -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/System.Core.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /tmpdir:obj/Debug/ios/ /sourceonly:obj/Debug/ios//sources.list
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/smcs -debug -unsafe -target:library -nowarn:436 -out:'obj/Debug/ios/temp.dll' -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.3.2/lib/btouch/btouch-native.exe -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/System.Core.dll' -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll' -unsafe -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll' -define:MOBILE;IOS;DEBUG 'ApiDefinition.cs' 'StructsAndEnums.cs'

    BTOUCH: error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
    System.NullReferenceException: Object reference not set to an instance of an object
    at Generator.GetGetterExportAttribute (System.Reflection.PropertyInfo pinfo) [0x0002c] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:2247
    at Generator.GenerateProtocolTypes (System.Type type, System.String class_visibility, System.String TypeName, System.String protocol_name, Foundation.ProtocolAttribute protocolAttribute) [0x00405] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:4943
    at Generator.Generate (System.Type type) [0x002a5] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:5131
    at Generator.Go () [0x00b97] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/generator.cs:2504
    at BindingTouch.Main2 (System.String[] args) [0x00ccd] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/btouch.cs:405
    at BindingTouch.Main (System.String[] args) [0x0001d] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/btouch.cs:89
    WARNING: The runtime version supported by this application is unavailable.
    Using default runtime: v4.0.30319
    Task "BTouch" execution -- FAILED
    Done building target "_GenerateBindings" in project "/Users/macbook/Bindings/Iseo.Esri.ObjCBinding/Iseo.Esri.ObjCBinding.csproj".-- FAILED

    Done building project "/Users/macbook/Bindings/Iseo.Esri.ObjCBinding/Iseo.Esri.ObjCBinding.csproj".-- FAILED

    Build FAILED.
    Errors:

    /Users/macbook/Bindings/Iseo.Esri.ObjCBinding/Iseo.Esri.ObjCBinding.csproj (Build) ->
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.ObjCBinding.CSharp.targets (_GenerateBindings target) ->

    BTOUCH: error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com

    0 Warning(s)
    1 Error(s)

    Time Elapsed 00:00:02.8843620

    --------------------- Fertig ---------------------

    Build: 1 Fehler, 0 Warnungen

    i hope someone can help to fix this error.

  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    Have you filed a bug report as requested in the error message?

  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    @FrankOrtner.

    That's great. However, it appears that, when they set the status to NEEDINFO, once you've provided the info, you need to change the status back to OPEN or NEW (or whatever it is), otherwise they may not see it. That seems silly to me, but posts elsewhere seem to point that direction.

  • After trial and error, i got it to work.

    In some classes the delegate property has an [Abstract] attribute, after removing it the binding compiles and works.
    Hopes this helps someone when coming to this post.

Sign In or Register to comment.