Bug 387957 - Image Editor Launches without Image
Summary: Image Editor Launches without Image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: ImageEditor-Load (other bugs)
Version First Reported In: 5.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-16 13:20 UTC by hardy.public
Modified: 2022-02-03 03:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.8.0
Sentry Crash Report:


Attachments
Problem (48.90 KB, image/png)
2017-12-16 13:20 UTC, hardy.public
Details
Debug Log (23.45 KB, text/plain)
2017-12-16 14:46 UTC, hardy.public
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hardy.public 2017-12-16 13:20:58 UTC
Created attachment 109407 [details]
Problem

Right-click on thumbnail and click Open... or F4.

Image Editor opens but image is blank. Album and filename references are correct. No operations are possible.
Comment 1 hardy.public 2017-12-16 13:22:19 UTC
I'm using the 12-Dec build of 5.8.0.
Comment 2 caulier.gilles 2017-12-16 13:50:45 UTC
Comment on attachment 109407 [details]
Problem

So typically, the image JPG image cannot be loaded or something like that.

Under Windows, you need an extra program to see debug trace while digiKam running. See "Freezes and Other Issues" section from this page for details :

https://www.digikam.org/contribute/

Gilles Caulier
Comment 3 caulier.gilles 2017-12-16 13:51:04 UTC
I'm
Comment 4 caulier.gilles 2017-12-16 13:53:59 UTC
I'm agree that image editor must report an error in GUI in this case. I vote to use the embedded message widget instead a messagebox. This one is already used in import tool when connection to camera do not work. The advantage in editor : it will permit to switch immediately to next or previous image without to block user with any feedback.
Comment 5 hardy.public 2017-12-16 14:46:59 UTC
Created attachment 109410 [details]
Debug Log

I attach the debug log. The only meaningful line for me is

00000275	11.26283264	[8540] digikam.dimg: ""  : Unknown image format !!!	

I used JPG, NEF and CR2. Effect is the same.
Comment 6 caulier.gilles 2017-12-16 16:13:29 UTC
Hum sound like the file path passed to image loader is empty.

What's the full path of the image that you try to open in editor ?

Gilles Caulier
Comment 7 caulier.gilles 2017-12-16 16:16:20 UTC
Also Sound like the collection from F: is a removable one. Right ?

Create a new small collection in local hard drive, add this collection to digiKam DB as not removable, and put some image inside. Can you open images in editor ?

Gilles Caulier
Comment 8 Maik Qualmann 2017-12-16 16:40:26 UTC
You may also want to deactivate the antivirus program for testing because it will display a message just before and after reading the image.

Maik
Comment 9 hardy.public 2017-12-16 16:45:58 UTC
You're right, this problem only occurs on Network Shares not local collections.

The problem was that the drive-mapped NAS collection on P: drive had the connection dropped by windows. The root cause of this is an ongoing problem for me.

If I poke the network share with Windows Explorer then open an image in digiKam, it works fine.

So in summary: If the network share where the original is located is disconnected (reason TBC), digiKam must pass an empty image path. Not surprising really.

It seems this action is not enough to force Windows to reconnect the network share. I had to use Explorer in this case.

I guess we can close this as INVALID unless you know of a way that digiKam can force reconnection when it wants to open the original image on the network share?
Comment 10 caulier.gilles 2017-12-16 17:07:56 UTC
The automount request by application under Windows is another problem that i don't know a solution (if there is one of course).

The second problem is to show an error message when image cannot be loaded in editor. This one can be solved.

Gilles Caulier
Comment 11 caulier.gilles 2017-12-16 23:23:16 UTC
Git commit 529f5c96103ab6d8a96d6512719155a0c73aa79e by Gilles Caulier.
Committed on 16/12/2017 at 23:21.
Pushed by cgilles into branch 'master'.

if loading item failed in editor, show a passive popup message box over the canvas.
FIXED-IN: 5.8.0

M  +8    -8    libs/notificationmanager/dnotificationpopup.h
M  +7    -1    utilities/imageeditor/editor/editorwindow.cpp
M  +3    -27   utilities/imageeditor/editor/editorwindow_p.h

https://commits.kde.org/digikam/529f5c96103ab6d8a96d6512719155a0c73aa79e