Exception in org.scijava.ui.swing.console.ConsolePanel$1.run freezes Fiji

This error happens somewhat often, perhaps once a day. When frozen, the Exception prints continuously to stdout (the terminal from which Fiji was launched).

Java 8 1.8.0_212 64-bit in Ubuntu 18.04 LTS.

Fiji updated to latest.

The exception:

Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException
	at javax.swing.text.CompositeView.replace(CompositeView.java:204)
	at javax.swing.text.BoxView.replace(BoxView.java:181)
	at javax.swing.text.View.updateChildren(View.java:1120)
	at javax.swing.text.View.insertUpdate(View.java:704)
	at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1610)
	at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1869)
	at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
	at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
	at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
	at org.scijava.ui.swing.console.ConsolePanel$1.run(ConsolePanel.java:99)
	at org.scijava.thread.DefaultThreadService$2.run(DefaultThreadService.java:221)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)^Z
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)