-
Notifications
You must be signed in to change notification settings - Fork 159
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
InvalidOperationException: No properties in class, has linker stripped it? #3363
Comments
Hey, do you have a minimal repro project you could share with us? That'll help quite a lot to pinpoint where the issue stems from. |
Hello, we are also experiencing the same issue, and it is critical for us. Currently, we cannot release an update to our game due to this error. Unfortunately, I cannot share the project, but I can provide more details about the issue we are facing. We didn't have this issue before. We simply updated the Realm SDK, and this problem started occurring. We started experiencing this problem after updating the Realm SDK from version 11.0.0 to version 11.1.2. Unity: 2021.3.26f1 Important Note: We use CI/CD for publishing updates. While we don't encounter any issues when building locally, we face this problem when building from another device using "batch mode." Both when building and when selecting "Weave Assemblies" from the "Tools" menu, we receive an error.
Approximately 15 seconds after encountering this error, we also receive the following log:
When we delete the "Library" folder from the project directory and open the project, we receive the following message normally. Details
Weaving completed in 1412 ms. UnityEngine.Debug:Log (object) I hope these details provide more clarity. If you need any further information, we can provide it. |
This looks similar to #3364. Can you try if the package linked in the last comment alleviates the issues for you? |
Hello, I tried the package. The "Could not analyze the user's assembly." error seems to be resolved, but unfortunately, we still receive the "InvalidOperationException: No properties in class, has linker stripped it?" error when building with "batch mode" on the CI/CD machine. |
Can you share the logs when building on CI? |
Unfortunately, for privacy reasons, I cannot share the entire log of the project. Instead, I will try to reproduce the issue with a test project. If I can reproduce it, I can directly share the project. Additionally, I can examine the log file on the CI machine and share the information I found. For example, when the API Updater runs, I see the following messages related to Realm:
By the way, we are using the Realm SDK by including it in a custom package that we have created internally. Therefore, the file paths for the Realm DLLs are located within the Packages folder. After the Tundra build, the error message below appeared precisely 94 times. It starts with the message Then, in succession, the following error message occurs 94 times.
Apart from those, no other sentences are starting with "Weaving completed" or any other messages related to Realm. |
Thanks, that's quite helpful. I think I know what's going on - I've created a PR with a proposed fix and will give you a package to try as soon as CI builds it. |
Thank you very much. I can try it when the package arrives. |
Can you try this package and see if that still causes the error on CI? |
I apologize for the delayed response. I tried the package, and it seems that the issues have been resolved. Thank you very much. |
Thanks for confirming! We'll schedule an official release with the bugfix shortly. |
What happened?
I'm having problems using Realm, Realm cannot create LocalResData, LocalResData is in the assembly, and Realm Init is in other assembly.
Unity: 2020.3.38f1
Relam: 11.1.2
Build:IL2CPP, Android
I don't know how to solve this problem, can anyone help me?
Repro steps
After I build Android apk, this issue will definitely happen
Version
4.x
What Atlas Services are you using?
Local Database only
What type of application is this?
Unity
Client OS and version
Unity 2020.3.38f1
Code snippets
This is LocalResData
This is init
I already have link.xml
Stacktrace of the exception/crash you're getting
The text was updated successfully, but these errors were encountered: