autokey-gtk blocks keyboard input on second attempt to execute python script in 12.10 quantal

Bug #1056799 reported by Jan Nekvasil
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
autokey (Ubuntu)
Fix Released
High
Thomas

Bug Description

autokey-gtk 0.90.1-1 in current Ubuntu 12.10 Quantal completely blocks keyboard input to X server when trying to execute python script for second time.

Steps to reproduce:

1) open arbitrary window where is possible to write some text.
2) call some autokey python script either by hotkey or abbreviation. The script crashes without any visible output to the text editing area.
3) call the same script again. Now the keyboard input doesn't work anymore; only help is to kill autokey process.

Terminal output:

Exception in thread Phrase-thread:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 464, in execute
    self.app.notify_error(_("The script '%s' encountered an error") % script.description)
  File "/usr/lib/python2.7/dist-packages/autokey/gtkapp.py", line 239, in notify_error
    self.notifier.notify_error(message)
  File "/usr/lib/python2.7/dist-packages/autokey/gtkui/notifier.py", line 145, in notify_error
    self.show_notify(message, Gtk.STOCK_DIALOG_ERROR)
  File "/usr/lib/python2.7/dist-packages/autokey/gtkui/notifier.py", line 156, in show_notify
    Gdk.threads_enter()
NameError: global name 'Gdk' is not defined

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in autokey (Ubuntu):
status: New → Confirmed
Luke Faraone (lfaraone)
tags: added: quantal
Revision history for this message
Luke Faraone (lfaraone) wrote :

Can you clarify whether this issue still persists in 0.91.1-1.1 on 12.10?

Changed in autokey (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Luke Faraone (lfaraone) wrote :

Ah, this required running the script more than just twice, and waiting some time.

Changed in autokey (Ubuntu):
importance: Undecided → High
status: Invalid → Confirmed
Revision history for this message
Luke Faraone (lfaraone) wrote :
Changed in autokey (Ubuntu):
status: Confirmed → Triaged
tags: added: bitesize
Revision history for this message
Thomas (tux12345) wrote :

This issue is fixed in 0.95.9, which is part of Ubuntu 20.04

Changed in autokey (Ubuntu):
assignee: nobody → Thomas (tux12345)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.