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 Problem Resolution #77

Open
ZhouXinyu001 opened this issue Dec 26, 2023 · 2 comments
Open

IL2CPP Problem Resolution #77

ZhouXinyu001 opened this issue Dec 26, 2023 · 2 comments

Comments

@ZhouXinyu001
Copy link

I have found the reason why IL2CPP faster runtime cannot run.

It is mainly due to the fact that System.Reactive.Subjects.Subject cannot be translated properly when full generic sharing is not supported in IL2CPP.

It is expected that UniRx (https://github.com/neuecc/UniRx) can be used to solve this issue.

Error code Location:
image

Error Stack:
System.ExecutionEngineException: Attempting to call method 'System.Reactive.Concurrency.CurrentThreadScheduler::Schedule<System.ValueTuple2[[System.Action1[[System.ValueTuple2[[System.Reactive.Producer2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Reactive.Linq.ObservableImpl.AsObservable1+_[[System.String, mscorlib, Version=[4.0.0.0](http://4.0.0.0/), Culture=neutral, PublicKeyToken=b77a5c561934e089]], System.Reactive, Version=[5.0.0.0](http://5.0.0.0/), Culture=neutral, PublicKeyToken=94bc3704cddfc263]], System.Reactive, Version=[5.0.0.0](http://5.0.0.0/), Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.Reactive.Linq.ObservableImpl.AsObservable1+[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], System.Reactive, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.ValueTuple2[[System.Reactive.Producer2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Reactive.Linq.ObservableImpl.AsObservable1+_[[System.String, mscorlib, Version=[4.0.0.0](http://4.0.0.0/), Culture=neutral, PublicKeyToken=b77a5c561934e089]], System.Reactive, Version=[5.0.0.0](http://5.0.0.0/), Culture=neutral, PublicKeyToken=94bc3704cddfc263]], System.Reactive, Version=[5.0.0.0](http://5.0.0.0/), Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.Reactive.Linq.ObservableImpl.AsObservable1+[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], System.Reactive, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>' for which no ahead of time (AOT) code was generated. Consider increasing the --generic-virtual-method-iterations=1 argument

@itisnajim
Copy link
Owner

Thank you for reporting this issue. I'm currently tied up with other commitments
if you or the community find a fix, please consider submitting a pull request. Your contribution is highly valued.

@noobogami
Copy link

in IL2CPP build socket.io couldn't connect to server without any error but when I updated my unity from 2021.x to 2022.3.20, problem fixed.

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

3 participants