YARM icon indicating copy to clipboard operation
YARM copied to clipboard

[BUG] crash when i scan blue tiberium

Open Fr-Dae opened this issue 10 months ago • 3 comments

7046.490 Info AppManager.cpp:313: Saving to _autosave2 (blocking).
7048.003 Info AppManagerStates.cpp:2095: Saving finished
7454.249 Error MainLoop.cpp:1435: Exception at tick 22790428: Le mod YARM - Resource Monitor (1.0.5) a engendré une erreur non récupérable.
Merci d'informer l'auteur de cette erreur.

Error while running event YARM::on_tick (ID 0)
__YARM__/libs/ore_tracker.lua:159: attempt to index local 'tracking_data' (a nil value)
stack traceback:
	__YARM__/libs/ore_tracker.lua:159: in function 'update_tracking_data'
	__YARM__/libs/ore_tracker.lua:96: in function 'index_of'
	__YARM__/libs/ore_tracker.lua:67: in function 'add_entity'
	__YARM__/resmon.lua:289: in function 'add_single_entity'
	__YARM__/resmon.lua:275: in function 'add_resource'
	__YARM__/resmon.lua:841: in function 'update_players'
	__YARM__/resmon.lua:892: in function 'on_tick_internal'
	__YARM__/resmon.lua:927: in function <__YARM__/resmon.lua:922>

Savegame https://mega.nz/file/5kcRCSYb#G059OAYNFYCMmdkn-r8yur-I9edloxCKFx99iGAKJeI

  • Factorio 2.0.32
  • yarm 1.0.5
  • Tiberium 2.0.10

I was noticing a bug on zone miners that didn't extract the expected resource. I wanted to measure this with yarm, and when I clicked on the blue tiberium field, the game crashed.

Fr-Dae avatar Feb 22 '25 13:02 Fr-Dae

@James-Fire @randomflyingtaco

Fr-Dae avatar Feb 22 '25 13:02 Fr-Dae

For context, our control script let's Tiberium spread and infect other patches and then itself can also be infected by Blue Tiberium. https://github.com/James-Fire/Factorio-Tiberium/blob/factorio-2.0/control.lua#L532-L555 The original ore "tiberium-ore" is being destroyed and replaced with a different resource entity "tiberium-ore-blue" that has the same position. It seems like the destroyed resource entity is being purged from your storage.ore_tracker.entities but isn't being purged from ore_tracker_module.position_cache

randomflyingtaco avatar Feb 23 '25 00:02 randomflyingtaco

@narc0tiq ?

Fr-Dae avatar Feb 24 '25 10:02 Fr-Dae