Most likely cause are broken com port drivers for your
hardware - how do you connect the AIS? USB to
serial cable? Which chip it uses? Try to look for the latest version of the driver you can get.
OpenCPN itself as an unprivileged application has very little (MS says no) chance to take the whole system down.
Pavel