Page 1 of 1

[wheybags][0.17.11] NRE when Compilatron is about to demonstrate belts

Posted: Tue Mar 12, 2019 6:38 pm
by movax20h
Another crash in the Introduction scenario.

Right around when Compilatron is about to demonstrate initial automation.

Never happened to me before, and this is different than 0.17.9 issues with coal gathering objective.

I had trouble reproducing it, but here is the video: https://youtu.be/pgp0GMMraAg

Code: Select all

  18.091 Info Scenario.cpp:147: Map version 0.17.11-0
  18.153 Checksum for script /home/user/.factorio/temp/currently-playing/control.lua: 320904144
  33.803 Info AppManager.cpp:275: Saving to _autosave1 (blocking).
  34.132 Info AppManagerStates.cpp:1716: Saving finished
 148.651 Info AppManager.cpp:275: Saving to _autosave-repair-assembler (blocking).
 148.976 Info AppManagerStates.cpp:1716: Saving finished
 151.586 Error MainLoop.cpp:1127: Exception at tick 4074940: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_tick (ID 0)
The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_entity_died (ID 4)
__base__/lualib/compi.lua:220: assertion failed!
stack traceback:
	[C]: in function 'assert'
	__base__/lualib/compi.lua:220: in function 'respawn_compi'
	__base__/lualib/compi.lua:358: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>
	[C]: in function 'die'
	__base__/lualib/npe/cutscenes/compi_build_iron_cutscene.lua:107: in function 'init'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:231: in function 'jump_to_node'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:196: in function 'update'
	__base__/lualib/npe/storytable.lua:120: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>
stack traceback:
	__base__/lualib/npe/cutscenes/compi_build_iron_cutscene.lua:107: in function 'init'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:231: in function 'jump_to_node'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:196: in function 'update'
	__base__/lualib/npe/storytable.lua:120: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>
stack traceback:
	[C]: in function 'die'
	__base__/lualib/npe/cutscenes/compi_build_iron_cutscene.lua:107: in function 'init'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:231: in function 'jump_to_node'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:196: in function 'update'
	__base__/lualib/npe/storytable.lua:120: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4
 170.377 Quitting: user-quit.
 170.377 Info GlobalContext.cpp:678: Waiting for child processes to exit: 
 170.496 Steam API shutdown.
 170.498 Goodbye

Re: [0.17.11] NRE when Compilatron is about to demonstrate belts

Posted: Wed Mar 13, 2019 7:58 am
by wheybags
Are you using any mods? This crash seems really weird

Re: [wheybags][0.17.11] NRE when Compilatron is about to demonstrate belts

Posted: Wed Mar 13, 2019 6:02 pm
by boskid
Can confirm using vanilla [0.17.11]:
npe-crash-smelting-tutorial.png
npe-crash-smelting-tutorial.png (5.05 MiB) Viewed 3115 times

Code: Select all

 763.879 Info AppManager.cpp:275: Saving to _autosave-repair-assembler (blocking).
 763.975 Verbose Scenario.cpp:704: Saving game as C:\Users\BoskiDialer\AppData\Roaming\Factorio\saves/_autosave-repair-assembler
 764.238 Info Serialiser.cpp:37: blueprint-library 2kB
 764.238 Info Serialiser.cpp:37: blueprint-library.blueprint-entities 264kB
 764.238 Info Serialiser.cpp:37: blueprint-library.blueprint-entities.entity 1047kB
 764.238 Info Serialiser.cpp:37: blueprint-library.blueprint-entities.entity.targetable 0kB
 764.238 Info Serialiser.cpp:37: electric-network-manager 31kB
 764.238 Info Serialiser.cpp:37: force-data 20kB
 764.238 Info Serialiser.cpp:37: force-data.build-count-statistics 510kB
 764.238 Info Serialiser.cpp:37: force-data.chart 228kB
 764.238 Info Serialiser.cpp:37: force-data.custom-prototypes 173kB
 764.238 Info Serialiser.cpp:37: force-data.fluid-production-statistics 2kB
 764.238 Info Serialiser.cpp:37: force-data.item-production-statistics 102kB
 764.238 Info Serialiser.cpp:37: force-data.kill-count-statistics 61kB
 764.238 Info Serialiser.cpp:37: force-data.logistic-manager 0kB
 764.238 Info Serialiser.cpp:37: id-mapping 27kB
 764.238 Info Serialiser.cpp:37: map-mod-settings 0kB
 764.238 Info Serialiser.cpp:37: save-helpers 7kB
 764.238 Info Serialiser.cpp:37: surface 111kB
 764.238 Info Serialiser.cpp:37: surface.chunk 19kB
 764.238 Info Serialiser.cpp:37: surface.chunk.decoratives 43kB
 764.238 Info Serialiser.cpp:37: surface.chunk.entity 114kB
 764.238 Info Serialiser.cpp:37: surface.chunk.entity.targetable 2kB
 764.238 Info Serialiser.cpp:37: surface.chunk.tiles 1924kB
 764.238 Info Serialiser.cpp:37: surface.map-generation-manager 0kB
 764.238 Info Serialiser.cpp:37: surface.path-finder 1kB
 764.238 Info Serialiser.cpp:37: targetable 0kB
 764.238 Info Serialiser.cpp:37: train-manager 0kB
 764.238 Info Serialiser.cpp:37: transport-belt-serialiser 0kB
 764.246 Verbose Scenario.cpp:813: Time to save game: 0.271261
 764.260 Info AppManagerStates.cpp:1716: Saving finished
 766.481 Error MainLoop.cpp:1127: Exception at tick 4077074: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_tick (ID 0)
The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_entity_died (ID 4)
__base__/lualib/compi.lua:220: assertion failed!
stack traceback:
	[C]: in function 'assert'
	__base__/lualib/compi.lua:220: in function 'respawn_compi'
	__base__/lualib/compi.lua:358: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>
	[C]: in function 'die'
	__base__/lualib/npe/cutscenes/compi_build_iron_cutscene.lua:107: in function 'init'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:231: in function 'jump_to_node'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:196: in function 'update'
	__base__/lualib/npe/storytable.lua:120: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>
stack traceback:
	__base__/lualib/npe/cutscenes/compi_build_iron_cutscene.lua:107: in function 'init'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:231: in function 'jump_to_node'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:196: in function 'update'
	__base__/lualib/npe/storytable.lua:120: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>
stack traceback:
	[C]: in function 'die'
	__base__/lualib/npe/cutscenes/compi_build_iron_cutscene.lua:107: in function 'init'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:231: in function 'jump_to_node'
	...m/steamapps/common/Factorio/data/core/lualib/story_2.lua:196: in function 'update'
	__base__/lualib/npe/storytable.lua:120: in function '?'
	__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4
I have managed to prepare save that reproduces this.

Steps to reproduce:
1/ Press and hold <move left> button
2/ Open npe-smelting-tutor-crash.zip (still holding <move left> button so you will be going left from first frame after loading)
3/ Keep moving left for about 2 seconds
4/ Crash

-- edit:

It looks like crash happens when compi is moving diagonally while player enters "compi-trigger-cutscene-crash" area. This fits conditions to reproduce crash: if you start moving after 1 second of loading save, you will enter trigger area when compi is moving straight left and there will be cutscene. Start moving in less than 1s and you will enter trigger when compi is moving down-left or wiggles overshooting path turning left and it will crash. This may be coincidence, but fits :)
npe-compi-trigger-cutscene-crash.png
npe-compi-trigger-cutscene-crash.png (1.43 MiB) Viewed 3108 times

Re: [wheybags][0.17.11] NRE when Compilatron is about to demonstrate belts

Posted: Wed Mar 13, 2019 7:46 pm
by movax20h
No mods.

Re: [wheybags][0.17.11] NRE when Compilatron is about to demonstrate belts

Posted: Thu Mar 14, 2019 10:18 am
by wheybags
Fixed for the next release, sorry I just forgot to update this thread.
Thanks for the report!