strange compilation error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

strange compilation error

BenediktH
Hi,

I have ported AForge.NET and Accord.NET to MonoTouch – every library compiles fine.. 
After adding references to these libraries, the main app also compiles fine.. But if i start using methods of the classes it get:

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --cache "/Users/systemiya-apple/Projects/iKiss/iKiss/obj/Debug/mtouch-cache" --nomanifest --nosign -dev "/Users/systemiya-apple/Projects/iKiss/iKiss/bin/iPhone/Debug/iKiss.app" -r "/Users/systemiya-apple/Projects/iKiss/Accord.Core/bin/iPhone/Debug/Accord.dll" -r "/Users/systemiya-apple/Projects/iKiss/Accord.Vision/bin/iPhone/Debug/Accord.Vision.dll" -r "/Users/systemiya-apple/Downloads/sysdrawing-coregraphics-master/bin/iPhone/Debug/System.Drawing.dll" -r "/Users/systemiya-apple/Projects/iKiss/Accord.Imaging/bin/iPhone/Debug/Accord.Imaging.dll" -r "/Users/systemiya-apple/Projects/iKiss/Imaging/bin/iPhone/Debug/Imaging.dll" -r "/Users/systemiya-apple/Projects/iKiss/AForge/iCore/bin/iPhone/Debug/AForge.dll" -r "/Users/systemiya-apple/Projects/iKiss/AForge.Vision/bin/iPhone/Debug/AForge.Vision.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -debug -linksdkonly -sdk "6.1" -targetver "5.0" --abi=armv7 "/Users/systemiya-apple/Projects/iKiss/iKiss/bin/iPhone/Debug/iKiss.exe"
MonoTouch version 6.0.10 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
0
  at System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException (System.String name, System.Object actual, System.String message) [0x00000] in <filename unknown>:0 
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at System.Collections.CollectionBase.System.Collections.IList.get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.GenericParameterCollection.get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.GetTypeRefFromSig (Mono.Cecil.Signatures.SigType t, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.GetGenericArg (Mono.Cecil.Signatures.GenericArg arg, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.GetTypeRefFromSig (Mono.Cecil.Signatures.SigType t, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.CompleteParameter (Mono.Cecil.ParameterDefinition parameter, Mono.Cecil.Signatures.Param signature, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.BuildParameterDefinition (System.String name, Int32 sequence, ParameterAttributes attrs, Mono.Cecil.Signatures.Param psig, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.CompleteMethods () [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.VisitTypeDefinitionCollection (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.VisitModuleDefinition (Mono.Cecil.ModuleDefinition mod) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.StructureReader.TerminateAssemblyDefinition (Mono.Cecil.AssemblyDefinition asm) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyDefinition.Accept (IReflectionStructureVisitor visitor) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader irv, Boolean manifestOnly) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader reader) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.ReadAssembly (System.String file) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.AddAssembly (System.String fileName) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.SearchDirectory (System.String name, System.String directory) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.Resolve (Mono.Cecil.AssemblyNameReference reference) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.Resolve (System.String fullName) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.GetAssembly (System.String fileName) [0x00000] in <filename unknown>:0 
  at MTouch.ExtractNativeLinkInfo (System.String project_root, System.Collections.Generic.List`1 references) [0x00000] in <filename unknown>:0 
  at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

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

Multiple provisioning profiles match the bundle identifier; using the first match.
Build: 1 Fehler, 5 Warnungen


If i remove the line "HaarObjectDetector detector;" the project compiles again…?!

 

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
fread() || die()
Reply | Threaded
Open this post in threaded view
|

Re: strange compilation error

Nic Wise
I would suggest you do as it says :)

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



On 1 April 2013 18:46, Benedikt Hübschen
<[hidden email]> wrote:

> Hi,
>
> I have ported AForge.NET and Accord.NET to MonoTouch – every library
> compiles fine..
> After adding references to these libraries, the main app also compiles
> fine.. But if i start using methods of the classes it get:
>
> Compiling to native code
> /Developer/MonoTouch/usr/bin/mtouch -sdkroot
> "/Applications/Xcode.app/Contents/Developer" -v --cache
> "/Users/systemiya-apple/Projects/iKiss/iKiss/obj/Debug/mtouch-cache"
> --nomanifest --nosign -dev
> "/Users/systemiya-apple/Projects/iKiss/iKiss/bin/iPhone/Debug/iKiss.app" -r
> "/Users/systemiya-apple/Projects/iKiss/Accord.Core/bin/iPhone/Debug/Accord.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/Accord.Vision/bin/iPhone/Debug/Accord.Vision.dll"
> -r
> "/Users/systemiya-apple/Downloads/sysdrawing-coregraphics-master/bin/iPhone/Debug/System.Drawing.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/Accord.Imaging/bin/iPhone/Debug/Accord.Imaging.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/Imaging/bin/iPhone/Debug/Imaging.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/AForge/iCore/bin/iPhone/Debug/AForge.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/AForge.Vision/bin/iPhone/Debug/AForge.Vision.dll"
> -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -debug -linksdkonly
> -sdk "6.1" -targetver "5.0" --abi=armv7
> "/Users/systemiya-apple/Projects/iKiss/iKiss/bin/iPhone/Debug/iKiss.exe"
> MonoTouch version 6.0.10 using framework:
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
> error MT0000: Unexpected error - Please file a bug report at
> http://bugzilla.xamarin.com
> System.ArgumentOutOfRangeException: Index is less than 0 or more than or
> equal to the list count.
> Parameter name: index
> 0
>   at System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException
> (System.String name, System.Object actual, System.String message) [0x00000]
> in <filename unknown>:0
>   at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] in
> <filename unknown>:0
>   at System.Collections.CollectionBase.System.Collections.IList.get_Item
> (Int32 index) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.GenericParameterCollection.get_Item (Int32 index) [0x00000]
> in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.GetTypeRefFromSig
> (Mono.Cecil.Signatures.SigType t, Mono.Cecil.GenericContext context)
> [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.GetGenericArg
> (Mono.Cecil.Signatures.GenericArg arg, Mono.Cecil.GenericContext context)
> [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.GetTypeRefFromSig
> (Mono.Cecil.Signatures.SigType t, Mono.Cecil.GenericContext context)
> [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.CompleteParameter
> (Mono.Cecil.ParameterDefinition parameter, Mono.Cecil.Signatures.Param
> signature, Mono.Cecil.GenericContext context) [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.ReflectionReader.BuildParameterDefinition (System.String
> name, Int32 sequence, ParameterAttributes attrs, Mono.Cecil.Signatures.Param
> psig, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.CompleteMethods () [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.ReflectionReader.VisitTypeDefinitionCollection
> (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection
> (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.ReflectionReader.VisitModuleDefinition
> (Mono.Cecil.ModuleDefinition mod) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.StructureReader.TerminateAssemblyDefinition
> (Mono.Cecil.AssemblyDefinition asm) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyDefinition.Accept (IReflectionStructureVisitor
> visitor) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader
> irv, Boolean manifestOnly) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader
> reader) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00000]
> in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.ReadAssembly (System.String file)
> [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.AddAssembly (System.String fileName)
> [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.SearchDirectory (System.String name,
> System.String directory) [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.Resolve
> (Mono.Cecil.AssemblyNameReference reference) [0x00000] in <filename
> unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.Resolve (System.String fullName)
> [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.GetAssembly (System.String fileName)
> [0x00000] in <filename unknown>:0
>   at MTouch.ExtractNativeLinkInfo (System.String project_root,
> System.Collections.Generic.List`1 references) [0x00000] in <filename
> unknown>:0
>   at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0
>   at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
>
> --------------------- Fertig ---------------------
>
> Multiple provisioning profiles match the bundle identifier; using the first
> match.
> Build: 1 Fehler, 5 Warnungen
>
>
> If i remove the line "HaarObjectDetector detector;" the project compiles
> again…?!
>
>
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: strange compilation error

Sebastien Pouliot
In reply to this post by BenediktH
Hello Benedikt,

We definitively need a test case so we can reproduce the issue. The
best place to provide one is on bugzilla (and you can mark the bug
and/or the attachment as private).

> If i remove the line "HaarObjectDetector detector;" the project compiles
> again…?!

Without more context that does not help.

Sebastien

On Mon, Apr 1, 2013 at 1:46 PM, Benedikt Hübschen
<[hidden email]> wrote:

> Hi,
>
> I have ported AForge.NET and Accord.NET to MonoTouch – every library
> compiles fine..
> After adding references to these libraries, the main app also compiles
> fine.. But if i start using methods of the classes it get:
>
> Compiling to native code
> /Developer/MonoTouch/usr/bin/mtouch -sdkroot
> "/Applications/Xcode.app/Contents/Developer" -v --cache
> "/Users/systemiya-apple/Projects/iKiss/iKiss/obj/Debug/mtouch-cache"
> --nomanifest --nosign -dev
> "/Users/systemiya-apple/Projects/iKiss/iKiss/bin/iPhone/Debug/iKiss.app" -r
> "/Users/systemiya-apple/Projects/iKiss/Accord.Core/bin/iPhone/Debug/Accord.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/Accord.Vision/bin/iPhone/Debug/Accord.Vision.dll"
> -r
> "/Users/systemiya-apple/Downloads/sysdrawing-coregraphics-master/bin/iPhone/Debug/System.Drawing.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/Accord.Imaging/bin/iPhone/Debug/Accord.Imaging.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/Imaging/bin/iPhone/Debug/Imaging.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/AForge/iCore/bin/iPhone/Debug/AForge.dll"
> -r
> "/Users/systemiya-apple/Projects/iKiss/AForge.Vision/bin/iPhone/Debug/AForge.Vision.dll"
> -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -debug -linksdkonly
> -sdk "6.1" -targetver "5.0" --abi=armv7
> "/Users/systemiya-apple/Projects/iKiss/iKiss/bin/iPhone/Debug/iKiss.exe"
> MonoTouch version 6.0.10 using framework:
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
> error MT0000: Unexpected error - Please file a bug report at
> http://bugzilla.xamarin.com
> System.ArgumentOutOfRangeException: Index is less than 0 or more than or
> equal to the list count.
> Parameter name: index
> 0
>   at System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException
> (System.String name, System.Object actual, System.String message) [0x00000]
> in <filename unknown>:0
>   at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] in
> <filename unknown>:0
>   at System.Collections.CollectionBase.System.Collections.IList.get_Item
> (Int32 index) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.GenericParameterCollection.get_Item (Int32 index) [0x00000]
> in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.GetTypeRefFromSig
> (Mono.Cecil.Signatures.SigType t, Mono.Cecil.GenericContext context)
> [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.GetGenericArg
> (Mono.Cecil.Signatures.GenericArg arg, Mono.Cecil.GenericContext context)
> [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.GetTypeRefFromSig
> (Mono.Cecil.Signatures.SigType t, Mono.Cecil.GenericContext context)
> [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.CompleteParameter
> (Mono.Cecil.ParameterDefinition parameter, Mono.Cecil.Signatures.Param
> signature, Mono.Cecil.GenericContext context) [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.ReflectionReader.BuildParameterDefinition (System.String
> name, Int32 sequence, ParameterAttributes attrs, Mono.Cecil.Signatures.Param
> psig, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.ReflectionReader.CompleteMethods () [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.ReflectionReader.VisitTypeDefinitionCollection
> (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection
> (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename
> unknown>:0
>   at Mono.Cecil.ReflectionReader.VisitModuleDefinition
> (Mono.Cecil.ModuleDefinition mod) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.StructureReader.TerminateAssemblyDefinition
> (Mono.Cecil.AssemblyDefinition asm) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyDefinition.Accept (IReflectionStructureVisitor
> visitor) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader
> irv, Boolean manifestOnly) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader
> reader) [0x00000] in <filename unknown>:0
>   at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00000]
> in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.ReadAssembly (System.String file)
> [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.AddAssembly (System.String fileName)
> [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.SearchDirectory (System.String name,
> System.String directory) [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.Resolve
> (Mono.Cecil.AssemblyNameReference reference) [0x00000] in <filename
> unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.Resolve (System.String fullName)
> [0x00000] in <filename unknown>:0
>   at MonoTouch.Tuner.MonoTouchResolver.GetAssembly (System.String fileName)
> [0x00000] in <filename unknown>:0
>   at MTouch.ExtractNativeLinkInfo (System.String project_root,
> System.Collections.Generic.List`1 references) [0x00000] in <filename
> unknown>:0
>   at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0
>   at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
>
> --------------------- Fertig ---------------------
>
> Multiple provisioning profiles match the bundle identifier; using the first
> match.
> Build: 1 Fehler, 5 Warnungen
>
>
> If i remove the line "HaarObjectDetector detector;" the project compiles
> again…?!
>
>
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch