Lister: log files, bottom line

Please report only one bug per message!

Moderators: Stefan2, white, sheep, Hacker

browny
Member
Member
Posts: 183
Joined: 2007-09-10, 13:19 UTC

Lister: log files, bottom line

Post by *browny » 2017-12-16, 13:50 UTC

Windows 8.1, TC 9.12 64-bit

This is common with log files. The log file stays open, lines are appended and flushed. The text is in Unicode (UTF-16 LE with BOM), if it matters at all.
Probably this would not be seen with ordinary static files.

Open file, press End
An example of the last line.

Reopening the file would not help - until file gets more lines.
Other navigation methods make no difference (Ctrl+PgDn).

Obviously, the last line is barely readable, and adding about half a line of safety space might help.
Last edited by browny on 2017-12-17, 13:32 UTC, edited 2 times in total.

User avatar
Hacker
Moderator
Moderator
Posts: 11195
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker » 2017-12-16, 23:16 UTC

browny,
An example of the last line.
... is missing. ;)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

browny
Member
Member
Posts: 183
Joined: 2007-09-10, 13:19 UTC

Post by *browny » 2017-12-17, 09:06 UTC

Thanks; fixed the picture link in the opening post.

User avatar
petermad
Power Member
Power Member
Posts: 8341
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-12-17, 10:17 UTC

2browny
Open file, press End
Do you perhaps mean Ctrl+End (to go to the last line) - or do you really mean to go to the end of the current line? When you write "Open file", I assume you mean open file with Lister...

Anyway I cannot reproduce it (in Lister using Ctrl+End) with TC's own log files (which here is written in UTF-8). Which log-files are you referring to?

Does it happen for you with any size of the Lister window? What font-setting are you using in Lister for this file type?
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
Hacker
Moderator
Moderator
Posts: 11195
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker » 2017-12-17, 11:57 UTC

petermad,
Do you perhaps mean Ctrl+End (to go to the last line) - or do you really mean to go to the end of the current line? When you write "Open file", I assume you mean open file with Lister...
... with the cursor being turned off. ;)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

browny
Member
Member
Posts: 183
Joined: 2007-09-10, 13:19 UTC

Post by *browny » 2017-12-17, 13:31 UTC

petermad wrote:Do you perhaps mean Ctrl+End
End works for me, and as was written, whatever method gets to the end of file.
When you write "Open file", I assume you mean open file with Lister...
The first word in topic title suggests that idea. :)

Settings: autodetect and default fonts.

Not sure if this is related: after opening file, the lowest line in Lister's window is visible only partially, like in the example picture. But that line is not the last line in file.

User avatar
Dalai
Power Member
Power Member
Posts: 6535
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai » 2017-12-17, 14:41 UTC

This has been a long-standing issue in TC and it kind of annoys me, too. IIRC it was discussed in the past, but I don't remember what Ghisler said about it and how he explained it (if he did).

And yes, I have Lister's cursor always turned off, only rarely switch it on when I need it.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

User avatar
petermad
Power Member
Power Member
Posts: 8341
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-12-17, 16:07 UTC

2Hacker
... with the cursor being turned off.
Arh - always forget about that option :oops: But in my defence - cursor being on is the default setting.

2browny
The first word in topic title suggests that idea
Oops again :oops:


But apart from that - even if I disable the cursor in Lister, I still cannot reproduce it.
Not sure if this is related: after opening file, the lowest line in Lister's window is visible only partially, like in the example picture. But that line is not the last line in file.
It doesn't matter whether I adjust Listers height, so that the last visible line when just opened is not cropped or not. In both cases the last line is shown whith at least one empty line beneath when I press End.

I can not make the log file work with Unicode - only with UTF-8 or ANSI- text - but that might be due to my Windows Locale. By default my TC saves the log file as UTF-8, but if I convert an existing log file to ANSI it works with that too, but not if I convert the file to Unicode or Unicode Big Endian - with Unicode new entries are shown in Chinese (it looks like).

I have also testet with a clean ini file and with Windows 8.1, and still cannot reproduce the problem.

2browny
Do you use any DPI-scaling?
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

browny
Member
Member
Posts: 183
Joined: 2007-09-10, 13:19 UTC

Post by *browny » 2017-12-17, 17:52 UTC

petermad wrote:I still cannot reproduce it.
That was another attention test. :)
It was said being common.
Not every time, in other words. There is a fair chance to catch the problem if the file is updated frequently.
petermad wrote:Do you use any DPI-scaling?
No DPI scaling.

Maybe lister does not take into account the horizontal scrollbar; that would explains why lowest line is cropped, and the same happens with the last line in file

User avatar
petermad
Power Member
Power Member
Posts: 8341
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-12-17, 19:29 UTC

There is a fair chance to catch the problem if the file is updated frequently.
I have tried at least 50 times after file update without "success"

I guess it must have to do with the Unicode (UTF-16 LE with BOM) encoding, which I cannot duplicate - have you done anything special to have the log-files in that format?

My TC writes a blank line in the end of the file - does yours?
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
petermad
Power Member
Power Member
Posts: 8341
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-12-17, 20:37 UTC

It was said being common.
I can find these:

http://ghisler.ch/board/viewtopic.php?p=178372#178372
http://ghisler.ch/board/viewtopic.php?p=162954#162954

but they ar caused by only very long lines or word wrap being on - I don't think either is the case here - from your screnshot you obviously don't have word wrap enabled, since you have a horizontal scrollbar, and I doubt that any file operation can result in a 4000 character long line.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

browny
Member
Member
Posts: 183
Joined: 2007-09-10, 13:19 UTC

Post by *browny » 2017-12-18, 20:29 UTC

UTF-16 LE is Windows' native, no coversion needed.

The issue also exists with wrapping on.

Lines could be longer than 500 characters, still far from 4000 characters limit.

Cautiosly dragging bottom of the window in tiny increments allows to see more of the line; and there might be yet another one below.

Which means, that probably the followin happens:
1) Lister gets file size, then reads files sequentially until end of file condition
2) Lister gets more data than expected, because file size was either reported incorrectly due to delayed update, or size was invalidated with file write(s)
3) window size is not a multiple of line height, hence this display issue with additional lines

Maybe Lister should readjust file size and line count according to actually received data.
Or cheat a little by tweaking window height to make it look right. :)

User avatar
petermad
Power Member
Power Member
Posts: 8341
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-12-19, 10:40 UTC

UTF-16 LE is Windows' native, no coversion needed.
Hmm, as I wrote - here by me, when TC generates a new log-file from scratch, it is in UTF-8 - it even says so inside the file:
"19-12-2017 10:54:10: Program start (username/computername) UTF-8"

And the file is also recognized as UTF-8 if I check the format in Notepad or in Lister.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
elgonzo
Senior Member
Senior Member
Posts: 377
Joined: 2013-09-04, 14:07 UTC

Post by *elgonzo » 2017-12-19, 13:03 UTC

petermad wrote:
UTF-16 LE is Windows' native, no coversion needed.
Hmm, as I wrote - here by me, when TC generates a new log-file from scratch, it is in UTF-8 - it even says so inside the file:
"19-12-2017 10:54:10: Program start (username/computername) UTF-8"

And the file is also recognized as UTF-8 if I check the format in Notepad or in Lister.
Well, eMule log files are hardly comparable with TC log files, or...? :twisted:
Windows 7 Pro x64 SP1

User avatar
petermad
Power Member
Power Member
Posts: 8341
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-12-19, 13:21 UTC

Well, eMule log files are hardly comparable with TC log files,
OK - now everything is much clearer - you never stated that it was not TC's log files you were talking about...
Last edited by petermad on 2017-12-19, 20:09 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

Post Reply