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 554658 - Path Dialog: Path preview pics not to see constantly
Path Dialog: Path preview pics not to see constantly
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.6.0
Other All
: High normal
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
: 554958 555987 556794 563028 571445 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-10-02 06:49 UTC by Heiko Schmidt
Modified: 2009-07-08 19:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
avi clip concerning this bug report (99.72 KB, application/x-7z-compressed)
2008-10-03 08:47 UTC, Heiko Schmidt
  Details
XCF file from 2.6 with paths (32.11 KB, application/octet-stream)
2008-10-16 02:54 UTC, Casey Stanley
  Details
Patch against 2.6.6 (451 bytes, patch)
2009-07-06 09:59 UTC, Massimo
committed Details | Review

Description Heiko Schmidt 2008-10-02 06:49:42 UTC
If I open an already existing image which contains paths those are not visible in the Path Dialog thumbnails. If I make a path active the path preview picture becomes visible but if I click for example inside of an anchor the preview pic disappears again depending on how often or when I press the mouse button. Somestimes I have to click a lot of times inside of an anchor to make the previev pic visible again (or invisible).
Comment 1 Martin Nordholts 2008-10-02 16:20:22 UTC
Hi and thanks for the bug report! I am not able to reproduce this, but this sounds similar to another bug suspect to be in GTK+.

Can you please try this:

1. Open an image and bring up Windows -> Dockable Dialogs -> Navigation.
2. Move an external window in front of the Navigation dialog, then move it away again (to force a redraw of its content).

After you have done 2, is the preview in the Navigation dialog drawn correctly?
What version of GTK+ are you using?
Comment 2 Heiko Schmidt 2008-10-02 17:23:43 UTC
Hi Martin,

The Navigation preview is always drawn correctly. But the preview pics inside of the 'Path Dialog' are not always to see. 

I installed The Gimp with the Windows installer (http://sourceforge.net/project/showfiles.php?group_id=121075) which includes GTK 2.18.1.
Comment 3 Sven Neumann 2008-10-02 18:49:55 UTC
The paths are drawn using Cairo. I had a similar problem once and it was caused by a bug in my graphics card driver. This might be a similar problem. Perhaps try to update your graphics card driver? We definitely need more details about your system.
Comment 4 Heiko Schmidt 2008-10-03 08:47:58 UTC
Created attachment 119843 [details]
avi clip concerning this bug report
Comment 5 Heiko Schmidt 2008-10-03 08:48:52 UTC
My OS is MS Windows XP, 32 bit SP3. My graphics card is Nvidia GeForce 7500LE. Driver version 178.13 (10.2008). Attached is a little avi video. If I click inside of an anchor the path preview disappears sometimes. 
Comment 6 Robert Navas 2008-10-04 06:01:21 UTC
Hello, I have the same problem, when you draw paths with the bezier tool, these are not displayed in the paths dialog. I tested in 2 PCs: My job's PC and house's PC, in both cases is the same behavior. My house's PC hardware is:
Graphics card - NVIDIA GeForce4 MX 4000 (Driver version 5.6.7.3)
OS - Windows XP SP2 32bit
Processor - Pentium4 2.8GHz
RAM - 1GB

I would like to mention another problem that I noticed related to the path tool: I was removing a background from a photo, using the paths tool to trace over the photo (seen first in http://www.gimpusers.com/tutorials/hot-wallpaper-1.html) so the final path had like more than 100 nodes, then when I press ENTER to create a selection, the final selection was wrong, because it not only tried to follow the closed path, but also joining some nodes, resulting in this way a kind of intersection between the closed right section. I think I need to do some extra experiments and I'll post some pictures or stuff about this bug.   

Thank you for your help.
Comment 7 Martin Nordholts 2008-10-05 15:05:26 UTC
*** Bug 554958 has been marked as a duplicate of this bug. ***
Comment 8 Casey Stanley 2008-10-10 04:55:16 UTC
Sorry if this should be a new bug report but i'd like to say that the newer windows build version of Gimp 2.6.1 still appears to have the same bug, it's version of GTK+ 2.14.3. ^^;
Comment 9 Sven Neumann 2008-10-13 07:13:06 UTC
*** Bug 555987 has been marked as a duplicate of this bug. ***
Comment 10 Sven Neumann 2008-10-15 23:06:02 UTC
It would help a lot if we could get an XCF file that contains a path that triggers the problem.
Comment 11 Casey Stanley 2008-10-16 02:50:17 UTC
On my end literally all of my XCF files, whether it's one saved in the current version or earlier versions will still trigger the problem in 2.6.
Interestingly however, my XCF files use a lot of paths (sometimes 100 or more) and yet are still correctly saved/opened fully intact for editing in 2.6, just minus the preview images of course.
Also have noticed that if an image is of rectangle dimensions then the paths previews will show white rectangle boxes of the exact same dimensions, if the previews are disabled then they will show a white square box.
Only thing I can think of is that the paths data is there and working, but something is blocking only the path data reaching the preview areas?

I'll provide a small XCF file with paths from 2.6 if it may help. ^^
Comment 12 Casey Stanley 2008-10-16 02:54:05 UTC
Created attachment 120691 [details]
XCF file from 2.6 with paths

XCF example file created from 2.6 with paths.
Comment 13 Sven Neumann 2008-10-16 06:42:46 UTC
Just to get this straight: Do you never see any path previews being drawn in the Paths dialog or does the preview occasionally disappear as in the video attached at comment #4?

The attached XCF does of course work just find on my system.

Another question that may help to shed some light on this: Do you see the curve being drawn in the Curves tool dialog box?
Comment 14 Michael Natterer 2008-10-16 08:27:52 UTC
What cairo versions do you guys use?
Comment 15 Heiko Schmidt 2008-10-16 14:47:32 UTC
I used the installer provided by Jernej Simončič. So I don't konow what for Cairo version is included there.

The video clip in comment #4 shows only half of the story. There are times on which I never see the path preview drawn. The path preview appears occasionally but most of the time the preview is empty (only a white background).

I see the curve drawn in the Curve Tool dialog box (for adjusting colors). 



Comment 16 Casey Stanley 2008-10-16 22:09:34 UTC
Sadly for me I can never see any flashes of path previews being drawn in the Paths dialog at all. Unlike the AVI clip it's always a constant empty white, no matter what I do (changing size ranges from Tiny to Gigantic) or how long I keep staring at it while working. ^^;

However, yes I also see the curve being correctly drawn all antialiased and usable in the Curves tool dialog box.

As for Cairo i'll have to take a blind guess and say it's version 1.8.0? As I tried switching it with the libcairo-2.dll 1.8.0-1_win32 764kb one from the GTK+ site simply out of curiosity and it produces the same results.
Comment 17 Sven Neumann 2008-10-17 07:11:39 UTC
Sounds very much like a Cairo bug. As it is happening with some Linux systems and on Windows, it's most likely even two separate issues.
Comment 18 Martin Nordholts 2008-10-18 04:45:37 UTC
*** Bug 556794 has been marked as a duplicate of this bug. ***
Comment 19 Martin Nordholts 2008-12-02 21:13:41 UTC
*** Bug 563028 has been marked as a duplicate of this bug. ***
Comment 20 Michael Schumacher 2009-02-12 14:00:19 UTC
*** Bug 571445 has been marked as a duplicate of this bug. ***
Comment 21 Massimo 2009-07-06 09:59:04 UTC
Created attachment 137908 [details] [review]
Patch against 2.6.6

A patch to always initialize the 'status' member of a newly
allocated cairo_path_t to the value CAIRO_STATUS_SUCCESS
as required to successively call cairo_append_path.

The patch is against the file app/vectors/gimpvectors.c
of the release 2.6.6
Comment 22 Sven Neumann 2009-07-06 20:19:32 UTC
Massimo, we really appreciate your help and we'd like to start to integrate your patches. Could you please tell us what name and email address we should use for that. If you want to contribute under the name 'Massimo' and not tell us your full name, that's OK. Just tell us.
Comment 23 Massimo 2009-07-07 11:55:33 UTC
My name is: Massimo Valentini 
and the address is: sixtysix at inwind dot it
Comment 24 Sven Neumann 2009-07-08 19:23:42 UTC
Patch applied to master and merged to the gimp-2-6 branch. Closing as FIXED. Massimo, thanks a lot for your help with this bug.

commit 5be4f235a392be003c47ac652ce874528875170d
Author: Massimo Valentini <sixtysix@inwind.it>
Date:   Tue Jul 7 17:05:42 2009 +0200

    Bug 554658 – Path Dialog: Path preview pics not to see constantly
    
    Always initialize the 'status' member of a newly allocated cairo_path_t
    to the value CAIRO_STATUS_SUCCESS as required to successively call
    cairo_append_path().

 app/vectors/gimpvectors.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)