GNOME Bugzilla – Bug 422951
Export to HTML plugin enters infinite loop
Last modified: 2008-06-13 17:28:52 UTC
When exporting a note with circular links, the export to HTML plugin enters an infinite loop. How to reproduce: * Create a note A, link to note B * In this newly created note B, link to A * Export A to HTML * Crash!
Note that I have used both export-linked and export-linked-all.
Can confirm this. Probably needs a list of already exported notes.
confirmed for 0.7.1
The ./Tomboy/Addins/ExportToHtml/ExportToHtml.xsl (called by ExportToHtmlNoteAddin.cs) transforms a note into html and, if requested, does this recursively for linked notes. It also manages a key (look-up table) called 'note-already-loaded' to avoid re-loading notes previously being processed. So from this point of view it seems to be considered in the xsl file. Maybe xml or the xsl transformer has problems with this recursitivity...
Confirmed for 0.8.0 on Ubuntu Gutsy.
I'm experiencing the same, using 0.8.0 on Ubuntu Feisty. Tomboy crashes, and creates a huge HTML file (32MB) with the same note (or couple of notes) stored repeatedly a number of times. The rest of the notes are ignored. THis is when I choose "Export Linked Notes" and "Include all other notes". This option has become vital to me since I've moved to a Mac, and find myself unable to read my many many tomboy notes (no Mac port, snif!).
Since 4 people report this problem, is it possible to move it off "unconfirmed" status?
Created attachment 105792 [details] [review] Prevent notes from resolving more than twice to prevent infinite loop. Committed to SVN Trunk (r1880).
*** Bug 503536 has been marked as a duplicate of this bug. ***
*** Bug 538174 has been marked as a duplicate of this bug. ***