Using the mouse causes game to hang after a while

After discovering that I can use the mouse to view tiles and their contents, I started using the mouse a lot and have encountered game hangs. These hangs do not occur unless I use the mouse, and it usually take a few minutes before it hangs. There are no debug messages and no keys work. Holding the spacebar doesn’t work. This happens on multiple versions of the game including b5e9d08, but some previous versions as well. It happens whether on not I am on a vehicle.

I used gdb to try and get some info:

gdb) file cataclysm-tiles 
Reading symbols from /home/argast/var/less/games/Cataclysm-DDA/cataclysm-tiles...(no debugging symbols found)...done.
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) 

Starting program: /home/argast/var/less/games/Cataclysm-DDA/cataclysm-tiles 
warning: Could not load shared library symbols for
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/".
[New Thread 0x7ffff478d700 (LWP 2327)]
*Hang occurs here*
[Thread 0x7ffff478d700 (LWP 2327) exited]
[Inferior 1 (process 2323) exited normally]

This is after it hung and I closed the program.