Ratings and color markers are not saved

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Ratings and color markers are not saved

Post by Konzertheld »

Hey there,

I'm using XnView MP Linux, Version 0.93.1 64bits (Mar 7 2019) on Manjaro. Ratings and color markers for my photos are not saved. I tried rating in full screen mode via hotkey as well as in browser mode via the context menu. Once I exit XnView and re-open, they are gone.

When I switch to saving ratings and color markers in XMP files, everything is fine.

When I run XnView MP from the terminal, no errors appear in the terminal log when I rate an image or assign a color marker. Also no errors when XnView exits.

I'm open for investigation. :)

Cheers,
Konzertheld

(Edit: Initially, I wrote "categories" but I meant color markers.)
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Ratings and color markers are not saved

Post by xnview »

so you have only this problem when rating with only catalog, right?
Pierre.
Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Re: Ratings and color markers are not saved

Post by Konzertheld »

Sorry, I don't think I understand your question. What exactly do you mean by catalog? As mentioned, the problem also occurs in fullscreen view.
User avatar
michel038
XnThusiast
Posts: 1370
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Ratings and color markers are not saved

Post by michel038 »

There are three ways to save ratings, depending on Tools, Settings, Metadata choices
- xmp embedded metadata for JPG files
- xmp companion files (sidecar files)
- Xnviewmp database only
Only the third one produces the error?


( Ratings were designed to be applied to pictures, but I think xnviewmp can create xmp files or database records for all types of files : does anyone here use this feature ? )
Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Re: Ratings and color markers are not saved

Post by Konzertheld »

I don't know how to activate companion files, but the error occured in "database only" and seems to disappear with embedded xmp, yes. At least I thought so - yesterday I had a case where it didn't work with embedded xmp but I do not yet know why.
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Ratings and color markers are not saved

Post by xnview »

so with "database only", you can reproduce each time?
Pierre.
Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Re: Ratings and color markers are not saved

Post by Konzertheld »

xnview wrote: Tue Mar 31, 2020 4:19 pm so with "database only", you can reproduce each time?
Yes.
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Ratings and color markers are not saved

Post by xnview »

I've just tried on ubuntu, and no problem.
I start XnView (settings>Metadata - import XMP only), set rating or color label on 2 files, quit, restart and i have the good rating/labels
Pierre.
Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Re: Ratings and color markers are not saved

Post by Konzertheld »

Cannot confirm (for 0.96 now). When I apply rating / label in fullscreen, it's even gone already when I switch to the browser (Enter key).

Where is the rating stored when xmp is deactivated? In the XnView database? If so, where is the database stored? I will check permissions then. Is there some debug log I could check?
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Ratings and color markers are not saved

Post by xnview »

Konzertheld wrote: Fri Apr 10, 2020 8:45 am Cannot confirm (for 0.96 now). When I apply rating / label in fullscreen, it's even gone already when I switch to the browser (Enter key).

Where is the rating stored when xmp is deactivated? In the XnView database? If so, where is the database stored? I will check permissions then. Is there some debug log I could check?
yes in xnview.db, settings>Integration>Paths
Pierre.
Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Re: Ratings and color markers are not saved

Post by Konzertheld »

Interesting. I found XnView.db in ~/.config/xnviewmp/XnView.db and it has not been written since October. The user running XnView has write permissions though. If I delete it, it gets re-created with 0 Bytes.
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Ratings and color markers are not saved

Post by xnview »

Konzertheld wrote: Mon Apr 13, 2020 6:51 pm Interesting. I found XnView.db in ~/.config/xnviewmp/XnView.db and it has not been written since October. The user running XnView has write permissions though. If I delete it, it gets re-created with 0 Bytes.
Strange, and Thumb.db?
Pierre.
Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Re: Ratings and color markers are not saved

Post by Konzertheld »

Thumb.db does not even get re-created when I rename it, also unchanged since October.
User avatar
xnview
Author of XnView
Posts: 44461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Ratings and color markers are not saved

Post by xnview »

Konzertheld wrote: Mon Apr 13, 2020 7:05 pm Thumb.db does not even get re-created when I rename it, also unchanged since October.
xnview.ini is changed?
Pierre.
Konzertheld
Posts: 43
Joined: Sun Feb 27, 2011 9:43 pm

Re: Ratings and color markers are not saved

Post by Konzertheld »

Yes.