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 710818 - Dia crashes with cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed.
Dia crashes with cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_m...
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
0.97.x
Other Linux
: Normal critical
: 0.97.3
Assigned To: Dia maintainers
Dia maintainers
: 711688 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-10-24 15:42 UTC by DominikD
Modified: 2014-03-29 11:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the file to reproduce the crash. (3.86 KB, application/x-dia-diagram)
2013-10-24 15:42 UTC, DominikD
Details

Description DominikD 2013-10-24 15:42:42 UTC
Created attachment 258033 [details]
the file to reproduce the crash.

Dia crashes when I try to print or export as PNG the attached .dia file.

The error-message printed to the console is:

dia-gnome: /build/buildd/cairo-1.12.16/src/cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed.
Aborted (core dumped)


I'm running Ubuntu 13.10 and the newest version of dia-gnome 0.97.2
Comment 1 Hans Breuer 2013-10-26 15:23:23 UTC
The reason for this is the use of asin(-1) in Dia's draw_open_rounded() by arrow_draw(..., ARROW_OPEN_ROUNDED, ...) which finally calls cairo_arc_negative() with bogus start and end angle (bot indefinite).
Earlier cairo versions were more tolerant, but there already is a kludges in Dia code to avoid an endless loop in cairo. See:
https://git.gnome.org/browse/dia/commit/?id=302d5038e755cabb5ce9292d66d0ab9113153e15

So bug reproduced with cairo-1.12.3, not reproduced with cairo-1.10.x which did not have that assert. BTW: you can get rid of this bug by disableing the cairo plug-in. You'll loose antialiased rendering and PDF export, which would also trigger that bug with your diagram. But PNG export still should be available by the Pixbuf plug-in.
Comment 3 Hans Breuer 2014-03-02 10:02:43 UTC
*** Bug 711688 has been marked as a duplicate of this bug. ***
Comment 4 Hans Breuer 2014-03-08 12:12:28 UTC
cherry-picked to dia-0-97 branch
https://git.gnome.org/browse/dia/commit/?h=dia-0-97&id=335ced1909180f0bc4fb064aaa676a86c740dce0
Comment 5 Hans Breuer 2014-03-10 19:45:53 UTC
Reopen, see: https://mail.gnome.org/archives/dia-list/2014-March/msg00004.html
The result of out of range dia_acos() still depends on the C-runtime result.