View Issue Details

IDProjectCategoryView StatusLast Update
0004455Spring engineGeneralpublic2014-11-16 11:47
ReporterGoogle_Frog Assigned Tocleanrock  
PrioritynormalSeverityminorReproducibilityrandom
Status resolvedResolutionfixed 
Product Version97.0.1+git 
Target Version99.0 
Summary0004455: Stuck in drawing mode
DescriptionOccasionally I get stuck in drawing and marker placement mode as if my backquote key is stuck down. I can tell because clicking on the map causes lines to appear. Pressing the key again fixes this. Other people report this as well.

ZK has a widget which displays a tooltip for drawing mode. It uses Spring.GetKeyState(KEYSYMS.BACKQUOTE) so I can say that GetKeyState correctly gets the state of the backquote key because when I am stuck in drawing mode the tooltip does not appear.
TagsNo tags attached.
Checked infolog.txt for Errors

Relationships

has duplicate 0004577 resolvedabma players frequently get stuck in "drawing" mode 

Activities

cleanrock

2014-06-25 09:47

reporter   ~0013349

I get stuck in draw mode doing the following:
1. hold down draw key
2. press enter to open chat line
3. release draw key

jK

2014-06-26 08:02

developer   ~0013354

won't fix too complicated, and too rare (` + enter key are far away, you need 2 hands to do so)

Jools

2014-07-01 10:36

reporter   ~0013400

` + enter key are not far away. They are right next to each other. Only backspace is in between.

Google_Frog

2014-07-01 12:41

reporter   ~0013401

cleanrocks method for reproducing this works for me. I also sometimes get stuck in draw mode without touching the ` key.

abma

2014-07-17 10:37

administrator   ~0013430

pressing ^ and enter at the same time already "enables" this mode for me. doesn't matter what is released first. even after pressing enter a second time drawmode is still enabled without having ^ pressed.

Google_Frog

2014-10-09 14:12

reporter   ~0013722

I should reiterate that cleanrock's method of reproducing the issue does not accurately present the problem. It is NOT to do with accidentally hitting the ` key. The problem randomly occurs without touching that key at all.

abma

2014-10-09 14:33

administrator   ~0013723

i'm pretty sure its not random... maybe some other key-combination triggers it?

silentwings

2014-10-09 14:42

reporter   ~0013724

Last edited: 2014-10-09 14:43

> won't fix too complicated, and too rare (` + enter key are far away, you need 2 hands to do so)

They are far away but in normal usage of SPring you can press them accidentally together very easily. E.g. when you set a mapmark but dont write any words into it you would press ` and then enter in quick succession.

This is affecting many players with 98.0.

abma

2014-10-09 14:48

administrator   ~0013726

Last edited: 2014-10-09 14:48

` and enter are not far away:

https://en.wikipedia.org/wiki/German_keyboard_layout#mediaviewer/File:KB_Germany.svg

Google_Frog

2014-10-09 15:28

reporter   ~0013729

` is on the top left of my keyboard.

silentwings since you are playing a lot you could try a few different things:
 * Unbind drawinmap.
 * Bind something else to `.
 * Bind drawinmap to a different key.

silentwings

2014-10-09 15:52

reporter   ~0013730

Last edited: 2014-10-11 03:34

Afaics it's clear that this is an easily reproducible bad bug, so I don't think anymore testing is needed (?).

If I come up with a game-side workaround (I didn't look, as yet) I'll put it on the forums for all.

jamerlan

2014-10-10 15:20

reporter   ~0013746

in BA 8.02 I pressed 't' and it stuck in this mode. Onlt /trackoff helped me
not ESC, not 't' again and even "enter" - nothing can help to get out of this mode

silentwings

2014-10-11 03:34

reporter   ~0013752

Last edited: 2014-10-26 01:40

workaround (not 100% successful but does cover many cases):

include('keysym.h.lua')
local BACKQUOTE = KEYSYMS.BACKQUOTE
local BACKSLASH = KEYSYMS.BACKSLASH
local PAR = KEYSYMS.WORLD_23
local RETURN = KEYSYMS.RETURN
function widget:KeyPress(key, mods, isRepeat)
    if key==RETURN and (Spring.GetKeyState(BACKQUOTE) or Spring.GetKeyState(BACKSLASH) or Spring.GetKeyState(PAR)) then
        return true
    end
end

There are definately other rarer combinations of keys that cause it, but so far I have failed to find out what they are.

Google_Frog

2014-11-01 11:48

reporter   ~0013792

Last edited: 2014-11-01 11:53

This still occurs frequently in 98.0-113 with the above code from silentwings. By 'frequently' I mean that I know it happened at least twice in this game: http://zero-k.info/Battles/Detail/305430 (one for dark_gf and one for me).

For me it occurred just after sending a chat message with a ? at the end. I know I did not touch any marker drawing hotkey.

Issue History

Date Modified Username Field Change
2014-06-25 08:26 Google_Frog New Issue
2014-06-25 09:47 cleanrock Note Added: 0013349
2014-06-26 08:02 jK Note Added: 0013354
2014-07-01 10:36 Jools Note Added: 0013400
2014-07-01 12:41 Google_Frog Note Added: 0013401
2014-07-17 10:37 abma Note Added: 0013430
2014-10-09 14:12 Google_Frog Note Added: 0013722
2014-10-09 14:33 abma Note Added: 0013723
2014-10-09 14:42 silentwings Note Added: 0013724
2014-10-09 14:42 silentwings Note Edited: 0013724
2014-10-09 14:43 silentwings Note Edited: 0013724
2014-10-09 14:45 abma Relationship added has duplicate 0004577
2014-10-09 14:48 abma Note Added: 0013726
2014-10-09 14:48 abma Note Edited: 0013726
2014-10-09 15:28 Google_Frog Note Added: 0013729
2014-10-09 15:52 silentwings Note Added: 0013730
2014-10-09 16:23 silentwings Note Edited: 0013730
2014-10-09 16:38 silentwings Note Edited: 0013730
2014-10-09 22:29 silentwings Note Edited: 0013730
2014-10-10 15:20 jamerlan Note Added: 0013746
2014-10-10 15:28 abma Target Version => 99.0
2014-10-11 03:34 silentwings Note Edited: 0013730
2014-10-11 03:34 silentwings Note Added: 0013752
2014-10-11 03:34 silentwings Note Edited: 0013752
2014-10-11 03:36 silentwings Note Edited: 0013752
2014-10-20 23:44 silentwings Note Edited: 0013752
2014-10-26 01:40 silentwings Note Edited: 0013752
2014-11-01 11:48 Google_Frog Note Added: 0013792
2014-11-01 11:53 Google_Frog Note Edited: 0013792
2014-11-16 11:47 cleanrock Changeset attached => spring develop 6d98087a
2014-11-16 11:47 cleanrock Assigned To => cleanrock
2014-11-16 11:47 cleanrock Status new => resolved
2014-11-16 11:47 cleanrock Resolution open => fixed