@Falco said in Reliable crash due to key layout file:
I assigned the pause key. Like the actual key that says pause on it.
In any case, it should behave more reasonable. For example displaying a reasonable error message and then continuing without assigning that key.
I think this is related
This is not what you meant I know, but I think my answer would be: yes, it [alternative launcher] should behave more reasonable [sic]…you probably want to let the author of the alternate launcher know that this key is not supported in the game and one might consider it a bug in that tool if it allows assignment of that key
All humor aside, the game UI and the keystroke editor provided with the install do not allow assignment of the BREAK/PAUSE key for callback binding. Therefore, if you stick to what comes with the game to edit key file content, it’s not possible to encounter this error. We have at various times talked about defending the code against “bad data”, hand edit errors or third party tools issues. Some measures are taken in spots, including against some forms of bad data in key files. You are right in that more could be done. However, one has to recognize that there are very many ways to “break” the code with unsupported changes to data file content and defending against all of those is…well, a lot of work.
Suffice it to say, this is probably going to be on the “will not fix” list for the foreseeable future.
With luck, the fact that you kindly pointed it out and we discussed it here will allow anyone running into this issue in future to at least search the forum for help and find the simple work around: "don’t try and map the PAUSE/BREAK key in your key file.