libTAS
libTAS copied to clipboard
Segfault if resizing window while game is running
If you resize the game window with your cursor while it is running (and unpaused), the game will segfault. Tested with VVVVVV. I am on Nvidia graphics (proprietary drivers), which might also be a factor.
The crash happens in malloc, which isn't indicative of malloc having a problem but instead is indicative of some heap corruption happening. Consequently, the backtrace is different depending on if you have the OSD enabled, and probably other stuff too. My guess is libTAS isn't invalidating some pointers or objects somewhere whenever the window gets resized.
It probably has to do with the screen capture code that is not updated with the new window dimension. I would personally just forbid users from resizing the game window. It is a source of desyncs.