Zim

Error when typing ctrl-R in page after pasting text from Quick Notebook

Bug #1208262 reported by Cyke64
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
New
Undecided
Unassigned

Bug Description

First copying text from Quick Notebook works perfectly but suddenly it crashs Zim :-(

Here's bug report :

TypeError: GtkTextBuffer.insert_at_cursor() argument 1 must be string or read-only buffer, not None

This is zim 0.60
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 nt
Zim revision is:
  branch: pyzim
  revision: 672 <email address hidden>
  date: 2013-04-30 19:27:20 +0200

======= Traceback =======
  File "zim\gui\pageview.pyo", line 4659, in set_page
  File "zim\gui\pageview.pyo", line 4750, in set_parsetree
  File "zim\gui\pageview.pyo", line 605, in set_parsetree
  File "zim\gui\pageview.pyo", line 672, in insert_parsetree_at_cursor
  File "zim\gui\pageview.pyo", line 745, in _insert_element_children
  File "zim\gui\pageview.pyo", line 786, in _insert_element_children
  File "zim\gui\pageview.pyo", line 846, in insert_link_at_cursor
TypeError: GtkTextBuffer.insert_at_cursor() argument 1 must be string or read-only buffer, not None

Here's text I paste when I have this error :
;========================================= cut here

Il est toujours important de garder une version à jour de son matériel. Nous allons voir ici comment mettre à jour le firmware du Raspberry Pi.

[[|]]Pour connaitre la version du firmware, taper :

uname -a

Nous allons rechercher le chiffre après le # :

Linux tropfacile 3.2.27+ #285 PREEMPT Tue Nov 20 17:49:40 GMT 2012 armv6l GNU/Linux

Ici nous avons le firmware 285.

Mettre à jour Raspbian avant la mise à jour du firmware :

sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade

Installation de rpi-update :

sudo apt-get install ca-certificates git-core
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update

Mettre à jour le firmware :

sudo rpi-update

Patienter le temps de la mise à jour du firmware :

Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
Performing self-update
ARM/GPU split is now defined in /boot/config.txt using the gpu_mem option!
Updating firmware (this will take a few minutes)

Après quelques minutes, il faut redémarrer le Raspberry Pi pour finir l'installation du nouveau firmware :

Using HardFP libraries
If no errors appeared, your firmware was successfully updated
A reboot is needed to activate the new firmware

Redémarrage du Raspberry Pi :

sudo reboot

Vérification de l'installation du nouveau firmware :

uname -a

Source: http://mycoolpizza.blogspot.be/2013/03/raspberry-pi-mettre-jour-le-firmware.html
//Monday 05 August 2013//

; ========================================= cut here

Where is the problem ?

I'm using Zim Portable 0.60 with Windows 8

Cyke64

Revision history for this message
HansBKK (hansbkk) wrote :

I am also getting this error message with zim 0.60 Portable, not sure what the cause is, text file has dozens of links most likely one of them was malformed.

Prevents the notebook from being opened at all.

Workaround: stripped out the Zim syntax from all the links in my external editor and then rebuilt from within Zim.

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

I believe the error is due to the "[[|]]" sequence in the text - this triggers a bug with malformed links in zim

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.