Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csharp aot error in Unity3D iOS #414

Closed
saviosun opened this issue May 22, 2015 · 3 comments
Closed

csharp aot error in Unity3D iOS #414

saviosun opened this issue May 22, 2015 · 3 comments
Labels

Comments

@saviosun
Copy link

After fix the bug #394, I find a new bug.

ExecutionEngineException: Attempting to JIT compile method 'Google.ProtocolBuffers.CodedInputStream:ReadEnum<Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto/Types/Label> (Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto/Types/Label&,object&)' while running with --aot-only.

at Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto+Builder.MergeFrom (ICodedInputStream input, Google.ProtocolBuffers.ExtensionRegistry extensionRegistry) [0x00000] in :0
at Google.ProtocolBuffers.AbstractBuilderLite2[TMessage,TBuilder].Google.ProtocolBuffers.IBuilderLite.WeakMergeFrom (ICodedInputStream input, Google.ProtocolBuffers.ExtensionRegistry registry) [0x00000] in <filename unknown>:0 at Google.ProtocolBuffers.CodedInputStream.ReadMessage (IBuilderLite builder, Google.ProtocolBuffers.ExtensionRegistry extensionRegistry) [0x00000] in <filename unknown>:0 at Google.ProtocolBuffers.CodedInputStream.ReadMessageArray[FieldDescriptorProto] (UInt32 fieldTag, System.String fieldName, ICollection1 list, Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto messageType, Google.ProtocolBuffers.ExtensionRegistry registry) [0x00000] in :0
at Google.ProtocolBuffers.DescriptorProtos.DescriptorProto+Builder.MergeFrom (ICodedInputStream input, Google.ProtocolBuffers.ExtensionRegistry extensionRegistry) [0x00000] in :0
at Google.ProtocolBuffers.AbstractBuilderLite2[TMessage,TBuilder].Google.ProtocolBuffers.IBuilderLite.WeakMergeFrom (ICodedInputStream input, Google.ProtocolBuffers.ExtensionRegistry registry) [0x00000] in <filename unknown>:0 at Google.ProtocolBuffers.CodedInputStream.ReadMessage (IBuilderLite builder, Google.ProtocolBuffers.ExtensionRegistry extensionRegistry) [0x00000] in <filename unknown>:0 at Google.ProtocolBuffers.CodedInputStream.ReadMessageArray[DescriptorProto] (UInt32 fieldTag, System.String fieldName, ICollection1 list, Google.ProtocolBuffers.DescriptorProtos.DescriptorProto messageType, Google.ProtocolBuffers.ExtensionRegistry registry) [0x00000] in :0
at Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto+Builder.MergeFrom (ICodedInputStream input, Google.ProtocolBuffers.ExtensionRegistry extensionRegistry) [0x00000] in :0
at Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto+Builder.MergeFrom (ICodedInputStream input) [0x00000] in :0
at Google.ProtocolBuffers.AbstractBuilderLite`2[TMessage,TBuilder].MergeFrom (System.Byte[] data) [0x00000] in :0
at Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.ParseFrom (System.Byte[] data) [0x00000] in :0
at Google.ProtocolBuffers.Descriptors.FileDescriptor.InternalBuildGeneratedFileFrom (System.Byte[] descriptorData, Google.ProtocolBuffers.Descriptors.FileDescriptor[] dependencies, Google.ProtocolBuffers.Descriptors.InternalDescriptorAssigner descriptorAssigner) [0x00000] in :0
at Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile..cctor () [0x00000] in :0
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile
at Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto..cctor () [0x00000] in :0
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto
at Google.ProtocolBuffers.Descriptors.FileDescriptor.InternalBuildGeneratedFileFrom (System.Byte[] descriptorData, Google.ProtocolBuffers.Descriptors.FileDescriptor[] dependencies, Google.ProtocolBuffers.Descriptors.InternalDescriptorAssigner descriptorAssigner) [0x00000] in :0
at Google.ProtocolBuffers.Examples.AddressBook.Addressbook..cctor () [0x00000] in :0
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Google.ProtocolBuffers.Examples.AddressBook.Addressbook
at Google.ProtocolBuffers.Examples.AddressBook.Person..cctor () [0x00000] in :0
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Google.ProtocolBuffers.Examples.AddressBook.Person
at SampleUsage.Start ()

@zakyg
Copy link

zakyg commented Jul 23, 2015

I'm getting this too, any workaround?

@jskeet
Copy link
Contributor

jskeet commented Jul 24, 2015

We'll have to see if this occurs in the new (experimental) version. I suspect it may, due to the use of expression trees in the new code. Will have to see if I can get hold of a working environment to reproduce and fix...

@xfxyjwf xfxyjwf added the c# label Jan 20, 2016
@jskeet
Copy link
Contributor

jskeet commented Jan 28, 2016

Unity is simply not supported at the moment. See #644 for details and discussion.

@jskeet jskeet closed this as completed Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants