-
Notifications
You must be signed in to change notification settings - Fork 517
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
aot-compiled net6-ios app fails retrieving property #15961
Comments
Thank you for the feedback @mmoraga. I tried running your sample locally on my iPhone 12 pro max and it seemed to build using the args you mentioned You could also try to enable the interpreter and see if that helps you. Let us know if this helped out for you! |
Hi @mmoraga. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@tj-devel709 I believe the problem only shows up in Release builds, where trimming and AOT compilation happens. |
@AArnott For some reason here I managed to reproduce it with the Debug switch as well. @tj-devel709 it doesn't crash because I added a try/catch that catches all exceptions. If you check the |
I'm seeing something very similar: |
Enabling the interpreter seems to solve the issue, although I don't know if publishing an app with the interpreter enabled is a valid solution for the app store. Probably the root cause is the same as for @markuspalme : Json serialization/deserialization failing. eg in my test project, setting up a strongly typed jsonrpc connection like |
Hello @mmoraga, using the interpreter shouldn't affect the performance speed of your project too much. Since it is working for you with the interpreter, continue to use it and if this is an issue when submitting your app, we can try to come up with another solution. |
Steps to Reproduce
Expected Behavior
Retrieving the value of a simple property should not fail
Actual Behavior
Retrieving
RequestId
property fails causing app to crash.Environment
Version information
Build Logs
msbuild.binlog.zip
Example Project (If Possible)
https://github.com/mmoraga/jsonrpc-repro
The text was updated successfully, but these errors were encountered: