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

Protobuf does not work on iOS build by unity #4320

Closed
eye-dee opened this issue Feb 20, 2018 · 9 comments
Closed

Protobuf does not work on iOS build by unity #4320

eye-dee opened this issue Feb 20, 2018 · 9 comments
Labels

Comments

@eye-dee
Copy link

eye-dee commented Feb 20, 2018

I am using client-server application with google protobuf on unity and trying to run it on iOS.
I've successfully run it on Windows, MacOS and Android. But can't do it on iOS.

I've got this Exception, when call AuthLoginRequest.Descriptor.
AuthLoginRequest - is class generated by protobuf

NotSupportedException: /Users/builduser/buildslave/unity/build/External/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System.Reflection.Emit/AssemblyBuilder.cpp(20) : Unsupported internal call for IL2CPP:AssemblyBuilder::basic_init - System.Reflection.Emit is not supported. at System.Reflection.Emit.AssemblyBuilder..ctor (System.Reflection.AssemblyName n, System.String directory, System.Reflection.Emit.AssemblyBuilderAccess access, System.Boolean corlib_internal) [0x00000] in <00000000000000000000000000000000>:0 at System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, System.String dir, System.Security.Policy.Evidence evidence, System.Security.PermissionSet requiredPermissions, System.Security.PermissionSet optionalPermissions, System.Security.PermissionSet refusedPermissions, System.Boolean isSynchronized) [0x00000] in <00000000000000000000000000000000>:0 at System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access) [0x00000] in <00000000000000000000000000000000>:0 at System.Reflection.Emit.DynamicMethod+AnonHostModuleHolder..cctor () [0x00000] in <00000000000000000000000000000000>:0 at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Type owner, System.Reflection.Module m, System.Boolean skipVisibility, System.Boolean anonHosted) [0x00000] in <00000000000000000000000000000000>:0 at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Type returnType, System.Type[] parameterTypes, System.Boolean restrictedSkipVisibility) [0x00000] in <00000000000000000000000000000000>:0 at System.Linq.Expressions.Compiler.LambdaCompiler..ctor (System.Linq.Expressions.Compiler.AnalyzedTree tree, System.Linq.Expressions.LambdaExpression lambda) [0x00000] in <00000000000000000000000000000000>:0 at System.Linq.Expressions.Compiler.LambdaCompiler.Compile (System.Linq.Expressions.LambdaExpression lambda, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) [0x00000] in <00000000000000000000000000000000>:0 at System.Linq.Expressions.Expression1[TDelegate].Compile () [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.FieldAccessorBase..ctor (System.Reflection.PropertyInfo property, Google.Protobuf.Reflection.FieldDescriptor descriptor) [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.SingleFieldAccessor..ctor (System.Reflection.PropertyInfo property, Google.Protobuf.Reflection.FieldDescriptor descriptor) [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.FieldDescriptor.CreateAccessor () [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.FieldDescriptor.CrossLink () [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.MessageDescriptor.CrossLink () [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.FileDescriptor.CrossLink () [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.FileDescriptor.BuildFrom (Google.Protobuf.ByteString descriptorData, Google.Protobuf.Reflection.FileDescriptorProto proto, Google.Protobuf.Reflection.FileDescriptor[] dependencies, System.Boolean allowUnknownDependencies, Google.Protobuf.Reflection.GeneratedClrTypeInfo generatedCodeInfo) [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.FileDescriptor.FromGeneratedCode (System.Byte[] descriptorData, Google.Protobuf.Reflection.FileDescriptor[] dependencies, Google.Protobuf.Reflection.GeneratedClrTypeInfo generatedCodeInfo) [0x00000] in <00000000000000000000000000000000>:0
at Com.Aygamesco.P1Server.Common.Network.Packet.LoginReflection..cctor () [0x00000] in <00000000000000000000000000000000>:0
at Com.Aygamesco.P1Server.Common.Network.Packet.AuthLoginRequest.get_Descriptor () [0x00000] in <00000000000000000000000000000000>:0
at Connector.Awake () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.GameObject.AddComponent[T] () [0x00000] in <00000000000000000000000000000000>:0
at Connector.get_Instance () [0x00000] in <00000000000000000000000000000000>:0
at InformSystem.FixedUpdate () [0x00000] in <00000000000000000000000000000000>:0
Rethrow as TypeInitializationException: The type initializer for 'System.Reflection.Emit.DynamicMethod.AnonHostModuleHolder' threw an exception.
at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Type owner, System.Reflection.Module m, System.Boolean skipVisibility, System.Boolean anonHosted) [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Type returnType, System.Type[] parameterTypes, System.Boolean restrictedSkipVisibility) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Compiler.LambdaCompiler..ctor (System.Linq.Expressions.Compiler.AnalyzedTree tree, System.Linq.Expressions.LambdaExpression lambda) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Compiler.LambdaCompiler.Compile (System.Linq.Expressions.LambdaExpression lambda, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Expression1[TDelegate].Compile () [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.FieldAccessorBase..ctor (System.Reflection.PropertyInfo property, Google.Protobuf.Reflection.FieldDescriptor descriptor) [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.SingleFieldAccessor..ctor (System.Reflection.PropertyInfo property, Google.Protobuf.Reflection.FieldDescriptor descriptor) [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.FieldDescriptor.CreateAccessor () [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.FieldDescriptor.CrossLink () [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.MessageDescriptor.CrossLink () [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.FileDescriptor.CrossLink () [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.FileDescriptor.BuildFrom (Google.Protobuf.ByteString descriptorData, Google.Protobuf.Reflection.FileDescriptorProto proto, Google.Protobuf.Reflection.FileDescriptor[] dependencies, System.Boolean allowUnknownDependencies, Google.Protobuf.Reflection.GeneratedClrTypeInfo generatedCodeInfo) [0x00000] in <00000000000000000000000000000000>:0 at Google.Protobuf.Reflection.FileDescriptor.FromGeneratedCode (System.Byte[] descriptorData, Google.Protobuf.Reflection.FileDescriptor[] dependencies, Google.Protobuf.Reflection.GeneratedClrTypeInfo generatedCodeInfo) [0x00000] in <00000000000000000000000000000000>:0 at Com.Aygamesco.P1Server.Common.Network.Packet.LoginReflection..cctor () [0x00000] in <00000000000000000000000000000000>:0 at Com.Aygamesco.P1Server.Common.Network.Packet.AuthLoginRequest.get_Descriptor () [0x00000] in <00000000000000000000000000000000>:0 at Connector.Awake () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.GameObject.AddComponent[T] () [0x00000] in <00000000000000000000000000000000>:0 at Connector.get_Instance () [0x00000] in <00000000000000000000000000000000>:0 at InformSystem.FixedUpdate () [0x00000] in <00000000000000000000000000000000>:0 Rethrow as TypeInitializationException: The type initializer for 'Com.Aygamesco.P1Server.Common.Network.Packet.LoginReflection' threw an exception. at Com.Aygamesco.P1Server.Common.Network.Packet.AuthLoginRequest.get_Descriptor () [0x00000] in <00000000000000000000000000000000>:0 at Connector.Awake () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.GameObject.AddComponent[T] () [0x00000] in <00000000000000000000000000000000>:0 at Connector.get_Instance () [0x00000] in <00000000000000000000000000000000>:0 at InformSystem.FixedUpdate () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.GameObject:AddComponent() Connector:get_Instance() InformSystem:FixedUpdate()

@thomasvl
Copy link
Contributor

@TeBoring all those calls aren't ObjC (we don't have namespace like Google.Protobuf.Reflection).

@thomasvl thomasvl assigned TeBoring and unassigned thomasvl Mar 19, 2018
@TeBoring TeBoring assigned xfxyjwf and unassigned TeBoring Mar 26, 2018
@xfxyjwf
Copy link
Contributor

xfxyjwf commented Mar 26, 2018

This is a known issue. C# for unity is not yet officially supported. See #644

@xfxyjwf xfxyjwf closed this as completed Mar 26, 2018
@xfxyjwf
Copy link
Contributor

xfxyjwf commented Mar 27, 2018

@SausageRoll #3794 was just merged to fix the C# issue on iOS (missing System.Reflection.Emit support). Could you help test it?

@eye-dee
Copy link
Author

eye-dee commented Mar 28, 2018

@xfxyjwf Yes, i will do it in soon and write about results

@SetoKaiba
Copy link

SetoKaiba commented Mar 28, 2018

EDIT: It's working now. Forgot to disable the strip for Google.Protobuf in linker.xml.

@xfxyjwf It seems that it's still not working on Unity3D iOS.

System.TypeInitializationException: The type initializer for 'Co.Kaiba.Blueeyes.Protocol.BlueeyesBasicReflection' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Google.Protobuf.Reflection.ReflectionUtil' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Google.Protobuf.Reflection.ReflectionUtil.CheckCanConvertEnumFuncToInt32Func () [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.ReflectionUtil..cctor () [0x00000] in <00000000000000000000000000000000>:0
at Google.Protobuf.Reflection.GeneratedClrTypeInfo..ctor (System.Type clrType, Google.Protobuf.MessageParser parser, System.String[] propertyNames, System.String[] oneofNames, System.Type[] nestedEnums, Google.Protobuf.Reflection.GeneratedClrTypeInfo[] nestedTypes) [0x00000] in <00000000000000000000000000000000>:0
at Co.Kaiba.Blueeyes.Protocol.BlueeyesBasicReflection..cctor () [0x00000] in <00000000000000000000000000000000>:0
at Co.Kaiba.Blueeyes.Protocol.LoginRequest.get_Descriptor () [0x00000] in <00000000000000000000000000000000>:0
at BlueeyesBasicProtocolImpl.ChannelActive (DotNetty.Transport.Channels.IChannelHandlerContext context) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.DefaultChannelPipeline.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.Sockets.AbstractSocketChannel+AbstractSocketUnsafe.FulfillConnectPromise (System.Boolean wasActive) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.Sockets.AbstractSocketChannel+AbstractSocketUnsafe.FinishConnect (DotNetty.Transport.Channels.Sockets.SocketChannelAsyncOperation operation) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.SingleThreadEventExecutor.RunAllTasks (DotNetty.Common.PreciseTimeSpan timeout) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.SingleThreadEventExecutor.b__25_0 () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ScheduleAndStart (System.Boolean needsProtection) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.InternalStartNew (System.Threading.Tasks.Task creatingTask, System.Delegate action, System.Object state, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskScheduler scheduler, System.Threading.Tasks.TaskCreationOptions options, System.Threading.Tasks.InternalTaskOptions internalOptions, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.TaskFactory.StartNew (System.Action action, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskCreationOptions creationOptions, System.Threading.Tasks.TaskScheduler scheduler) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.XThread+<>c__DisplayClass13_0.b__0 () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
--- End of inner exception stack trace ---
at Google.Protobuf.Reflection.GeneratedClrTypeInfo..ctor (System.Type clrType, Google.Protobuf.MessageParser parser, System.String[] propertyNames, System.String[] oneofNames, System.Type[] nestedEnums, Google.Protobuf.Reflection.GeneratedClrTypeInfo[] nestedTypes) [0x00000] in <00000000000000000000000000000000>:0
at Co.Kaiba.Blueeyes.Protocol.BlueeyesBasicReflection..cctor () [0x00000] in <00000000000000000000000000000000>:0
at Co.Kaiba.Blueeyes.Protocol.LoginRequest.get_Descriptor () [0x00000] in <00000000000000000000000000000000>:0
at BlueeyesBasicProtocolImpl.ChannelActive (DotNetty.Transport.Channels.IChannelHandlerContext context) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.DefaultChannelPipeline.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.Sockets.AbstractSocketChannel+AbstractSocketUnsafe.FulfillConnectPromise (System.Boolean wasActive) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.Sockets.AbstractSocketChannel+AbstractSocketUnsafe.FinishConnect (DotNetty.Transport.Channels.Sockets.SocketChannelAsyncOperation operation) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.SingleThreadEventExecutor.RunAllTasks (DotNetty.Common.PreciseTimeSpan timeout) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.SingleThreadEventExecutor.b__25_0 () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ScheduleAndStart (System.Boolean needsProtection) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.InternalStartNew (System.Threading.Tasks.Task creatingTask, System.Delegate action, System.Object state, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskScheduler scheduler, System.Threading.Tasks.TaskCreationOptions options, System.Threading.Tasks.InternalTaskOptions internalOptions, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.TaskFactory.StartNew (System.Action action, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskCreationOptions creationOptions, System.Threading.Tasks.TaskScheduler scheduler) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.XThread+<>c__DisplayClass13_0.b__0 () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
--- End of inner exception stack trace ---
at Co.Kaiba.Blueeyes.Protocol.LoginRequest.get_Descriptor () [0x00000] in <00000000000000000000000000000000>:0
at BlueeyesBasicProtocolImpl.ChannelActive (DotNetty.Transport.Channels.IChannelHandlerContext context) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.InvokeChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.AbstractChannelHandlerContext.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.DefaultChannelPipeline.FireChannelActive () [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.Sockets.AbstractSocketChannel+AbstractSocketUnsafe.FulfillConnectPromise (System.Boolean wasActive) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Transport.Channels.Sockets.AbstractSocketChannel+AbstractSocketUnsafe.FinishConnect (DotNetty.Transport.Channels.Sockets.SocketChannelAsyncOperation operation) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.SingleThreadEventExecutor.RunAllTasks (DotNetty.Common.PreciseTimeSpan timeout) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.SingleThreadEventExecutor.b__25_0 () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ScheduleAndStart (System.Boolean needsProtection) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.InternalStartNew (System.Threading.Tasks.Task creatingTask, System.Delegate action, System.Object state, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskScheduler scheduler, System.Threading.Tasks.TaskCreationOptions options, System.Threading.Tasks.InternalTaskOptions internalOptions, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.TaskFactory.StartNew (System.Action action, System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskCreationOptions creationOptions, System.Threading.Tasks.TaskScheduler scheduler) [0x00000] in <00000000000000000000000000000000>:0
at DotNetty.Common.Concurrency.XThread+<>c__DisplayClass13_0.b__0 () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
DotNetty.Transport.Channels.AbstractChannelHandlerContext:InvokeChannelActive()
DotNetty.Transport.Channels.AbstractChannelHandlerContext:FireChannelActive()
DotNetty.Transport.Channels.AbstractChannelHandlerContext:InvokeChannelActive()
DotNetty.Transport.Channels.AbstractChannelHandlerContext:FireChannelActive()
DotNetty.Transport.Channels.AbstractChannelHandlerContext:InvokeChannelActive()
DotNetty.Transport.Channels.AbstractChannelHandlerContext:FireChannelActive()
DotNetty.Transport.Channels.DefaultChannelPipeline:FireChannelActive()
DotNetty.Transport.Channels.Sockets.AbstractSocketUnsafe:FulfillConnectPromise(Boolean)
DotNetty.Transport.Channels.Sockets.AbstractSocketUnsafe:FinishConnect(SocketChannelAsyncOperation)
DotNetty.Common.Concurrency.SingleThreadEventExecutor:RunAllTasks(PreciseTimeSpan)
DotNetty.Common.Concurrency.SingleThreadEventExecutor:b__25_0()
System.Threading.Tasks.Task:Execute()
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.Tasks.Task:ExecuteWithThreadLocal(Task&)
System.Threading.Tasks.Task:ExecuteEntry(Boolean)
System.Threading.Tasks.Task:ScheduleAndStart(Boolean)
System.Threading.Tasks.Task:InternalStartNew(Task, Delegate, Object, CancellationToken, TaskScheduler, TaskCreationOptions, InternalTaskOptions, StackCrawlMark&)
System.Threading.Tasks.TaskFactory:StartNew(Action, CancellationToken, TaskCreationOptions, TaskScheduler)
DotNetty.Common.Concurrency.<>c__DisplayClass13_0:b__0()
System.Threading.Tasks.Task:Execute()
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.Tasks.Task:ExecuteWithThreadLocal(Task&)
System.Threading.Tasks.Task:ExecuteEntry(Boolean)
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)

@iluzdaf
Copy link

iluzdaf commented Oct 19, 2018

Any updates on this issue?

@eye-dee
Copy link
Author

eye-dee commented Oct 20, 2018

@xfxyjwf @dev-fadzuli Actually, I find the get around way to not use something from System.Reflection.Emit.
So you can close this issue

@sukk630
Copy link

sukk630 commented Dec 27, 2023

@eye-dee hello,Could you tell me how to solve this problem

@eye-dee
Copy link
Author

eye-dee commented Jan 30, 2024

@eye-dee hello,Could you tell me how to solve this problem

I can't recall now unfortunately. I remember only that for my specific case I was able to use different methods so they don't use System.Reflection.Emit

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

7 participants