ByNameModding / BNM-Android

Modding il2cpp games by classes, methods, field names on Android.
MIT License
176 stars 37 forks source link

Crash #9

Closed nik2143 closed 10 months ago

nik2143 commented 1 year ago

The last release of bnm crashes without a reason

BNM-Dev commented 1 year ago

Yoy can show crash log?

nik2143 commented 12 months ago

No crash log in logcat it only force close

BNM-Dev commented 12 months ago

Any logs by ByNameModding tag?

nik2143 commented 12 months ago

No, 0 logs from BNM tag

BNM-Dev commented 12 months ago

Uncomment BNM_DISABLE_AUTO_LOAD in BNM_settings.h and call BNM::HardBypass in JNI_OnLoad

nik2143 commented 11 months ago
2023-07-23 01:55:38.581  7544-7630  ByNameModding           com.kiloo.subwaysurf                 D  [InitIl2cppMethods] il2cpp::vm::Class::Init in lib: 0x57baa0
2023-07-23 01:55:38.581  7544-7630  ByNameModding           com.kiloo.subwaysurf                 D  [InitIl2cppMethods] game has il2cpp_image_get_class. BNM will use it
2023-07-23 01:55:38.581  7544-7630  ByNameModding           com.kiloo.subwaysurf                 D  [InitIl2cppMethods] il2cpp::vm::Class::FromIl2CppType in lib: 0x57e564
2023-07-23 01:55:38.581  7544-7630  ByNameModding           com.kiloo.subwaysurf                 D  [InitIl2cppMethods] il2cpp::vm::Type::GetClassOrElementClass в библиотеке: 0x59ca0c.
2023-07-23 01:55:38.581  7544-7630  ByNameModding           com.kiloo.subwaysurf                 D  [InitIl2cppMethods] il2cpp::vm::Image::FromName in lib: 0x582780
2023-07-23 01:55:38.581  7544-7630  ByNameModding           com.kiloo.subwaysurf                 D  [InitIl2cppMethods] il2cpp::vm::Assembly::GetAllAssemblies by domain in lib: 0x57bc84
Scriptor-Lover1500 commented 11 months ago

@nik2143 I am also facing the same crash in latest bnm. Have you already fixed it or still crashing?

nik2143 commented 11 months ago

@nik2143 I am also facing the same crash in latest bnm. Have you already fixed it or still crashing?

Still crashing

BNM-Dev commented 11 months ago

What game? I'll check it myself when I have time

nik2143 commented 11 months ago

Subway surfers

BNM-Dev commented 11 months ago

Add this to code (to JNI on load or other methods that starts with lib load):

void il2cpp_thread() {

}

    // ...
    BNM::AddOnLoadedEvent(il2cpp_thread);
    // ...
nik2143 commented 11 months ago

It still crash

PastMC commented 10 months ago

try change #define BNM_DISABLE_NEW_CLASSES 0 to #define BNM_DISABLE_NEW_CLASSES 1

nik2143 commented 10 months ago

Done , not crash but stucks on black screen

PastMC commented 10 months ago

try make with std::thread(hack_thread).detach(); load and in bnm.cpp BNM_il2cpp_init remove all what use events

PastMC commented 10 months ago

and if you not use BNM::HardBypass use it for me it fixed this problem

nik2143 commented 10 months ago

Thanks, removing all things related to events solved the issue

PastMC commented 10 months ago

close issue if no any problems