Zim

Zim says "Page object became invalid" when I try to save a copy of the notebook.

Bug #1066455 reported by Vanamali
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Undecided
Unassigned

Bug Description

I typed some notes into Zim desktop wiki and wanted to save it in a directory different of where I opened it. A window with title "Looks like you have found a bug" popped up. It read "AssertionError: BUG: page object became invalid // When reporting this bug please include the information from the text box below" and gave the following details:

This is zim 0.54
Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
Gtk version is (2, 24, 10)
Pygtk version is (2, 24, 0)
Platform is posix
Zim revision is:
  branch: pyzim-trunk
  revision: 465 <email address hidden>
  date: 2011-12-22 22:56:29 +0100

======= Traceback =======
  File "/usr/lib/python2.7/dist-packages/zim/gui/widgets.py", line 2258, in do_response
    destroy = self.do_response_ok()
  File "/usr/lib/python2.7/dist-packages/zim/gui/__init__.py", line 3017, in do_response_ok
    lines = self.page.dump(format)
  File "/usr/lib/python2.7/dist-packages/zim/notebook.py", line 2390, in dump
    tree = self.get_parsetree()
  File "/usr/lib/python2.7/dist-packages/zim/notebook.py", line 2294, in get_parsetree
    assert self.valid, 'BUG: page object became invalid'
AssertionError: BUG: page object became invalid

Running "zim -D" from the Terminal results in the following output.

vanamali@Shastry:~$ zim -D
INFO: This is zim 0.54
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: pyzim-trunk
  revision: 465 <email address hidden>
  date: 2011-12-22 22:56:29 +0100
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/vanamali/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/cinnamon>, <Dir: /usr/share/gnome>, <Dir: /usr/local/share>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/vanamali/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg/xdg-cinnamon>, <Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/vanamali/.cache
DEBUG: Running command: gui
DEBUG: Loading /home/vanamali/Documents/Notes/notebook.zim
DEBUG: Wrote /home/vanamali/.config/zim/notebooks.list
INFO: Opening default notebook
DEBUG: Sending to daemon: ["ping",[],{}]

DEBUG: Daemon replied: "Ack"
DEBUG: Sending to daemon: ["vivicate",["zim.gui.GtkInterface","file:///home/vanamali/Documents/Notes"],{"usedaemon":true,"notebook":"file:///home/vanamali/Documents/Notes"}]

DEBUG: Daemon replied: true
DEBUG: Sending to daemon: ["relay",[["zim.gui.GtkInterface","file:///home/vanamali/Documents/Notes"],"present",null],{"geometry":null,"fullscreen":null}]

DEBUG: Daemon replied: true
DEBUG:
NOTE FOR BUG REPORTS:
 At this point zim has send the command to open a notebook to a
 background process and the current process will no quit.
 If this is the end of your debug output it is probably not useful
 for bug reports. Please close all zim windows, quit the
 zim trayicon (if any), and try again.

vanamali@Shastry:~$

System spec:
OS : Ubuntu 12.04 (with Cinnamon1.6.1)

Further, this "AssertionError: BUG: page object became invalid" message kept popping up whenever I tried to repeat the above said steps (Irrespective of the contents of the notebook.)

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1066455] [NEW] Zim says "Page object became invalid" when I try to save a copy of the notebook.

Afraid the debug output is not complete, can you first close all zim
instances ? See the message at the end of the output.

Thanks,

Jaap

Revision history for this message
Vanamali (vanamalishastry) wrote :
Download full text (6.0 KiB)

Sorry! I overlooked the message. The (possibly) complete output is given below.

vanamali@Shastry:~$ zim -D
INFO: This is zim 0.54
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: pyzim-trunk
  revision: 465 <email address hidden>
  date: 2011-12-22 22:56:29 +0100
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/vanamali/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/cinnamon>, <Dir: /usr/share/gnome>, <Dir: /usr/local/share>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/vanamali/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg/xdg-cinnamon>, <Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/vanamali/.cache
DEBUG: Running command: gui
DEBUG: Loading /home/vanamali/Documents/Notes/notebook.zim
DEBUG: Wrote /home/vanamali/.config/zim/notebooks.list
INFO: Opening default notebook
INFO: Starting UnixSocketDaemon
DEBUG: Socket address: /tmp/zim-vanamali/daemon-socket
DEBUG: Wrote /tmp/zim-vanamali/daemon.pid
DEBUG: Sending to daemon: ["ping",[],{}]

DEBUG: Daemon replied: "Ack"
DEBUG: Sending to daemon: ["vivicate",["zim.gui.GtkInterface","file:///home/vanamali/Documents/Notes"],{"usedaemon":true,"notebook":"file:///home/vanamali/Documents/Notes"}]

DEBUG: Child spawned 12236 (u'zim.gui.GtkInterface', u'file:///home/vanamali/Documents/Notes')
DEBUG: No such signal: notebook-list-changed
DEBUG: Daemon replied: true
DEBUG: Sending to daemon: ["relay",[["zim.gui.GtkInterface","file:///home/vanamali/Documents/Notes"],"present",null],{"geometry":null,"fullscreen":null}]

DEBUG: Sending to child 12236: ["present",[null],{"geometry":null,"fullscreen":null}]

DEBUG: Daemon replied: true
DEBUG:
NOTE FOR BUG REPORTS:
 At this point zim has send the command to open a notebook to a
 background process and the current process will no quit.
 If this is the end of your debug output it is probably not useful
 for bug reports. Please close all zim windows, quit the
 zim trayicon (if any), and try again.

vanamali@Shastry:~$ DEBUG: Loading /home/vanamali/.config/zim/preferences.conf
DEBUG: Gtk version is (2, 24, 10)
DEBUG: Pygtk version is (2, 24, 0)
WARNING: Could not find all icon sizes for the application icon
DEBUG: Loading /home/vanamali/.config/zim/style.conf
DEBUG: Loaded plugin arithmetic (<ArithmeticPlugin object at 0xb55d116c (zim+plugins+PluginClass at 0x8d48cb0)>)
DEBUG: Loaded plugin calendar (<CalendarPlugin object at 0xb558c0f4 (zim+plugins+PluginClass at 0x8d48e00)>)
DEBUG: Registered plugin <InsertGnuplotPlugin object at 0xb558cfa4 (zim+plugins+PluginClass at 0x8d48dc0)> for image type "gnuplot"
DEBUG: Loaded plugin gnuplot_ploteditor (<InsertGnuplotPlugin object at 0xb558cfa4 (zim+plugins+PluginClass at 0x8d48dc0)>)
DEBUG: Loaded plugin inlinecalculator (<InlineCalculatorPlugin object at 0xb5594914 (zim+plugins+PluginClass at 0x8d48d20)>)
DEBUG: Loaded plugin insertsymbol (<InsertSymbolPlugin object at 0xb5594a2c (zim+plugins+PluginClass at 0x8d48da0)>)
DEBUG: Loaded plugin printtobrowser (<PrintToBrowserPlugin object at 0xb559a054 (zim+plugins+PluginC...

Read more...

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1066455] Re: Zim says "Page object became invalid" when I try to save a copy of the notebook.

Yes, that is full debug output, but it doesn't seem to show the error.
Did you trigger the error while making this debug log ?

Thanks,

Jaap

Changed in zim:
status: New → Incomplete
Revision history for this message
Vanamali (vanamalishastry) wrote :

Yes I did. But, haven't witnessed further occurences.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

On Tue, Dec 18, 2012 at 9:31 AM, Vanamali <email address hidden> wrote:
> Yes I did. But, haven't witnessed further occurences.

OK, than let's leave the bug at "incomplete" for now, if you see new
occurrences you can change it back to "new".

Regards,

Jaap

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
Revision history for this message
Shivam Sharma (shivams-cool) wrote :

This bug is appearing on one of my Zim notebooks.

I had renamed one of the parent page something like this:

Ideas --> 10_Ideas

This page had many children. A few days later I noticed that apart from the "10_Ideas" page, the old "Ideas" page was also present. All the children of this "Ideas" page were also visible but greyed out. There was no content however on this page. I checked my the folder where this notebook was. There was no such page as "Ideas" in this folder. I tried updating the index but nada.

Then, I tried deleting this ghost page "Ideas" and this is the error it showed:

This is zim 0.62
Platform: posix
Locale: en_IN ISO8859-1
FS encoding: UTF-8
Python: (2, 7, 4, 'final', 0)
Gtk: (2, 24, 17)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: zim-trunk
  revision: 738 <email address hidden>
  date: 2014-09-30 21:17:15 +0200

======= Traceback =======
  File "/usr/local/lib/python2.7/dist-packages/zim/gui/widgets.py", line 3077, in do_response
    destroy = self.do_response_ok()
  File "/usr/local/lib/python2.7/dist-packages/zim/gui/__init__.py", line 3266, in do_response_ok
    lines = self.page.dump(format)
  File "/usr/local/lib/python2.7/dist-packages/zim/notebook.py", line 2507, in dump
    tree = self.get_parsetree()
  File "/usr/local/lib/python2.7/dist-packages/zim/notebook.py", line 2409, in get_parsetree
    assert self.valid, 'BUG: page object became invalid'
AssertionError: BUG: page object became invalid

Changed in zim:
status: Expired → Confirmed
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.