Hi all. I've got a new laptop and have installed Mint MATE on it. (previously i used Ubuntu 10).
I have a weird issue that happens periodically. I often tail log files (with tail -f so they update dynamically) and sometimes when lots of logging is scrolling past quickly while i'm viewing it, the following happens:
- the computer totally freezes for a few seconds - when it comes back, the colours are messed up in my terminal: it seems like all the colours have changed to a different colour. (I'm using Mate Terminal 1.1). This "messing up" doesn't happen the same way every time - it seems random. I can change the ansi colour for my terminal to yellow ("\[\033[0;33m\]") for example and it comes out looking red. - sometimes this affects my desktop apps: for example in geany or gedit, the syntax colouring has been swapped to different colours (sometimes resulting in unreadable combinations like very dark grey on black) - restarting the terminal and affected apps makes no difference: the only way i've found to cure it is to reboot.
I mentioned this to a colleage and he theorized that some combination of characters was coming through in the logs and being interpreted as some kind of command sequence by tail, or terminal, or something. Kind of vague and very hard to investigate.
Any ideas anyone? has anyone else encountered this?
Are they system log files or logs from something else? Check to see if the log file is executable. I had a similar problem recently using cat on some non-human-readable files. Terminal titles changing and all sorts.
That can happen if the logs contain control codes. I'd be inclined to open the file in a gui text editor and scan for odd-looking characters then remove them. If that fixes the issue then your theorising friend was right.