CUDA error:an illegal memory access was encountered

my GPU:GTX 3060 laptop (6GB)
I created my own little four-legged robot,and I can train it normally with maximum of 512 robots.
BUT when I use the gymapi create_box to add a box to environment,I can only run 1 environment,if run 2 env,It comes this error:an illegal memory access was encountered.
I can’t believe it,because I can run original env franka_cabinet with hundreds of envs in parallel.So how can my 3060 GPU can’t even deal with this little box plus robot?


Perhaps double check the indexing in your code to make sure you are not trying to access any invalid locations of the buffers. It may help to debug on CPU first.