Bug 392266 - Error in the thumbnail cache subsystem for files with international characters in names
Summary: Error in the thumbnail cache subsystem for files with international character...
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (other bugs)
Version First Reported In: 17.12.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-24 12:53 UTC by DMITRIY SEYBANOV
Modified: 2020-09-23 04:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
attachment-23495-0.html (4.86 KB, text/html)
2018-03-24 16:12 UTC, DMITRIY SEYBANOV
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DMITRIY SEYBANOV 2018-03-24 12:53:53 UTC
Hi!

Found a problem in Dolphin 17.12.3.

If a full file name contains international characters ('/home/ДЖЕНС/photos/me.png'), the cache subsystem of the thumbnails does not work - the cache file '<MD5>.png' is created in the '/home/<user>/.cache/thumbnails/', but when I re-access the folder, Dolphin can not find it. As a result, a thumbnail image is recreated each time, and not read from the cache.

For files that contain only ASCII characters in their full name ('/home/jens/photos/me.png'), the caching works fine.

Ubuntu file manager does not have this problem.
Comment 1 Rog131 2018-03-24 14:52:25 UTC
(In reply to DMITRIY SEYBANOV from comment #0)
> Hi!
> 
> Found a problem in Dolphin 17.12.3.
> 
> If a full file name contains international characters
> ('/home/ДЖЕНС/photos/me.png'), the cache subsystem of the thumbnails does
> not work - the cache file '<MD5>.png' is created in the
> '/home/<user>/.cache/thumbnails/', but when I re-access the folder, Dolphin
> can not find it. As a result, a thumbnail image is recreated each time, and
> not read from the cache.
> 
> For files that contain only ASCII characters in their full name
> ('/home/jens/photos/me.png'), the caching works fine.
> 
> Ubuntu file manager does not have this problem.

The thumbnails are made by the kio, not the Dolphin. The kio-extras has the imagethumbnailer.

Testing with the Arch Linux and kio-extras 17.12.3. Making: '/media/sda2/ДЖЕНС/Test image.png'

The  $HOME/.cache/thumbnails/large/ has 6e98d381fb094a267833e60e670dc1dd.png

When executing in the $HOME/.cache/thumbnails/large/ command: 'exiftool 6e98d381fb094a267833e60e670dc1dd.png'

There is correct Thumb URI:  file:///media/sda2/ДЖЕНС/Test image.png
Full output: https://pastebin.com/vZvtsHzF

Could you check your thumbnail metadata ?
Comment 2 DMITRIY SEYBANOV 2018-03-24 16:12:03 UTC
Created attachment 111609 [details]
attachment-23495-0.html

Ok, I did the following:

I move to the folder */media/adollo/WD Black 2Tb/ДЖЕНС/* with the file
*test_image.jpg*

In the folder */home/adollo/.cache/thumbnails/normal/* automatically
created the file

*e99682e8f740abfefb8d5006e26fbeca.png*

I execute the command:
*exiftool
/home/adollo/.cache/thumbnails/normal/e99682e8f740abfefb8d5006e26fbeca.png*

Result:

xifTool Version Number         : 10.10
File Name                       : e99682e8f740abfefb8d5006e26fbeca.png
Directory                       : /home/adollo/.cache/thumbnails/normal
File Size                       : 19 kB
File Modification Date/Time     : 2018:03:24 19:09:23+03:00
File Access Date/Time           : 2018:03:24 19:09:27+03:00
File Inode Change Date/Time     : 2018:03:24 19:09:23+03:00
File Permissions                : rw-rw-r--
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 89
Image Height                    : 128
Bit Depth                       : 8
Color Type                      : RGB with Alpha
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Pixels Per Unit X               : 3780
Pixels Per Unit Y               : 3780
Pixel Units                     : meters
Software                        : KDE Thumbnail Generator ??????????? JPEG
(v2)
Thumb M Time                    : 4294967295
Thumb Mimetype                  : image/jpeg
Thumb Size                      : 933593
Thumb URI                       : file:///media/adollo/WD Black
2Tb/?????/test_image.jpg
Image Size                      : 89x128
Megapixels                      : 0.011

P.S. Russian version of KDE

2018-03-24 17:54 GMT+03:00 Rog131 <bugzilla_noreply@kde.org>:

> https://bugs.kde.org/show_bug.cgi?id=392266
>
> Rog131 <samrog131@hotmail.com> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>            Assignee|dolphin-bugs-null@kde.org   |plasma-bugs@kde.org
>             Product|dolphin                     |kio-extras
>           Component|general                     |default
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 Rog131 2018-03-24 16:44:32 UTC
Are you using the UTF-8 encoding ?

Could you add the 'locale' command output ?
Comment 4 DMITRIY SEYBANOV 2018-03-24 16:47:04 UTC
(In reply to Rog131 from comment #3)
> Are you using the UTF-8 encoding ?
> 
> Could you add the 'locale' command output ?

$ locale

LANG=ru_RU.UTF-8
LANGUAGE=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
Comment 5 Rog131 2018-03-24 18:16:37 UTC
I can't reproduce this BUT I'm not using the Neon or dont't have the cyrillic keyboard I'm just turning the status as unconfirmed.
Comment 6 DMITRIY SEYBANOV 2018-03-24 18:58:57 UTC
OK thanks!

Very strange:

I tried to reproduce the error on neon-devedition-gitstable-20180320-1047-amd64 (English) in Live CD mode - the error is reproduced.

On kubuntu-17.10.1-desktop-amd64 (English) in Live CD mode - NOT reproduced, everything is OK!

It is necessary to put the old kubuntu - I hope, updates will not spoil it ...)
Comment 8 Bug Janitor Service 2020-09-08 04:33:09 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 9 Bug Janitor Service 2020-09-23 04:33:16 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!