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 429571 - crash in Gimmie: push button "Library"
crash in Gimmie: push button "Library"
Status: RESOLVED DUPLICATE of bug 421620
Product: gimmie
Classification: Deprecated
Component: general
unspecified
Other All
: High critical
: ---
Assigned To: Gimmie Maintainers
Gimmie Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-14 04:19 UTC by a3r30s
Modified: 2007-04-26 07:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Indents the function properly (699 bytes, patch)
2007-04-24 17:28 UTC, Bjarte Aarmo Lund
none Details | Review

Description a3r30s 2007-04-14 04:19:52 UTC
What were you doing when the application crashed?
push button "Library"


Distribution: Fedora Core release 6 (Zod)
Gnome Release: 2.16.3 2007-01-31 (Red Hat, Inc)
BugBuddy Version: 2.16.0

System: Linux 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 11:38:26 EDT 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70101000
Selinux: Permissive
Accessibility: Disabled

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



----------- .xsession-errors (20 sec old) ---------------------
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/top_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/bottom_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/top_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/bottom_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/top_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/bottom_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/top_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
(gnome-panel:4997): GConf-WARNING **: Directory `/apps/panel/toplevels/bottom_panel_screen1/screen' was not being monitored by GConfClient 0x94670b0
--------------------------------------------------
Traceback (most recent call last):
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_applet.py", line 516 in do_button_press_event
    self._show()
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_applet.py", line 521 in _show
    self.topic_win = self.topic.get_topic_window()
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_applet.py", line 393 in get_topic_window_mod
    self.topic_window = TopicMenu(self)
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_applet.py", line 251 in __init__
    self._add_toolbar_items()
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_applet.py", line 368 in _add_toolbar_items
    for i in self.topic.get_toolbar_items(self.tooltips):
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_documents.py", line 396 in get_toolbar_items
    btn = PlacesMenuButton(tooltips)
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_documents.py", line 283 in __init__
    self.set_menu(PlacesMenu())
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_documents.py", line 246 in __init__
    for item in device_source.get_items():
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_base.py", line 219 in get_items
    for i in self.get_items_uncached():
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_computer.py", line 217 in get_items_uncached
    yield DriveItem(drive)
  • File "/usr/lib/python2.4/site-packages/gimmie/gimmie_computer.py", line 106 in __init__
    raise ValueError, "Cannot find URI to open for drive '%s'" % drive
ValueError: Cannot find URI to open for drive '<gnomevfs.Drive object (GnomeVFSDrive) at 0x8abb554>'

Comment 1 Bjarte Aarmo Lund 2007-04-22 20:42:03 UTC
Seems to me like it is an indention-error. From gimmie_computer.py:
if not uri:
            for volume in drive.get_mounted_volumes():
                if volume.is_user_visible():
                    # FIXME: Using the first volume URI for a device is
                    #        broken. There could be multiple, though I don't
                    #        know under what circumstances this would happen.
                    uri = volume.get_activation_uri()
                    break
            else:
                   raise ValueError, "Cannot find URI to open for drive '%s'" % drive
This apparently triggers the error each time, instead of the wished behaviour(when volume.is_user_visible() returns False)
Adding an indention to the else-block resolves the bug for me:
if not uri:
            for volume in drive.get_mounted_volumes():
                if volume.is_user_visible():
                    # FIXME: Using the first volume URI for a device is
                    #        broken. There could be multiple, though I don't
                    #        know under what circumstances this would happen.
                    uri = volume.get_activation_uri()
                    break
                else:
                        raise ValueError, "Cannot find URI to open for drive '%s'" % drive
Comment 2 Bjarte Aarmo Lund 2007-04-24 17:28:19 UTC
Created attachment 86927 [details] [review]
Indents the function properly

Same as above comment, only in patch-format
Comment 3 Tony Tsui 2007-04-26 07:18:25 UTC
Thanks for the patch. This bug has already been fixed in SVN.


*** This bug has been marked as a duplicate of 421620 ***