sneakyevil / IL2CPP_Resolver

A run-time API resolver for IL2CPP Unity.
https://sneakyevil.gitbook.io/il2cpp-resolver/
The Unlicense
363 stars 67 forks source link

Getting Class/MethodPointer & Callback Initializtion crashes #57

Open evoredact opened 3 months ago

evoredact commented 3 months ago

What is the game you are using with IL2CPP Resolver?

706990

Details:

I've Initialized IL2CPP through IL2CPP::Initialize(true) it were successful. For some reason IL2CPP::Callback::Initialize() crashes game, same with when I'm trying to get method pointer (uintptr_t)IL2CPP::Class::Utils::GetMethodPointer("PLH", "Add") also I guess it happens for all the functions.

I used Pre-HeaderOnly Version, cause new one not compiling on my project for some reason it tells functions or something like that already exist in project.

Project: .DLL Inject program: System Informer (launched with admin rights)

Errors from: output_log.txt (AppData\LocalLow\Skullcap Studios\BLOCKPOST)

========== OUTPUTTING STACK TRACE ==================

0x60183573 (GameAssembly) il2cpp_domain_get_assemblies
0x6241C9B3 (AssemblyClient) [D:\LangProjects\C++\AssemblyClient\external\Il2cpp_Resolver\Functions\Domain.hpp:14] IL2CPP::Domain::GetAssemblies 
0x6241C6E3 (AssemblyClient) [D:\LangProjects\C++\AssemblyClient\external\Il2cpp_Resolver\Functions\Class.cpp:72] IL2CPP::Class::Find 
0x6241CD2F (AssemblyClient) [D:\LangProjects\C++\AssemblyClient\external\Il2cpp_Resolver\Functions\Class.cpp:184] IL2CPP::Class::Utils::GetMethodPointer 
0x62585817 (AssemblyClient) [D:\LangProjects\C++\AssemblyClient\src\sdk.h:46] Offsets::RegisterOffsets 
0x6258559D (AssemblyClient) [D:\LangProjects\C++\AssemblyClient\src\main.cpp:160] MainThread 
0x7665FCC9 (KERNEL32) BaseThreadInitThunk
0x777C80CE (ntdll) RtlGetAppContainerNamedObjectPath
0x777C809E (ntdll) RtlGetAppContainerNamedObjectPath

========== END OF STACKTRACE ===========

crash.dmp

Exception code: 0xc0000005
The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

extremeblackliu commented 2 months ago

cannot help with no code provided