[0.12.29] Kill_all_units() command deadlocks the game

Bugs that are actually features.
User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

[0.12.29] Kill_all_units() command deadlocks the game

Post 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
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

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

Post 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.
User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

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

Post 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.
Post Reply

Return to “Not a bug”