hs_err_pid7800.log

When starting AVI for the first time, it'll display correctly. If you press a key the ncurses display breaks. When executing :q<enter> and restarting, you get the error from the screenshot and the log file.
I compiled it without modification.
OS: Fedora 27
Ncurses version: 6.0.20170722
GCC version: 7.2.1 20170915 (Red Hat 7.2.1-2)