-
-
Notifications
You must be signed in to change notification settings - Fork 57
Description
From the Developer
VRChat's guidelines ban bypassing the EAC and reverse engineering.
Therefore, I will no action to VRChat as I think it's a conflict of this.
Original Ticket
Are you on the latest version of UnityExplorer?
- Yes, I'm on the latest version of UnityExplorer.
Which release are you using?
MelonLoader IL2CPP CoreCLR
Which game did this occur on?
VRChat (Unity 2022.3.6.11724)
Describe the issue.
crashed when trying to access obfuscated component or any normal class including obfuscated class as member/variable.
how to trigger? inspect a gameobject and click on obfuscated component.
note: the game has eac, however, you can still use melonloader by launch the VRChat.exe in game folder. when in game, you might see error message but it doesnt matter, there will be PlayerManager xxx in scene, it has a obfuscated component for you to inspect.
i think this is not caused by obfuscate, this issue is starts from when VRChat switched to Unity 2022 from 2019 as far as i know.
thanks in advance.
Relevant log output
[06:35:41.588] ------------------------------
[06:35:41.613] MelonLoader v0.6.1 Open-Beta
[06:35:41.614] OS: Windows 10
[06:35:41.614] Hash Code: 696B58144EEC73C72FA36A811CA73312EEE4EC28AD5E3527BDA1E14F388A
[06:35:41.615] ------------------------------
[06:35:41.615] Game Type: Il2cpp
[06:35:41.615] Game Arch: x64
[06:35:41.615] ------------------------------
[06:35:41.615] Core::BasePath = F:\SteamLibrary\steamapps\common\VRChat
[06:35:41.615] Game::BasePath = F:\SteamLibrary\steamapps\common\VRChat
[06:35:41.615] Game::DataPath = F:\SteamLibrary\steamapps\common\VRChat\VRChat_Data
[06:35:41.616] Game::ApplicationPath = F:\SteamLibrary\steamapps\common\VRChat\VRChat.exe
[06:35:41.616] Runtime Type: net6
[06:35:41.729] ------------------------------
[06:35:41.729] Game Name: VRChat
[06:35:41.730] Game Developer: VRChat
[06:35:41.731] Unity Version: 2022.3.6a0
[06:35:41.731] Game Version: UNKNOWN
[06:35:41.731] ------------------------------
[06:35:42.301] Preferences Loaded!
[06:35:42.318] Loading Plugins from 'F:\SteamLibrary\steamapps\common\VRChat\Plugins'...
[06:35:42.319] 0 Plugins loaded.
[06:35:43.037] Loading Il2CppAssemblyGenerator...
[06:35:43.071] [Il2CppAssemblyGenerator] Contacting RemoteAPI...
[06:35:44.164] [Il2CppAssemblyGenerator] Game Not Found on RemoteAPI Host (https://api.melonloader.com/api/v1/game/vrchat)
[06:35:44.164] [Il2CppAssemblyGenerator] RemoteAPI.DumperVersion = null
[06:35:44.165] [Il2CppAssemblyGenerator] RemoteAPI.ObfuscationRegex = null
[06:35:44.165] [Il2CppAssemblyGenerator] RemoteAPI.MappingURL = null
[06:35:44.165] [Il2CppAssemblyGenerator] RemoteAPI.MappingFileSHA512 = null
[06:35:44.174] [Il2CppAssemblyGenerator] Using Dumper Version: 2022.1.0-pre-release.10
[06:35:44.174] [Il2CppAssemblyGenerator] Using Il2CppInterop Version = 1.4.5
[06:35:44.174] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2022.3.6
[06:35:44.174] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null
[06:35:44.175] [Il2CppAssemblyGenerator] Cpp2IL is up to date.
[06:35:44.175] [Il2CppAssemblyGenerator] UnityDependencies is up to date.
[06:35:44.175] [Il2CppAssemblyGenerator] Checking GameAssembly...
[06:35:44.532] [Il2CppAssemblyGenerator] Assembly is up to date. No Generation Needed.
[06:35:44.534] Loading Mods from 'F:\SteamLibrary\steamapps\common\VRChat\Mods'...
[06:35:44.534] ------------------------------
[06:35:44.563] Melon Assembly loaded: '.\Mods\UnityExplorer.ML.IL2CPP.CoreCLR.dll'
[06:35:44.563] SHA256 Hash: 'e9acd35446592fa5a0cbb6f368cb9f7ee393cf7b7a322bfe356d00807e785255'
[06:35:44.685] ------------------------------
[06:35:44.685] UnityExplorer v4.11.2
[06:35:44.685] by Sinai, yukieiji
[06:35:44.686] Assembly: UnityExplorer.ML.IL2CPP.CoreCLR.dll
[06:35:44.686] ------------------------------
[06:35:44.686] ------------------------------
[06:35:44.687] 1 Mod loaded.
[06:35:45.995] Class::Init signatures have been exhausted, using a substitute!
[06:35:46.013] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[06:35:46.039] Registered mono type MelonLoader.Support.MonoEnumeratorWrapper in il2cpp domain
[06:35:46.040] Registered mono type MelonLoader.Support.SM_Component in il2cpp domain
[06:35:46.049] Support Module Loaded: F:\SteamLibrary\steamapps\common\VRChat\MelonLoader\Dependencies\SupportModules\Il2Cpp.dll
[06:35:46.073] [UnityExplorer] UnityExplorer 4.11.2 initializing...
[06:35:46.096] [UnityExplorer] [UniverseLib] UniverseLib 1.5.6 initializing...
[06:35:46.098] Registered mono type UniverseLib.UniversalBehaviour in il2cpp domain
[06:35:46.330] Registered mono type UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator in il2cpp domain
[06:35:46.350] [UnityExplorer] [UniverseLib] Finished UniverseLib initial setup.
[06:35:46.360] Registered mono type UnityExplorer.ExplorerBehaviour in il2cpp domain
[06:35:46.429] [UnityExplorer] Initialized UnityCrashPrevention for: Canvas.get_renderingDisplaySize
[06:35:49.227] [UnityExplorer] [UniverseLib] Can't cache type named __c__51`1 Error: System.TypeLoadException: Could not load type 'Token' from assembly 'Il2CppVRCCore-Standalone, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' because the format is invalid.
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
at System.RuntimeType.get_Namespace()
at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in D:\a\UnityExplorer\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[06:35:49.227] [UnityExplorer] [UniverseLib] Can't cache type named MethodInfoStoreGeneric_TryFromObject_Public_Static_Boolean_byref_T_byref_Token_0`1 Error: System.TypeLoadException: Could not load type 'Token' from assembly 'Il2CppVRCCore-Standalone, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' because the format is invalid.
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
at System.RuntimeType.get_Namespace()
at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in D:\a\UnityExplorer\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[06:35:49.228] [UnityExplorer] [UniverseLib] Can't cache type named MethodInfoStoreGeneric_FromObject_Public_Static_Token_byref_T_0`1 Error: System.TypeLoadException: Could not load type 'Token' from assembly 'Il2CppVRCCore-Standalone, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' because the format is invalid.
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
at System.RuntimeType.get_Namespace()
at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in D:\a\UnityExplorer\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[06:35:51.438] [UnityExplorer] [UniverseLib] Loaded Unhollowed modules in 5.1070004 seconds.
[06:35:51.617] [UnityExplorer] [UniverseLib] Setup deobfuscation cache in 0.178 seconds.
[06:35:51.620] [UnityExplorer] [UniverseLib] Initialized Legacy Input support
[06:35:51.724] [UnityExplorer] [UniverseLib] IL2CPP method has no corresponding pointer, aborting patch of UnityEngine.AssetBundle.UnloadAllAssetBundles
[06:35:51.726] Registered mono type UniverseLib.AssetBundle in il2cpp domain
[06:35:51.796] [UnityExplorer] [UniverseLib] Loaded modern bundle for Unity 2022.3.6f1-DWR
[06:35:51.822] [UnityExplorer] [UniverseLib] UniverseLib 1.5.6 initialized.
[06:35:51.823] [UnityExplorer] Creating UI...
[06:35:52.441] [UnityExplorer] UnityExplorer 4.11.2 (IL2CPP) initialized.
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_class_init(IntPtr)
--------------------------------
at Il2Cpp.MonoBehaviourPublicObLi1DiOb2InObGaDiUnique..cctor()
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.Runtime.CompilerServices.QCallTypeHandle)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.Runtime.CompilerServices.QCallTypeHandle)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.RuntimeTypeHandle)
at Il2CppInterop.Runtime.Il2CppClassPointerStore`1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..cctor()
at System.RuntimeFieldHandle.GetValue(System.Reflection.RtFieldInfo, System.Object, System.RuntimeType, System.RuntimeType, Boolean ByRef)
at System.Reflection.RtFieldInfo.GetValue(System.Object)
at UniverseLib.Il2CppReflection.Il2CppTypeNotNull(System.Type, IntPtr ByRef)
at UniverseLib.Il2CppReflection.Internal_TryCast(System.Object, System.Type)
at UniverseLib.ReflectionExtensions.TryCast(System.Object)
at UnityExplorer.InspectorManager.Inspect(System.Object, UnityExplorer.CacheObject.CacheObjectBase)
at UnityExplorer.UI.Widgets.ComponentList.OnComponentClicked(Int32)
at UniverseLib.UI.Widgets.ButtonList.ButtonCell.<CreateContent>b__23_0()
at UniverseLib.UI.Models.ButtonRef.<.ctor>b__14_0()
at DynamicClass.(il2cpp delegate trampoline) System.Void_System.Action(il2cpp delegate trampoline) System.Void_System.Action(IntPtr, Il2CppInterop.Runtime.Runtime.Il2CppMethodInfo*)