Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Crash in crash handler - Assertion failed at line 2981 of window.cpp #7970
Version of OpenTTD
Last tested: d7a928a-windows-win32 (Windows 7 Ultimate)
No crash in crash handler
Crash in crash handler -
Steps to reproduce
??? (Seems to randomly occur, especially with starting new games, testing scripts, loading games, saving the config, etc.)
Extremely difficult to tell what's happened here given just an assertion.
Looking at the code, this function is HandleMouseEvents. This is only called from InputLoop (which is guarded by the same assertion, so it can't be that), and then several places in the win32 video driver, which I must presume you're using. These places are all relating mouse button presses or movements, so I guess you might have more luck reproducing it with lots of those?
As for the failure itself,
Hopefully that helps you reproduce whatever's happening :) Ideally we'd fix the issue in the crash handler first, then fix whatever is causing the crash...
Tested on 2020-05-09 master:
Note that this is on Windows 10 64-bit.
Additional valid reproduction steps.