emergency save does not work in trunk

Bug #184376 reported by MenTaLguY
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Critical
Unassigned

Bug Description

It looks like (versus 0.45?) that emergency save in trunk doesn't work at all. Steps to reproduce:

1. open a document, make some changes
2. kill Inkscape with SIGSEGV or SIGABRT or something similarly fatal
3. the emergency save code is triggered, but no names of emergency-saved files are printed, and no emergency save files appear in the filesystem

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

Given that 0.46 is unlikely to be very stable, this is pretty important to fix before the release.

Changed in inkscape:
importance: Undecided → Critical
milestone: none → 0.46
Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

It looks like the issue is that inkscape->documents is not getting populated. This should be being performed by the document views.

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

and, indeed, there are calls to inkscape_add_document and inkscape_remove_document from View::setDocument, as there should be (although multiple views will be slightly broken in this regard -- there really needs to be a "view reference count" kept somewhere so the document is only added when the first view for it is established, and only removed when the last view goes away)

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

Hm, there seems to be some confusion between inkscape->document_set and inkscape->documents in the code. We should get rid of one entirely (i.e. inkscape->documents).

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

Hm, no, actually the code as written should work. The document_set multiset contains duplicates, whereas documents does not. This will require further investigation.

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

(well, right now ->documents does not contain anything at all; it _should_ contain the list of active documents, without duplicates)

Ryan Lerch (ryanlerch)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

Fixed in r17234

Changed in inkscape:
status: Confirmed → Fix Released
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.