After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 500996 - Python extensions can cause Nautilus to freeze
Python extensions can cause Nautilus to freeze
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
0.4.x
Other All
: Normal normal
: ---
Assigned To: Johan (not receiving bugmail) Dahlin
Johan (not receiving bugmail) Dahlin
Depends on:
Blocks:
 
 
Reported: 2007-12-02 09:33 UTC by Jonathan Rogers
Modified: 2008-01-11 14:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initializes pygnomevfs in nautilus module's initialization (677 bytes, patch)
2007-12-02 09:36 UTC, Jonathan Rogers
none Details | Review

Description Jonathan Rogers 2007-12-02 09:33:15 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:
Comment 1 Jonathan Rogers 2007-12-02 09:36:49 UTC
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.
Comment 2 Johan (not receiving bugmail) Dahlin 2008-01-11 14:21:31 UTC
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