Hey guys! My code has a memory issue. Here's the code:

<https://github.com/Chubek/pong-q-learning-nim>

It's a rather lengthy code so let me tell you what it's made up of:

1- The Pong game with SDL2. 2- The opponent AI with classical AI. 3- Q-learning 
player AI.

Now it gives SIEGV error segmentation fault after like 2-3 minutes of running 
the game and having it play itself. I was promised memory safety in Nim and I 
deman memory safety dammit! Knowing that cdecl functions are not memory safe, 
it could be one of them.

My question is, how to debug segmentation fault memory issues? Is here an easy, 
straeamlined way to do so?

Thanks!

Reply via email to