{"action":"created","issue":{"url":"https://api.github.com/repos/autokey/autokey/issues/95","repository_url":"https://api.github.com/repos/autokey/autokey","labels_url":"https://api.github.com/repos/autokey/autokey/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/autokey/autokey/issues/95/comments","events_url":"https://api.github.com/repos/autokey/autokey/issues/95/events","html_url":"https://github.com/autokey/autokey/issues/95","id":249885409,"number":95,"title":"Autokey just stops expanding, narrowed it down to UPPER case issue","user":{"login":"nick-s-b","id":7957590,"avatar_url":"https://avatars3.githubusercontent.com/u/7957590?v=4","gravatar_id":"","url":"https://api.github.com/users/nick-s-b","html_url":"https://github.com/nick-s-b","followers_url":"https://api.github.com/users/nick-s-b/followers","following_url":"https://api.github.com/users/nick-s-b/following{/other_user}","gists_url":"https://api.github.com/users/nick-s-b/gists{/gist_id}","starred_url":"https://api.github.com/users/nick-s-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nick-s-b/subscriptions","organizations_url":"https://api.github.com/users/nick-s-b/orgs","repos_url":"https://api.github.com/users/nick-s-b/repos","events_url":"https://api.github.com/users/nick-s-b/events{/privacy}","received_events_url":"https://api.github.com/users/nick-s-b/received_events","type":"User","site_admin":false},"labels":[{"id":655762516,"url":"https://api.github.com/repos/autokey/autokey/labels/autokey-gtk","name":"autokey-gtk","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-13T17:01:58Z","updated_at":"2018-03-05T19:18:37Z","closed_at":null,"author_association":"NONE","body":"## Classification:\r\n\r\nBug\r\n\r\n## Reproducibility:\r\n\r\nAlmost every day after few hours of use.\r\n\r\n## Summary\r\n\r\nI have noticed that Autokey just stops expanding after some time has passed (usually hours). It has baffled me for weeks and I've basically resorted to restarting it once it stopped working. Finally today, I spent some time trying to track down the issue and have started Autokey from the command line with verbose argument.\r\n\r\nEvery now and then, I'd try Autokey and see if it still expanded. After a while, Autokey stopped working and I checked the output. This is what I saw when I tried to expand the \"expansion1\" phrase that I setup earlier:\r\n\r\n````\r\n2017-08-13 10:21:29,843 DEBUG - service - Raw key: '<backspace>', modifiers: [], Key: <backspace>\r\n2017-08-13 10:21:29,843 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:29,843 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:30,085 DEBUG - service - Raw key: 'a', modifiers: [], Key: E\r\n2017-08-13 10:21:30,085 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:30,085 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:30,085 DEBUG - service - Input stack at end of handle_keypress: deque(['E'], maxlen=150)\r\n2017-08-13 10:21:30,268 DEBUG - service - Raw key: 'p', modifiers: [], Key: X\r\n2017-08-13 10:21:30,268 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:30,268 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:30,269 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X'], maxlen=150)\r\n2017-08-13 10:21:30,455 DEBUG - service - Raw key: 'p', modifiers: [], Key: P\r\n2017-08-13 10:21:30,455 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:30,455 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:30,456 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P'], maxlen=150)\r\n2017-08-13 10:21:30,652 DEBUG - service - Raw key: 'l', modifiers: [], Key: A\r\n2017-08-13 10:21:30,652 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:30,652 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:30,653 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A'], maxlen=150)\r\n2017-08-13 10:21:30,782 DEBUG - service - Raw key: 'e', modifiers: [], Key: N\r\n2017-08-13 10:21:30,782 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:30,782 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:30,783 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A', 'N'], maxlen=150)\r\n2017-08-13 10:21:30,985 DEBUG - service - Raw key: 'h', modifiers: [], Key: S\r\n2017-08-13 10:21:30,985 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:30,985 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:30,986 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A', 'N', 'S'], maxlen=150)\r\n2017-08-13 10:21:31,114 DEBUG - service - Raw key: 'a', modifiers: [], Key: I\r\n2017-08-13 10:21:31,115 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:31,115 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:31,115 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A', 'N', 'S', 'I'], maxlen=150)\r\n2017-08-13 10:21:31,214 DEBUG - service - Raw key: 't', modifiers: [], Key: O\r\n2017-08-13 10:21:31,214 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:31,214 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:31,214 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A', 'N', 'S', 'I', 'O'], maxlen=150)\r\n2017-08-13 10:21:31,330 DEBUG - service - Raw key: 'e', modifiers: [], Key: N\r\n2017-08-13 10:21:31,331 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:31,331 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:31,331 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A', 'N', 'S', 'I', 'O', 'N'], maxlen=150)\r\n2017-08-13 10:21:31,520 DEBUG - service - Raw key: 'r', modifiers: [], Key: 1\r\n2017-08-13 10:21:31,520 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:31,520 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:31,520 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A', 'N', 'S', 'I', 'O', 'N', '1'], maxlen=150)\r\n2017-08-13 10:21:31,641 DEBUG - service - Raw key: ' ', modifiers: [], Key:  \r\n2017-08-13 10:21:31,642 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n2017-08-13 10:21:31,642 DEBUG - service - No phrase/script matched hotkey\r\n2017-08-13 10:21:31,642 DEBUG - service - Input stack at end of handle_keypress: deque(['E', 'X', 'P', 'A', 'N', 'S', 'I', 'O', 'N', '1', ' '], maxlen=150)\r\n2017-08-13 10:21:31,995 DEBUG - iomediator - <ctrl> pressed\r\n2017-08-13 10:21:32,151 DEBUG - service - Raw key: '<backspace>', modifiers: ['<ctrl>'], Key: <backspace>\r\n2017-08-13 10:21:32,151 DEBUG - service - Window visible title: b'~/Documents/Text/test.txt \\xe2\\x80\\xa2 - Sublime Text', Window class: 'subl3.Subl3'\r\n````\r\n\r\nNotice how all the keys are capitals? The reason why it stops expanding is because it thinks I typed \"EXPANSION1\" and not \"expansion1\". I don't have \"ignore case\" selected.\r\n\r\nI was definitely typing in lower case. In fact, I have a CapsLock key disabled so it's impossible for me to type something in all upper case by accident. \r\n\r\nAnd notice how Autokey reports `Raw key: 'r', modifiers: [], Key: R` ? So no modifiers yet it converts it into upper case. When Autokey works properly, we see this for 'R': `Raw key: 'r', modifiers: ['<shift>'], Key: R`.\r\nThat's definitely a bug somewhere.\r\n\r\n\r\n## Version\r\n\r\nautokey-gtk 0.93.10\r\n\r\nInstalled via: AUR\r\n\r\nDistro: Arch\r\n\r\n## Workaround\r\nSelect ignore case for each abbreviation. But this might introduce some other issues (conflicts) depending on your abbreviations.\r\n\r\n**EDIT:** It happened again and now when I tried typing the abbreviation with a Shift key pressed, it worked. Here's the log: `Raw key: 'r', modifiers: ['<shift>'], Key: r`. Some key/mouse event triggers Autokey's modifiers flag and Autokey forgets to clear it and flip it back."},"comment":{"url":"https://api.github.com/repos/autokey/autokey/issues/comments/370531523","html_url":"https://github.com/autokey/autokey/issues/95#issuecomment-370531523","issue_url":"https://api.github.com/repos/autokey/autokey/issues/95","id":370531523,"user":{"login":"allanlaal","id":740826,"avatar_url":"https://avatars2.githubusercontent.com/u/740826?v=4","gravatar_id":"","url":"https://api.github.com/users/allanlaal","html_url":"https://github.com/allanlaal","followers_url":"https://api.github.com/users/allanlaal/followers","following_url":"https://api.github.com/users/allanlaal/following{/other_user}","gists_url":"https://api.github.com/users/allanlaal/gists{/gist_id}","starred_url":"https://api.github.com/users/allanlaal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanlaal/subscriptions","organizations_url":"https://api.github.com/users/allanlaal/orgs","repos_url":"https://api.github.com/users/allanlaal/repos","events_url":"https://api.github.com/users/allanlaal/events{/privacy}","received_events_url":"https://api.github.com/users/allanlaal/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T19:18:37Z","updated_at":"2018-03-05T19:18:37Z","author_association":"NONE","body":"same/similar issue in 0.90.4 - Autokey just stops expanding and needs to be restarted after X hours of use\r\n\r\ntoggling caps lock and writing stuff does not trigger this however"}}
{"actor":{"display_login":"allanlaal"}}