-
Notifications
You must be signed in to change notification settings - Fork 22
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
Crashes on Unity 2022.3.10f1 on Android #21
Comments
Hi Alexander,
I encountered a similar issue before, though it wasn't directly related to
the monitoring tool. The tool appears prominently in the stack trace
because it's the first to invoke a Resources.Load call. This call triggers
the deserialization of all resource objects, and it seems that one or more
of these objects has a mismatch in its serialized fields.
This mismatch, possibly due to a #ifdef directive, a missing script, or
another issue, is likely causing the crash. I'd recommend checking the
scriptable objects in your "Resources" folder for any discrepancies.
Additionally, try disabling runtime monitoring in a build to see if the
issue persists. You can disable it via Tools -> RuntimeMonitoring ->
Settings.I hope this helps. Unfortunately, due to time constraints, I'm not
actively maintaining the tool at the moment, which means that I haven't
really tested it in newer versions of Unity and can only offer limited
assistance.
|
Hello John, Thanks for the quick answer. I will try to launch I will update this comment when tests are completed. Edit : Here's the result :
Output :
So your assumptions were absolutely right, when you said :
It seems like my debugging journey does not end here. Thank you for this awesome tool, and sorry for pointing towards it as the culprit. If anyone has this problem in the future, here's a list of threads mentionning the issue : I will update if I ever find what the problem was, since the above threads are from many years ago and provide little to no clue to what the issue is. |
After many hours of debugging, I finally found the problem. It has nothing to do with Barracuda Runtime Monitoring, but here's the problem if anyone ever finds himself in this situation. Error :
Setup : After manually using the "binary search algoritm", I deleted all 3 resources folder and found the culprit : It IS because of the Assets/Plugins/HurricaneVR/Framework/Resources Problem : HVREditorPreferences.asset is in the Resources folder (INCLUDED IN BUILD) (Assets/Plugins/HurricaneVR/Framework/Resources) but the file is in (Assets/Plugins/HurricaneVR/Framework/Editor/HVREditorPreferences.cs) (NOT INCLUDED IN BUILD). This closes this issue, and hoping no one ever has to deal with this problem ever again. I'll file a report with Unity so that they provide more information on the debug log. Makes me wish I was using an open source engine, and with the turmoil of the current days, I might do that for my next project. |
Hello! I've been trying to fix a bug :
A scripted object (script unknown or not yet loaded) has a different serialization layout when loading. (Read 52 bytes but expected 64 bytes) Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
And I found that Runtime-Monitoring might be the culprit. (Deleting it from the project resolves the issue)
Happens on :
Setup :
Here's the full log :
A scripted object (script unknown or not yet loaded) has a different serialization layout when loading. (Read 52 bytes but expected 64 bytes) Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts? UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37) UnityEngine.ResourcesAPI:LoadAll (string,System.Type) (at C:/build/output/unity/unity/Runtime/Export/Resources/Resources.bindings.cs:72) UnityEngine.Resources:LoadAll (string,System.Type) (at C:/build/output/unity/unity/Runtime/Export/Resources/Resources.bindings.cs:143) UnityEngine.Resources:LoadAll<Baracuda.Monitoring.Systems.MonitoringSettings> (string) (at C:/build/output/unity/unity/Runtime/Export/Resources/Resources.bindings.cs:155) Baracuda.Monitoring.Systems.MonitoringSettings:get_Singleton () (at ./Packages/com.baracuda.runtime-monitoring/Runtime/Scripts/Core/Systems/MonitoringSettings.cs:510) Baracuda.Monitoring.Monitor:Construct () (at ./Packages/com.baracuda.runtime-monitoring/Runtime/Scripts/Monitor.cs:105) Baracuda.Monitoring.Monitor:.cctor () (at ./Packages/com.baracuda.runtime-monitoring/Runtime/Scripts/Monitor.cs:93)
The text was updated successfully, but these errors were encountered: