Berkus Decker
Berkus Decker
Hey, I see it's officially published now! I guess we can close this then.
With printf-debugging it is clear that some index gets negative, but that's not visible in the error message. ``` I: Second branch => load 0x01 from 0x00001102 to 0x00002808 I:...
With printf debugging ImHex completely choked one core and crawled to a near halt, after 15 seconds it doesn't even printf anymore.
https://github.com/user-attachments/assets/9d24a23a-f573-4168-9de0-0759af2c0ec9
[dealer2a.crp.zip](https://github.com/user-attachments/files/18747089/dealer2a.crp.zip) uncompress to dealer2a.crp and run the pattern script on it, I restored the bugs in the code so it will throw this exception again. If ImHex unfreezes I will...
I used the debugger, but it's really not very useful when the error happens on iteration 30,000 - i will literally die pressing continue 30,000 times.
Ideally, it should break into the debugger when a script exception is thrown (provided there is no try/catch).
But it doesn't let you use the debugger at the point where exception happened, exactly what I'm saying.
Okay, I believe the problem is the negative index, as I posted in my second message - could it be the scripting engine does not process that correctly? Or maybe...
I did not manage to wait the std::print() version - it was getting slower and slower with each step, so I had to kill ImHex.