[1.1.2] Can't add hotkey without modifier --- fixed 2018-02-20 build #112

Bug #1750498 reported by Alex Lunyov on 2018-02-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

Bug Description

Hi!

There is an issue in the last Feb 2018 1.1.2 nightly version. Hotkey problem.

My code:

###################################
def Handl(event):
    print 123

Env.addHotkey(Key.F10, 0, Handl)

while True:
    wait(0.1)
###################################

Console output:

[info] HotkeyManager: add Hotkey: F10 (121, 0)
[error] HotkeyManager: addHotkey: failed

[error] script [ Безымянный ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\Users\Lunyov\AppData\Local\Temp\Sikulix_164905349\sikuli-7323448507405961629.py", line 7, in <module> File "C:\Users\Lunyov\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 67, in wait java.lang.ThreadDeath
at java.lang.Thread.stop(Unknown Source)
at org.sikuli.ide.SikuliIDE$ButtonRun.stopRunScript(SikuliIDE.java:2598)
at org.sikuli.ide.SikuliIDE.onStopRunning(SikuliIDE.java:2945)
at org.sikuli.ide.SikuliIDE$13.hotkeyPressed(SikuliIDE.java:2936)
at org.sikuli.hotkey.HotkeyController$HotKeyListenerWrapper.onHotKey(HotkeyController.java:155)
at com.tulskiy.keymaster.common.Provider$HotKeyEvent.run(Provider.java:148)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.ThreadDeath: java.lang.ThreadDeath

thanks for finding.
I am working on it.

summary: - Can't add hotkey in the last 1.1.2 nightly
+ [1.1.2] Can't add hotkey without modifier
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.2
RaiMan (raimund-hocke) wrote :

please try out

summary: - [1.1.2] Can't add hotkey without modifier
+ [1.1.2] Can't add hotkey without modifier --- fixed 2018-02-20 build
+ #112
Changed in sikuli:
importance: High → Critical
Alex Lunyov (lunyov-av) wrote :

Now it works well, thank you!

RaiMan (raimund-hocke) wrote :

Thanks for testing and feedback.
All the best.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers