Page 1 of 1

[14.22] Game freeze when opening menu

Posted: Sun Feb 12, 2017 2:57 am
by Edeholland
Hello, recently I got a bug, I'm not sure if it's this version, I think I messed something up when entering a very long string into a field.

Sometimes, when I click on an item and a menu opens, the game freezes and I see a code.Image

I think I might have overflowed some character field with this long string, but I have no idea why it keeps popping up in random screens, not the one where I pasted it. Also, I already restarted the game lots of times (I have to when it freezes) so it's not a temporarily thing.

I haven't seen it here yet so I wonder what this is and if there is an solution

Re: [14.22] Game freeze when opening menu

Posted: Sun Feb 12, 2017 4:34 am
by Edeholland
I did more research. Every time I hover over the item with the long name (it's a blueprint), the game crashes.

I think the problem is: too long name string causes game to crash when the name has to be displayed (some overflow?)
I think a solution could be: restricting names to a certain length

Re: [14.22] Game freeze when opening menu

Posted: Sun Feb 12, 2017 6:42 am
by Rseding91
Can you upload the save file with the weird named item?

Re: [14.22] Game freeze when opening menu

Posted: Sun Feb 12, 2017 11:25 am
by Edeholland
I'm sorry, I had to sleep for a few hours. I will continue Factorio now.

I attached the save file. I put the item in a box (I could do this by using ctrl, so I would not have to hover over the item :D )

It's a blueprint item, I think I tried to paste a blueprint string into the name field?

Image

Re: [14.22] Game freeze when opening menu

Posted: Sun Feb 12, 2017 1:16 pm
by Loewchen
Edeholland wrote: It's a blueprint item, I think I tried to paste a blueprint string into the name field?
Pretty sure you did

Re: [14.22] Game freeze when opening menu

Posted: Sun Feb 12, 2017 2:01 pm
by Edeholland
Your computer can handle it :shock:

Anyways, is this worth a fix or not? I think I surely am not the first nor the last one to do this by accident.

Re: [14.22] Game freeze when opening menu

Posted: Sun Feb 12, 2017 8:39 pm
by Rseding91
I'll just limit the name field to some smaller amount - 500 characters or something.