Zim

Comment 21 for bug 804936

Negirno (negirno) wrote :

Hello.

I have similar issues. Don't know if it's the same error, but I post nonetheless.

For me, Zim (version 0.62 on Win7SP2) gives an error dialog with three options: Cancel, discard changes or save to seperate files. If I cancel, the error dialog appears again with the next save attempt.

Note: the error dialog says that the file in question is changed outside Zim. However, I've never had that file tampered by programs. The occurrence of the error is sometimes sporadical, sometimes occurs with every two or three saves. The dialog is also annoying because I have to wait a couple of seconds to be able to push any buttons on it.

Here is the zim_daemon.log contents after a session with this error:

INFO: Server starting 3840 at \\.\pipe\zim-Szab-server
DEBUG: Wrote <WindowsFile: D:\doksik\szab\JapaneseLearning\.zim\tmp>
INFO: Remove file: <WindowsFile: D:\doksik\szab\JapaneseLearning\.zim\tmp>
DEBUG: Loading config from: <WindowsFile: D:\doksik\szab\JapaneseLearning\notebook.zim>
DEBUG: Cache dir: <Dir: D:\doksik\szab\JapaneseLearning\.zim>
DEBUG: Index database file: <WindowsFile: D:\doksik\szab\JapaneseLearning\.zim\index.db>
DEBUG: Opening notebook: <zim.notebook.Notebook object at 0x01F14C90>
DEBUG: Loading config from: <ConfigFile: C:\Users\Szab\AppData\Roaming\zim\config\zim\preferences.conf>
DEBUG: Loading plugin: calendar
DEBUG: Loading plugin: insertsymbol
DEBUG: Loading plugin: linesorter
DEBUG: Loading plugin: printtobrowser
DEBUG: Loading plugin: tableofcontents
DEBUG: Loading plugin: tags
DEBUG: Loading plugin: tasklist
DEBUG: Gtk version is (2, 24, 10)
DEBUG: Pygtk version is (2, 24, 0)
DEBUG: Loading config from: <ConfigFile: C:\Users\Szab\AppData\Roaming\zim\config\zim\style.conf>
DEBUG: Loading config from: <WindowsFile: D:\doksik\szab\JapaneseLearning\.zim\state.conf>
INFO: Starting async index update
DEBUG: Child process started 5732 for <RemoteObject: zim.gui.GtkInterface(file:///D:/doksik/szab/JapaneseLearning)>
DEBUG: Accelmap: C:\Users\Szab\AppData\Roaming\zim\config\zim\accelmap
INFO: Accelerator changed for <Actions>/MainWindowExtensionDialog/go_page_today
INFO: Accelerator changed for <Actions>/MainWindowExtension/print_to_browser
DEBUG: Action: set_pathbar_path
DEBUG: Action: set_toolbar_icons_only
DEBUG: Wrote <WindowsFile: C:\Users\Szab\AppData\Roaming\zim\config\zim\preferences.conf>
DEBUG: Wrote <WindowsFile: C:\Users\Szab\AppData\Roaming\zim\config\zim\preferences.conf>
DEBUG: Action: set_toolbar_icons_small
DEBUG: Wrote <WindowsFile: C:\Users\Szab\AppData\Roaming\zim\config\zim\preferences.conf>
DEBUG: Wrote <WindowsFile: C:\Users\Szab\AppData\Roaming\zim\config\zim\preferences.conf>
INFO: Open page: <FileStorePage: kanjitanulas:2015:kanji-1502-A> (<HistoryPath: kanjitanulas:2015:kanji-1502-A>)
INFO: Accelerator changed for <Actions>/MainWindowExtension/sort_selected_lines
INFO: Accelerator changed for <Actions>/MainWindowExtensionDialog/show_calendar
INFO: Accelerator changed for <Actions>/MainWindowExtension/show_task_list
INFO: Accelerator changed for <Actions>/MainWindowExtension/insert_symbol
INFO: Index update done
WARNING: Left over file found: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt.zim-orig~
Backed up to: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt.bak7~
ERROR: Error during autosave - re-try
Traceback (most recent call last):
  File "zim\utils.pyo", line 325, in run
  File "zim\stores\files.pyo", line 327, in _store_lines
  File "zim\fs.pyo", line 1605, in writelines
  File "zim\fs.pyo", line 1905, in close
  File "zim\fs.pyo", line 1802, in _on_write
  File "zim\fs.pyo", line 1819, in _rename
WindowsError: [Error 2] A rendszer nem találja a megadott fájlt
DEBUG: Saving page: <FileStorePage: kanjitanulas:2015:kanji-1502-A>
WARNING: mtime check failed for D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt, trying md5
ERROR: Failed to save page: kanjitanulas:2015:kanji-1502-A
Traceback (most recent call last):
  File "zim\gui\__init__.pyo", line 1600, in _save_page
  File "zim\notebook.pyo", line 1434, in store_page
  File "zim\stores\files.pyo", line 104, in store_page
  File "zim\stores\files.pyo", line 305, in _store
  File "zim\stores\files.pyo", line 327, in _store_lines
  File "zim\fs.pyo", line 1597, in writelines
  File "zim\fs.pyo", line 1639, in _assertoverwrite
FileWriteError: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
DEBUG: Running SavePageErrorDialog
DEBUG: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
Traceback (most recent call last):
  File "zim\gui\__init__.pyo", line 1600, in _save_page
  File "zim\notebook.pyo", line 1434, in store_page
  File "zim\stores\files.pyo", line 104, in store_page
  File "zim\stores\files.pyo", line 305, in _store
  File "zim\stores\files.pyo", line 327, in _store_lines
  File "zim\fs.pyo", line 1597, in writelines
  File "zim\fs.pyo", line 1639, in _assertoverwrite
FileWriteError: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
ERROR: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
DEBUG: Wrote <WindowsFile: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt>
WARNING: Left over file found: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt.zim-orig~
Backed up to: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt.bak8~
DEBUG: Action: save_page
DEBUG: Saving page: <FileStorePage: kanjitanulas:2015:kanji-1502-A>
WARNING: mtime check failed for D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt, trying md5
ERROR: Failed to save page: kanjitanulas:2015:kanji-1502-A
Traceback (most recent call last):
  File "zim\gui\__init__.pyo", line 1600, in _save_page
  File "zim\notebook.pyo", line 1434, in store_page
  File "zim\stores\files.pyo", line 104, in store_page
  File "zim\stores\files.pyo", line 305, in _store
  File "zim\stores\files.pyo", line 327, in _store_lines
  File "zim\fs.pyo", line 1597, in writelines
  File "zim\fs.pyo", line 1639, in _assertoverwrite
FileWriteError: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
DEBUG: Running SavePageErrorDialog
DEBUG: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
Traceback (most recent call last):
  File "zim\gui\__init__.pyo", line 1600, in _save_page
  File "zim\notebook.pyo", line 1434, in store_page
  File "zim\stores\files.pyo", line 104, in store_page
  File "zim\stores\files.pyo", line 305, in _store
  File "zim\stores\files.pyo", line 327, in _store_lines
  File "zim\fs.pyo", line 1597, in writelines
  File "zim\fs.pyo", line 1639, in _assertoverwrite
FileWriteError: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
ERROR: Az alábbi fájl megváltozott időközben: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt
ERROR: Error during autosave - re-try
Traceback (most recent call last):
  File "zim\utils.pyo", line 325, in run
  File "zim\stores\files.pyo", line 327, in _store_lines
  File "zim\fs.pyo", line 1605, in writelines
  File "zim\fs.pyo", line 1905, in close
  File "zim\fs.pyo", line 1802, in _on_write
  File "zim\fs.pyo", line 1819, in _rename
WindowsError: [Error 2] A rendszer nem találja a megadott fájlt
DEBUG: Saving page: <FileStorePage: kanjitanulas:2015:kanji-1502-A>
DEBUG: Wrote <WindowsFile: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt>
DEBUG: Wrote <WindowsFile: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt>
DEBUG: Action: save_page
DEBUG: Saving page: <FileStorePage: kanjitanulas:2015:kanji-1502-A>
DEBUG: Wrote <WindowsFile: D:\doksik\szab\JapaneseLearning\kanjitanulas\2015\kanji-1502-A.txt>
DEBUG: Action: close (delete-event)
INFO: Last child quit, stopping server
DEBUG: Server stopped listening
INFO: Remove file: c:\users\szab\appdata\local\temp\zim-Szab\zim-server-authkey
DEBUG: Wrote <WindowsFile: D:\doksik\szab\JapaneseLearning\.zim\state.conf>
DEBUG: Remote call from 5732: <RemoteMethodCall: 5732: zim.ipc.Server(None).on_object_quit((<RemoteObject: zim.gui.GtkInterface(file:///D:/doksik/szab/JapaneseLearning)>,), {})>
DEBUG: Remote call returned to 5732: True
DEBUG: Child process 5732 quit
DEBUG: Server process 3840 quit
DEBUG: Server thread for process 5732 quit