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

Exception #3

Open
yanmasharski opened this issue Mar 13, 2018 · 4 comments
Open

Exception #3

yanmasharski opened this issue Mar 13, 2018 · 4 comments
Labels

Comments

@yanmasharski
Copy link

yanmasharski commented Mar 13, 2018

Catched exception on the first call CSharpExpression.Evaluate

NotSupportedException: /Users/builduser/buildslave/unity/build/External/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System.Reflection.Emit/DynamicMethod.cpp(24) : Unsupported internal call for IL2CPP:DynamicMethod::destroy_dynamic_method - System.Reflection.Emit is not supported.

@deniszykov
Copy link
Owner

deniszykov commented Mar 13, 2018

Hi @yanmasharski!

  1. On which platform?
  2. How is library embedded in Unity's build. Source or dll?
  3. Which version of c# eval is used?

@yanmasharski
Copy link
Author

  1. iOS
  2. DLL from AssetStore
  3. v2.2.1

@deniszykov
Copy link
Owner

deniszykov commented Mar 14, 2018

destroy_dynamic_method -it's looks like DynamicMethod's de-constructor. I use this code

try { Expression.Lambda<Func<bool>>(Expression.Constant(true)).Compile(); }
to detect AOT runtime. It's create an instance of DynamicMethod via call to Expression<T>.Compile(). And later this instance cause exception in Finalizer thread because DynamicMethod.Finalize() is not implemented in IL2CPP runtime.

You actually can't catch this exception because it's raised in Finalizer thread and just logged.

Are you sure that you caught this exception or it's just appear in log?

p.s. i reported this bug to Unity long time ago.

@yanmasharski
Copy link
Author

I found this exception in the log. Thanks for you answer.

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

2 participants