Package: inkscape
Version: 0.47.0-1
Severity: wishlist
in an attempt to generate a grid with only vertical lines, I've simply set
horizontal spacing to 0. That lead inkscape on a quest to generate an infinite
number of lines, while memory was allowing... I guess (due to optimization and
absent inkscape-dbg it wasn't obvious to figure out actual location in the
stack ) that is the code which led to such outcome:
src/extension/internal/grid.cpp
,---
| Glib::ustring build_lines(int axis, Geom::Rect bounding_area,
| float offset, float spacing)
| {
| Geom::Point point_offset(0.0, 0.0);
| point_offset[axis] = offset;
|
| SVG::PathString path_data;
| for (Geom::Point start_point = bounding_area.min();
| start_point[axis] + offset <= (bounding_area.max())[axis];
| start_point[axis] += spacing) {
| Geom::Point end_point = start_point;
| end_point[1-axis] = (bounding_area.max())[1-axis];
|
| path_data.moveTo(start_point + point_offset)
| .lineTo(end_point + point_offset);
| }
|
| return path_data;
`---
so if any spacing is 0 (or negative?) then it would get into an "infinite" loop
of adding lines.
Since I had some unsaved changes, I had to dive into gdb to safely return
from this endavor of inkscape without waiting until memory gets exhausted and
something bad happens.
Please forward wishlist upstream to guard poor users from themselves in this
(and probably similar) scenarios.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (901, 'unstable'), (900, 'testing'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages inkscape depends on:
ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libcairo2 1.8.10-3+b1 The Cairo 2D vector graphics libra
ii libcairomm-1.0-1 1.8.0-1 C++ wrappers for Cairo (shared lib
ii libfontconfig1 2.8.0-2 generic font configuration library
ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib
ii libgc1c2 1:6.8-1.2 conservative garbage collector for
ii libgcc1 1:4.4.3-7 GCC support library
ii libgconf2-4 2.28.1-1 GNOME configuration database syste
ii libglib2.0-0 2.24.0-1 The GLib library of C routines
ii libglibmm-2.4-1c 2.22.1-2 C++ wrapper for the GLib toolkit (
ii libgnomevfs2-0 1:2.24.3-1 GNOME Virtual File System (runtime
ii libgomp1 4.4.3-7 GCC OpenMP (GOMP) support library
ii libgsl0ldbl 1.13+dfsg-1 GNU Scientific Library (GSL) -- li
ii libgtk2.0-0 2.20.0-2 The GTK+ graphical user interface
ii libgtkmm-2.4-1c2 1:2.18.2-1 C++ wrappers for GTK+ 2.4 (shared
ii libgtkspell0 2.0.13-2 a spell-checking addon for GTK's T
ii liblcms1 1.18.dfsg-1 Color management library
ii libmagick++2 7:6.5.8.3-1 object-oriented C++ interface to I
ii libmagickcore2 7:6.5.8.3-1 low-level image manipulation libra
ii libpango1.0-0 1.28.0-1 Layout and rendering of internatio
ii libpangomm-1.4-1 2.26.0-1 C++ Wrapper for pango (shared libr
ii libpng12-0 1.2.43-1 PNG library - runtime
ii libpoppler-glib4 0.12.2-2 PDF rendering library (GLib-based
ii libpoppler5 0.12.2-2 PDF rendering library
ii libpopt0 1.15-1 lib for parsing cmdline parameters
ii libsigc++-2.0-0c 2.0.18-2 type-safe Signal Framework for C++
ii libstdc++6 4.4.3-7 The GNU Standard C++ Library v3
ii libwpd8c2a 0.8.14-1 Library for handling WordPerfect d
ii libwpg-0.1-1 0.1.3-1 WordPerfect graphics import/conver
ii libx11-6 2:1.3.3-2 X11 client-side library
ii libxml2 2.7.7.dfsg-1 GNOME XML library
ii libxslt1.1 1.1.26-1 XSLT processing library - runtime
ii zlib1g 1:1.2.3.5.dfsg-1~debug2 compression library - runtime
Versions of packages inkscape recommends:
ii imagemagick 7:6.5.5.3-1 image manipulation programs
ii libwmf-bin 0.2.8.4-6.1 Windows metafile conversion tools
ii perlmagick 7:6.5.5.3-1 Perl interface to the ImageMagick
ii pstoedit 3.45-8 PostScript and PDF files to editab
Versions of packages inkscape suggests:
ii dia 0.97-2 Diagram editor
ii libgnomevfs2-extra 1:2.24.3-1 GNOME Virtual File System (extra m
pn libsvg-perl <none> (no description available)
pn libxml-xql-perl <none> (no description available)
ii python 2.5.4-9 An interactive high-level object-o
ii python-lxml 2.2.4-1 pythonic binding for the libxml2 a
ii python-numpy 1:1.3.0-3+b1 Numerical Python adds a fast array
ii python-uniconvertor 1.1.4-1+b1 Universal vector graphics translat
ii ruby 4.2 An interpreter of object-oriented
pn skencil <none> (no description available)
pn ttf-bitstream-vera <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]