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 353081 - Process invocation needs to be wrapped in a try/catch to handle errors
Process invocation needs to be wrapped in a try/catch to handle errors
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
unspecified
Other All
: High critical
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
: 356292 356795 357291 357414 357562 357607 362703 366397 374691 376774 377414 378570 378930 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-27 09:30 UTC by Mark Howard
Modified: 2006-11-27 18:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Mark Howard 2006-08-27 09:30:48 UTC
What were you doing when the application crashed?
Enabling beagle live plugin -- starting beagle daemon.


Distribution: Ubuntu 6.10 (edgy)
Gnome Release: 2.15.92 2006-08-22 (Ubuntu)
BugBuddy Version: 2.15.92

Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0

Traceback (most recent call last):
  • File "/usr/lib/python2.4/site-packages/deskbar/ui/DeskbarPreferencesUI.py", line 309 in on_more_button_clicked
    self.more_button_callback(self.dialog)
  • File "/usr/lib/deskbar-applet/handlers/beagle-live.py", line 34 in _show_start_beagle_dialog
    gobject.spawn_async(["beagled"], flags=gobject.SPAWN_SEARCH_PATH)
GError: Failed to execute child process "beagled" (No such file or directory)

Comment 1 Nigel Tao 2006-08-28 01:31:49 UTC
Note that this is not a dupe of 352595.  Mark - I take it that you don't have beagle installed?
Comment 2 Mikkel Kamstrup Erlandsen 2006-08-28 06:20:27 UTC
Right I think we need to try/catch that gobject.spawn_async. Or is there a way to easiky check if beagled is installed (note that deskbar doesn't require the holmes UI to run).
Comment 3 Raphael Slinckx 2006-08-29 14:26:21 UTC
Fix comitted in HEAD, thanks for the report
Comment 4 Mark Howard 2006-08-29 19:20:28 UTC
Three comments and a fix within a couple of days. Fantastic. Thanks guys for this and all your work on Deskbar. 

[Nigel- your comment was correct, I didn't have beagle installed]
Comment 5 Karsten Bräckelmann 2006-09-16 17:47:36 UTC
*** Bug 356292 has been marked as a duplicate of this bug. ***
Comment 6 Karsten Bräckelmann 2006-09-16 18:02:39 UTC
(In reply to comment #2)
> Right I think we need to try/catch that gobject.spawn_async. Or is there a way
> to easiky check if beagled is installed [...]

(In reply to comment #3)
> Fix comitted in HEAD, thanks for the report

I take it that you now actually try/catch gobject.spawn_async, right?
Probably the only generic fix. See bug 356292. :)
Comment 7 Karsten Bräckelmann 2006-09-19 20:45:45 UTC
*** Bug 356795 has been marked as a duplicate of this bug. ***
Comment 8 Karsten Bräckelmann 2006-09-19 20:47:16 UTC
*poke*  comment 6, please ;)
Comment 9 Mikkel Kamstrup Erlandsen 2006-09-21 20:10:25 UTC
Karsten, sorry for not following up... But here goes :-D

It appears that we don't try/catch that spawn_async, I don't know what Raph was referring to in comment 3.

However I have added a fix in the 2.16 branch (and head shortly), it now shows a warning dialog if it fails.

There are some strings that need translation, I have not gettext'ed them, can we add strings in the stable branch?

BTW: Karsten: Thanks a billion trillion times for your major bugzilla work! I don't know what I'd have done without you (I think I speak on behalf of the entire deskbar team).
Comment 10 Gabor Kelemen 2006-09-23 09:31:34 UTC
"There are some strings that need translation, I have not gettext'ed them, can
we add strings in the stable branch?"

Only with permission from gnome-i18n@. However, adding strings and not gettexting them is the worst possible solution. This is a string freeze breakage and must be either avoided or approved by gnome-i18n@. For more details, see
http://live.gnome.org/MaintainersCorner/StringFreeze 

Possible solutions are: 
1, reverting the bug fix from 2.16
2, marking the strings for translation after approval
Comment 11 Karsten Bräckelmann 2006-09-23 13:37:10 UTC
*** Bug 357291 has been marked as a duplicate of this bug. ***
Comment 12 Sergej Kotliar 2006-09-24 10:41:06 UTC
*** Bug 357414 has been marked as a duplicate of this bug. ***
Comment 13 Mikkel Kamstrup Erlandsen 2006-09-24 20:34:03 UTC
Gabor: I removed the dialog from the 2.16 branch. Now we just pipe an error msg to stderr. The "fix" is still there.

One could defend that we should not catch the exception to give visible feedback that we failed to start beagled. However I decided that displaying a crash dialog was more intimidating than "informing" - so I kept the beagled startup in a try/catch.
Comment 14 Karsten Bräckelmann 2006-09-25 11:13:30 UTC
*** Bug 357562 has been marked as a duplicate of this bug. ***
Comment 15 Karsten Bräckelmann 2006-09-25 15:02:59 UTC
*** Bug 357607 has been marked as a duplicate of this bug. ***
Comment 16 Karsten Bräckelmann 2006-09-28 22:06:37 UTC
(In reply to comment #9)
> BTW: Karsten: Thanks a billion trillion times for your major bugzilla work! I
> don't know what I'd have done without you (I think I speak on behalf of the
> entire deskbar team).

You're welcome, Mikkel. (and the entire deskbar team ;)


Regarding this bug and the try/catch: You guys keep on mentioning beagled only. However, that's exactly what I was about. A bunch of the duplicates fail at starting different executables. So I hope you armored gobject.spawn_async() with a try/catch, and not a beagled specific solution, right? (Otherwise, we'd need to reopen this bug.)
Comment 17 Karsten Bräckelmann 2006-10-16 20:45:26 UTC
*** Bug 362703 has been marked as a duplicate of this bug. ***
Comment 18 Raphael Slinckx 2006-10-18 11:39:23 UTC
Fixed in CVS for armoring spawn.
Needs also a gui in the future
Comment 19 Karsten Bräckelmann 2006-10-28 19:59:47 UTC
*** Bug 366397 has been marked as a duplicate of this bug. ***
Comment 20 André Klapper 2006-11-13 17:47:58 UTC
*** Bug 374691 has been marked as a duplicate of this bug. ***
Comment 21 André Klapper 2006-11-18 23:26:17 UTC
*** Bug 376774 has been marked as a duplicate of this bug. ***
Comment 22 André Klapper 2006-11-20 23:12:44 UTC
*** Bug 377414 has been marked as a duplicate of this bug. ***
Comment 23 André Klapper 2006-11-24 08:58:06 UTC
*** Bug 378570 has been marked as a duplicate of this bug. ***
Comment 24 André Klapper 2006-11-27 18:01:46 UTC
*** Bug 378930 has been marked as a duplicate of this bug. ***