Inkscape: A Vector Drawing Tool

Connector tool crash Inkscape (orthogonal mode)

Reported by Nizamov Shawkat on 2011-04-27
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
High
Gellule
inkscape (Ubuntu)
Medium
Unassigned

Bug Description

There were quite a lot of similar bugs reported. Namely:

https://bugs.launchpad.net/inkscape/+bug/635469
https://bugs.launchpad.net/inkscape/+bug/700298
https://bugs.launchpad.net/inkscape/+bug/705382

Hopefully, this report is not a duplicate.

1) draw a box
2) select "connector tool"
3) click "make connector orthogonal or polyline"
4) click on the node in the center of the box
5) click second time on the node (or a double click in step 4)
6) inkscape crashes with window saying "Inkscape encountered an internal error and will close now.

Automatic backups of unsaved documents were done to the following locations: .....". As it was already reported in other bug reports, saved file also crashes Inkscape.

Ubuntu 11.04/Inkscape 0.48.1

Alex Valavanis (valavanisalex) wrote :

Confirmed using inkscape_0.48.0-1ubuntu1.2 in Ubuntu Maverick. Backtrace attached

tags: added: connectors
Changed in inkscape:
status: New → Confirmed
tags: added: crash
Changed in inkscape (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in inkscape:
importance: Undecided → High
Alex Valavanis (valavanisalex) wrote :

Backtrace looks pretty similar to:
* bug #635469 <[connectors] 'Exchange Position' of objects with orthogonal connectors causes crash>
* bug #716057 <Node tool causes inkscape crash>

~suv (suv-lp) wrote :

Reproduced with Inkscape 0.48+devel r10191 on OS X 10.5.8 (i386)

Same console message as in bug #635469 (and the other already mentioned reports):

Assertion failed: (displayRoute.at(indexLow)[altDim] < displayRoute.at(indexHigh)[altDim]), function buildOrthogonalChannelInfo, file libavoid/orthogonal.cpp, line 1747.

~suv (suv-lp) on 2011-04-27
summary: - Connector tool crash Inkscape
+ Connector tool crash Inkscape (orthogonal mode)
Gellule (gellule-xg) wrote :

The attached patch fixes the issue. As a side note, the patch makes the code perform what is in the code comment: "We don't consider the first or LAST segment of a path." The last segment was considered before.

~suv (suv-lp) wrote :

Patch tested and fix confirmed (no crash on load nor when exchanging objects connected with orthogonal connectors):

https://bugs.launchpad.net/inkscape/+bug/635469
  * drawing-1.svg
    select the red and green rectangle, open the 'Align&Distribute'
    dialog and click on the first of the three 'Exchange position'
    buttons in the 'Rearrange' section.
  * pwr mon conceptual flow.svg
    crash on load
  * Systems Diagram V2.svg.2011_06_04_22_49_26.0.svg
    crash on load

https://bugs.launchpad.net/inkscape/+bug/700298
  * Connector_crash_on_load.svg
    crash on load

https://bugs.launchpad.net/inkscape/+bug/705382
  * New document 1.2011_01_20_21_24_05.0.svg
    crash on load

https://bugs.launchpad.net/inkscape/+bug/716057
  * cc.svg
    crash on load

https://bugs.launchpad.net/inkscape/+bug/771738
  * this one

Note: patch not tested with new diagrams or other files for potential regressions.

~suv (suv-lp) wrote :

Clarification:
All test cases (steps/files) listed in the previous comment no longer crash with
Inkscape 0.48+devel r10268+patch on Mac OS X 10.5.8 (i386).

tags: added: patch
ScislaC (scislac) on 2011-06-14
Changed in inkscape:
assignee: nobody → Gellule (gellule-xg)
milestone: none → 0.48.2
status: Confirmed → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package inkscape - 0.48.2-0ubuntu1

---------------
inkscape (0.48.2-0ubuntu1) oneiric; urgency=low

  * New upstream release (LP: #807912). Fixes several Ubuntu bugs:
    - [SVG Font Editor] Crash when kerning an empty pair (LP: #706506)
    - Connector tool crash Inkscake (orthogonal mode) (LP: #771738)
    - Errors printed to console if openclipart search fails (LP: #638844)
    - pdf export with cairo 1.10 defaults to version PDF-1.5 (LP: #664335)
    - Cairo rendering broken for "use" elements when scaling or a viewBox
      (LP: #705345)
    - gimp_xcf.py crashed with TypeError in effect() (LP: #565296)
    - Enable build against libwpg-0.2 (LP: #778951)
    - Please add supported filetypes into MimeType line of inkscape.desktop
      (LP: #278307)
    - Inkscape fails to build with gcc 4.6 (LP: #707205)
  * Drop 01-libwpg0.2.dpatch - Applied upstream
  * Drop 03-add-missing-mimetypes.dpatch - Applied upstream
  * Drop 04-fix-build-with-gcc4.6.dpatch - Applied upstream
  * Drop 05-add-missing-includes.dpatch - Applied upstream
  * Drop fix-fontforge-glyph-template.dpatch - Applied upstream
 -- Alex Valavanis <email address hidden> Sun, 10 Jul 2011 11:35:30 +0100

Changed in inkscape (Ubuntu):
status: Triaged → Fix Released
Ted Gould (ted) on 2011-09-07
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers