3b1b / videos

Code for the manim-generated scenes used in 3blue1brown videos
5.79k stars 1.55k forks source link

Wordle application is "Killed" #24

Closed ajschwieterman closed 2 years ago

ajschwieterman commented 2 years ago

When I try to execute the program via python3 wordle.py, I get the following error.

Screenshot_20220208_094528

I believe I correctly created the directories necessary for custom_config.yml.

mug1wara26 commented 2 years ago

I get the same problem too, has anyone found a fix? image

mug1wara26 commented 2 years ago

Upon inspecting the generate_pattern_matrix function, it seems it is killed when the for loop between the two print statements runs

image

it seems that mod_equality_grid can't be generated for some reason

liningpan commented 2 years ago

I think it's very likely to be memory issue. https://github.com/3b1b/videos/blob/db2809060fdca0a208ee8c07467eadf3dcf23ddd/_2022/wordle/simulations.py#L130 Can you try changing bool to np.bool_? more information However, matrix could still take at most 13000*13000*5*5=4225000000 bytes, which is roughly 4GB of ram.

3b1b commented 2 years ago

The pre-generated pattern_matrix file is now in the repo, so hopeful this is no longer needed.