Page 1 of 1

[0.12.29] Kill_all_units() command deadlocks the game

Posted: Sat Apr 02, 2016 10:15 pm
by Afforess
Interesting one. Load the save and mods. Immediately try `/c game.forces.enemy.kill_all_units()` and the game deadlocks. htop shows is using 100+% CPU. I waited as long as 5 minutes but it never unfroze.

Mods: https://dl.dropboxusercontent.com/u/49805/mods.zip

Save: https://dl.dropboxusercontent.com/u/498 ... _Units.zip

Specs:
OS: Ubuntu 15.10 Wily x64
CPU: i7-3770K
GPU: GTX 680 Superclocked, 2GB VRAM
RAM: 16GB 1333 MHZ
Storage: 1TB WD Black HDD

Re: [0.12.29] Kill_all_units() command deadlocks the game

Posted: Sat Apr 02, 2016 10:52 pm
by Oxyd
It hangs because Misanthrope hangs in its on_tick. More specifically, it seems to hang on this loop in map.lua:

Code: Select all

        while global.attack_plans_queue_idx > #global.attack_plans_queue do
            global.attack_plans_queue_idx = global.attack_plans_queue_idx - #global.attack_plans_queue
        end
In any case, not our bug.

Re: [0.12.29] Kill_all_units() command deadlocks the game

Posted: Sat Apr 02, 2016 11:13 pm
by Afforess
Oxyd wrote:It hangs because Misanthrope hangs in its on_tick. More specifically, it seems to hang on this loop in map.lua:

Code: Select all

        while global.attack_plans_queue_idx > #global.attack_plans_queue do
            global.attack_plans_queue_idx = global.attack_plans_queue_idx - #global.attack_plans_queue
        end
In any case, not our bug.
Thanks.