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 314211 - Glitches in pie charts
Glitches in pie charts
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
git master
Other All
: Normal normal
: ---
Assigned To: Emmanuel Pacaud
Jody Goldberg
: 375233 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-08-22 20:20 UTC by j.gnome
Modified: 2006-11-15 05:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screen shot 1 (documentation) (25.42 KB, image/png)
2005-08-22 20:25 UTC, j.gnome
Details
screen shot 2 (scripting) (23.54 KB, image/png)
2005-08-22 20:26 UTC, j.gnome
Details
another screenshot (39.68 KB, image/png)
2005-08-27 13:29 UTC, Jean Bréfort
Details
test.gnumeric (1.94 KB, application/octet-stream)
2005-08-28 20:17 UTC, j.gnome
Details
test2.gnumeric (4.94 KB, application/x-gnumeric)
2005-08-30 17:36 UTC, j.gnome
Details

Description j.gnome 2005-08-22 20:20:32 UTC
Windows version, 1.5.3-rc1

I sometimes see strange glitches in the about dialog graph.

It only seems to happen when the first credited person is someone who gets the 
whole pie (eg only "Documentation" or "Scripting").

I'll attach some fascinating screen shots in a moment.
Comment 1 j.gnome 2005-08-22 20:25:54 UTC
Created attachment 51149 [details]
screen shot 1 (documentation)
Comment 2 j.gnome 2005-08-22 20:26:34 UTC
Created attachment 51150 [details]
screen shot 2 (scripting)
Comment 3 j.gnome 2005-08-23 09:22:36 UTC
To reproduce:

1. File/About
2. Look at the graph for about 10 seconds (look for glitches)
3. Press OK
4. Go to Step 1
Comment 4 j.gnome 2005-08-23 11:03:48 UTC
Step 1 should be Help/About, not File/About.
Comment 5 Morten Welinder 2005-08-23 19:46:45 UTC
I don't see this on Unix.  Assuming Win32 only.
Comment 6 Jean Bréfort 2005-08-27 13:10:46 UTC
I do see it on unix from time to time, but I do not found how to obtain it
reproductively.
Comment 7 Jean Bréfort 2005-08-27 13:29:18 UTC
Created attachment 51417 [details]
another screenshot

To reproduce, create a pie with only one value, and change the value several
times.
In my sample, A1 contains =rand(), and I type F9 as many times as necessary to
reproduce the bug.
Comment 8 j.gnome 2005-08-28 20:17:06 UTC
Created attachment 51476 [details]
test.gnumeric

I made a test file using the instructions from the above post. I added a
gradient fill.

Just keep hitting F9 until you see the bug. You can also hold F9 down if you're
impatient.

Every time there's a glitch, the console says
x_order_2: colinear!
x_order_2: colinear!

(see bug 308305)

However, there isn't a glitch every time the console says the colinear thing.
Comment 9 Morten Welinder 2005-08-30 12:07:48 UTC
Confirmed.  Entering 0.7760846473312053 [where gnumeric afterwards will not
show the final 3] seems to trigger this.
Comment 10 j.gnome 2005-08-30 17:36:44 UTC
Created attachment 51567 [details]
test2.gnumeric

I made another (very silly) test file with lots of pie charts.

I noticed that you don't need the =rand(), any number will do (I picked 1).

The number doesn't need to change, refreshing is enough. Sometimes I see the
bug after resizing a chart.

This is strange: after exiting Gnumeric completely, loading the test file
always shows the glitch in the same 3 pies, and after hitting F9 I get another
set of pies that's always the same, and so on. I tested to up to 5 refreshes
and compared the results: always predictable. I don't think it's as random as I
first thought.

I can't reproduce with 0.7760846473312053 though (win32)
Comment 11 Morten Welinder 2005-08-30 18:00:38 UTC
Jean: are we adding random pertubations anywhere?
Comment 12 Jean Bréfort 2005-08-30 18:52:49 UTC
I don't think so. The problem might come from libart; clipping does not always
work as it should. We should try with the cairo renderer to see if it is also
affected.
Emmanuel might have some ideas about that, he will be back next week.
The bug does not affect 1.4.x (at least, I could not reproduce with 1.4.3). 
Comment 13 Morten Welinder 2005-08-30 20:12:50 UTC
~/gnome/goffice> find . -name '*.[ch]' -print | xargs -n100 grep pertu
./goffice/graph/gog-renderer-pixbuf.c:          path1 = art_vpath_perturb
((ArtVpath *)path);
Comment 14 Emmanuel Pacaud 2005-09-01 20:25:26 UTC
This code and the next 6 lines were added in order to fix
http://bugzilla.gnome.org/show_bug.cgi?id=159368 . That's what gnome-print does
for correct rendering of transparent areas.

If you try to remove the perturbation part, this time you'll get reproductible
glitches in transparent areas or even crashes.
Comment 15 Emmanuel Pacaud 2006-10-01 20:42:44 UTC
We have switched to cairo and that fixes this issue.
Comment 16 Jean Bréfort 2006-11-15 05:27:56 UTC
*** Bug 375233 has been marked as a duplicate of this bug. ***