loading a pdf file generates lots of groups.

Bug #1307246 reported by Alvin Penner
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

- Windows XP, Inkscape rev 13283
- the attached pdf file causes a crash on loading, with the following console messages, below:
- this file was originally part of Bug 1217602, which has since been fixed. The problem in that case was lots of nested groups.
- not reproduced on Inkscape 0.48.4
- not reproduced if I use the "PDF via poppler-cairo" input file type
- crash occurs only if I run Inkscape from a DOS prompt. No crash if I right-click on the file from the Explorer gui and open it using Inkscape

.................................................................

_create_dc_and_bitmap: The operation completed successfully.

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

_create_dc_and_bitmap: The operation completed successfully.

Revision history for this message
Alvin Penner (apenner) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

when it does succeed, then it produces a very large number of nested groups, svg file attached.

Revision history for this message
Alvin Penner (apenner) wrote :

backtrace:

[New thread 3220.0xce8]
[New thread 3220.0xc0]
[New thread 3220.0x7c8]
[New thread 3220.0xf3c]
_create_dc_and_bitmap: The operation completed successfully.

Program received signal SIGSEGV, Segmentation fault.
0x68ddf2ad in cairo_image_surface_get_data ()
   from C:\InkscapeBZR\inkscape\libcairo-2.dll
(gdb) bt
#0 0x68ddf2ad in cairo_image_surface_get_data ()
   from C:\InkscapeBZR\inkscape\libcairo-2.dll
#1 0x6c38d268 in _gdk_pixmap_new ()
   from C:\InkscapeBZR\inkscape\libgdk-win32-2.0-0.dll
#2 0x6c35f694 in gdk_window_process_updates_internal ()
   from C:\InkscapeBZR\inkscape\libgdk-win32-2.0-0.dll
#3 0x6c361640 in gdk_window_process_updates ()
   from C:\InkscapeBZR\inkscape\libgdk-win32-2.0-0.dll
#4 0x00d01e86 in sp_desktop_widget_update_zoom ()
#5 0x00000000 in ?? ()
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x68ddf2ad in cairo_image_surface_get_data ()
   from C:\InkscapeBZR\inkscape\libcairo-2.dll
(gdb) c
Continuing.

Program exited with code 030000000005.
(gdb) c
The program is not being run.
(gdb) q

su_v (suv-lp)
tags: added: cairo cli crash importing pdf
tags: added: regression
Changed in inkscape:
importance: Undecided → High
milestone: none → 0.91
Revision history for this message
Alvin Penner (apenner) wrote :

jftr I can no longer reproduce the crash on Windows XP, Inkscape rev 13288.

However the file does point out a weakness of the pdf import routine, which generates a very large number of unnecessary nested groups. This bloats the size of the svg file. The original file Suite 545.pdf has a size of 11 K. The imported file Suite 545.svg has a size of 985 K. The svg file in one instance appears to have nested groups to a depth of more than 256. (Bug 1217602)

summary: - crash loading pdf file which generates lots of groups.
+ loading a pdf file generates lots of groups.
Revision history for this message
jazzynico (jazzynico) wrote :

>The imported file Suite 545.svg has a size of 985 K. The svg file in one instance appears to have nested groups to a depth of more than 256.

Reproduced on Crunchbang Waldorf, Inkscape trunk revision 13446.

Changed in inkscape:
status: New → Confirmed
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91 → 0.91.1
Revision history for this message
su_v (suv-lp) wrote :

Removing milestone - the remaining issue is generic, and not a regression related to changes between 0.48 and 0.91.

Changed in inkscape:
milestone: 0.91.1 → 0.92
milestone: 0.92 → none
importance: High → Medium
tags: removed: crash regression
tags: added: groups
removed: cairo cli
Alvin Penner (apenner)
Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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