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
Crashed on Unity3D(2021.3.14f1 or higher) #1
Comments
auto CoreModule = UnityResolve::Get("UnityEngine.CoreModule.dll");
auto camerafunction = CoreModule->Get("Camera", "UnityEngine");
float fov = camerafunction->GetValue<float>(camerafunction, "fieldOfView"); Modified code is as follows auto CoreModule = UnityResolve::Get("UnityEngine.CoreModule.dll");
auto camerafunction = CoreModule->Get("Camera", "UnityEngine");
auto instance = UnityResolve::UnityType::Camera::GetMain();
float fov = camerafunction->GetValue<float>(instance, "fieldOfView"); |
ok, thanks |
auto CoreModule = UnityResolve::Get("UnityEngine.CoreModule.dll");
auto camerafunction = CoreModule->Get("Camera", "UnityEngine");
float fov = camerafunction->GetValue<float>(camerafunction, "fieldOfView"); It is Not Crashing... Init Function is Calling Crash on Unity3D.... |
It's not a Windows bug. Currently, we are fixing the issue. The error originates from the line
|
again crash... T_T |
And I'm Getting This Exception while Getting Camera Function... |
Could you please provide the code? |
Perhaps you can use exception handling to solve it. (SEH) |
Error With New Version:
|
Code while crashing in mono: if (address_[funcName] != nullptr) return reinterpret_cast<Return(UNITY_CALLING_CONVENTION*)(Args...)>(address_[funcName])(args...) |
Now i'm getting this error while getting camera function in il2cpp:
Code: auto GetValue(void* obj, const std::string& name) -> RType { return *reinterpret_cast<RType*>(reinterpret_cast<uintptr_t>(obj) + Get<Field>(name)->offset); } |
GetValue is used to retrieve field values, but as far as I know, UnityEngine.Camera does not have any retrievable fields (fields of static properties do not have memory offsets). |
just the opposite, you can retrieve not static field value(as public int offset_name), but it will be difficult |
reopen pls |
this is not the end yet, the issue with Mono remains to be resolved |
Can you provide some call stack information? |
How?! |
Mono Mode is Crashed Unity3D(2021.3.14f1 or higher)... Idk why, but it's strange...
IL2Cpp Mode Is Not Crashed Unity3D!!!
The text was updated successfully, but these errors were encountered: