JGRennison / OpenTTD-patches

OpenTTD - http://www.openttd.org/ - with additional patches
Other
545 stars 126 forks source link

[Crash]: Exception: C0000005, Fault type: 0 (read), Message: <none> #690

Closed SwissTurbine closed 1 month ago

SwissTurbine commented 2 months ago

Version of OpenTTD

Windows 11, OpenTTD jgrpp-0.59.0

Steps to reproduce

  1. Sorting ships into various groups (Like Goods, Food, etc.)
  2. Game crashed (twice)
  3. Game can be started again (from last save) and works well until sorting ships into groups, which crashes the game
  4. The game crashes not immediately (during sorting the ships), but after a while
  5. This crash occurs since I update OpenTTD to jgrpp-0.59.0. No problem with version jgrpp-0.58.3 (no crash during sorting)

Upload crash files

crash-20240507T124508Z.zip

SwissTurbine commented 2 months ago

Additional Note about the crash: The crash occurs when ship grouping window is open and when I change a ship type. Maybe the NewGRF: 425f0101-Very_large_ships-0.1.tar has something to do with it. When I change Ship (Very_large_ships-0.1) to (Multi_SHARK-v1.1) then OpenTTD actually crashes (not the sorting itself). I hope that helps a bit...

Thank you very much for your help.

JGRennison commented 2 months ago

It's the autoreplace window. Changing the engine sort mode in that window to not use the capacity can be used to avoid this. I'll fix this shortly.

SwissTurbine commented 2 months ago

You are absolut correct. If I use the sort mode "Capacity" or "Capacity/Running Cost" it will crash, all other sort mode work fine. Thank you very much for the quick response, it is amazing. Thank you and have a nice day. Best regards from Switzerland