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

Bug #1750498 reported by Alex Lunyov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
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

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.2] Can't add hotkey without modifier

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
Revision history for this message
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
Revision history for this message
Alex Lunyov (lunyov-av) wrote :

Now it works well, thank you!

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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