Page 1 of 1

[0.12.26][posila] crash with force.clear_chart()

Posted: Sun Mar 06, 2016 11:37 am
by prg
Simply start a new game and

Code: Select all

game.local_player.force.clear_chart()

Code: Select all

   0.000 2016-03-06 12:35:57; Factorio 0.12.26 (Build 17762, linux64)
   0.000 Operating system: Linux
   0.000 Program arguments: "/home/prg/Downloads/factorio/bin/x64/./factorio" "" 
   0.000 Read data path: /home/prg/Downloads/factorio/data
   0.000 Write data path: /home/prg/Downloads/factorio
   0.000 Binaries path: /home/prg/Downloads/factorio/bin
   0.061 Available display adapters: 3
   0.061  [0]: resolution 1280x1024px at [1280,0]
   0.061  [1]: resolution 1024x768px at [2560,0]
   0.061  [2]: resolution 1280x1024px at [0,0]
   0.061 Create display on adapter 0. Size 1280x720 at position [0, 134].
   0.131 Initialised OpenGL:[0] GeForce GTX 660/PCIe/SSE2; driver: 4.5.0 NVIDIA 361.28
   0.154 Graphics options: [FullScreen: false] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [Screen: 0]
   0.176 Loading mod core 0.0.0 (data.lua)
   0.178 Loading mod base 0.12.26 (data.lua)
   0.446 Initial atlas bitmap size is 16384
   0.450 Created atlas bitmap 16384x7761
   5.847 Factorio initialised
  10.259 Info Scenario.cpp:124: Map version 0.12.26-0
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0  0x7f3e491172f0 in ?? at ??:0
#1  0x7f3e49c70bc9 in ?? at ??:0
  23.541 Error Util.cpp:77: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
Segmentation fault (core dumped)

Re: [0.12.26][posila] crash with force.clear_chart()

Posted: Mon Mar 07, 2016 6:58 pm
by posila
Thanks for the report. I am not sure about purpose of this function, but crashing is fixed for next release :)

Re: [0.12.26][posila] crash with force.clear_chart()

Posted: Sat Mar 19, 2016 1:30 pm
by maroder
How you fixed it?! I has not crash in factorio_0.12.26, but it's happened in factorio_0.12.27! Oh, thanks for that :)
factorio-current
You can check it:
1) install hardcorio_2.2.212 (13346)
2) to paste "game.forces.player.clear_chart()" at line 464(control.lua) before "game.show_message_dialog{text = {"msg-intro-hardcorio"}}" and run game.

Re: [0.12.26][posila] crash with force.clear_chart()

Posted: Sat Mar 19, 2016 3:31 pm
by posila
I did fix it ... someone else broke it again :D

EDIT: On the second look, I might have broke it. But, on my defense ... the original repro steps don't crash the game anymore ... so this is completely new issue :)