AI-Decision / DecisionHoldem

GNU Affero General Public License v3.0
58 stars 22 forks source link

`check_subtree` assert on |actionlen| is always triggered #6

Closed ThomasTel closed 2 years ago

ThomasTel commented 2 years ago

Running ./Main.o 1 gives:

Main.o: tree/Bulid_Tree.h:152: void check_subtree(strategy_node**, Pokerstate&, int): Assertion `actionlen == publicnode[i]->action_len' failed.

And running python3.9 ../pypokergui/server/poker.py 8000 gives:

python3.9: tree/Bulid_Tree.h:193: void check_subtree(strategy_node**, Pokerstate&, int): Assertion `actionlen == publicnode[i]->action_len' failed.

(Actually the same problematic assert even though the line differs, since AlascasiaHoldem.so apparently has another version of the code).

Any idea on what causes this issue? Thanks.

bailsman commented 2 years ago

Have you downloaded and placed the files as per issues #2 and #3 ?

Working fine for me with 128GB memory.

ThomasTel commented 2 years ago

Running without the files should lead to terminate called after throwing an instance of 'std::exception' what(): std::exception as pointed out by https://github.com/AI-Decision/DecisionHoldem/issues/3. But one of my symbolic link was wrong indeed, thanks for making me re-checking them! Now it seems that the process is being killed, probably because it uses all the available memory (64 GB). I don't know if there is an easy way to make the process run longer while diminishing the memory usage, but this is another issue.

Anarchon14 commented 9 months ago
rr@DESKTOP-3U7:/mnt/e/Downloads/DecisionHoldem/PokerAI$ ls -l /home/zhouqibin/projects/PokerAI/cluster/
total 28

lrwxrwxrwx 1 root root 66 Feb 15 04:03  blueprint_strategy.dat -> /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster/blueprint_stgy.dat
lrwxrwxrwx 1 root root 69 Feb 15 04:00 'flop_hand_cluster_ehs50000_1326*19600.bin' -> /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster/flop_hand_cluster.bin
lrwxrwxrwx 1 root root 72 Feb 15 03:59  preflop_hand_cluster.bin -> /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster/preflop_hand_cluster.bin
lrwxrwxrwx 1 root root 70 Feb 15 04:27 'river_hand_cluster_1326*2118760.bin' -> /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster/river_hand_cluster.bin
lrwxrwxrwx 1 root root 70 Feb 15 04:29 'river_hand_cluster_ehs1000_1326*2118760.bin' -> /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster/river_hand_cluster.bin
lrwxrwxrwx 1 root root 71 Feb 15 03:56  sevencards_strength.bin -> /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster/sevencards_strength.bin
lrwxrwxrwx 1 root root 69 Feb 15 04:00 'turn_hand_cluster_ehs5000_1326*230300.bin' -> /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster/turn_hand_cluster.bin

rr@DESKTOP-3U7:/mnt/e/Downloads/DecisionHoldem/PokerAI$ ls /mnt/e/Downloads/DecisionHoldem/PokerAI/cluster
blueprint_stgy.dat  flop_hand_cluster.bin  preflop_hand_cluster.bin  preflopallin1326.1225.bin  river_hand_cluster.bin  sevencards_strength.bin  turn_hand_cluster.bin

What am I doing wrong? still getting:

python3.9: tree/Bulid_Tree.h:193: void check_subtree(strategy_node**, Pokerstate&, int): Assertionactionlen == publicnode[i]->action_len' failed.`