View Issue Details

IDProjectCategoryView StatusLast Update
0004442Spring engineGeneralpublic2015-01-07 11:36
Reportersilentwings Assigned Toabma  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version97.0.1+git 
Fixed in Version99.0 
Summary0004442: beep noise with alt+key in windows & windowed mode
DescriptionEverytime i give spring some input using alt + some key (e.g. alt + f to force gamestart, alt + -/+ to change gamespeed) Windows plays a "beep" noise - a noise that would normally only be played if some sort "input not accepted" error has occured.

I don't get a beep when double pressing alt to change chat mode and I don't get a beep when using alt+enter to maximise screen but I do get a beep when pressing alt+enter to un-maximise screen!

The input given always executes successfully; I have no idea why the beep occurs.

Tested with 97.0.1-20-gcd4602b. Win7, 64-bit.
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

silentwings

2014-06-29 20:01

reporter   ~0013391

This is still present in 97.0.1-126

abma

2014-07-07 19:56

administrator   ~0013422

maybe try /keydebug to get more info about keys pressed?!

silentwings

2014-07-07 21:53

reporter   ~0013423

Last edited: 2014-07-07 21:55

attached infolog of a single press of alt+f to forcestart a single player game (and a press of enter before that because i had to type /keydebug)

Beherith

2014-07-25 14:29

reporter   ~0013438

I know this sounds stupid, but have you double checked windows accessibilty options like stickykeys et al? They can sometimes be turned on by normal game activity like spamming shift or alt 5 times.

Google_Frog

2014-07-26 09:52

reporter   ~0013441

Open the windows volume mixer and mute Spring to make sure that the sound is coming from Spring.

silentwings

2014-07-27 21:06

reporter   ~0013445

Nice idea GF - turns out the sound does play even when Spring is muted (which is what I'd have expected since it is a normal Windows sound to make).

But, outside of Spring, the same key combinations do not cause any sound to play and I have no "ease of access options" at all enabled, so I strongly suspect that Spring<->Windows interaction is to blame.

abma

2014-07-27 22:33

administrator   ~0013446

doesn't happen in 96.0 for me: very likely because of the switch to sdl2

i get no beeps in fullscreen mode, beeps only in windowed mode. grabinput disabled/enabled doesn't change behaviour.

abma

2014-07-28 00:35

administrator   ~0013447

can be reproduced by running

spring.exe -w and pressing alt++ in the menu.

abma

2014-07-28 02:20

administrator   ~0013448

doesn't beep with WindowBorderless = 1

abma

2014-08-03 20:02

administrator   ~0013464

very likely a SDL2 bug, i've reported it upstream: https://bugzilla.libsdl.org/show_bug.cgi?id=2669

abma

2014-08-04 23:03

administrator   ~0013465

Last edited: 2014-08-05 01:12

chromium has this bug, too it seems:

https://code.google.com/p/chromium/issues/detail?id=105500

it doesn't beep when SDL captures WM_SYSCHAR, but this is the wrong approach, i guess TranslateMessage() needs to be called in WM_SYSKEYDOWN

see http://msdn.microsoft.com/en-us/library/windows/desktop/ms646357%28v=vs.85%29.aspx

edit: some solution in delphi: https://stackoverflow.com/questions/24314154/still-getting-the-ding-sound-even-though-key-0

mooore info: http://lists.libsdl.org/htdig.cgi/sdl-libsdl.org/2012-April/650284.html

abma

2014-08-05 15:09

administrator   ~0013470

currently i'm out of ideas how to fix it, i've an env to easly test changes in SDL but idk whats really wrong, the SDL/Windows code is difficult to understand.

now the question is, is this a release blocker or not? imo very few people will be affected, but idk. thoughts?

abma

2014-08-20 16:37

administrator   ~0013540

no goal for 98.0 as its a SDL bug and shouldn't affect a lot of people (just switch back to fullscreen if needed)

silentwings

2014-08-20 22:56

reporter   ~0013542

For me this is not a release blocker.

silentwings

2014-09-24 00:53

reporter   ~0013661

Last edited: 2014-09-24 01:01

This is still present in 97.0.1-425, behe can also reproduce with any alt+key combo (and I suspect so can all win users).

abma

2014-09-24 02:13

administrator   ~0013662

Last edited: 2014-09-24 02:15

no need to check this bug until the upstream bug isn't fixed. :)

upstream some patch exists, but this would require to patch & compile SDL + update mingwlibs + test it = A LOT OF WORK

abma

2015-01-02 17:14

administrator   ~0013879

does it work with this file?

https://github.com/spring/mingwlibs/blob/master/dll/SDL2.dll?raw=true

compiled SDL2.0.3 with the patch from https://bugzilla.libsdl.org/show_bug.cgi?id=2669.

abma

2015-01-02 17:14

administrator   ~0013880

just replace the existing SDL2.dll in your spring dir.

silentwings

2015-01-07 10:31

reporter   ~0013890

This seems to be fixed in 98.0.1-250

abma

2015-01-07 11:36

administrator   ~0013892

https://github.com/spring/mingwlibs/commit/d7cea7396931633fde05035c3c9d0f395817def3

Issue History

Date Modified Username Field Change
2014-06-17 13:53 silentwings New Issue
2014-06-29 20:01 silentwings Note Added: 0013391
2014-07-07 19:56 abma Note Added: 0013422
2014-07-07 21:53 silentwings Note Added: 0013423
2014-07-07 21:53 silentwings File Added: infolog.txt
2014-07-07 21:55 silentwings Note Edited: 0013423
2014-07-25 14:29 Beherith Note Added: 0013438
2014-07-26 09:52 Google_Frog Note Added: 0013441
2014-07-27 21:06 silentwings Note Added: 0013445
2014-07-27 22:03 abma Target Version => 98.0
2014-07-27 22:03 abma Summary beep noise with alt+key in windows => beep noise with alt+key in windows & windowed mode
2014-07-27 22:33 abma Note Added: 0013446
2014-07-28 00:35 abma Note Added: 0013447
2014-07-28 02:20 abma Note Added: 0013448
2014-08-03 20:02 abma Note Added: 0013464
2014-08-04 23:03 abma Note Added: 0013465
2014-08-04 23:12 abma Note Edited: 0013465
2014-08-05 00:26 abma Note Edited: 0013465
2014-08-05 01:12 abma Note Edited: 0013465
2014-08-05 15:09 abma Note Added: 0013470
2014-08-20 16:37 abma Note Added: 0013540
2014-08-20 16:37 abma Target Version 98.0 =>
2014-08-20 22:56 silentwings Note Added: 0013542
2014-09-24 00:53 silentwings Note Added: 0013661
2014-09-24 01:01 silentwings Note Edited: 0013661
2014-09-24 02:13 abma Note Added: 0013662
2014-09-24 02:15 abma Note Edited: 0013662
2015-01-02 17:14 abma Note Added: 0013879
2015-01-02 17:14 abma Assigned To => abma
2015-01-02 17:14 abma Status new => feedback
2015-01-02 17:14 abma Note Added: 0013880
2015-01-07 10:31 silentwings Note Added: 0013890
2015-01-07 10:31 silentwings Status feedback => assigned
2015-01-07 11:36 abma Note Added: 0013892
2015-01-07 11:36 abma Status assigned => resolved
2015-01-07 11:36 abma Resolution open => fixed
2015-01-07 11:36 abma Fixed in Version => 99.0