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 441901 - Crash on searching in plugin list
Crash on searching in plugin list
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Plugins
2.19.x
Other Linux
: Normal major
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2007-05-28 20:33 UTC by Philip Withnall
Modified: 2007-06-04 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes crash (524 bytes, patch)
2007-05-28 20:33 UTC, Philip Withnall
reviewed Details | Review
Additionally sets to browse mode (1.45 KB, patch)
2007-05-28 23:04 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2007-05-28 20:33:03 UTC
If you open the plugins dialog, and press a key for which there isn't a plugin starting with that letter, Totem will crash while trying to get the icon for a non-existent plugin. A patch is forthcoming.

This also affects Rhythmbox (and anything else which uses this plugin code).
Comment 1 Philip Withnall 2007-05-28 20:33:39 UTC
Created attachment 88962 [details] [review]
Fixes crash

Fixes crash (we were missing a NULL check).
Comment 2 Bastien Nocera 2007-05-28 22:28:28 UTC
You would probably want to make the whole right-portion of the dialogue unsensitive, or change the selection-mode of the treeview so that the plugins can't be unselected (and the selection empty).

gtk_tree_selection_set_mode() with GTK_SELECTION_BROWSE is probably the easiest way to fix this.
Comment 3 Philip Withnall 2007-05-28 23:04:57 UTC
Created attachment 88976 [details] [review]
Additionally sets to browse mode

This patch fixes the crash and sets the tree view to browse mode.
Comment 4 Bastien Nocera 2007-05-28 23:16:24 UTC
Does just setting to browse mode fix the crash? If so, I'd rather avoid the "if NULL return" altogether.
Comment 5 Philip Withnall 2007-05-29 00:05:10 UTC
Even with browse mode, the search box comes up when you press a letter, and it calls cursor_changed_cb with a NULL plugin.

Most of the other functions in the file check for NULL, so either there's something deeply wrong, or this change is fine (as far as I can tell, anyway).
Comment 6 Bastien Nocera 2007-06-04 16:25:15 UTC
Please commit to trunk.
Comment 7 Philip Withnall 2007-06-04 16:48:17 UTC
2007-06-04  Philip Withnall  <pwithnall@svn.gnome.org>

	* src/plugins/totem-plugin-manager.c: (cursor_changed_cb),
	(plugin_manager_construct_tree): Prevent crash when using find on
	the plugins list (Closes: #441901)