Zim

crash or bug when opening linked file folder

Bug #1687382 reported by Loïc Meunier
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Zim
Fix Committed
Undecided
Unassigned

Bug Description

Hi,

zim crash when I click on the icon of the linked file browser plugin that open the folder in the system file browser (thunar for me) with debian 8 Xfce.

Segmentation fault :

INFO: Spawning: ['xdg-open', '/home/lo/Documents/MES_DOCUMENTS/CARNET/3._A_VOIR/AGENDA'] (cwd: None)
Erreur de segmentation

After that zim takes 10/15 sec to open again when launch.

---

from the menu I have an error but no crash :

This is zim 0.66
Platform: posix
Locale: fr_FR UTF-8
FS encoding: UTF-8
Python: (2, 7, 9, 'final', 0)
Gtk: (2, 24, 25)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: zim-trunk
  revision: 871 <email address hidden>
  date: 2017-04-28 12:31:55 +0200

======= Traceback =======
  File "/usr/lib/python2.7/dist-packages/zim/actions.py", line 149, in do_activate
    self.__get__(instance, instance.__class__)()
  File "/usr/lib/python2.7/dist-packages/zim/actions.py", line 132, in func
    self.func(instance, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/zim/gui/__init__.py", line 1351, in open_attachments_folder
    self.open_dir(dir)
  File "/usr/lib/python2.7/dist-packages/zim/gui/__init__.py", line 1206, in open_dir
    self.open_file(dir)
  File "/usr/lib/python2.7/dist-packages/zim/gui/__init__.py", line 1235, in open_file
    assert isinstance(file, (File, Dir))
AssertionError:

thanks

Revision history for this message
sojusnik (sojusnik) wrote :

Happens also on Ubuntu Gnome 17.04 with Nautilus 3.20.

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

I have tracked down the root cause to the statement gobject.threads_init() in zim/main/__init__.py. After removing that line I have seen no more segfaults on my linux system.

Will push a patch and update the daily PPA this evening. Anyone who wants to test already please edit and remove the line mentioned manually.

Changed in zim:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.