Project

General

Profile

Actions

Bug #4614

closed

Log file font color in Appion default to black so that it become invisible with black background

Added by Kelsey Jordan over 7 years ago. Updated over 7 years ago.

Status:
Won't Fix or Won't Do
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
11/23/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.2.0
Show in known bugs:
Yes
Workaround:

work around by making the background grey. The color will shift but at least visible


Description

When I try to extend the lines on log file for a running job in appion it no longer shows the log. See attached pictures.


Files

log file error.tiff (157 KB) log file error.tiff Kelsey Jordan, 11/23/2016 12:57 PM
log file error 100.tiff (243 KB) log file error 100.tiff Kelsey Jordan, 11/23/2016 12:57 PM
coran1.appionsub.log (19.8 KB) coran1.appionsub.log Anchi Cheng, 11/23/2016 06:48 PM
Actions #1

Updated by Anchi Cheng over 7 years ago

This appears to do with parsing error of the log file. Either with the colored blocks or linebreak.

I attach the log file it was looking at even though by now the tail is different since the job is now completed. Neil, this is your code. Could you take a quick look ? I It works fine with the default (13) but not some other values such as 14 where it encounter a colored block.

Actions #2

Updated by Neil Voss over 7 years ago

  • Assignee changed from Neil Voss to Anchi Cheng
  • Affected Version changed from Appion/Leginon 3.2 to Appion/Leginon 2.2.0

This has been a problem since the beginning of Appion. The text is all there if you highlight it, but the font color is black. I tried to fix it several years ago, but could not get it to work. Eventually when the program finishes it will display correctly again. I think Anchi is right when she says it has to do with the color coding.

Actions #3

Updated by Anchi Cheng over 7 years ago

  • Assignee changed from Anchi Cheng to Neil Voss

Neil,

I did some page source research into the problem log. Problems came from the appion display colors where colorString starts with 0;. It may help you in debugging this. In any case, I have a work-around solution: set the background color to grey, instead of black. #808080. If you don't find a permanent fix quickly, could you just change the code to use grey background ?

Actions #4

Updated by Neil Voss over 7 years ago

the 0 (zero) is used to reset the color on the terminal, I guess it sets it to black in the viewer (black is actually a different number like 30 or something). I do not think we can avoid using the terminal color reset. It had been like 7 years since I looked at this, but I recall trying to set a white color when it see the reset.

I do like the gray compromise.

Actions #5

Updated by Anchi Cheng over 7 years ago

  • Subject changed from Log File in Appion to Log file font color in Appion default to black so that it become invisible with black background
  • Status changed from Assigned to Won't Fix or Won't Do
  • Show in known bugs changed from No to Yes
  • Workaround updated (diff)
Actions #6

Updated by Anchi Cheng over 7 years ago

Even though I added more color coding, the html may still decode string like '<<<<<<>>>>>>' into termination of font color. The workaround is the best to do now.

Actions

Also available in: Atom PDF