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

IL2CPP build connection error #116

Open
francescoStrada opened this issue May 23, 2023 · 1 comment
Open

IL2CPP build connection error #116

francescoStrada opened this issue May 23, 2023 · 1 comment

Comments

@francescoStrada
Copy link

Configuration:
Windows 10
Unity: 2020.3.47f1
Build: IL2CPP, .NET 4x

I am facing a problem when building in a IL2CPP configuration as I receive a FormatterNotRegisteredException when I attempt to connect to the PupilCapture software. The same problem does not happen when the build is a "standard" Mono. I attach below the full error message (for better readability i also attach the actual log file, the error is at the end of the file).
This error is the SAME as if I would leave the API Compatibility Level to .NET Standard 2.0

Do you know how to avoid the issue and correctly establish the connection also in a IL2CPP build?

pupil-error.txt
FormatterNotRegisteredException: System.Collections.Generic.Dictionary2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not registered in this resolver. resolver:StandardResolver at MessagePack.FormatterResolverExtensions.GetFormatterWithVerify[T] (MessagePack.IFormatterResolver resolver) [0x00000] in <00000000000000000000000000000000>:0 at MessagePack.MessagePackSerializer.Serialize[T] (T obj, MessagePack.IFormatterResolver resolver) [0x00000] in <00000000000000000000000000000000>:0 at PupilLabs.RequestController+Request.SendRequestMessage (System.Collections.Generic.Dictionary2[TKey,TValue] data) [0x00000] in <00000000000000000000000000000000>:0
at PupilLabs.RequestController.Send (System.Collections.Generic.Dictionary`2[TKey,TValue] dictionary) [0x00000] in <00000000000000000000000000000000>:0
at PupilLabs.RequestController.Connected () [0x00000] in <00000000000000000000000000000000>:0
at PupilLabs.RequestController+d__28.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0

@erickson656
Copy link

I just had the same issue in:
Windows 10
Unity 2021.3.22f1
Build: IL2CPP, .NET Framework

It was a bit elusive, since I was able to build and run the project just fine, but was confused as to why my eye tracking recordings weren't showing up when they previously worked in the editor. For me, switching from IL2CPP to Mono fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants