My recommendation is to install cmake, git, build-essential, and xorg-dev, and then check out v.2.3.9-ah
git clone -b v2.3.9-ah https://gitlab.com/tome2/tome2.git
Alternatively, if you want to stick with 2.3.5, you could install gdb and try to pinpoint the issue.
And then when you get a crash
will get you a stack trace, showing which function it crashed in.
P.S. I bet this is Ubuntu's buffer overflow detection.
Edit: actually let me try to reproduce this...