FS#6589 - Crash upon running the "rescannewgrf" command while newgrfs are already being scanned

Attached to Project: OpenTTD
Opened by James (james1101) - Monday, 17 July 2017, 08:20 GMT
Type Bug
Category NewGRF
Status New
Assigned To No-one
Operating System Windows
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Using Windows 7 Ultimate

When running the rescannewgrf command twice in quick succession, a game crash occurs.

To Reproduce: (Works best when the game has a lot of GRFs to scan.)
Run the rescannewgrf command twice in quick succession.

Suggested Fix: When attempting to run the rescannewgrf command while the newgrfs are already being scanned, it should, instead of restarting the scan and crashing, output "Error: Newgrfs still being scanned, please wait til it's finished.", "ERR_NEWGRF_ALREADY_BEING_SCANNED", "ERR_NEWGRF_SCAN_IN_PROGRESS" or something like that.
   crash.png (376.3 KiB)
   crash.log (14.9 KiB)
(application/octet-stream)    crash.dmp (12.84 MiB)
This task depends upon