User manual appendix D.
-----------------------------------------
216 General Protection fault
The application tried to access invalid memory space. This can be caused by several problems:
Dereferencing a nil pointer.
Trying to access memory which is out of bounds (for example, calling move with an invalid length).
----------------------------------------
In other words, there is a huge bug in your code