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 587218 - Dia entering an endless loop with cairo print/display rendering/png export
Dia entering an endless loop with cairo print/display rendering/png export
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.97
Other All
: Normal critical
: 0.97.1
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-28 16:39 UTC by Hans Breuer
Modified: 2009-12-05 19:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple diagram to reproduce the endless loop (835 bytes, application/x-dia-diagram)
2009-06-28 16:50 UTC, Hans Breuer
  Details
bogus patch to work around that endess loop (1.64 KB, patch)
2009-06-28 17:03 UTC, Hans Breuer
needs-work Details | Review

Description Hans Breuer 2009-06-28 16:39:48 UTC
Originally reported on the mailing list [ http://mail.gnome.org/archives/dia-list/2009-June/msg00062.html ] as an issue with Dia for Windows this is reproducable on Linux, too (different CPU, different compiler, different cairo versions).

Although this appears to be some bug in cairo [ http://lists.cairographics.org/archives/cairo/2009-June/017506.html ], it maybe should be worked around in Dia.
Comment 1 Hans Breuer 2009-06-28 16:50:46 UTC
Created attachment 137508 [details]
simple diagram to reproduce the endless loop

* Load the above diagram

* Export as PDF
  /or/  
* Ensure the libart-plug-in is not loaded (File/Plugins...)
* Resize the window to see box and line
* Switch to (cairo based) View/Antialiased

In both cases cairo (1.8.4, 1.8.6, 1.9.3 are entering an endless loop in _cairo_stroker_line_to_dashed()
Comment 2 Hans Breuer 2009-06-28 17:03:42 UTC
Created attachment 137509 [details] [review]
bogus patch to work around that endess loop
Comment 3 Hans Breuer 2009-10-23 17:16:27 UTC
Now reported in cairo's bugzilla, too.
Comment 4 Hans Breuer 2009-12-05 19:02:23 UTC
The upstream bug is fixed in will be available with cairo-1-10 whenever that gets released. I've also commited the bogus workaround patch from above. So this should be resolved even with older cairo version.