GNOME Bugzilla – Bug 710818
Dia crashes with cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed.
Last modified: 2014-03-29 11:56:18 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
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.
Fixed on master: https://git.gnome.org/browse/dia/commit/?id=846a7ff5b5cb5d21f3c97d21f7a1890a0fcfb65b
*** Bug 711688 has been marked as a duplicate of this bug. ***
cherry-picked to dia-0-97 branch https://git.gnome.org/browse/dia/commit/?h=dia-0-97&id=335ced1909180f0bc4fb064aaa676a86c740dce0
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.
Improved version available by https://git.gnome.org/browse/dia/commit/?h=dia-0-97&id=67000b5a9ae05756f3f32655eaf8759818c4693c