Memory usage overflow for type pmap

I often run into errors when my program runs for one or two hours:

[ Memory usage overflow for type pmap. ]

Is there any way to solve it?

Do you see memory usage increase for your program? It usually means you have a memory leak somewhere. I would suggest trying to narrow down the problem.

Edit: I just found and fixed an issue where Panda would incorrectly count the amount of memory being used. This could have been what was causing your issue.

Someone helped me find a severe garbage collection issue in the RenderState cache (Introduced April 2), which I have just pushed a fix for. This may have been contributing to your issue.