The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

48 ratings
Crash Detective: Log++ [READ DESC]
   
Award
Favorite
Favorited
Unfavorite
Tags: Lua, Tweaks
File Size
Posted
Updated
66.226 KB
Mar 10, 2022 @ 4:45pm
Mar 11, 2022 @ 7:45am
2 Change Notes ( view )

Subscribe to download
Crash Detective: Log++ [READ DESC]

Description
UPDATE: The latest version of Repentance already has proper crash report on logs, so you most likely dont even need this mod!

This mod is basically a logger that adds callback calls to the game's log, it allows you to easily tell which callbacks were running at the moment of a crash and which mod added said callbacks. It can also log certain function calls in it's "advanced mod" thats hidden behind a variable in the main lua but most people wont need that and its laggy as sin so Its off by default.

IMPORTANT: remember to disable this mod after you are done testing, you dont want your full drive to be filled with isaac logs, lol

When do I run this mod?
When your game consistently crashes, you can replicate the crash and you want to get clues as to what is causing it.

When NOT to run this mod?
When you want more info on the logs for casual play "just in case it eventually crashes". This mod is intended to be used when you already know the game is going to crash and you want to know why....if you run it 14/7 you'll stockpile GBs upon GBs of text files that, depending on what software you use to open them, you wont even be able to open. so, I insist, DONT LEAVE THIS MOD ON!

How to use?
You must enable the mod, crash the game, and then, without reopening the game, go to "Documents\My Games\Binding of Isaac Repentance" and look for the log.txt. then just scroll all the way to the last lines and you'll see something like this:
[ModName] Start of Callback A [ModName] End of Callback A [AnotherModName] Start of Callback B Caught exception writing minidump...
Notice how ModName Callback A ended, but AnotherModName's callback never ended, it just crashed midway...well, that means that the code from AnotherModName was still running when the game crashed...does that mean that it crashed the game?, it's likely, but this is not a definitive answer, what you need to do to get answers is to copy the last 10 lines of this log and send it to the creator of said mod, they'll probably be able to either identify the problem or point you to a possible solution.

DONT USE THIS AS A ♥♥♥♥♥♥ BLAME GAME TOOL

If you find a crash and theres a mod that you think may be at fault, let the creator of the mod know and provide all the info you can (the last lines of the log will help a ton), dont be one of those guys that reports nothing and instead goes around saying how ♥♥♥♥♥♥ X mod is because it crashed your game, just because the last line of the log says that mod's name...for the love of jesus christ DONT be an ass.

Anyway, use responsibly and please let me know if there are any features you would want from this or if you experience any issues.

Known Issues
- Indentation can go nuts if you have a lot of mods on, this is specially the case due to an oddity on how Render and Shader Callbacks are handled. They are usually interrupted by Input Action callbacks and some other "faster" callbacks, so that will indentate things which is appropiate but kind of messy in practice.

- End times for Render and Shader callbacks can be a little off due to the issues mentioned up there, it's still accurate enough to tell if that was the callback that actually crashed or if it was something that interrupted said callback (like an input callback) so just use proper judgement knowing this. a.k.a if a input shader seems to be running inside of a render one, it may not be the case but rather it may be that the input one just shoved itself in there because....the api is just that unreliable.

Special thanks:
Sentinel & DeadInfinity - enlighted me in some lua tricks to hijack stuff

PD: Play Bertran
11 Comments
DeathZacus Nov 28, 2024 @ 2:51pm 
For anyone using this now, use notepad++, works wonder!
JSG  [author] Mar 22, 2022 @ 3:21pm 
Good News: The latest version of repentance introduced proper crash reporting for most cases, so for 99.9% of the crashes you will likely not need this mod anymore.
Isolated Mind Mar 13, 2022 @ 6:46am 
You are the KING, thanks
JSG  [author] Mar 12, 2022 @ 2:51pm 
Np, Im glad it helps.
Just added more info to the mod's description on instructions as to when the mod should be used and when it shouldnt....hopefully, that clarifies some confusion people may get from the implied nature of Isaac mods that does not apply to this one.
Schlatt Mar 12, 2022 @ 2:46pm 
honestly this mod is really impressive, thanks for the help!
JSG  [author] Mar 12, 2022 @ 2:41pm 
This mod is not intended to be running 24/7, as the description states, its only intended to be ran when you have a crash you are able to reproduce and then it should be disabled. Having a 2gb log file makes me believe that you are not using it properly.
Zozochao Mar 12, 2022 @ 1:29pm 
since downloading this mod the log file is almost 2 gigabytes in size, text editor wont even open it for me to read. was hoping it would help but needing to get a beefier log reader to do it wasn't expected
JSG  [author] Mar 12, 2022 @ 7:27am 
This mod isnt supposed to fix anything, it's just supposed to give you clues as to why your game is crashing. Also, it would be pretty odd for this mod to crash, it will make your game laggier, which can result in small freezes if you already lagged a lot prior to enabling this one, but dont mistake freezes with crashes, they are not the same. Crashes are always caused by mods not working, freezes are caused by you tossing way too much into the game so it just gets stuck....this will only close if you spam click the window to no end and/or windows goes "this isnt responding, wanna close it?"
tl;dr: if at the end of the log there isnt a "caught exception writing minidump..." message, then its not a crash.
Schlatt Mar 12, 2022 @ 5:28am 
my game is so shattered that installing this legit changed how it crashes, it didnt fix it just made it different. i think i have too many mods lmao
Gregory_no Mar 12, 2022 @ 1:49am 
You saved our lives