crash when toggling "Live preview" in the extension dialog

Bug #237863 reported by Diane Lingrand
88
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned
inkscape (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

With the attached document opened. Effects/Render/LateX formula with any entry (eg $\pi$) opens a dialog. If option
"Live Preview" is selected, then deselected, the application crashes with, in the terminal:
** ERROR:(xml/simple-document.cpp:51):virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction)
Aborted

This error is reproductible.
However, the same manipulation with a new empty document
does not crash, even if the latex formula is not displayed.

Inkscape 0.46, ubuntu package.

Revision history for this message
Diane Lingrand (lingrand) wrote :
Revision history for this message
nightrow (jb-benoit) wrote :

Using ubuntu package, i couldn't find the mentionned menu : Effects/Render/LateX formula
Could you please check ?

Alvin Penner (apenner)
Changed in inkscape:
status: New → Incomplete
Revision history for this message
Petteri Aimonen (jpa-lp) wrote :

I got the same crash with inkscape svn r22440 using "Live preview" in "Create from path -> Extrude".

Attached is the backtrace, though I guess all relevant information is visible from the assertion message also.

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

crash not reproduced with Inkscape 0.46+r22476 on OS X 10.5.8

can you add a list of steps how to reproduce? (what objects, sequence of comands beginning from new document…)

tags: added: crash extensions-plugins
Revision history for this message
su_v (suv-lp) wrote :

confirmed with Inkscape 0.47pre4 and 0.46+devel r22547 on OS X 10.5.8, new default preferences file

steps to reproduce:

1) open new document
2) toggle grid on ('View > Grid')
3) open Document Properties and select 'Grids' tab
4) close Document Properties dialog without any changes
5) open an extension with 'Live Preview' enabled
   (e.g. 'Render > Cartesian Grid')
6) toggle 'Live Preview' on and off
7) crash

console messages:
**
ERROR:xml/simple-document.cpp:48:virtual Inkscape::XML::Event* Inkscape::XML::SimpleDocument::commitUndoable(): assertion failed: (_in_transaction)
Emergency save activated!

This crash could be related to bug #186293 “Grid details in Document Properties don't show up after 'redo'”:
<https://bugs.launchpad.net/inkscape/+bug/186293>

Changed in inkscape:
importance: Undecided → High
status: Incomplete → Confirmed
summary: - crash when disabling "live preview" in Latex formula window
+ crash when toggling "Live preview" in the extension dialog
Revision history for this message
su_v (suv-lp) wrote :

backtrace from crash report with Inkscape 0.46+devel r22547 on OS X 10.5.8

slightly different then the previous one - this has 'Inkscape::XML::SimpleDocument::commitUndoable()' in the bt.

su_v (suv-lp)
tags: added: undo
Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced on Vista, Inkscape rev. 22568.
Same console message as in comment #5.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Also affects Ubuntu. Confirming and marking bug #468196 as a duplicate

Changed in inkscape (Ubuntu):
status: New → Confirmed
Revision history for this message
rightstyle (alex877007) wrote :

Same crash as #5 in inkscape rev 22598.

The crash can be avoided by commenting out
     sp_document_set_undo_sensitive (local_doc, false);
and
      sp_document_set_undo_sensitive (local_doc, saved);

in write_to_xml in the file src/ui/widget/registered-widget.h

This is probally not a good fix. I dont know what other things that are affected and those lines of codes are probably there for a reason.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Bug still present in inkscape_0.48.0-1ubuntu1

Changed in inkscape:
status: Confirmed → Triaged
Changed in inkscape (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
jazzynico (jazzynico) wrote :

Trunk code changed a bit recently. Attached is a backtrace generated with r10760.

Revision history for this message
Martin Owens (doctormo) wrote :

Using trunk rev 12372. I've tested both the original svg file with live preview toggling and the documented steps to reproduce in comment #5. There is no crash in this version and it may be fixed. Please test with windows version to make sure and set back to Confirmed if bug reappears.

Changed in inkscape:
status: Triaged → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
Changed in inkscape:
status: Fix Committed → Fix Released
Changed in inkscape (Ubuntu):
status: Triaged → Fix Released
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.