When running an application (for example via a launcher with terminal or straight from a terminal instance), the terminal randomly freezes. That is, the output stops in mid-stream after a random period.
I discovered this while trying to run some long-running machine learning applications using a terminal.
Occurs with python test applications (see code below) or java applications. This also occurs randomly. See the sample code below (save to file and execute in a terminal). Using this code you can see the output freezes perhaps after a few minutes. In other words, the terminal scrolls output and then just stops mid-stream. To resume, you either need to:
- expressly select reset & clear or
- double click on the terminal window or
- UNRELIABLE--possibly just try to scroll back and fourth.
What I Tried:
Using various terminals, I have tried setting scrollback on, off, unlimited, or 512 lines--in other words, I have tried everything that I am aware to avoid some type of obvious "buffer" issue. I have also written teh test case below. Oddly, this occurs in any of the GUI terminals--but MIGHT not occur with xterm (I have never seen the issue occur with xterm so far).
starttime = time.time()
i = 0
i = i + 1
print("Still working " , i, " " , time.time() - starttime)
MATE 1.6 (but also occurs in Ubuntu Default, GNOME3, etc.)