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
Crashlog truncated with many news messages #7255
Version of OpenTTD
After merge of #6709
Crashlog written in full including the footer
File is truncated after a fixed buffer length is exhausted.
Steps to reproduce
Load a savegame which produces a large number of news messages, for example gr0_50k_stations63 used for testing #7235. This game will produce a very large number of station acceptance news messages on the first day of loading. If a crash occurs before these news messages expire from "recent", the crash log is truncated.
Possible Fix: Depending on the amount of memory left for OpenTTD to allocate and the number of news messages, dynamically calculate and allocate the buffer to writing the OpenTTD crash report, instead of just assuming you will have no more than some number of recent news messages at the time of the crash and allocating a fixed buffer length for the crash report.
This issue has been automatically marked as stale because it has not had any activity in the last two months.