patrickloeber / snake-ai-pytorch

MIT License
626 stars 409 forks source link

Fail to allocate bitmap #5

Open spenu1 opened 3 years ago

spenu1 commented 3 years ago

when running the agent everything works as expected, however once the games/iterations start reaching higher numbers (around 100-300 commonly around 200) the program closes itself and i get a "Fail to allocate bitmap" in the visual studio code debugger. is there a solution to fix this or continue the program in the event of this failure? thank you

Amoshades commented 2 years ago

Me too

ethicalhacker7192 commented 10 months ago

Yes, the solution is to get more memory, see issue #7 to do this for the GPU, i also recommend instead of using microsoft visual studio, you should get an actual installation of python here.