Bug 345856 - MYSQL : Image window, extreme unstable under dates view.
Summary: MYSQL : Image window, extreme unstable under dates view.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (show other bugs)
Version: 4.11.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-04 09:39 UTC by Gerard Dirkse
Modified: 2016-06-27 12:20 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments
terminal output (47.87 KB, application/vnd.oasis.opendocument.text)
2015-04-04 11:48 UTC, Gerard Dirkse
Details
Kdebugdialog induced traces for digikam (102.63 KB, text/plain)
2015-04-04 11:50 UTC, Gerard Dirkse
Details
Second reprodution trace (unedited) (39.86 KB, text/plain)
2015-04-04 13:25 UTC, Gerard Dirkse
Details
Second kde trace (73.55 KB, text/plain)
2015-04-04 13:25 UTC, Gerard Dirkse
Details
Screenshot just after starting digikam and selecting a date (300.15 KB, image/jpeg)
2015-08-17 08:07 UTC, Gerard Dirkse
Details
Screenshot after change in window happened (217.05 KB, image/jpeg)
2015-08-17 08:14 UTC, Gerard Dirkse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerard Dirkse 2015-04-04 09:39:56 UTC
When images are selected based on dates, display of images in image window is very unstable:
- without apparent reason switches from preview to thumbnail, 
- selected image may change,
- if (specific) date selected, it may revert to all for that month selected,

Biggest nuisance/problem is when editing image attributes and something of the above happens then these changes get partially applied and/or are lost.

Somehow it appears something (mouse-over ?) gets triggered and then all sort of things (undesired) might start happening.

Problem has been around a few versions now.  All the above does not happen in other views like album, tags etc.

Reproducible: Sometimes

Steps to Reproduce:
1. Use date view to select images
2. do things like editing/viewing/deleting etc.
3.

Actual Results:  
unpreditable, depends on what you were doing.

Expected Results:  
Stay focused on image selected, and dont change view, selection etc.
Comment 1 caulier.gilles 2015-04-04 10:28:22 UTC
Of course this dysfunction is not reproducible  here. This problem is specific to your computer.

Run digiKam in a console with debug spaces enabled and report here the trace of messages printed.

https://www.digikam.org/contrib
Comment 2 Gerard Dirkse 2015-04-04 11:48:57 UTC
Created attachment 91881 [details]
terminal output

text in red font at image and what happened (twice)
Comment 3 Gerard Dirkse 2015-04-04 11:50:06 UTC
Created attachment 91882 [details]
Kdebugdialog induced traces for digikam

Reproduced and provided traces
Comment 4 caulier.gilles 2015-04-04 12:14:04 UTC
Comment on attachment 91882 [details]
Kdebugdialog induced traces for digikam

digikam(11166)/digikam (core) Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag  "Irene"  with pid  27
digikam(11166)/digikam (core) Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag  "Erik"  with pid  27
digikam(11166)/digikam (core) Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag  "Geert"  with pid  27
digikam(11166)/digikam (core) Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag  "ANZ"  with pid  134
digikam(11166)/digikam (core) Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag  "Noordkaap"  with pid  134

Sound like a DB file problem...

Gilles Caulier
Comment 5 Gerard Dirkse 2015-04-04 13:24:38 UTC
Fixed the errors in the database, repeated the test, see attached files (stopped immediate after problem happened).  Suspect the end result is caused by this:

digikam(12444)/digikam (core) Digikam::DatabaseUrl::dateUrl: DatabaseUrl::dateUrl :  "digikamdates://?databaseType=QMYSQL&databaseName=digikam&connectOptions=&hostName=dirksehome&port=3306&userName=digikam&password=fotos"
digikam(12444)/digikam (core) Digikam::ImageLister::startListJob: Query Kioslave Url: "digikamdates://?databaseType=QMYSQL&databaseName=digikam&connectOptions=&hostName=dirksehome&port=3306&userName=digikam&password=fotos"

and this
digikam(12444)/KEXIV2 KExiv2Iface::KExiv2::getImageDateTime: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime("Mon Mar 9 09:03:14 2015")
digikam(12444)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation => Exif.Image.Orientation =>  1
digikam(12444)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x6cff720)
digikam(12444)/kio (KIOConnection) KIO::SocketConnectionBackend::socketReadyRead: KIO::SocketConnectionBackend(0x4eb0bc0) Jumbo packet of 74156 bytes
digikam(12444)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("digikamdates://?databaseType=QMYSQL&databaseName=digikam&connectOptions=&hostName=dirksehome&port=3306&userName=digikam&password=fotos")
digikam(12444)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::SpecialJob(0x6cff720) KIO::Slave(0x4fa40c0)

But cant see what triggered the action in this case problem happened when going from last foto to next foto
Comment 6 Gerard Dirkse 2015-04-04 13:25:21 UTC
Created attachment 91884 [details]
Second reprodution trace (unedited)
Comment 7 Gerard Dirkse 2015-04-04 13:25:56 UTC
Created attachment 91885 [details]
Second kde trace
Comment 8 Maik Qualmann 2015-04-05 06:42:14 UTC
Part of the problem sounds like this bug 344793. The bug report contains a video, it is comparable?

Maik
Comment 9 caulier.gilles 2015-05-10 07:59:53 UTC
gerard,

Did you seen comment #8 from Maik. He has fixed bug #344793 with digiKam 4.9.0. Can you reproduce the problem with this version ?

Gilles Caulier
Comment 10 Gerard Dirkse 2015-05-10 09:37:32 UTC
No problem, within minutes. You want new traces ?
Comment 11 caulier.gilles 2015-05-10 09:44:01 UTC
I problem is reproducible yes. Typically debug statements on the console can help to see where is the problem...

Gilles Caulier
Comment 12 caulier.gilles 2015-05-10 09:44:31 UTC
Nota : digiKam 4.10.0 will be released in few days...

Gilles Caulier
Comment 13 Gerard Dirkse 2015-07-01 11:32:37 UTC
Was just checking out 4.11, and while in preview image from within 'dates' view (not doing anything at all), just reviewing a picture histogram, complete window was filled with the image and then fell back to thumbnail view.  Will see if I can reproduce and take traces.
Comment 14 Gerard Dirkse 2015-08-17 08:07:39 UTC
Created attachment 94073 [details]
Screenshot just after starting digikam and selecting a date

Please note how the calender (left under) looks, all dates with photo’s are bold and the date selected is highlighted.  The status bar (left under) indicates the selected and number of photo's are for that day.
Comment 15 Gerard Dirkse 2015-08-17 08:14:24 UTC
Created attachment 94074 [details]
Screenshot after change in window happened

Please note how the calendar now looks !!!. Only the selected day is bold, the window has fallen back into thumbnail view and the number of selected images are all of them for that month.
Comment 16 Gerard Dirkse 2015-08-17 08:23:33 UTC
Difference between the 2 last attachments is time, was working on a different screen (not window) in Linux.  So I didn’t do absolutely nothing in Digikam (version is 4.12).  I did note while working on that other screen that a small window popped up right under, on the screen I was working, with the digits '197' in it, tried it a couple of times, seem to give that number every time, window is only very short visible.

Let me know if you need further traces, screen prints or whatever.  Problem appears to be hard reproducible with the selections I currently use.
Comment 17 swatilodha27 2016-06-27 10:32:32 UTC
Please try digikam5.0.0-Beta7 
Problem is not reproducible here.

Steps to reproduce:
1) Use MySQL backend and use digiKam in Dates view.
2) I tried viewing, deleting the images, added a new tag to image....

Result was produced as expected to be.