[0.7.0] Crash when pressing shift + spacebar

This subforum contains all the issues which we already resolved.
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

[0.7.0] Crash when pressing shift + spacebar

Post by FreeER »

windows x64 installation version of Factorio (build 6571)
Noticed this when I placed fish in the last hotbar slot (shift+5). I'd be shooting and then try to use fish and heal, and sometimes I'd crash. Did a quick test and it seems sometimes I didn't lift off of the shift key before I went back to shooting and when I hit the spacebar to shoot Factorio would crash. Quick work around of course is to move the fish/consumables to one of the first five slots or make sure to not hold shift but still a somewhat interesting (and annoyingly timed) crash.
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: [0.7.0] Crash when pressing shift + spacebar

Post by Nirahiel »

It's because Shift+Space is meant to pause the game, and I think the game is trying to pause then heal you and shoot at the same time and since you can't heal or shoot when the game is paused, it crashes.
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [0.7.0] Crash when pressing shift + spacebar

Post by slpwnd »

Thanks for the report. This will be fixed in 0.7.1. Nirahiel is sort of right. The cause of the crash was that shift + space paused the game while the progress bars on capsules in the hotbars were still running. And then some internal state would go wrong. Comment from the code:

Code: Select all

 // game view is not updated intentionally to keep the regular (character) view
 // TODO this could potentially cause some errors if those guis are calling
 // controller methods via the player interface
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: [0.7.0] Crash when pressing shift + spacebar

Post by Nirahiel »

slpwnd wrote:Nirahiel is sort of right.
Yeah I know :ugeek:
If only I could have access to more than just the LUA scripts :D
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: [0.7.0] Crash when pressing shift + spacebar

Post by FreeER »

slpwnd wrote:Comment from the code:

Code: Select all

 // game view is not updated intentionally to keep the regular (character) view
 // TODO this could potentially cause some errors if those guis are calling
 // controller methods via the player interface
LOL
Nirahiel wrote:I know
lol, I'd forgotten about shift+space being used to pause the game (I always use Esc) so my guess was some error with hitting shift causing it to expect a number and somehow the space slipped through error checking, even though that seemed unlikely.
Nirahiel wrote:If only I could have access to more than just the LUA scripts :D
I wouldn't mind that either, admittedly it'd be more of a learning experience for me (I've only recently gotten around to learning Java and C/C++, and the basics of asm) :geek: I'll continue to hope that eventually the source will be released for those who would like to see it (even if it's only to those who are trusted not to upload it elsewhere) xD
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [0.7.0] Crash when pressing shift + spacebar

Post by slpwnd »

FreeER wrote:I'll continue to hope that eventually the source will be released for those who would like to see it (even if it's only to those who are trusted not to upload it elsewhere) xD
We have agreed with kovarex to do this at some point in the (not so far) future.
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: [0.7.0] Crash when pressing shift + spacebar

Post by FreeER »

slpwnd wrote: We have agreed with kovarex to do this at some point in the (not so far) future.
:shock: news to me so, YAY :!:
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
Post Reply

Return to “Resolved Problems and Bugs”