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 633103 - Can't use "stop tracking" button
Can't use "stop tracking" button
Status: RESOLVED FIXED
Product: hamster-applet
Classification: Deprecated
Component: general
2.32.x
Other Linux
: Normal major
: ---
Assigned To: hamster-applet-maint
hamster-applet-maint
Depends on:
Blocks:
 
 
Reported: 2010-10-25 13:44 UTC by Giacomo Rizzo
Modified: 2010-11-04 00:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Giacomo Rizzo 2010-10-25 13:44:08 UTC
When I click the "stop tracking" button, nothing happens.
Switching between tasks works.

[alt-os@eracle ~]$ /usr/lib/hamster-applet/hamster-applet -w

** (hamster-applet:24940): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (hamster-applet:24940): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (hamster-applet:24940): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  • File "/usr/lib/python2.7/site-packages/hamster/applet.py", line 683 in on_stop_tracking_clicked
    runtime.storage.stop_tracking()
  • File "/usr/lib/python2.7/site-packages/hamster/client.py", line 196 in stop_tracking
    return self.conn.StopTracking(end_time)
  • File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140 in __call__
    **keywords)
  • File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630 in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlite3.ProgrammingError: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/site-packages/hamster/storage.py", line 172, in StopTracking
    self.__touch_fact(facts[-1], end_time)
  File "/usr/lib/python2.7/site-packages/hamster/db.py", line 388, in __touch_fact
    self.execute(query, (end_time, fact['id']))
  File "/usr/lib/python2.7/site-packages/hamster/db.py", line 921, in execute
    cur.execute(state, param)
ProgrammingError: Cannot operate on a closed cursor.

^C2010-10-25 15:35:39,674 ERROR: Traceback (most recent call last):
  File "/usr/lib/hamster-applet/hamster-applet", line 124, in <module>
    gtk.main()
KeyboardInterrupt
Comment 1 Toms Bauģis 2010-10-25 14:33:28 UTC
are you reporting against unmodified current git version?
Comment 2 ayr035 2010-10-26 00:47:10 UTC
I can also confirm this.  I get the error with hamster-applet 2.32 and with the latest hampster-applet-git (checked out about 5min ago).  The bug is also triggered when trying to stop a task via hamster-cli.

Traceback (most recent call last):
  • File "/usr/bin/hamster-time-tracker", line 421 in on_stop_tracking_clicked
    runtime.storage.stop_tracking()
  • File "/usr/lib/python2.7/site-packages/hamster/client.py", line 198 in stop_tracking
    return self.conn.StopTracking(end_time)
  • File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140 in __call__
    **keywords)
  • File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630 in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlite3.ProgrammingError: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/site-packages/hamster/storage.py", line 172, in StopTracking
    """Remove fact from storage by it's ID"""
  File "/usr/lib/python2.7/site-packages/hamster/db.py", line 388, in __touch_fact
    WHERE id = ?
  File "/usr/lib/python2.7/site-packages/hamster/db.py", line 921, in execute
ProgrammingError: Cannot operate on a closed cursor.
Comment 3 Toms Bauģis 2010-10-27 11:52:11 UTC
can't reproduce it here neither with git master nor 2-32.


re comment 2 - please be aware that the client is now detached from the storage and if you are running a newer version, make sure that you are also running the newest storage service. that is

./src/hamster-service

./src/hamster-applet -w


otherwise the applet will talk to the currently active and installed service.
also it could be that the previous service on installation did not go away.

please try killall hamster-service and then try stopping an activity again
Comment 4 Giacomo Rizzo 2010-10-27 14:36:13 UTC
(In reply to comment #1)
> are you reporting against unmodified current git version?

No, I'm using the ArchLinux package, 2.32.0 version (http://www.archlinux.org/packages/extra/any/hamster-applet/)

The storage service is working, since I can just edit the task, unflagging "in progress" and the job is stopped (and saved)...
Comment 5 Ionut Biru 2010-10-27 15:09:28 UTC
@Toms maybe is reproducible only when python 2.7 is involved?
Comment 6 maxx 2010-11-03 20:12:44 UTC
Also reported on Fedora 14 which uses Python 2.7. https://bugzilla.redhat.com/show_bug.cgi?id=640921

That bug lists hamster-applet 2.31.91 but the problem also occurs with 2.32.0
Comment 7 ayr035 2010-11-03 20:32:00 UTC
here is the bug report for archlinux.  It includes a simple patch which fixes the issue (at least for archlinux users).  I have posted the relevant part of the discussion+patch.

https://bugs.archlinux.org/task/21355

and here is the patch with comment by arch-user Segey Tereschenko (partizan).
https://bugs.archlinux.org/task/21355?getfile=5926

"hmmm, database cursor is closed? we just try open it again :)
i don't know why it closed, but if we open it again, all works. attached patch"
Comment 8 Toms Bauģis 2010-11-04 00:53:24 UTC
verified and resolved 
http://git.gnome.org/browse/hamster-applet/commit/?id=f401d649318e0e01ccefeb99a398a6f32fd820a8

fix pushed to git master and gnome-2-32. 
2.32.1 is due in Nov 17