GNOME Bugzilla – Bug 500996
Python extensions can cause Nautilus to freeze
Last modified: 2008-01-11 14:21:31 UTC
Please describe the problem: When a Nautilus extension written in Python calls the get_vfs_file_info() method of a NautilusFileInfo object, the entire Nautilus process freezes. Steps to reproduce: 1. Create a Python class extending nautilus.InfoProvider. 2. in the update_file_info(self,file) method, call file.get_vfs_file_info() Actual results: The Nautilus process begins consuming all available CPU time and all Nautilus Windows freeze. Expected results: The gnomevfs.FileInfo object is returned. Does this happen every time? Yes Other information:
Created attachment 100034 [details] [review] Initializes pygnomevfs in nautilus module's initialization This prevents Nautilus from freezing and causes the get_vfs_file_info() method of NautilusFileInfo objects to behave as expected.
2008-01-11 Scott Tsai <scottt.tw@gmail.com> reviewed by: Johan Dahlin * src/nautilusmodule.c (DL_EXPORT): Initialize gnomevfs, which will prevent nautilus-python from freezing. Fixes #500996