ManlyMarco/UniversalUnityDemosaics

BepInEx 6.0.0-pre.2 crash using IL2CPP_net6 version

Opened this issue · 3 comments

Tried a game with BepInEx 6.0.0-pre.2 as BepInEx 6.0.0-pre.1 crash on preloader phase. Using pre1 version of the plugin does nothing but using net6 version does load into game but crash the game soon after. So, update to BepInEx 6.0.0-pre.2 please?

The fix would almost certainly have to be game-specific. There is no way to fix it in general for IL2CPP.

Trying with this game. So far, nothing works.

Log file:

[Message: Preloader] BepInEx 6.0.0-be.725 - One Night (11/9/2024 7:50:11 PM)
[Message: Preloader] Built from commit e1974e26fd7702c66b54c0d6879c90b988cc4920
[Info   :   BepInEx] System platform: Windows 10 64-bit
[Info   :   BepInEx] Process bitness: 64-bit (x64)
[Info   :   BepInEx] Running under Unity 2023.2.4f1
[Info   :   BepInEx] Runtime version: 6.0.7
[Info   :   BepInEx] Runtime information: .NET 6.0.7
[Debug  :   BepInEx] Game executable path: E:\illusion\RJ01249081 One Night\One Night.exe
[Debug  :   BepInEx] Interop assembly directory: E:\illusion\RJ01249081 One Night\BepInEx\interop
[Debug  :   BepInEx] BepInEx root path: E:\illusion\RJ01249081 One Night\BepInEx
[Info   : Preloader] 0 patcher plugins loaded
[Debug  :AssemblyPatcher] Assembly loaded: Assembly-CSharp.dll
[Debug  :AssemblyPatcher] Assembly loaded: Cinemachine.dll
[Debug  :AssemblyPatcher] Assembly loaded: DOTween.dll
[Debug  :AssemblyPatcher] Assembly loaded: DOTween.Modules.dll
[Debug  :AssemblyPatcher] Assembly loaded: DOTweenPro.dll
[Debug  :AssemblyPatcher] Assembly loaded: DOTweenPro.Scripts.dll
[Debug  :AssemblyPatcher] Assembly loaded: Fanx.Camera.dll
[Debug  :AssemblyPatcher] Assembly loaded: Fanx.Character.dll
[Debug  :AssemblyPatcher] Assembly loaded: Fanx.Drama.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppMono.Security.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2Cppmscorlib.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Configuration.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Core.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Xml.dll
[Debug  :AssemblyPatcher] Assembly loaded: MagicaClothV2.dll
[Debug  :AssemblyPatcher] Assembly loaded: ObjectCollider.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Announce.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Chapter.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Character.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Choices.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Config.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Context.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Description.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Dialog.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Drama.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Engine.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Frame.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.LogWindow.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Message.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Option.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Preview.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Story.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Title.dll
[Debug  :AssemblyPatcher] Assembly loaded: Onen.Walk.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sirenix.OdinInspector.Modules.Unity.Addressables.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Addressables.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Animation.Rigging.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Burst.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Burst.Unsafe.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Collections.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Collections.LowLevel.ILSupport.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.InputSystem.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.InputSystem.ForUI.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Mathematics.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipeline.Universal.ShaderLibrary.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipelines.Core.Runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipelines.Universal.2D.Runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipelines.Universal.Runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.ResourceManager.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.TextMeshPro.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Timeline.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AccessibilityModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AndroidJNIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AnimationModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AssetBundleModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AudioModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ClothModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ClusterInputModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ClusterRendererModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.CommandStateObserverModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ContentLoadModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.CoreModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.CrashReportingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.DirectorModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.DSPGraphModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GameCenterModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GraphToolsFoundationModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GridModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.HierarchyCoreModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.HotReloadModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ImageConversionModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.IMGUIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.InputForUIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.InputLegacyModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.InputModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.JSONSerializeModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.LocalizationModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.MarshallingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.MultiplayerModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ParticleSystemModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.PerformanceReportingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.Physics2DModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.PhysicsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ProfilerModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.PropertiesModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ScreenCaptureModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SharedInternalsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SpriteMaskModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SpriteShapeModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.StreamingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SubstanceModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SubsystemsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TerrainModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TerrainPhysicsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TextCoreFontEngineModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TextCoreTextEngineModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TextRenderingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TilemapModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TLSModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UI.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UIElementsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UmbraModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityAnalyticsCommonModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityAnalyticsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityConnectModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityCurlModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityTestProtocolModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestAssetBundleModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestAudioModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestTextureModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestWWWModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VehiclesModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VFXModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VideoModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VirtualTexturingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VRModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.WindModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.XRModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.AudioExtension.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.FacialExpression.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.Framework.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.LipSync.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.Localization.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.RendererExtension.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.SimpleAnimator.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.Timeline.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zan.Volume.dll
[Debug  :AssemblyPatcher] Assembly loaded: Zurp.Shaders.dll
[Debug  :AssemblyPatcher] Assembly loaded: __Generated.dll
[Info   : Preloader] 0 assemblies discovered
[Message:AssemblyPatcher] Executing 0 patch(es)
[Message:   BepInEx] Chainloader initialized
[Debug  : Preloader] Runtime invoke pointer: 0x7FFAFBB87300
[Debug  :DobbyDetour] Preparing detour from 0x7FFAFBB87300 to 0x7FFB087B32E4
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFABBB90000
[Debug  :DobbyDetour] Original: 7FFAFBB87300, Trampoline: 7FFABBB90000, diff: 3FFF7300
[Debug  : Preloader] Runtime invoke patched
[Debug  :Il2CppInterop] il2cpp_object_get_virtual_method: 0x7FFAFBB87210
[Debug  :Il2CppInterop] Object::GetVirtualMethod: 0x7FFAFBB62530
[Debug  :Il2CppInterop] GenericMethod::GetMethod found: 0x7FFAFBB5E8A0
[Debug  :DobbyDetour] Preparing detour from 0x7FFAFBB5E8A0 to 0x7FFB087B3324
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFABBB90020
[Debug  :DobbyDetour] Original: 7FFAFBB5E8A0, Trampoline: 7FFABBB90020, diff: 3FFCE880
[Debug  :Il2CppInterop] il2cpp_image_get_class: 0x7FFAFBB87D60
[Debug  :Il2CppInterop] Image::GetType: 0x7FFAFBB3F9E0
[Debug  :Il2CppInterop] MetadataCache::GetTypeInfoFromTypeDefinitionIndex found: 0x7FFAFBB3F9E0
[Debug  :DobbyDetour] Preparing detour from 0x7FFAFBB3F9E0 to 0x7FFB087B3364
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFABBB90040
[Debug  :DobbyDetour] Original: 7FFAFBB3F9E0, Trampoline: 7FFABBB90040, diff: 3FFAF9A0
[Debug  :Il2CppInterop] Class::GetDefaultFieldValue found: 0x7FFAFBB3FC20
[Debug  :DobbyDetour] Preparing detour from 0x7FFAFBB3FC20 to 0x7FFB087B33A4
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFABBB90060
[Debug  :DobbyDetour] Original: 7FFAFBB3FC20, Trampoline: 7FFABBB90060, diff: 3FFAFBC0
[Warning:Il2CppInterop] Class::Init signatures have been exhausted, using a substitute!
[Debug  :Il2CppInterop] Picked mono_class_instance_size as a Class::Init substitute
[Debug  :Il2CppInterop] Class::Init: 0x7FFAFBB886A0
[Debug  :Il2CppInterop] il2cpp_class_from_il2cpp_type: 0x7FFAFBB85A60
[Debug  :Il2CppInterop] Class::FromIl2CppType found: 0x7FFAFBB69D50
[Debug  :DobbyDetour] Preparing detour from 0x7FFAFBB69D50 to 0x7FFB087B33E4
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFABBB90080
[Debug  :DobbyDetour] Original: 7FFAFBB69D50, Trampoline: 7FFABBB90080, diff: 3FFD9CD0
[Debug  :Il2CppInterop] il2cpp_class_from_name: 0x7FFAFBB85A70
[Debug  :Il2CppInterop] Class::FromName found: 0x7FFAFBB77530
[Debug  :DobbyDetour] Preparing detour from 0x7FFAFBB77530 to 0x7FFB087B3424
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFABBB900A0
[Debug  :DobbyDetour] Original: 7FFAFBB77530, Trampoline: 7FFABBB900A0, diff: 3FFE7490
[Debug  :Il2CppInterop] GarbageCollector::RunFinalizer found: 0x7FFAFD9C9D40
[Debug  :DobbyDetour] Preparing detour from 0x7FFAFD9C9D40 to 0x7FFB087B3464
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFABD9D0000
[Debug  :DobbyDetour] Original: 7FFAFD9C9D40, Trampoline: 7FFABD9D0000, diff: 3FFF9D40
[Info   :Il2CppInterop] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[Debug  :     Unity] Test call after applying unity logging hook
[Debug  :InteropManager] Preloaded 136 interop assemblies in 52ms
[Info   :   BepInEx] 1 plugin to load
[Info   :   BepInEx] Loading [DumbRendererDemosaic 1.5.0]
[Info   :Il2CppInterop] Registered mono type DumbRendererDemosaic.DumbRendererDemosaic in il2cpp domain
[Message:   BepInEx] Chainloader startup complete
[Debug  : Preloader] Runtime invoke unpatched
[Warning:     Unity] Unable to replace default canvas material because Zurp/UI/Default shader was not found