Bug 432530 - Files with long filename not behaving properly (name overflow)
Summary: Files with long filename not behaving properly (name overflow)
Status: REOPENED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: icons mode (show other bugs)
Version: 24.02.2
Platform: Debian unstable Linux
: HI normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 435771 459395 470593 470596 485548 486673 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-02-05 10:33 UTC by Apurv
Modified: 2024-05-07 20:46 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshots of settings and bug (132.27 KB, image/jpeg)
2021-02-05 10:33 UTC, Apurv
Details
This bug reproduced on 5.26.0 (20.57 KB, image/png)
2022-11-05 07:06 UTC, Apurv
Details
overflowing file extensions (29.12 KB, image/png)
2022-11-05 07:16 UTC, Apurv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Apurv 2021-02-05 10:33:20 UTC
Created attachment 135436 [details]
screenshots of settings and bug

SUMMARY
For a file with long filenames and icon-view settings set at max 2 lines, overflows file extension to another (stray and undesired) line.

And if a directory is opened in the directory containing long filenames, file extensions are visible in the directory for some time.

P.S. - compositing is enabled (even if it might not be obvious in screenshots attached)


STEPS TO REPRODUCE
1. View mode config:
      Label-width: medium
      Maximum-lines: 2
2. create a directory containing directory & files with a long name and an extension at the end (tested with: "foldername name with really long text that needs to be stripped.txt")
3. Now open the directory within directory (blank area in dolphin will show "txt" labels)

OBSERVED RESULT
For step 2: file extension will overflow onto the third line ignoring the "max-lines: 2" settings for dolphin,

For step 3: stray file extensions are visible from last screen


EXPECTED RESULT
filenames shouldn't exceed the max lines set in settings.
dolphin's view should be cleaned before displaying contents of a new directory.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2022-10-05 08:44:20 UTC
I've tested and can not reproduce this issue. Can you please check this issue is still affecting you, thanks!
Comment 2 Apurv 2022-10-06 06:11:35 UTC
(In reply to Justin Zobel from comment #1)
> I've tested and can not reproduce this issue. Can you please check this
> issue is still affecting you, thanks!

I'm on 5.25.5 right now, and I still experience this bug. I'm on Wayland these days
Comment 3 Bug Janitor Service 2022-10-21 05:01:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-11-05 05:09:47 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 Apurv 2022-11-05 07:02:56 UTC
(In reply to Justin Zobel from comment #1)
> I've tested and can not reproduce this issue. Can you please check this
> issue is still affecting you, thanks!

I'm running my system on 5.26, and I'm still facing this issue with long file names. It's usually the file extension that's straying into an extra line (max lines set to 3, and there comes a 4th line for file extension) and sticks around until I refresh the view.
Comment 6 Apurv 2022-11-05 07:06:17 UTC
Created attachment 153487 [details]
This bug reproduced on 5.26.0
Comment 7 Apurv 2022-11-05 07:16:44 UTC
Created attachment 153488 [details]
overflowing file extensions

Max number of lines visible in Dolphin's settings is set to 2, but occasionally the extension of some files with long names will break into an extra line, which remains visible until the view isn't refreshed.
Comment 8 roonaldo2286_dev+kde 2023-09-16 12:55:22 UTC
having this issue in plasma 5.27.7 as well where the file extension of files with long filenames overflows to the extra line beyond what is set. This happens even if the max number of lines allowed set to 3/4.
Comment 9 filip.kendes1 2024-05-07 06:38:07 UTC
*** Bug 485548 has been marked as a duplicate of this bug. ***
Comment 10 filip.kendes1 2024-05-07 06:38:33 UTC
*** Bug 486673 has been marked as a duplicate of this bug. ***
Comment 11 filip.kendes1 2024-05-07 06:48:52 UTC
Closed 2 bugs as duplicates of this one. Apologies if I did something wrong here, still new at this.

Bug is still reproducible in Dolphin 24.02.2.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 7.7 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970/PCIe/SSE2
Comment 12 Dilam 2024-05-07 07:51:56 UTC
I'm updating the bug version from Dolphin 20.12.1 to 24.02.2 (my current version where I can see the bug, which is also the last reported version in comments).

I don't know if I should update Platform to "unspecified" (or "compiled from source") because it happen not only on "Debian unstable" but also at least on "Arch Linux", on "EndeavorOS" and on "KDE Neon" (which is Ubuntu based).
Comment 13 Dilam 2024-05-07 08:03:08 UTC
Here is a video of production of a large number of visual glitches (posted in bug 485548) :
https://bugs.kde.org/attachment.cgi?id=169111

We can clearly see that the issue is that the part of the names that overflow (should not overflow) and any of its rest is not removed when the view updates.
Some things still update the view (clearing the bug at that moment) like clicking on the background or getting the mouse in or out of the folder part of dolphin.
Comment 14 Dilam 2024-05-07 08:19:42 UTC
*** Bug 470596 has been marked as a duplicate of this bug. ***
Comment 15 Dilam 2024-05-07 08:25:26 UTC
*** Bug 459395 has been marked as a duplicate of this bug. ***
Comment 16 Dilam 2024-05-07 08:29:13 UTC
For the name overflow to happen, the text needs to match a very specific sizes which depend on : the file name, the current numbers of lines per file, the folder zoom level, and the current font (effect of font shown in bug 459395).
Comment 17 Dilam 2024-05-07 08:35:52 UTC
*** Bug 435771 has been marked as a duplicate of this bug. ***
Comment 18 Andrei Rybak 2024-05-07 20:46:17 UTC
*** Bug 470593 has been marked as a duplicate of this bug. ***