Zim

Comment 14 for bug 804936

K. Bauer (k.bauer) wrote :

Problem still exists as of zim 0.58.

Platform: Windows 7, Enthough Python Distribution (Python 2.7)
Running from source (but also occurred with precompiled version).

The log file says (including stuff before and after the error occurred):

-------------------------------------------------------------------------------
DEBUG: Dir change detected: (<FilteredDir: E:\zim-notebooks\Notes\Misc\UniqueIdentifiers>, None, None)
DEBUG: Missing icons in icon theme: ['gtk-file']
DEBUG: Missing icons in icon theme: ['gtk-file']
DEBUG: Missing icons in icon theme: ['gtk-file']
DEBUG: Missing icons in icon theme: ['gtk-file']
DEBUG: Saving page (async): <FileStorePage: Misc:UniqueIdentifiers>
DEBUG: Wrote E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt
WARNING: Left over file found: E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt.zim-orig~
Backed up to: E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt.bak~
DEBUG: Saving page (async): <FileStorePage: Misc:UniqueIdentifiers>
DEBUG: Wrote E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt
DEBUG: Saving page (async): <FileStorePage: Misc:UniqueIdentifiers>
DEBUG: Wrote E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt
DEBUG: Saving page (async): <FileStorePage: Misc:UniqueIdentifiers>
WARNING: Left over file found: E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt.zim-orig~
Backed up to: E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt.bak~
ERROR: Failed to save page: Misc:UniqueIdentifiers
Traceback (most recent call last):
  File "E:\portable\zim-0.58\zim\async.py", line 106, in wrapper
    self.result = function(*args, **kwargs)
  File "E:\portable\zim-0.58\zim\stores\files.py", line 334, in _store_lines
    self.source.writelines(lines)
  File "E:\portable\zim-0.58\zim\fs.py", line 1611, in writelines
    self._writelines(lines)
  File "E:\portable\zim-0.58\zim\fs.py", line 1646, in _writelines
    file.close()
  File "E:\portable\zim-0.58\zim\fs.py", line 1927, in close
    self.on_close()
  File "E:\portable\zim-0.58\zim\fs.py", line 1824, in _on_write
    self._rename(tmp, self.encodedpath) # Step 3.
  File "E:\portable\zim-0.58\zim\fs.py", line 1841, in _rename
    os.rename(src, dst)
WindowsError: [Error 2] Das System kann die angegebene Datei nicht finden
DEBUG: Running SavePageErrorDialog
ERROR: [Error 2] Das System kann die angegebene Datei nicht finden
DEBUG: Action: reload_page
INFO: Open page: <FileStorePage: Misc:UniqueIdentifiers> (<FileStorePage: Misc:UniqueIdentifiers>)
DEBUG: Wrote E:\zim-notebooks\Notes\.zim\state.conf
DEBUG: Saving page (async): <FileStorePage: Misc:UniqueIdentifiers>
DEBUG: Wrote E:\zim-notebooks\Notes\Misc\UniqueIdentifiers.txt
DEBUG: Saving page (async): <FileStorePage: Misc:UniqueIdentifiers>
-------------------------------------------------------------------------------

User interaction involved:
  * Editing text, until the error message "Couldn't save ..." popped up.
  * Clicked away the error-window.
  * Pressed Ctrl-R to reload page, as this seems to fix the problem.