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 345011 - deskbar-applet-2.15.3 crashes when any text is entered
deskbar-applet-2.15.3 crashes when any text is entered
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.15.x
Other Linux
: Normal blocker
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-06-15 14:12 UTC by Joseph Sacco
Modified: 2006-06-26 11:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Fix crash after typing search string (545 bytes, patch)
2006-06-15 17:49 UTC, Joe Marcus Clarke
committed Details | Review

Description Joseph Sacco 2006-06-15 14:12:24 UTC
Environment: GARNOME-2.15.3, PPC, YDL-4.1 [FC4 clone]

deskbar-applet-2.15.3 builds, but does not run. The applet crashes after one or two characters are typed into the entry window. 

deskbar-applet-2.15.2.1 builds and runs.



-Joseph
Comment 1 Joe Marcus Clarke 2006-06-15 15:55:46 UTC
Error seen is:

Gtk-CRITICAL **: gtk_window_realize: assertion `!GTK_WIDGET_REALIZED (widget)' failed
aborting...
Trace/BPT trap (core dumped)

(gdb) thread apply all bt

Thread 4 (Thread 0x82502e0 (runnable))

  • #0 IA__g_logv
    at gmessages.c line 503
  • #1 IA__g_log
    at gmessages.c line 517
  • #2 IA__g_return_if_fail_warning
  • #3 gtk_window_realize
    at gtkwindow.c line 4251
  • #4 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #5 g_type_class_meta_marshal
    at gclosure.c line 567
  • #6 IA__g_closure_invoke
    at gclosure.c line 490
  • #7 signal_emit_unlocked_R
    at gsignal.c line 2368
  • #8 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #9 IA__g_signal_emit
    at gsignal.c line 2241
  • #10 IA__gtk_widget_realize
    at gtkwidget.c line 2486
  • #11 IA__gtk_widget_realize
    at gtkwidget.c line 2482
  • #12 IA__gtk_widget_realize
    at gtkwidget.c line 2482
  • #13 _wrap_gtk_widget_realize
    at gtk.c line 7435
  • #14 PyEval_EvalFrame
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 3550
  • #15 PyEval_EvalFrame
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 3648
  • #16 PyEval_EvalFrame
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 3648
  • #17 PyEval_EvalFrame
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 3648
  • #18 PyEval_EvalFrame
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 3648
  • #19 PyEval_EvalCodeEx
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 2739
  • #20 function_call
    at /usr/ports/lang/python/work/Python-2.4.3/Objects/funcobject.c line 548
  • #21 PyObject_Call
    at /usr/ports/lang/python/work/Python-2.4.3/Objects/abstract.c line 1795
  • #22 instancemethod_call
    at /usr/ports/lang/python/work/Python-2.4.3/Objects/classobject.c line 2447
  • #23 PyObject_Call
    at /usr/ports/lang/python/work/Python-2.4.3/Objects/abstract.c line 1795
  • #24 PyEval_CallObjectWithKeywords
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 3433
  • #25 PyObject_CallObject
    at /usr/ports/lang/python/work/Python-2.4.3/Objects/abstract.c line 1786
  • #26 ??
    from /usr/local/lib/python2.4/site-packages/gtk-2.0/gobject.so
  • #27 g_timeout_dispatch
    at gmain.c line 3420
  • #28 IA__g_main_context_dispatch
    at gmain.c line 2043
  • #29 g_main_context_iterate
    at gmain.c line 2675
  • #30 IA__g_main_loop_run
    at gmain.c line 2879
  • #31 bonobo_main
    at bonobo-main.c line 311
  • #32 bonobo_generic_factory_main_timeout
    at bonobo-generic-factory.c line 412
  • #33 bonobo_generic_factory_main
    at bonobo-generic-factory.c line 369
  • #34 panel_applet_factory_main_closure
    at panel-applet.c line 1757
  • #35 _wrap_panel__applet_bonobo_factory
    at applet.override line 102
  • #36 PyEval_EvalFrame
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 3566
  • #37 PyEval_EvalCodeEx
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 2739
  • #38 PyEval_EvalCode
    at /usr/ports/lang/python/work/Python-2.4.3/Python/ceval.c line 487
  • #39 run_node
    at /usr/ports/lang/python/work/Python-2.4.3/Python/pythonrun.c line 1265
  • #40 PyRun_SimpleFileExFlags
    at /usr/ports/lang/python/work/Python-2.4.3/Python/pythonrun.c line 860
  • #41 Py_Main
    at /usr/ports/lang/python/work/Python-2.4.3/Modules/main.c line 493
  • #42 main
    at /usr/ports/lang/python/work/Python-2.4.3/Modules/python.c line 23

Comment 2 Joe Marcus Clarke 2006-06-15 17:46:34 UTC
I've done some more digging, and the problem appears to stem from CuemiacPopupEntry.py in the popup() method starting at line 96.  I believe the problem line is 118.

The attached patch corrects this problem for me.
Comment 3 Joe Marcus Clarke 2006-06-15 17:49:29 UTC
Created attachment 67439 [details] [review]
Fix crash after typing search string
Comment 4 Joseph Sacco 2006-06-15 19:06:32 UTC
Joe,

your patch allows deskbar-applet to run. 

I am seeing a few oddities...
(1) the dictionary entry in the preferences has gone missing

(2) launched a gnome-terminal, which came up but produced an error dialog

Traceback (most recent call last):
  • File "/usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/python2.4/site-packages/deskbar/ui/cuemiac/CuemiacUIManager.py", line 343 in _on_entry_activate
    self.cview.emit ("row-activated", path, column)
TypeError: could not convert type NoneType to GtkTreePath required for parameter 0

(3) searched yahoo for the word 'foo'
Saw another error

Traceback (most recent call last):
  File "/usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/python2.4/site-packages/deskbar/ui/DeskbarPreferencesUI.py", line 223, in on_dialog_response
    self.newstuff.close()
  File "/usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/python2.4/site-packages/deskbar/updater/NewStuffUpdater.py", line 371, in close
    self.newstuff.Close(reply_handler=lambda: None, error_handler=global_error_handler)
AttributeError: 'NoneType' object has no attribute 'Close'


So... There are additional things to test and fix.


-Joseph

Comment 5 Joseph Sacco 2006-06-15 19:42:40 UTC
Here is one more...

click on the 'check for updates' button:

Traceback (most recent call last):
  • File "/usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/python2.4/site-packages/deskbar/ui/DeskbarPreferencesUI.py", line 368 in on_check_handlers
    self.newstuff.check_all()
  • File "/usr/local/src/GARNOME/2.15/garnome-2.15.x/lib/python2.4/site-packages/deskbar/updater/NewStuffUpdater.py", line 306 in check_all
    self.newstuff.GetAvailableUpdates(plugins, reply_handler=self.on_available_updates, error_handler=global_error_handler)
AttributeError: 'NoneType' object has no attribute 'GetAvailableUpdates'

-Joseph
Comment 6 Mikkel Kamstrup Erlandsen 2006-06-26 11:36:14 UTC
I just commited a patch that should fix your issue from the first post Joseph. Joe was almost right... Although I discovered that we did not need to realize the view at all.

Joseph: If you can still reproduce the other bugs you write about (I suspect a few of them are already fixed), would you be so kind as to submit separate bug reports on them?

I'm marking this bug as closed, feel free to re-open if I have b0rked it :-)