Bug 384617 - Meta information not shown in Dolphin inside home directory (video reproduce inside)
Summary: Meta information not shown in Dolphin inside home directory (video reproduce ...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.44.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL: https://www.youtube.com/watch?v=XzI4l...
Keywords:
: 391871 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-12 11:35 UTC by Andrew Shark
Modified: 2018-10-24 19:36 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Shark 2017-09-12 11:35:18 UTC
If file is stored in home directory (and all levels down), then Dolphin is not showing meta information on information panel.
However, if copy this file outside home directory (file system does not matter, also does not matter if drive is removable), then this info can be easily shown.
Video of reproducing is included.

OS Arch Linux
Dolphin version 17.08.1
Comment 1 Christoph Feck 2017-09-28 17:51:03 UTC
Did you maybe exclude your home directory from indexed folders?
Comment 2 Andrew Shark 2017-09-29 03:16:25 UTC
At least not intentionally. Could you please advise how to check this?
Comment 3 Julian Steinmann 2018-01-27 16:26:10 UTC
(In reply to Ashark from comment #2)
> At least not intentionally. Could you please advise how to check this?

Hey there, to view all your excluded folders do the following:
1. Open up the System Settings
2. Choose Search -> File Search
3. There should be a table that shows you which folders are not indexed

If you are sure that the home folder is not excluded, try this:
1. Open up a terminal 
2. Type "balooctl index ~/" (without the quotation marks)
3. Paste the output here.

Thanks for taking the time to help & triage this bug :)
Comment 4 Andrew Shark 2018-01-27 18:52:54 UTC
(In reply to XYQuadrat from comment #3)
> 1. Open up the System Settings
> 2. Choose Search -> File Search
> 3. There should be a table that shows you which folders are not indexed
Thank you for info.

> If you are sure that the home folder is not excluded, try this:
Yes, I am sure. Home dir is not listed there. There are /var partition and /mnt/exchange (my ntfs partition) in exclude list.
Interesting, but on excluded partition (/mnt/exchange) I _can_ see width and height for images, but on not excluded (/home) I cannot.
Bug still reproduses in Dolphin version 17.12.1

> 1. Open up a terminal 
> 2. Type "balooctl index ~/" (without the quotation marks)
> 3. Paste the output here.
It did not help. Output was
Indexing /home/andr/
File(s) indexed
Why do you think that this bug is related to searchung?
Comment 5 Julian Steinmann 2018-01-27 19:00:38 UTC
(In reply to Ashark from comment #4)
> (In reply to XYQuadrat from comment #3)
> > 1. Open up the System Settings
> > 2. Choose Search -> File Search
> > 3. There should be a table that shows you which folders are not indexed
> Thank you for info.
> 
> > If you are sure that the home folder is not excluded, try this:
> Yes, I am sure. Home dir is not listed there. There are /var partition and
> /mnt/exchange (my ntfs partition) in exclude list.
> Interesting, but on excluded partition (/mnt/exchange) I _can_ see width and
> height for images, but on not excluded (/home) I cannot.
> Bug still reproduses in Dolphin version 17.12.1
> 
> > 1. Open up a terminal 
> > 2. Type "balooctl index ~/" (without the quotation marks)
> > 3. Paste the output here.
> It did not help. Output was
> Indexing /home/andr/
> File(s) indexed
> Why do you think that this bug is related to searchung?

Thanks for the quick response. I thought that this bug might happen because baloo  (the file indexer from KDE) had a problem picking up the metadata of your files in the home directory. I don't know what else could cause this problem, but maybe someone else can.
Comment 6 Patrick Silva 2018-01-28 01:00:07 UTC
I can confirm on Arch Linux, Dolphin 17.12.1.
Height and width info are missing when the file (jpg or png) is located in home folder. The same info is available when the same file is placed in my NTFS partition.

On my neon dev unstable only jpg files are affected.
Info panel shows height and width of png files in home folder.
Comment 7 Andrew Shark 2018-01-28 02:17:34 UTC
Maybe this bug is somehow related to method of compiling in different distributions?
I have just done a test. Installed manjaro 17.1.2 kde edition to virtualbox and it noticed that meta info is shown for both jpeg and png files in home location.
Comment 8 Andrew Shark 2018-01-28 03:31:05 UTC
In manjaro they use exactly the same package for dolphin as in arch.
I have just compared md5sum of arch's and manjaro's dolphin-17.12.1-1-x86_64.pkg.tar.xz file and they are both 1ee7c1b7286a22e6a8eb2ca2df93fba2
So perhaps problem is not dolpnin itself, but some component, which is used by dolphin to show that meta information.
Comment 9 Julian Steinmann 2018-01-28 12:45:48 UTC
(In reply to Ashark from comment #8)
> In manjaro they use exactly the same package for dolphin as in arch.
> I have just compared md5sum of arch's and manjaro's
> dolphin-17.12.1-1-x86_64.pkg.tar.xz file and they are both
> 1ee7c1b7286a22e6a8eb2ca2df93fba2
> So perhaps problem is not dolpnin itself, but some component, which is used
> by dolphin to show that meta information.

Well, the component used to gather the metadata is baloo... I know that you kind of already tried this, but could you try "balooshow <some image file>" and look if the "normal" metadata is displayed? If it is, then this is probably an issue with the way Dolphin accesses that data.
Comment 10 Patrick Silva 2018-01-28 13:19:40 UTC
just for curiosity, I tested here on Arch Linux.
"balooshow <some image file>" says "No index information found"
no matter if the file is located in my home or in my NTFS partition.
But metainfo is available when file location is my NTFS partition and unvailable when located in my home.
Comment 11 Andrew Shark 2018-01-28 17:44:12 UTC
(In reply to Dr. Chapatin from comment #10)
> "balooshow <some image file>" says "No index information found"
> no matter if the file is located in my home or in my NTFS partition.
I believe this is because you have turned off searching
I also tested it on Arch Linux and here is how it looks like:
$ LC_ALL=C balooshow test.png
No index information found
After turning on searching
$ LC_ALL=C balooshow test.png
No index information found
Wait a bit
$ LC_ALL=C balooshow test.png 
25900005709643269 65029 6030315 /home/andr/Pictures/test.png
Wait a bit more
$ LC_ALL=C balooshow test.png 
25900005709643269 65029 6030315 /home/andr/Pictures/test.png
        Width: 1920
        Height: 1080
So I think balooshow is not related to displaying meta info by dolphin (but I am not sure).

> But metainfo is available when file location is my NTFS partition and
> unvailable when located in my home.
Yes, even when searching is turned off, for images in ntfs partition I can see meta info. (But maybe it was remembered when searching was turned on).

For me it started to behave normal (but maybe until reboot only, need test it). Actually, for files already existed there dolphin is showing meta info. For newly created files (for example, just take a screenshot and place there) that information not shown immediately, you need wait a bit (around 20 seconds) and then it is displayed.

For now I cannot understand dependency of turning search on/off.
Comment 12 Patrick Silva 2018-01-28 18:40:35 UTC
Here "balooctl status" says
Baloo File Indexer is running
Indexer state: Indexing file content
Indexed 189 / 190 files
Current size of index is 89,45 MiB
Comment 13 Julian Steinmann 2018-01-29 16:19:42 UTC
Okay, so even though I am not sure what is causing this bug but I would like to explain how Dolphin can display metadata. First, there is some basic information (such as file size & type) which Dolphin can extract on its own. This information is also shown in your cases (at least according to the video from Ashark). But for more specific metadata (such as image size, or an album artist), Dolphin relies on baloo, which also provides desktop search for you. 

Now @Ashark, about your latest comment:
1. the metadata is indeed remembered, you would need to delete your index under ~/.local/share/baloo/index
2. So it works now for you? It's normal that it takes ~20 seconds until metadata is shown, because baloo needs to index the file, extract all metadata and then Dolphin can access it

@Dr. Chapatin, your problem seems more complicated. I frankly have no idea what could cause the fact that .png's work while .jpg's don't (unless the png was simply indexed before this bug was introduced).
Comment 14 Andrew Shark 2018-01-30 04:36:01 UTC
@XYQuadrat
No, it is still broken. I have already rebooted since my message in #11 and I was working with computer like usually. Then decided to check status.
For files that already were there (lets call them "old") meta info was shown, but for files that are newly created (lets call them "new") meta info was missing.
Toggling searching on and off several times did not help.
But after I removed ~/.local/share/baloo/index and ~/.local/share/baloo/index-lock, meta info appeared for new files.
So, looks like periodically removing those files could be a workaround. Maybe one time per reboot, need test it.

As I could understand, it does not matter if searching is turned on or off. Meta info appeared even when it was off.
Comment 15 Patrick Silva 2018-02-04 20:46:47 UTC
Yesterday I reinstalled Arch Linux because boot problems.
Now both "balooshow <picture>" command and dolphin show metainfo for png and jpg files located in my home. Weird.
Comment 16 Nate Graham 2018-03-29 20:03:34 UTC
*** Bug 391871 has been marked as a duplicate of this bug. ***
Comment 17 Rémi Verschelde 2018-06-18 08:30:34 UTC
I'm having a similar issue on Mageia 6 (Plasma 5.12.2, KF5 5.42.0), but there's something I don't understand.

Bug 332065 hints that metadata *should* be available when file indexing is disabled. In my case, I tried tweaking all settings and could never get any EXIF metadata to show for photos with indexing disabled.

So is the resolution of bug 332065 "WONTFIX" in the end? Or should it be possible to get file metadata without having baloo indexing (possibly by rescanning all files of the currently opened folder to display the metadata, would be fine by me).

If I turn indexing on, I get 10 GB of index, and on my limited /home partition I can't justify this just to get metadata displayed in Dolphin.
Comment 18 Rémi Verschelde 2018-06-18 10:12:50 UTC
(In reply to Rémi Verschelde from comment #17)
> I'm having a similar issue on Mageia 6 (Plasma 5.12.2, KF5 5.42.0), but
> there's something I don't understand.
> 
> Bug 332065 hints that metadata *should* be available when file indexing is
> disabled. In my case, I tried tweaking all settings and could never get any
> EXIF metadata to show for photos with indexing disabled.

False alarm, I found that the package "baloo-widgets" was not installed, and it's the one containing /usr/bin/baloo_filemetadata_temp_extractor which is used for extracting metadata on-the-fly when file indexing is disabled.

I'll put a comment about it in 332065 for those who might have missed this too.

(BTW, baloo-widgets contains *only* this tool, it sounds like it might be time to merge it into the main baloo repo and deprecate baloo-widgets.)
Comment 19 Patrick Silva 2018-07-12 22:34:47 UTC
On my system, if baloo-widget is installed and baloo is disabled metainfo is available in dolphin info panel.
However the colunms available in details view mode that should show additional info like image size, track, artist, album, etc are empty.

Arch Linux
plasma 5.13.3
frameworks 5.47
dolphin 18.04.3
Comment 20 Andrew Shark 2018-10-24 13:04:24 UTC
It works normal for me now.
Dolphin 18.08.2
baloo 5.51.0
Comment 21 Nate Graham 2018-10-24 18:51:48 UTC
I'm confused about what's still going wrong here. Can anyone who can reproduce the issue in the latest releases (Apps 18.08.x, Frameworks 5.51) write steps to reproduce or attach an up-to-date screen recording?
Comment 22 Andrew Shark 2018-10-24 19:23:03 UTC
Attached video is quite understandable, but I will explain steps to reproduce:
1) Place some image file, for example os_arch.png to your home directory and also place some image file to some place outside /home directory (for example, mount ntfs partition to /mnt/exchange and copy that image there).
2) Open /mnt/exchange path in Dolphin, then highlight os_arch.png file or hover mouse over it to see information in information panel. It _will_ show info about image width and height.
3) Open /home path in Dolphin, then highlight os_arch.png file or hover mouse over it to see information in information panel. It will _not_ show info about image width and height (and it is actually a bug).

I have filed this bug and it seems fixed now for me, so consider closing this bug.
Comment 23 Nate Graham 2018-10-24 19:36:49 UTC
Awesome, thanks!