Public bug reported:

In a fresh install of Ubuntu 14.04.2 LTS, the autokey-gtk application
(0.94.1-4) crashes when the paste method is used.  This causes keyboard
input to freeze in the application where the autokey was used, and if
typed again, in all applications.  Here is the debug output from using
the autokey twice in gedit (the traceback is after the first time, and
autokey-gtk was killed after the second time to get input back in all
applications):


2015-05-30 00:34:46,019 DEBUG - interface - Grabbing hotkey: [u'<shift>', 
u'<super>'] u'k'
2015-05-30 00:34:46,019 DEBUG - interface - Grabbing hotkey: [u'<shift>', 
u'<super>'] u'k'
2015-05-30 00:34:46,019 DEBUG - interface - Grabbing hotkey: [u'<ctrl>'] u'<f7>'
2015-05-30 00:34:53,340 DEBUG - service - Received mouse click - resetting 
buffer
2015-05-30 00:34:55,201 DEBUG - service - Received mouse click - resetting 
buffer
2015-05-30 00:34:57,020 DEBUG - service - Raw key: u';', modifiers: [], Key: ;
2015-05-30 00:34:57,020 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:57,020 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:57,020 DEBUG - service - Input stack at end of 
handle_keypress: [u';']
2015-05-30 00:34:57,191 DEBUG - service - Raw key: u';', modifiers: [], Key: ;
2015-05-30 00:34:57,191 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:57,191 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:57,191 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';']
2015-05-30 00:34:57,518 DEBUG - service - Raw key: u's', modifiers: [], Key: s
2015-05-30 00:34:57,518 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:57,518 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:57,519 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's']
2015-05-30 00:34:57,684 DEBUG - service - Raw key: u'h', modifiers: [], Key: h
2015-05-30 00:34:57,684 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:57,684 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:57,684 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h']
2015-05-30 00:34:57,942 DEBUG - service - Raw key: u'r', modifiers: [], Key: r
2015-05-30 00:34:57,942 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:57,942 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:57,942 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h', u'r']
2015-05-30 00:34:58,062 DEBUG - service - Raw key: u'u', modifiers: [], Key: u
2015-05-30 00:34:58,062 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:58,062 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:58,063 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h', u'r', u'u']
2015-05-30 00:34:58,279 DEBUG - service - Raw key: u'g', modifiers: [], Key: g
2015-05-30 00:34:58,279 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:58,279 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:58,279 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h', u'r', u'u', u'g']
2015-05-30 00:34:59,826 DEBUG - service - Raw key: '<enter>', modifiers: [], 
Key: <enter>
2015-05-30 00:34:59,826 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:34:59,826 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:34:59,827 DEBUG - service - Input stack at end of 
handle_keypress: []
2015-05-30 00:34:59,827 DEBUG - service - Ignored locking error in 
handle_keypress
2015-05-30 00:34:59,827 DEBUG - iomediator - Send via clipboard
2015-05-30 00:34:59,827 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,835 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,836 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,836 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,836 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,852 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,853 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,853 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:34:59,864 DEBUG - interface - Sending string: 
u'\xaf\\(\u30c4)/\xaf'
2015-05-30 00:34:59,870 ERROR - interface - Error in X event loop thread
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autokey/interface.py", line 116, in 
__eventLoop
    method(*args)
  File "/usr/lib/python2.7/dist-packages/autokey/interface.py", line 500, in 
__sendStringClipboard
    self.__fillClipboard(string)
  File "/usr/lib/python2.7/dist-packages/autokey/interface.py", line 537, in 
__fillClipboard
    self.clipBoard.set_text(string.encode("utf-8"))
TypeError: set_text() takes exactly 3 arguments (2 given)
2015-05-30 00:35:03,646 DEBUG - service - Raw key: u';', modifiers: [], Key: ;
2015-05-30 00:35:03,646 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:03,646 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:03,647 DEBUG - service - Input stack at end of 
handle_keypress: [u';']
2015-05-30 00:35:03,816 DEBUG - service - Raw key: u';', modifiers: [], Key: ;
2015-05-30 00:35:03,817 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:03,817 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:03,817 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';']
2015-05-30 00:35:04,596 DEBUG - service - Raw key: u's', modifiers: [], Key: s
2015-05-30 00:35:04,596 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:04,596 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:04,597 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's']
2015-05-30 00:35:04,763 DEBUG - service - Raw key: u'h', modifiers: [], Key: h
2015-05-30 00:35:04,763 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:04,763 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:04,763 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h']
2015-05-30 00:35:04,931 DEBUG - service - Raw key: u'r', modifiers: [], Key: r
2015-05-30 00:35:04,931 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:04,931 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:04,931 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h', u'r']
2015-05-30 00:35:05,067 DEBUG - service - Raw key: u'u', modifiers: [], Key: u
2015-05-30 00:35:05,067 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:05,067 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:05,067 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h', u'r', u'u']
2015-05-30 00:35:05,250 DEBUG - service - Raw key: u'g', modifiers: [], Key: g
2015-05-30 00:35:05,250 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:05,250 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:05,251 DEBUG - service - Input stack at end of 
handle_keypress: [u';', u';', u's', u'h', u'r', u'u', u'g']
2015-05-30 00:35:06,240 DEBUG - service - Raw key: '<enter>', modifiers: [], 
Key: <enter>
2015-05-30 00:35:06,241 DEBUG - service - Window visible title: u'*Untitled 
Document 1 - gedit', Window class: u'gedit.Gedit'
2015-05-30 00:35:06,241 DEBUG - service - No phrase/script matched hotkey
2015-05-30 00:35:06,241 DEBUG - service - Input stack at end of 
handle_keypress: []
2015-05-30 00:35:06,241 DEBUG - service - Ignored locking error in 
handle_keypress
2015-05-30 00:35:06,241 DEBUG - iomediator - Send via clipboard
2015-05-30 00:35:06,241 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,241 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,242 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,250 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,250 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,250 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,251 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,267 DEBUG - interface - Send special key: ['<backspace>']
2015-05-30 00:35:06,267 DEBUG - interface - Sending string: 
u'\xaf\\(\u30c4)/\xaf'
Aborted (core dumped)


This appears to be related to 
https://code.google.com/p/autokey/issues/detail?id=211

Patch to resolve the issue in Ubuntu 14.04.2 LTS is attached, but there
may be more places where set_text() is not passed the appropriate number
of arguments:


$ grep -Hrn "set_text(" /usr/lib/python2.7/dist-packages/autokey/ | wc -l
37

** Affects: autokey (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "autokey_paste_fix.patch"
   
https://bugs.launchpad.net/bugs/1460255/+attachment/4406876/+files/autokey_paste_fix.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1460255

Title:
  paste method freezes autokey-gtk in Ubuntu 14.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autokey/+bug/1460255/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to