lasseuth1 / blood_bowl2

Applying Reinforcement Learning to Blood Bowl
3 stars 4 forks source link

worker is stopped in while loop on Windows OS #4

Closed greentec closed 5 years ago

greentec commented 5 years ago

The game stops playing. When I print information for debug, it seems that the worker has an endless loop in the while loop. Is it a multi-process issue only on Windows OS?

https://github.com/lasseuth1/blood_bowl2/blob/dbe54bfca929ae411e7e70f9359fbbc8c899dc8a/rarity_of_events/arguments.py#L22

I changed num_processes to 1 or 2, but the game stops soon.

DKuan commented 5 years ago

I meet the problem as you do. I deal with it by resuming the train after closing the wrong one.

greentec commented 5 years ago

@DKuan Did you check the last update of ffai(https://github.com/njustesen/ffai/commit/b0780ab68078fe8c9333394a2485e2905e75b478)? I downloaded and tested this, and in 5vs5 games to 22000 episodes I did not experience stopping.

greentec commented 5 years ago

At first I thought it was a multiprocessor problem for windows os, but when I deleted the multiprocessor part, I got a problem again and told @njustesen and he fixed some code.

greentec commented 5 years ago

I think this issue does not seem to be happening at the moment, and it seems to be solved by an external code modification, so I will close the issue.