Page 1 of 2

0.99.1: Error when images are opened from dupeGuru

Posted: Thu Jan 21, 2021 1:43 am
by orlydb
XnView: MP 0.99.1 - 64 bit
OS: Windows 10 64bit

I'm not sure if I should fill a bug report here or in dupeGuru's github page but I will fill it here right now because the actual error is shown in XnView MP.
Whenever I try to open an image file I get an error.

Effect: Program shows error message and doesn't open the image file.

To reproduce:
1. Add a folder in dupeguru containing two duplicated images
2. Scan for the dups using filename or picture mode, doesn't matter.
3. Try to open one of the duplicates

Actual behaviour (bug): Got this message:
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, webgl, windows.
Expected behaviour: Open the image.

Re: 0.98.0: Error when images are opened from dupeGuru

Posted: Thu Jan 21, 2021 1:19 pm
by xnview
it seems that dupeGuru use Qt too, current folder should be changed to XnView when executing exe, i think

Re: 0.98.0: Error when images are opened from dupeGuru

Posted: Thu Jan 21, 2021 6:04 pm
by orlydb
Should I report this there or should I wait for an update?

Thanks.

Re: 0.98.0: Error when images are opened from dupeGuru

Posted: Fri Jan 22, 2021 9:43 am
by xnview
orlydb wrote: Thu Jan 21, 2021 6:04 pm Should I report this there or should I wait for an update?
From my side, i can't change something...

Re: 0.98.0: Error when images are opened from dupeGuru

Posted: Sat Jan 23, 2021 2:48 am
by orlydb
I posted the error on dupeGuru's issue tracker and the author told me this:
For step 3 I am interpreting that as you double click on one of the results to open the item? If so dupeguru only calls QDesktopServices.openUrl(url), which results in the default program for that file being launched to open it. The behavior after calling QDesktopServices.openUrl(url) is entirely dependent on Qt's implementation on windows and has no issue with other applications such as window's built-in photo viewer. This would appear to be an issue with XnView not being compatible with being launched through windows default. The actual launching is done as:
qt/qtbase@1ef5016/src/plugins/platforms/windows/qwindowsservices.cpp#L88-L90.
Which calls the windows shell function as:
qt/qtbase@1ef5016/src/plugins/platforms/windows/qwindowsservices.cpp#L67

Since dupeguru is just using the users currently selected default application through the windows API in this case we have no way to know other special requirements of the application such as "current folder should be changed to XnView when executing exe"
There are more comments about this, here is the issue so you can read it directly: https://github.com/arsenetar/dupeguru/issues/768

Re: 0.98.0: Error when images are opened from dupeGuru

Posted: Thu Jan 28, 2021 6:12 am
by orlydb
xnview wrote: Fri Jan 22, 2021 9:43 am
orlydb wrote: Thu Jan 21, 2021 6:04 pm Should I report this there or should I wait for an update?
From my side, i can't change something...
Hi, any progress on this?

Thank you.

Re: 0.98.0: Error when images are opened from dupeGuru

Posted: Thu Jan 28, 2021 10:15 am
by xnview
no, it seems that Qt libraires are not correclty loaded

Re: 0.98.2: Error when images are opened from dupeGuru

Posted: Sat Feb 27, 2021 2:59 am
by orlydb
The problem is still present in 0.98.2. It also happens when I try to open the cover art from MusicBrainz Picard, I get the exact same error message.

Re: 0.98.2: Error when images are opened from dupeGuru

Posted: Wed Nov 24, 2021 6:50 pm
by orlydb
Hey, please, don't forget about this. Is very frustrating to have to change default programs when I want to open image files from Picard or DupeGuru. I remember this happening with at least another program too but don't remember exactly which.

Re: 0.98.2: Error when images are opened from dupeGuru

Posted: Tue Nov 30, 2021 8:22 am
by xnview
i don't think that it's a problem on XnView's side but a QT version problem

Re: 0.99.1: Error when images are opened from dupeGuru

Posted: Sat Jan 07, 2023 6:03 pm
by orlydb
This error has been fixed with the latest 1.4.0 version, I guess the QT update fixed this?
Thanks! Now I can open images from DG and Picard without problems.

Re: 0.99.1: Error when images are opened from dupeGuru

Posted: Sat Feb 11, 2023 6:14 pm
by orlydb
Unfortunately the problem has returned with either 1.4.1 or 1.4.2. I'm getting the same messages as before. Downgraded to 1.4.0 and all is working well.

Re: 0.99.1: Error when images are opened from dupeGuru

Posted: Sun Feb 12, 2023 8:33 am
by xnview
orlydb wrote: Sat Feb 11, 2023 6:14 pm Unfortunately the problem has returned with either 1.4.1 or 1.4.2. I'm getting the same messages as before. Downgraded to 1.4.0 and all is working well.
It seems that you have a different version of Qt on your system than the one in XnView folder

Re: 0.99.1: Error when images are opened from dupeGuru

Posted: Sun Feb 12, 2023 9:56 am
by orlydb
xnview wrote: Sun Feb 12, 2023 8:33 am It seems that you have a different version of Qt on your system than the one in XnView folder
I don't have Qt installed on my system. Maybe it's related to the changes you made here: viewtopic.php?p=184048#p184048

Re: 0.99.1: Error when images are opened from dupeGuru

Posted: Sun Feb 12, 2023 2:04 pm
by xnview
and dupeGuru?