ThirteenAG / Ultimate-ASI-Loader

ASI Loader is the tool that loads custom libraries with the file extension .asi into any game process.
MIT License
1.13k stars 99 forks source link

GTA IV: crash to desktop after loading, conflict with scripthookdotnet #113

Open manu90mala opened 1 month ago

manu90mala commented 1 month ago

latest version is crashing GTA IV when loading with scripthookdotnet - working fine with previous version I was using (6.7.0)

here the crashdump:

Unhandled exception at 0x762EA942 in KERNELBASE.dll (+0x14a942): 0xE0434352: NO_DESCRIPTION. Register dump: EAX: 0x00B5DB08 EBX: 0x00000005 ECX: 0x00000005 EDX: 0x00000000
EDI: 0x00000001 ESI: 0x00B5DBCC EBP: 0x00B5DB64 EIP: 0x762EA942
ESP: 0x00B5DB08 EFL: 0x00000212

    CS: 0x00000023   SS: 0x0000002B   
    GS: 0x0000002B   FS: 0x00000053   
    ES: 0x0000002B   DS: 0x0000002B   

    ST00: 0xFDD7C634 0x000000FF 0x0000FFFF 0x00000000  [ -35851643569630774803953700186315816960.000000 0.000000 0.000000 0.000000 ]
    ST01: 0x00000000 0x00000000 0x00008000 0x65000000  [ 0.000000 0.000000 0.000000 37778931862957161709568.000000 ]
    ST02: 0x00000000 0xE5196500 0x00004002 0x24000000  [ 0.000000 -45274074564406273900544.000000 0.000000 0.000000 ]
    ST03: 0x00000000 0xFD592400 0x0000C006 0x00000000  [ 0.000000 -18039337360764624888422076871792918528.000000 0.000000 0.000000 ]
    ST04: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    ST05: 0x00000000 0x80000000 0x00003FFF 0x00000000  [ 0.000000 -0.000000 0.000000 0.000000 ]
    ST06: 0x00000000 0xE6000000 0x00004005 0x00000000  [ 0.000000 -151115727451828646838272.000000 0.000000 0.000000 ]
    ST07: 0x00000000 0x84400000 0x00004007 0x002B0000  [ 0.000000 -0.000000 0.000000 0.000000 ]

    XMM00: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM01: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM02: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM03: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM04: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM05: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM06: 0x00000001 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM07: 0x14479209 0x429507C1 0x4B3E4F35 0x9CD497A4  [ 0.000000 74.515144 12472117.000000 -0.000000 ]

Stack dump:
    0x00B5DB08:  E0434352 00000001 00000000 762EA942 00000005 8007007E
    0x00B5DB20:  00000000 00000000 00000000 732C0000 00000000 431544F0
    0x00B5DB38:  00B5DC50 00000001 00B5DC1C 00000000 00B5DBD0 732DF129
    0x00B5DB50:  00000000 00B5F114 00B5DB2C C4E3145A 00B5DB1C 00B5DC00
    0x00B5DB68:  7344B90F E0434352 00000001 00000005 00B5DBCC 07ED7475
    0x00B5DB80:  00000002 060AC3E0 00000000 431544F0 00000001 E0434352
    0x00B5DB98:  73453D16 00B5DBA8 07ED73C5 060AC3E0 060AC3E0 00000000
    0x00B5DBB0:  00B5D488 00B5DBC0 E0434352 E0434352 00000000 060AC3E0
    0x00B5DBC8:  00000000 8007007E 00000000 00000000 00000000 732C0000
    0x00B5DBE0:  431544F0 4315467C 00B5DB7C 00B5D488 00B5DC24 7342E680
    base: 0x00A60000   top: 0x00B5DB08   bottom: 0x00B60000

Backtrace (may be wrong):
    =>0x762EA942 RaiseException+0x62 in KERNELBASE.dll (+0x14a942) (0x00B5DB64) 
      0x7344B90F CorDllMainForThunk+0x853f in clr.dll (+0x18b90f) (0x00B5DC00) 
      0x73453D99 GetMetaDataPublicInterfaceFromInternal+0xfc9 in clr.dll (+0x193d99) (0x00B5DC18) 
      0x73453E12 GetMetaDataPublicInterfaceFromInternal+0x1042 in clr.dll (+0x193e12) (0x00B5DC40) 
      0x73453E50 GetMetaDataPublicInterfaceFromInternal+0x1080 in clr.dll (+0x193e50) (0x00B5DC6C) 
      0x73453E58 GetMetaDataPublicInterfaceFromInternal+0x1088 in clr.dll (+0x193e58) (0x00B5F0BC) 
      0x733D7424 CorExeMain+0x18fe4 in clr.dll (+0x117424) (0x00B5F0E4) 
      0x733D7289 CorExeMain+0x18e49 in clr.dll (+0x117289) (0x00B5F0F8) 
      0x733D733A CorExeMain+0x18efa in clr.dll (+0x11733a) (0x00B5F218) 
      0x732D2A16 in clr.dll (+0x12a16) (0x00B5F248) 
      0x08669727 in unknown (+0x8669727) (0x00B5F264) 
      0x086696AA in unknown (+0x86696aa) (0x00B5F26C) 
      0x05C7F7B9 in unknown (+0x5c7f7b9) (0x00B5F294) 
      0x53685F43 NativeThread::Run+0x33 in ScriptHook.dll (+0x15f43) (0x00B5F2C0) 
      0x53685F76 NativeThread::Tick+0x16 in ScriptHook.dll (+0x15f76) (0x00B5F318) 
      0x00E2163D in GTAIV.exe (+0x2163d) (0x00B5F348) 
      0x00E02D62 in GTAIV.exe (+0x2d62) (0x00B5F364) 
      0x00E0187C in GTAIV.exe (+0x187c) (0x00B5FAC0) 
      0x75EF7BA9 BaseThreadInitThunk+0x19 in KERNEL32.DLL (+0x17ba9) (0x00B5FAD0) 
manu90mala commented 1 month ago

the last version that doesn't crash with scripthookdotnet is 7.2.0

manu90mala commented 2 weeks ago

@ThirteenAG any input on this issue? Tested also with latest and newest scripthookdotnet and same as before, game launches properly only with ultimate asi loader up to version 7.2.0

ThirteenAG commented 2 weeks ago

No, it works for people I've asked to test. You didn't post a crash dump, so nothing I can take a look at further.

manu90mala commented 2 weeks ago

@ThirteenAG here it is!

Unhandled exception at 0x7741A942 in KERNELBASE.dll (+0x14a942): 0xE0434352: NO_DESCRIPTION. Register dump: EAX: 0x0253D808 EBX: 0x00000005 ECX: 0x00000005 EDX: 0x00000000
EDI: 0x00000001 ESI: 0x0253D8CC EBP: 0x0253D864 EIP: 0x7741A942
ESP: 0x0253D808 EFL: 0x00000212

    CS: 0x00000023   SS: 0x0000002B   
    GS: 0x0000002B   FS: 0x00000053   
    ES: 0x0000002B   DS: 0x0000002B   

    ST00: 0xFDD7C634 0x000000FF 0x0000FFFF 0x00000000  [ -35851643569630774803953700186315816960.000000 0.000000 0.000000 0.000000 ]
    ST01: 0x00000000 0x00000000 0x00008000 0x65000000  [ 0.000000 0.000000 0.000000 37778931862957161709568.000000 ]
    ST02: 0x00000000 0xE5196500 0x00004002 0x24000000  [ 0.000000 -45274074564406273900544.000000 0.000000 0.000000 ]
    ST03: 0x00000000 0xFD592400 0x0000C006 0x00000000  [ 0.000000 -18039337360764624888422076871792918528.000000 0.000000 0.000000 ]
    ST04: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    ST05: 0x00000000 0x80000000 0x00003FFF 0x00000000  [ 0.000000 -0.000000 0.000000 0.000000 ]
    ST06: 0x00000000 0xE6000000 0x00004005 0x00000000  [ 0.000000 -151115727451828646838272.000000 0.000000 0.000000 ]
    ST07: 0x00000000 0x84400000 0x00004007 0x002B0000  [ 0.000000 -0.000000 0.000000 0.000000 ]

    XMM00: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM01: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM02: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM03: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM04: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM05: 0x00000000 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM06: 0x00000001 0x00000000 0x00000000 0x00000000  [ 0.000000 0.000000 0.000000 0.000000 ]
    XMM07: 0xC332BAC4 0xA5F44FDC 0x8BB94839 0xC87A73F1  [ -178.729553 -0.000000 -0.000000 -256463.765625 ]

Stack dump:
    0x0253D808:  E0434352 00000001 00000000 7741A942 00000005 8007007E
    0x0253D820:  00000000 00000000 00000000 72E50000 00000000 05964F90
    0x0253D838:  0253D950 00000001 0253D91C 00000000 0253D8D0 72E6F179
    0x0253D850:  00000000 0253EE14 0253D82C 5BC0126C 0253D81C 0253D900
    0x0253D868:  72FDB88F E0434352 00000001 00000005 0253D8CC BCC65224
    0x0253D880:  00000002 0623C3E0 00000000 05964F90 00000001 E0434352
    0x0253D898:  72FE3C96 0253D8A8 BCC65394 0623C3E0 0623C3E0 00000000
    0x0253D8B0:  0253D188 0253D8C0 E0434352 E0434352 00000000 0623C3E0
    0x0253D8C8:  00000000 8007007E 00000000 00000000 00000000 72E50000
    0x0253D8E0:  05964F90 0596511C 0253D87C 0253D188 0253D924 72FBE5F0
    base: 0x02440000   top: 0x0253D808   bottom: 0x02540000

Backtrace (may be wrong):
    =>0x7741A942 RaiseException+0x62 in KERNELBASE.dll (+0x14a942) (0x0253D864) 
      0x72FDB88F CorDllMainForThunk+0x853f in clr.dll (+0x18b88f) (0x0253D900) 
      0x72FE3D19 GetMetaDataPublicInterfaceFromInternal+0xfc9 in clr.dll (+0x193d19) (0x0253D918) 
      0x72FE3D92 GetMetaDataPublicInterfaceFromInternal+0x1042 in clr.dll (+0x193d92) (0x0253D940) 
      0x72FE3DD0 GetMetaDataPublicInterfaceFromInternal+0x1080 in clr.dll (+0x193dd0) (0x0253D96C) 
      0x72FE3DD8 GetMetaDataPublicInterfaceFromInternal+0x1088 in clr.dll (+0x193dd8) (0x0253EDBC) 
      0x72F67384 CorExeMain+0x18fe4 in clr.dll (+0x117384) (0x0253EDE4) 
      0x72F671E9 CorExeMain+0x18e49 in clr.dll (+0x1171e9) (0x0253EDF8) 
      0x72F6729A CorExeMain+0x18efa in clr.dll (+0x11729a) (0x0253EF18) 
      0x72E62A36 in clr.dll (+0x12a36) (0x0253EF48) 
      0x08589827 in unknown (+0x8589827) (0x0253EF64) 
      0x085897AA in unknown (+0x85897aa) (0x0253EF6C) 
      0x05CDF7B9 in unknown (+0x5cdf7b9) (0x0253EF94) 
      0x550B5F43 NativeThread::Run+0x33 in ScriptHook.dll (+0x15f43) (0x0253EFC0) 
      0x550B5F76 NativeThread::Tick+0x16 in ScriptHook.dll (+0x15f76) (0x0253F018) 
      0x0097163D in GTAIV.exe (+0x2163d) (0x0253F048) 
      0x00952D62 in GTAIV.exe (+0x2d62) (0x0253F060) 
      0x0095187C in GTAIV.exe (+0x187c) (0x0253F7BC) 
      0x75937BA9 BaseThreadInitThunk+0x19 in KERNEL32.DLL (+0x17ba9) (0x0253F7CC) 

thank you

ThirteenAG commented 2 weeks ago

I can see that in the previous post, what's the point in posting it twice?

manu90mala commented 2 weeks ago

You said I didn’t post a crash dump so I thought you didn’t see it in the first post. Isn’t what I posted a crash dump? What else would you need?

ThirteenAG commented 2 weeks ago

https://github.com/ThirteenAG/Ultimate-ASI-Loader?tab=readme-ov-file#crashdumps

What you're posting is crash log, dump has .dmp extension.

manu90mala commented 2 weeks ago

apologies, here it is GTAIV.exe.20240825201821.dmp

ThirteenAG commented 2 weeks ago

An exception is inside your dot net stuff, there's nothing I can do on my end.

ThirteenAG commented 2 weeks ago

Try updating script hook to a latest version: https://github.com/Tomasak/gta4_scripthookdotnet/releases/tag/release

Other than that, I have no clue, you have a lot of outdated stuff, no wonder it doesn't work properly.

manu90mala commented 2 weeks ago

It is already updated to the latest version released by Tomas Al

What is outdated other than patch 7? I guess I will have to stop using fusion fix new versions like any other user on patch 7 that wants to also use scripthookdotnet

Thanks for at least taking a look at it

ThirteenAG commented 2 weeks ago

The difference between 7.2.0 and above is update folder functionality, so far it worked everywhere I've tested. I have no way to tell what this dotnet thing is doing, script hook asi itself works fine on my end.

manu90mala commented 2 weeks ago

Indeed scripthook works fine and the issue is with dotnet (I have asked tomasak to also check on his side if he can). What exactly does the new folder functionality change?

ThirteenAG commented 2 weeks ago

Redirects file loading to be able to load from update folder. And I mean dot net asi works fine as well. Unfortunately crash dump doesn't show what exactly crashes.

ThirteenAG commented 2 weeks ago

You could also rename/delete update folder to see if it affects the behavior.

manu90mala commented 2 weeks ago

oh you got it! I renamed the update folder and it works now! so the conflict is with my update folder that must be somehow changed. not sure what do to but I will try to rebuild it mod by mod, starting from the latest FF version

ThirteenAG commented 2 weeks ago

It's not a conflict with the contents of update folder I think, if you create an empty update folder, it should crash as well. You should rather find what exactly crashes that is loaded by dot net.

manu90mala commented 2 weeks ago

doesnt crash with an empty folder, but it does crash with the latest version of FF installed...

Il giorno lun 26 ago 2024 alle 09:38 Sergey P. @.***> ha scritto:

It's not a conflict with the contents of update folder I think, if you create an empty update folder, it should crash as well. You should rather find what exactly crashes that is loaded by dot net.

— Reply to this email directly, view it on GitHub https://github.com/ThirteenAG/Ultimate-ASI-Loader/issues/113#issuecomment-2309547479, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5Z52LLNZ7SQ3HO4M2JVRPDZTLLPRAVCNFSM6AAAAABMKDN4S6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBZGU2DONBXHE . You are receiving this because you authored the thread.Message ID: @.***>