Crash (internal error) when removing font from empty list in SVG font editor

Bug #411940 reported by mvandeg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Alisher Niyazov

Bug Description

When right clicking on an empty Font list in the SVG Font Editor, the user gets the menu option Remove. If this option is clicked, Inkscape reports that an internal error has occured and it closes. The Inkscape version is (copied from the about dialog): Inkscape 0.46+devel 22040, built Aug 10 2009 on Windows XP.

Tags: crash svgfonts ui

Related branches

mvandeg (mvandegiessen)
description: updated
Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Windows XP, build 0.47pre1, backtrace follows:

(gdb) run
Starting program: C:\Program Files\Inkscape/inkscape.exe
[New thread 3268.0xc3c]

Program received signal SIGSEGV, Segmentation fault.
0x0086fa8a in Inkscape::UI::Dialog::SvgFontsDialog::remove_selected_font ()
(gdb) bt
#0 0x0086fa8a in Inkscape::UI::Dialog::SvgFontsDialog::remove_selected_font ()
Cannot access memory at address 0x22f4a0
(gdb) c
Continuing.
error return win32-nat.c:1254 was 31

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

Confirmed on OS X 10.5.8 with Inkscape 0.46+devel r22028

tags: added: crash ui
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → High
Revision history for this message
Alisher Niyazov (zman69) wrote :

confirmed on 0.47 too

here is the fix:

file: /src/ui/dialog/svg-fonts-dialog.cpp (revision 9676)

after the line:
604 SPFont* font = get_selected_spfont();

insert new line:
if (!font) return;

(I have no access to change the source)

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

Crash and fix confirmed with Inkscape 0.48+devel r9673 on OS X 10.5.8

Thank you for looking into this - attaching the proposed change as patch.

Changed in inkscape:
status: Confirmed → In Progress
Revision history for this message
ScislaC (scislac) wrote :

Thank you Alisher Niyazov! Tested, confirmed fix, committed. If you submit another fix (prefererably in patch form) you will be granted commit access if you're interested.

Changed in inkscape:
status: In Progress → Fix Committed
Revision history for this message
ScislaC (scislac) wrote :

assigned to Alisher as that's who provided the fix

Changed in inkscape:
assignee: nobody → Alisher Niyazov (alisher-bcc)
milestone: none → 0.48
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
su_v (suv-lp)
tags: added: svgfonts
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.