catalog directory emptied when opening second instance of xnviewmp

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

catalog directory emptied when opening second instance of xnviewmp

Post by rmtk »

to reproduce:
1. open the first instance of xnviewmp
2. open a new folder and xnviewmp starts generating thumbnails of the folder
3. before it finishing generating thumbnails, open the second instance of xnviewmp
4. you will find XnView.db corrupts and catalog directory in settings emptied, you have to regenerate all thumbnails

It's safe to open the second xnviewmp after all thumbnails generated on the first one.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: catalog directory emptied when opening second instance of xnviewmp

Post by xnview »

you can reproduce each time? When i test, the second instance was locked until thumbnails was built
Pierre.
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: catalog directory emptied when opening second instance of xnviewmp

Post by masterjp »

I also did different tests with catalog and 2 instances of XnViewMP.
Both use the same database.

If you browse a new picture folder with the first instance,
it is not possible to browser and view thumbnails of a known folder with the second instance of XnviewMP.

Problem: The XnViewMP instance, which currently generates the thumbnails, block the thumbnail database file.
So it is not possible to view the thumbnails of the folder which were generated in the past.

If the thumbnail are generated, the other XnviewMP instance will view other folders as expected and the database file is no longer locked.

Maybe it is not possible to read and write the database at the same time with two instances of XnViewMP.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: catalog directory emptied when opening second instance of xnviewmp

Post by xnview »

masterjp wrote: Fri Jul 01, 2022 4:07 pm Maybe it is not possible to read and write the database at the same time with two instances of XnViewMP.
It's not possible, only multiple read is possible
Pierre.
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: catalog directory emptied when opening second instance of xnviewmp

Post by masterjp »

Thank you for the details, how XnViewMP works.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: catalog directory emptied when opening second instance of xnviewmp

Post by rmtk »

I forgot to mention that the problem happened on Linux. I just clean installed v1.40 and still can comfirm this problem.
Windows version seems to be good.
Post Reply