Not sure how to reproduce it, because I followed the same steps few times but crashed only once (of course probably after I type this I will manage to do it).
Ride in train.
Have research that has some progress.
Remove it by clicking X.
Add something else by double-clicking on the research icon.
Quickly try to exit research menu.
Crash happened somewhere between adding new research and trying to quit.
Cannot say for sure, I was not paying attention