How to debug segmentation fault memory issue??

2022-03-16 Thread Chubak
Good solutions. Thanks.

How to debug segmentation fault memory issue??

2022-03-15 Thread Chubak
Seems like the only way to deal with Nim/SDL thread naming issue is forking vladaar4's sdl2_nim and chnage the name of sdl.Thread. Any other solutions?

How to debug segmentation fault memory issue??

2022-03-15 Thread Chubak
Thanks, I tried with threads:on when I was using SDL threads. But why was I using SDL threads instead of Nim threads? BECAUSE I COULD NOT USE NIM THREADS DUE TO NAMING ISSUE. I mean I can't import sys/threads, I can't use `threads.Thread` directly. I don't really know how to use Nim threads whe

How to debug segmentation fault memory issue??

2022-03-15 Thread Chubak
Ubuntu

How to debug segmentation fault memory issue??

2022-03-14 Thread Chubak
Hey guys! My code has a memory issue. Here's the code: 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 segment