vfsfitvnm / frida-il2cpp-bridge

A Frida module to dump, trace or hijack any Il2Cpp application at runtime, without needing the global-metadata.dat file.

Home Page:https://github.com/vfsfitvnm/frida-il2cpp-bridge/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: abort was called

2361788963 opened this issue · comments

When I hook OnPointerClick,It may report an error.
unityVersion:2019.4.36f1c1

code:
Il2Cpp.perform(() => { const UI = Il2Cpp.domain.assembly("UnityEngine.UI").image const Button = UI.class("UnityEngine.UI.Button") Button.method("OnPointerClick").implementation = function (eventData) { return OnPointerClick.invoke(eventData); } });

log:
Error: abort was called at invokeRaw (/node_modules/frida-il2cpp-bridge/dist/index.js:2402) at <anonymous> (index.ts:27) at call (native) at <anonymous> (/node_modules/frida-il2cpp-bridge/dist/index.js:2505)

See #198 (comment),

I don't understand. Is this a bug in the game application itself? But what should I do,because when this error occurs, it will cause other elements on the game to be lost

An "abort was called" error typically occurs when a managed (C#) exception is thrown. frida-il2cpp-bridge can't catch exceptions as of today, but you can log them using:

Il2Cpp.perform(() => {
     Il2Cpp.attachExceptionListener("all");

     // your code here
});

An "abort was called" error typically occurs when a managed (C#) exception is thrown. frida-il2cpp-bridge can't catch exceptions as of today, but you can log them using:

Il2Cpp.perform(() => {
     Il2Cpp.attachExceptionListener("all");

     // your code here
});

ok,I do it,now,These are new error.

il2cpp: System.NullReferenceException: Object reference not set to an instance of an object. at GoogleMobileAdsDemoScript.ShowAdmobInterstitial () [0x00000] in <00000000000000000000000000000000>:0 at SettingsMenu.Show () [0x00000] in <00000000000000000000000000000000>:0 at TitleScreenUI.OnOptionsButtonClicked () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Events.UnityAction.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 Error: abort was called