Category system, SQLite DB, table "Tags"

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

Moderators: xnview, Dreamer

nji9
Posts: 223
Joined: Wed May 13, 2020 10:33 am
Location: Germany

Category system, SQLite DB, table "Tags"

Post by nji9 »

In the table there are items that are not shown in XnViewMP.

EDIT:
It' worse:
Some files are assoziated with the "invisible" categories,
not shown anywhere (except in the db of course).
User avatar
xnview
Author of XnView
Posts: 47717
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Category system, SQLite DB, table "Tags"

Post by xnview »

Perhaps files removed outside
Pierre.
nji9
Posts: 223
Joined: Wed May 13, 2020 10:33 am
Location: Germany

Re: Category system, SQLite DB, table "Tags"

Post by nji9 »

No, you do misunderstand.

It's NOT about files, but about categories.

In Xnview.db there are entries in the "Tags" table
that are not seen in XnViewMP anywhere.
Long time ago I removed them.
And even worse:
Due to the "TagsTree" table in Xnview.db
some files are associated with that "no existing" labels!

There is a bug in XnViewMP:
Not showing all category entries that are in the db's table "Tag".

Confirm?
User avatar
xnview
Author of XnView
Posts: 47717
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Category system, SQLite DB, table "Tags"

Post by xnview »

houps sorry. Strange, which column values do you have? Is it possible to have your .db?
Pierre.
nji9
Posts: 223
Joined: Wed May 13, 2020 10:33 am
Location: Germany

Re: Category system, SQLite DB, table "Tags"

Post by nji9 »

Sent as PM...
User avatar
user0
XnThusiast
Posts: 2906
Joined: Sat May 09, 2015 9:37 am

Re: Category system, SQLite DB, table "Tags"

Post by user0 »

just experienced similar issue

A
while working with categories via the UI (creating, renaming, and moving them), I noticed that one of them disappeared (c2).
Record still exists in db, but somehow has ParentID = TagID
Unfortunately, I have not been able to reproduce this issue so far and do not have this db anymore.

B
if there is a record in Tags with ParentID = TagID and 'Update files from catalog is pressed - app stuck with updating dialog
db_categories_parentID_equals_TagID.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 47717
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Category system, SQLite DB, table "Tags"

Post by xnview »

user0 wrote: Fri May 01, 2026 12:42 pm A
while working with categories via the UI (creating, renaming, and moving them), I noticed that one of them disappeared (c2).
Record still exists in db, but somehow has ParentID = TagID
Unfortunately, I have not been able to reproduce this issue so far and do not have this db anymore.
c2 had which parent?
B
if there is a record in Tags with ParentID = TagID and 'Update files from catalog is pressed - app stuck with updating dialog
yes, it's a problem
Pierre.
User avatar
user0
XnThusiast
Posts: 2906
Joined: Sat May 09, 2015 9:37 am

Re: Category system, SQLite DB, table "Tags"

Post by user0 »

xnview wrote: Sat May 02, 2026 5:41 am c2 had which parent?
unfortunately, I do not remember

btw, what is the purpose of ID field in Tags table?
User avatar
xnview
Author of XnView
Posts: 47717
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Category system, SQLite DB, table "Tags"

Post by xnview »

user0 wrote: Sat May 02, 2026 6:02 am btw, what is the purpose of ID field in Tags table?
currently not used
Pierre.