Open \Samples\Matrix Conversion and Gridding\2D Gaussian.ogm then press Ctrl+Shift+I to view mode.
Open Script Window then run the following LT together
layer.ROI();
layer.ROI(-1);
==> Origin crashes.
Note: No such issue if run one script first then run the another one.