Bug 288932 - information panel shows incorrect number of lines for a file
Summary: information panel shows incorrect number of lines for a file
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (show other bugs)
Version: 2.1
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 02:10 UTC by illumilore
Modified: 2013-01-25 15:16 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description illumilore 2011-12-14 02:10:45 UTC
Version:           unspecified
OS:                Linux

When mouse hovering over a file that has 19k lines, the information panel says it has only 1158 lines, which is incorrect

Reproducible: Always

Steps to Reproduce:
na

Actual Results:  
na

Expected Results:  
na

na
Comment 1 Christoph Feck 2011-12-17 20:13:21 UTC
I guess this is because of the 64k limit to speed up collecting meta data.
Comment 2 leo_rockway 2012-07-07 20:48:34 UTC
I can reproduce this on KDE SC 4.9RC1. If this is indeed caused by a 64k limit, then Dolphin should either: not display the amount of lines, or show "Over X amount of lines". Showing an incorrect number is not useful.
Comment 3 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:19:37 UTC
Resetting assignee to default as per bug #305719
Comment 4 Adrián Chaves (Gallaecio) 2012-11-03 10:52:59 UTC
Still happening in Dolphin 2.1.

Steps to reproduce:
1. Open Dolphin in a testing folder, and open the terminal (F4).
2. Run: for line in {1..20000}; do echo $line >> file.txt; done;
3. Hover the file with the cursor, and check what the Information panel says.

Expected results: The number of lines should be 20000.
Actual results: The number of lines is wrong. In my case, it always shows 12774 lines when the file has more lines than those, for those or less lines it works.
Comment 5 Frank Reininghaus 2012-11-04 15:09:39 UTC
Yes, I can confirm. Christoph's assumption is probably right - note that the number of lines shown gets smaller if you modify Adriáns bash-loop such that each line has more text. I also agree with comment 2.
Comment 6 Vishesh Handa 2013-01-25 15:16:19 UTC
With 4.10 the file size limit if 5 mb. If the file is larger than 5 mb then the line count is not shown.