Crash on web search

Bug #452151 reported by Lucas Roesler
62
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Do
New
Undecided
Unassigned
Do Plugins
Incomplete
Medium
Unassigned
gnome-do (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am running gnome-do 0.8.2 using the docky theme on ubuntu karmic. The version in synaptic is 0.8.2.1+dfsg-1~ubuntu1 . I am using the ppa at ppa.launchpad.net/do-core/ppa/ubuntu

When I try to use the opensearch plugin gnome-do crashes. Specifically,

1) super-space to activate gnome-do.
2) type 'web' to select the web search plug-in.
3) tab to the next pane and type a phrase.
4) hit enter

This sequence should open firefox (or a new tab) with the search results from the specified search engine. Instead, immediately after I press enter gnome-do crashes. I ran gnome-do from the terminal and the following error was printed:

[Error 07:40:51.002] An error has occurred in UpdateEvents
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentNullException: Argument cannot be null.
Parameter name: element
  at Do.Core.HistogramRelevanceProvider.IncreaseRelevance (Do.Universe.Item element, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.ItemExtensions.IncreaseRelevance (Do.Universe.Item self, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.Controller.PerformAction (Boolean vanish) [0x00000]
  at Do.Core.Controller.OnActivateKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Do.Core.Controller.KeyPressWrap (Gdk.EventKey evnt) [0x00000]
  at Docky.Interface.DockWindow.OnKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Do.Do.Main(System.String[] args)

When I tried to test using other search engines no search engines appear in the third pane. There was an update to both gnome-do and firefox this morning so it could be the result of some change to the search engine locations during the firefox update.

I have tried other gnome-do searches and it seems to be able to launch programs and documents as normal. I have tried the classic theme and the same error occurred.

Revision history for this message
Robert Dyer (psybers) wrote :

I can not confirm (on Jaunty). This is working as expected for me.

Changed in do-plugins:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Lucas Roesler (theaxer) wrote :

Is it possible that the location of the search plugins was moved during a Firefox update? Where does the opensearch plugin look for them?

Revision history for this message
Lucas Roesler (theaxer) wrote :

So I have experimented and found that opensearch was not finding the location of the search plugins. I copied the search plugins from /usr/share/firefox/searchplugins into /home/xxx/.mozilla/firefox/xxx.default/searchplugins and it could find and use the plugins.

I first tried to just add a link to the folder /usr/share/firefox/searchplugins and the only searchplugins found were the plugins directly in the folder /usr/share/firefox/searchplugins. These are the launchpad related search plugins that ubuntu has pre-installed. The usual firefox search plugins (google, yahoo, etc) were located in a subfolder /usr/share/firefox/searchplugins/en-US . These search plugins were not indexed by gnome-do.

So it does not seem to be a real bug with opensearch plugin but rather a change in where firefox (or ubuntu) is putting the search plugins.

Revision history for this message
ethanay (ethan-y-us) wrote :

same behavior here on 9.10

Revision history for this message
ethanay (ethan-y-us) wrote :

this seems related to the bug 383484 in firefox 3.5

Revision history for this message
Morriz (modrama) wrote :

Same behavior for me on 9.10 with same output:

(Do:3374): Wnck-CRITICAL **: wnck_set_client_type got called multiple times.

Could not locate Tomboy on D-Bus. Perhaps it's not running?
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentNullException: Argument cannot be null.
Parameter name: element
  at Do.Core.HistogramRelevanceProvider.IncreaseRelevance (Do.Universe.Item element, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.ItemExtensions.IncreaseRelevance (Do.Universe.Item self, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.Controller.PerformAction (Boolean vanish) [0x00000]
  at Do.Core.Controller.OnActivateKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Do.Core.Controller.KeyPressWrap (Gdk.EventKey evnt) [0x00000]
  at Docky.Interface.DockWindow.OnKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Do.Do.Main(System.String[] args)

Revision history for this message
Robert Dyer (psybers) wrote :

@Morriz: would you be willing to install Do from source? I may have fixed this with the latest bzr revision. If you do, install both lp:do and lp:do-plugins from bzr.

Revision history for this message
Morriz (modrama) wrote : Re: [Bug 452151] Re: Crash on web search

Tnx! It takes a long time to compile all that tho..heck, I'm still
downloading it all :p

On 13 nov 2009, at 10:56, Robert Dyer <email address hidden> wrote:

> @Morriz: would you be willing to install Do from source? I may have
> fixed this with the latest bzr revision. If you do, install both
> lp:do
> and lp:do-plugins from bzr.
>
> --
> Crash on web search
> https://bugs.launchpad.net/bugs/452151
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in GNOME Do Plugins Project: Incomplete
>
> Bug description:
> I am running gnome-do 0.8.2 using the docky theme on ubuntu karmic.
> The version in synaptic is 0.8.2.1+dfsg-1~ubuntu1 . I am using the
> ppa at ppa.launchpad.net/do-core/ppa/ubuntu
>
> When I try to use the opensearch plugin gnome-do crashes.
> Specifically,
>
> 1) super-space to activate gnome-do.
> 2) type 'web' to select the web search plug-in.
> 3) tab to the next pane and type a phrase.
> 4) hit enter
>
> This sequence should open firefox (or a new tab) with the search
> results from the specified search engine. Instead, immediately
> after I press enter gnome-do crashes. I ran gnome-do from the
> terminal and the following error was printed:
>
> [Error 07:40:51.002] An error has occurred in UpdateEvents
> Exception in Gtk# callback delegate
> Note: Applications can use GLib.ExceptionManager.UnhandledException
> to handle the exception.
> System.ArgumentNullException: Argument cannot be null.
> Parameter name: element
> at Do.Core.HistogramRelevanceProvider.IncreaseRelevance
> (Do.Universe.Item element, System.String match, Do.Universe.Item
> other) [0x00000]
> at Do.Core.ItemExtensions.IncreaseRelevance (Do.Universe.Item self,
> System.String match, Do.Universe.Item other) [0x00000]
> at Do.Core.Controller.PerformAction (Boolean vanish) [0x00000]
> at Do.Core.Controller.OnActivateKeyPressEvent (Gdk.EventKey evnt)
> [0x00000]
> at Do.Core.Controller.KeyPressWrap (Gdk.EventKey evnt) [0x00000]
> at Docky.Interface.DockWindow.OnKeyPressEvent (Gdk.EventKey evnt)
> [0x00000]
> at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
> at GLib.ExceptionManager.RaiseUnhandledException(System.Exception
> e, Boolean is_terminal)
> at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt)
> at Gtk.Application.gtk_main()
> at Gtk.Application.Run()
> at Do.Do.Main(System.String[] args)
>
>
> When I tried to test using other search engines no search engines
> appear in the third pane. There was an update to both gnome-do and
> firefox this morning so it could be the result of some change to the
> search engine locations during the firefox update.
>
> I have tried other gnome-do searches and it seems to be able to
> launch programs and documents as normal. I have tried the classic
> theme and the same error occurred.

Revision history for this message
Morriz (modrama) wrote :

I still get error with a the latest build:

(Do:26454): Wnck-CRITICAL **: wnck_set_client_type got called multiple times.

[Error 20:17:44.397] [AbstractKeyBindingService] Failed to bind "Summon in Text Mode" to ""
[Error 20:17:54.327] GMailContacts Error: Invalid credentials
[Error 20:17:54.330] An error has occurred in UpdateCalendars
[Error 20:17:54.376] [GDocs] Invalid credentials
[Error 20:17:54.680] [ItemsService] Could not add custom item with id: Type to begin searching: (Do.Interface.Widgets.DefaultLabelBoxItem)
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentNullException: Argument cannot be null.
Parameter name: element
  at Do.Core.HistogramRelevanceProvider.IncreaseRelevance (Do.Universe.Item element, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.ItemExtensions.IncreaseRelevance (Do.Universe.Item self, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.Controller.PerformAction (Boolean vanish) [0x00000]
  at Do.Core.Controller.OnActivateKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Do.Core.Controller.KeyPressWrap (Gdk.EventKey evnt) [0x00000]
  at (wrapper delegate-invoke) Do.Interface.DoEventKeyDelegate:invoke_void__this___EventKey (Gdk.EventKey)
  at Docky.Interface.DockWindow.OnKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Do.Do.Main(System.String[] args)

Revision history for this message
Magnus Helander (mhelander) wrote :

The OpenSearch plugins for Karmic / Firefox 3.5 / en-US are in

/usr/lib/firefox-addons/searchplugins/common/en-US

Copying all XML files in this directory to

/home/{USER}/.mozilla/firefox/vkuuxfit.default/searchplugins/

does kick off a search - but took me to surprisingly to ebay.com search engine
Anyway, it does not kill Do, so that's a start... below the crashtrace before copying the xml-files

/m

Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentNullException: Argument cannot be null.
Parameter name: element
  at Do.Core.HistogramRelevanceProvider.IncreaseRelevance (Do.Universe.Item element, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.ItemExtensions.IncreaseRelevance (Do.Universe.Item self, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.Controller.PerformAction (Boolean vanish) [0x00000]
  at Do.Core.Controller.OnActivateKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Do.Core.Controller.KeyPressWrap (Gdk.EventKey evnt) [0x00000]
  at Do.Interface.AnimationBase.AbstractAnimatedInterface.OnKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Do.Do.Main(System.String[] args)

Revision history for this message
Magnus Helander (mhelander) wrote :

OK, after pressing TAB I get to choose the search engine as well in the third panel - works fine with Google and all OpenSearch plugins now...
/m

Revision history for this message
Lord_JABA (lordjaba) wrote :

Everything works well until i try to select opensearch. it crushes gnome-do immediately and prevent it from starting again. Fast workaround: remove gnome-do-plugins install it again and disable/don't use opensearch.

Revision history for this message
Lord_JABA (lordjaba) wrote :

my bad is not opensearch. disabling Google/docs/contacts also solve the problem
code (look at GMail lines):
Stacktrace:

  at (wrapper managed-to-native) Gnome.Keyring.Ring.gnome_keyring_find_items_sync (Gnome.Keyring.ItemType,intptr,intptr&) <0x00004>
  at (wrapper managed-to-native) Gnome.Keyring.Ring.gnome_keyring_find_items_sync (Gnome.Keyring.ItemType,intptr,intptr&) <0xffffffff>
  at Gnome.Keyring.Ring.Find (Gnome.Keyring.ItemType,System.Collections.Hashtable) <0x00073>
  at Do.Platform.Linux.GnomeKeyringSecurePreferencesService.TryGet (string,string&) <0x000ae>
  at Do.Platform.SecurePreferencesServiceWrapper.TryGet<object> (string,object&) <0x00054>
  at (wrapper static-rgctx-invoke) Do.Platform.SecurePreferencesServiceWrapper.static_rgctx_invoke_bool__this___string_string& (string,string&) <0xffffffff>
  at Do.Platform.Preferences.PreferencesImplementation`1<object>.TryGet<object> (Do.Platform.IPreferencesService,string,object&) <0x00060>
  at Do.Platform.Preferences.PreferencesImplementation`1<object>.TryGet<object> (Do.Platform.IPreferencesService,string,object,object&) <0x0002b>
  at Do.Platform.Preferences.PreferencesImplementation`1<object>.GetSecure<object> (string,object) <0x00050>
  at (wrapper static-rgctx-invoke) Do.Platform.Preferences.PreferencesImplementation`1<GMail.GMailPreferences>.static_rgctx_invoke_string__this___string_string (string,string) <0xffffffff>
  at GMail.GMailPreferences.get_Password () <0x00033>
  at GMail.GMail..cctor () <0x0009b>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at GMail.GMailItemSource.get_Items () <0xffffffff>
  at GMail.GMailItemSource.get_Items () <0x0000b>
  at Do.Universe.Safe.SafeItemSource.get_Items () <0x00032>
  at Do.Core.UniverseManager.ReloadSource (Do.Universe.ItemSource,System.Collections.Generic.Dictionary`2<string, Do.Universe.Item>) <0x00058>
  at Do.Core.UniverseManager/<ReloadUniverse>c__AnonStoreyD.<>m__22 (Do.Universe.ItemSource) <0x0001b>
  at System.Linq.EnumerableExtensions.ForEach<object> (System.Collections.Generic.IEnumerable`1<object>,System.Action`1<object>) <0x000cc>
  at Do.Core.UniverseManager.ReloadUniverse () <0x000cd>
  at Do.Core.UniverseManager.InitializeAsync () <0x00010>
  at Do.Platform.ApplicationService/<RunOnThread>c__AnonStoreyF.<>m__28 () <0x0001c>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

Revision history for this message
Lord_JABA (lordjaba) wrote :

opensearch still crushes-
-1 not displaying search engine chooser
-2 on enter crushes on null argument

Revision history for this message
Adam Guthrie (therigu) wrote :

The affects me on a clean install of Ubuntu Lucid Beta 2

Revision history for this message
Adam Guthrie (therigu) wrote :

Stacktrace:

Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentNullException: Argument cannot be null.
Parameter name: element
  at Do.Core.HistogramRelevanceProvider.IncreaseRelevance (Do.Universe.Item element, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.ItemExtensions.IncreaseRelevance (Do.Universe.Item self, System.String match, Do.Universe.Item other) [0x00000]
  at Do.Core.Controller.PerformAction (Boolean vanish) [0x00000]
  at Do.Core.Controller.OnActivateKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Do.Core.Controller.KeyPressWrap (Gdk.EventKey evnt) [0x00000]
  at Do.Interface.AnimationBase.AbstractAnimatedInterface.OnKeyPressEvent (Gdk.EventKey evnt) [0x00000]
  at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Do.Do.Main(System.String[] args)

Revision history for this message
Adam Guthrie (therigu) wrote :

Workaround of

adam@whiteowl:~/.mozilla/firefox/x3j1pqnz.default$ ln -s /usr/lib/firefox-addons/searchplugins/common/en-GB searchplugins

resolves this

Changed in gnome-do (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexandre Martinazzo (alexandremartinazzo) wrote :

I confirm this bug in Lucid too

The workaround proposed by @AdamGuthrie is good, but prevents one from installing new OpenSearch plugins due to permissions in the directory. If that is the case, linking the files individually is better.

Revision history for this message
Kangarooo Jānis (kangarooo) wrote :

Still happens with latest gnome-do in xubuntu 10.04 with latest updates. On presing enter gnome-do closes and crash report doesnt come up.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers