After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 683152 - Preview thumbnails in file open dialog causes error in 2.8.2
Preview thumbnails in file open dialog causes error in 2.8.2
Status: VERIFIED FIXED
Product: GIMP
Classification: Other
Component: libgimp
2.8.2
Other Windows
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
: 686947 689406 703329 705209 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-09-01 10:47 UTC by burnuser
Modified: 2013-10-04 19:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description burnuser 2012-09-01 10:47:57 UTC
Hostsystem Windows Vista 32 Bit + Win 7
Error in installed + portable Gimp 2.8.2
When creating preview thumbnails in file open dialog Gimp 2.8.2 shows now automatically the thumbnail, but ist not able to save it. (permanent "denied" error)
Maybe the saving destination is changed to a restricted area?

In Gimp 2.8.0 showing a thumbnail requires a separate click on the sidebar, but when it is shown, it is saved without a problem for any future use!
Comment 1 Max Mustermann 2012-09-01 11:24:48 UTC
I tried to reproduce this bug on a Win7, 32 bit system with the official Windows build of GIMP 2.8.2. from http://gimp-win.sourceforge.net/. Everything is fine here. I clicked the placeholder thumbnail in the preview sidebar, the preview was created and still there the next time I opened the dialog. 
The permanent 'denied' error lets assume that this could either be a problem of missing write permissions or a problem with the user account control, that was much more disturbing in Vista than in Windows 7. AFAIK the image thumbnails are stored in subdirectories of $USERDIR\.thumbnails. Please check your write privileges for that directory and its subdirectories.
Can you please report the full error message here? An answer during the next 6 weeks is much appreciated.
Comment 2 burnuser 2012-09-01 16:27:35 UTC
Meanwhile reinstalled Gimp 2.8.0 for errorfree working (deleted all Versions in Programfiles and userdir, complete clean reinstall):
.thumbnails not found in userdir, only a .thumb with no new files.
Per sidebar click created thumbnails are stored (where?) for a while (in the same Gimp-Session and also after a restart of Gimp), but seems not to be saved permanently. At least gone after using Portablegimp in between .
Partially resolved with manually created .thumbnails directory in userdir, now it works with installed 2.8.0! (But missing directory should corrected in Gimp Windows Installer?)

But when portable Gimp (2.8.0 also 2.8.2) is used, when closing portable Gimp, all Thumbnails from installed Gimp in .thumbnails in userdir are deleted!
(Strange, but I can live with it.)

---

Detailed reconstruction of Gimp 2.8.2 Thumbnailcreation-Problem with Portableapps Version:
Error message: could not create thumbnail for file ... : Permission denied
(but this message is shown very unregularly)

but allways:
in the file => open dialog
when click on a picturename, the thumbnail is automatically created (no need to click on the sidebar)
then something goes wrong:
even the thumbnail is shown (and remebered for future use - Thumbnails in GIMPPortable\Data\.gimp\.thumbnails\normal are created), gimp working on with no end.
the cursor shows permanent the busy circle (dancing like on steroids) and in the sidebar preview window the "preview will be created" Message does the same.

Changing to an other picture has the same result. Endless working till Opening an image or closing the open dialog.

Watching this in ProcessExplorer from Windows Sysinternals:

file-jpg.exe has many I/O Reads/Writes but results allways in "access denied";
same with file-png.exe
with .xcf files only gimp-2.8.exe itself explodes with I/O Reads/Writes but also endless.

With Gimp 2.8.0 (also portableapps Version - installed in same place with same write privileges) each thumbnail neads a separate click in the sidebar to be created (and is also correct saved and remembered), but with no endless working Gimp.
Comment 3 burnuser 2012-09-02 08:55:31 UTC
Tried to resolve/reproduce the endless working preview problem in 2.8.2/2.8.0:

2.8.2:
Setting in options dialog the size of the preview pics to a very low number (e.g. 1 kB) kills the automatic preview (but of course needs now separate click in sidebar for each picture), but shows stable results without endless working Gimp.
(Like in 2.8.0)

2.8.0:
Setting size of preview pics above the standardized shown 1.3 GB (e.g. 2 GB) brings automatic preview (no need to separate click on sidebar), but also WITHOUT endless working Gimp afterwards.
(Unlike 2.8.2!)

So the problem must be in a change from 2.8.0 to 2.8.2 in connection with the automatic preview!
Comment 4 Max Mustermann 2012-09-03 20:49:40 UTC
The problem you're describing is the behaviour of the workaround for the 1.3 GB file size problem (see bug #669818). We already have an eye on it. 
I remember this behavior from Partha's 2.8.1 Windows build, but couldn't reproduce it with the 2.8.2 build from gimp-win.sourceforge.net. 
Secondly the combination of the installed GIMP and Portable GIMP (which is not supported here) seems to be the cause of the error. Could you work with just one of those?
To comment #3: you can select more than one file in the file list and click into the right pane to get the previews. This saves you from selecting each single file.
IMHO we should close this bug, if you can live with the proper settings in the Preferences dialog. Your answer during the next 6 weeks is appreciated.
Comment 5 burnuser 2012-09-04 08:01:48 UTC
1) Workaround for 1.3 GB problem is OK for me.
2) Portable Gimp is not you problem, I agree.
3) The new endless working problem in 2.8.2 is a real problem, if not fixed in future versions!
I see this problem with installed 2.8.2 Gimp (from your official source), Parthas portable 2.8.1 and PortableGimp 2.8.2 (on Vista + Win7).

Of course I can kill the automatic with my 1kB workaround, but without this measure each openenig of a picture sounds, that my computer will kill himself if nobody stop his endless working!

That can not be the future of a so called "stable" Gimp!

So, please don't close this bug until solved this problem!
(Despite the wrong sizeinfo, it was OK in 2.8.0!)
Comment 6 burnuser 2012-09-04 13:23:13 UTC
To say it clear:
I like Gimp (since single-window-mode ;-) and think, it is the best free tool for serious picture manipulation.
But I know, that bugs and imperfections in software are a part of life. Personally I'm happy, if I found a workaround.
e.g.:
*) not working color picker in "color to transparency" in layers dialog => select color before with main tool color-picker and then get it with right-click on color in the "color to transparency" dialog; OK
*) scrollvalues in brushsize are worth 0.01 Pixel - much too small for proper working => page up / page down keys scolls +/- 1 Pixel; OK
*) wrong sizeinfo in Picture opening dialog => pictureworkflow starts with an imageviewer before; OK

But I'm working as consultant and softwaretrainer and advises many other people to use certain software. (Also Gimp!)

If somebody installs Gimp without the obove workaround knowledge - not really bad.

But a bug like the endless working problem in picture preview (in standardconfiguration after installation of 2.8.2), which affects the whole computer in an at least worrying manner, needs really to be solved in future versions!

Stated in full respect for the great work of all gimp developers!
Comment 7 strata_ranger 2012-09-06 17:54:20 UTC
I may have the same problem.  When I try to load a file in Windows GIMP (XP / 2.8.2), the fileopen dialog does generate a thumbnail, but continues re-generating it as long as the dialog is open.  The thumbnail panel on the dialog is constantly switching between "generating preview" and "preview is out of date" at a rate of 5-10 times per second, continuously.  The most immediate (and most harmless) result is that my mouse cursor is constantly toggling between the "normal" arrow pointer and the "working in background" pointer (normal pointer with added hourglass).

I haven't attempted to save or export any files yet but this constant re-generation of the same thumbnail over and over while the dialog is open could very well lead to file access errors.
Comment 8 Michael Natterer 2012-09-06 18:12:08 UTC
Somebody who is able to hack windows will have to track this down.
Comment 9 Max Mustermann 2012-09-06 18:59:24 UTC
Burnuser, no need to worry and thanks for your workarounds ;-)
I amended bug #676708. 
For the scrollvalues in brushsize I didn't find a matching bug. If you know the right bugs number, can you please amend it with your findings or otherwise file a new bug with a proper description and your workaround? Thank you.
Comment 10 Michael Natterer 2012-09-06 20:03:25 UTC
Burnuser, indeed thanks for the workarounds, but as to "needs to be fixed
in future versions", this is simply not going to happen because
we have close-to-zero windows developers.

So if you know somebody who is really interested in fixing this,
bring them here, or nothing will happen.
Comment 11 burnuser 2012-09-07 09:57:45 UTC
@ strata_ranger: Thank You for your confirmation of my findings (Yes, I'm not crazy, it's a real bug!)

@ Sven Claussner: scrollvalues problem and workaround filed as new bug #683553

@ Michael Natterer: I know about the lack of windows developers (and programmers in general), but have no direct solution for this problem.

But maybe some ideas ...

*) Google Summer of Code 2013

*) Gimp Cooperation with schools/universities in programming projects

*) Eventually could company sponsors help, with interest in a well known working windows tool (e.g. Microsoft for Windows 8) or a working Photoshop alternative (e.g. Google) or a foundation/society/authority in the field of education, ...

I know, Gimp is traditional a project of a few volunteers, but a such important and grown project needs you (and other key developers) in the future also as successful fundraisers and ambassadors of the great gimp-vision!
(See yourself as Gimp Top-Manager and think big in getting additional ressources!)

Only ideas, but if the pressure on few Gimp coredevelopers is growing with no end, maybe a systematic management solution could help. Eventually worth a discussion at the next Gimp coreteam meeting ...

Best wishes for you and your great work ... and may the Force be with you :-)
Comment 12 Max Mustermann 2012-09-07 17:31:59 UTC
Thanks, burnuser, for the missing information. Your proposals sound good, but Bugzilla isn't the right place for discussions unrelated to bugs. I remember, there were similar proposals and discussions on the mailing lists already. Please read these discussions first and post your thoughts there, if you find, they add something new. And - as you know - the GIMP team is very small, so if you like, any active help is welcome...
Comment 13 Michael Natterer 2012-09-08 06:43:33 UTC
Yes indeed, people who think for themselves are always welcome. The
force is strongest on IRC :)
Comment 14 Michael Natterer 2012-12-01 09:04:45 UTC
*** Bug 689406 has been marked as a duplicate of this bug. ***
Comment 15 Max Mustermann 2012-12-10 18:45:18 UTC
*** Bug 686947 has been marked as a duplicate of this bug. ***
Comment 16 Michael Natterer 2013-06-28 20:48:46 UTC
Hopefully fixed in master and gimp-2-8:

commit 4d2316cb3e0395a57821c461135b2e3e3788408d
Author: Michael Natterer <mitch@gimp.org>
Date:   Fri Jun 28 22:44:19 2013 +0200

    Bug 683152 - Preview thumbnails in file open dialog causes error in 2.8.2
    
    Port gimp_thumb_file_test() to GIO which seems to get its stat()
    calls right on all platforms.
    
    (cherry picked from commit bb755960620ad648a264a99b5edb67357c513e04)

 libgimpthumb/gimpthumb-utils.c | 67 ++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 46 insertions(+), 21 deletions(-)
Comment 17 Michael Schumacher 2013-06-30 10:13:20 UTC
*** Bug 703329 has been marked as a duplicate of this bug. ***
Comment 18 Massimo 2013-08-01 11:02:25 UTC
*** Bug 705209 has been marked as a duplicate of this bug. ***
Comment 19 Max Mustermann 2013-10-04 19:23:47 UTC
I tested with Mike Hennings nightly builds of GIMP 2.8 and master from
3.10.2013 on Windows 7 (32 bit) and Windows 8 (64 bit). The bug doesn't occur
anymore - ok.