crash when snapping to page aligned grid

Bug #1633904 reported by Colton Lewis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
High
Unassigned

Bug Description

OS: OpenBSD 6.0
Version: 0.91 r13725

Details: Program aborts when snapping to a grid point in the same position as a page boundary.

How to Reproduce:
1. In document settings, make page size 100x100 pixels. Make a grid with origin at 0,0, spacing of 5,5. Be sure "always snap to grid" is selected under Snap tab.
2. Be sure "Snap to grid" is on and "Snap to page" is off.
3. Draw rectangle beginning on the top left corner, or any grid point on a page boundary.

svg with example setup is attached.h

Stack trace:
Current language: auto; currently asm
#0 0x000006ecefc21dea in thrkill () at <stdin>:2
#1 0x000006ecefc76322 in *_libc_abort () at /usr/src/lib/libc/stdlib/abort.c:62
#2 0x000006ed5998ffec in __gnu_cxx::__verbose_terminate_handler ()
    at /usr/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/vterminate.cc:98
#3 0x000006ed59923bd7 in __cxxabiv1::__terminate (handler=Variable "handler" is not available.
) at /usr/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/eh_terminate.cc:43
#4 0x000006ed59923c13 in std::terminate () at /usr/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/eh_terminate.cc:53
#5 0x000006ed59937c7e in __cxa_throw (obj=Variable "obj" is not available.
) at /usr/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/eh_throw.cc:76
#6 0x000006ea6ba0c833 in Geom::EllipticalArc::pointAt () from /usr/local/bin/inkscape
#7 0x000006ece8936800 in ?? ()
#8 0x0000000000000000 in ?? ()

Revision history for this message
Colton Lewis (coltonlewis7) wrote :
jazzynico (jazzynico)
tags: added: crash snapping
Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for taking the time to write a report!

Not reproduced on Windows 7, Inkscape 0.91 and lp:inkscape/0.92.x rev. 15113.
Tested with the attached file and with a new document (following the given steps).

Changed in inkscape:
importance: Undecided → High
Revision history for this message
su_v (suv-lp) wrote :

Not reproduced on OS X 10.7.5 with Inkscape 0.91 r13725 and lp:inkscape/0.92.x r15098.

Tested with the attached file and with a new document based on the provided details. All tests have been done with default (new) preferences.

Could you attach the Inkscape preferences file to the bug report?
~/.config/inkscape/preferences.xml

Revision history for this message
Colton Lewis (coltonlewis7) wrote :
Download full text (23.1 KiB)

preferences.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<inkscape
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   version="1">
  <group
     id="window">
    <group
       id="task"
       taskset="0" />
    <group
       id="menu"
       state="1" />
    <group
       id="commands"
       state="1" />
    <group
       id="snaptoolbox"
       state="1" />
    <group
       id="toppanel"
       state="1" />
    <group
       id="toolbox"
       state="1" />
    <group
       id="statusbar"
       state="1" />
    <group
       id="panels"
       state="1" />
    <group
       id="rulers"
       state="1" />
    <group
       id="scrollbars"
       state="1" />
  </group>
  <group
     id="fullscreen">
    <group
       id="task" />
    <group
       id="menu"
       state="1" />
    <group
       id="commands"
       state="1" />
    <group
       id="snaptoolbox"
       state="1" />
    <group
       id="toppanel"
       state="1" />
    <group
       id="toolbox"
       state="1" />
    <group
       id="statusbar"
       state="1" />
    <group
       id="panels"
       state="1" />
    <group
       id="rulers"
       state="1" />
    <group
       id="scrollbars"
       state="1" />
  </group>
  <group
     id="focus">
    <group
       id="task" />
    <group
       id="menu"
       state="0" />
    <group
       id="commands"
       state="0" />
    <group
       id="snaptoolbox"
       state="0" />
    <group
       id="toppanel"
       state="0" />
    <group
       id="toolbox"
       state="0" />
    <group
       id="statusbar"
       state="0" />
    <group
       id="panels"
       state="0" />
    <group
       id="rulers"
       state="0" />
    <group
       id="scrollbars"
       state="0" />
  </group>
  <group
     id="documents">
    <group
       id="recent" />
  </group>
  <group
     id="template">
    <sodipodi:namedview
       id="base"
       pagecolor="#ffffff"
       bordercolor="#666666"
       borderopacity="1.0"
       objecttolerance="10.0"
       gridtolerance="10.0"
       guidetolerance="10.0"
       inkscape:pageopacity="0.0"
       inkscape:pageshadow="2"
       inkscape:window-width="640"
       inkscape:window-height="480" />
  </group>
  <group
     id="tools"
     bounding_box="0"
     style="fill:none;stroke:black;stroke-opacity:1;stroke-width:1px;stroke-linejoin:miter;stroke-linecap:butt;">
    <group
       id="shapes"
       style="fill-rule:evenodd;"
       selcue="1"
       gradientdrag="1">
      <eventcontext
         id="rect"
         style="fill:blue;"
         usecurrent="1"
         width="195"
         height="138.571"
         rx="0"
         ry="0" />
      <eventcontext
         id="3dbox"
         style="stroke:none;stroke-linejoin:round;"
         usecurrent="1">
        <side
           id="XYfront"
           style="fill:#8686bf;stroke:none;stroke-linejoin:round;"
           usecurrent="0" />
        <side
           id="XYrear"
           style="fill:#e9e9ff;stroke:none;stroke-linejoin:round;"
           usecurrent="0" />
        <side
           id="XZtop"
           style="...

Revision history for this message
su_v (suv-lp) wrote :

Crash not reproduced with reporter's preferences file using Inkscape 0.91 r13725 (on OS X 10.7.5) and the provided test case (SVG file): no crash when snapping with the rectangle tool to grid intersections which are along the page border or coincide with page corners.

Possibly specific to builds (compiler, dependencies, build config) on OpenBSD? IIRC there had been earlier reports about issues on OpenBSD which at the time had not been reproduced on other platforms, e.g. bug #1587311, bug #1587319, bug #1550178.

Possibly the crash reported here is related to the discussion on the ports mailing list:
http://openbsd-archive.7691.n7.nabble.com/graphics-inkscape-fix-segfault-td299765.html
https://marc.info/?t=146757265100004&r=1&w=2
(which in turn could be related to the report filed for Inkscape in bug #1587319).

OpenBSD port:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/graphics/inkscape/

Patches used for OpenBSD port:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/graphics/inkscape/patches/?sortby=date#dirlist

Revision history for this message
mray (mrayyyy) wrote :

I could not reproduce a crash with the attached file or by following the steps described.

Closing because this cannot be reproduced in Inkscape 1.0alpha (1:0.92.0+devel+201904052254+98d368e) on ubuntu 18.10.

Closed by: https://gitlab.com/mray

Changed in inkscape:
status: New → Invalid
tags: added: bug-migration
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.