Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] waitforkeyrelease broken on some Linux boxes under unknown conditions (Issue #1245)

2022-09-11 Thread Ralph Versteegen via Ohrrpgce
And don't be so afraid of using gdb! I don't use a debugger enough either. Used 
to be more in the habit years ago...

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1245#issuecomment-1242939176
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] waitforkeyrelease broken on some Linux boxes under unknown conditions (Issue #1245)

2022-09-11 Thread Ralph Versteegen via Ohrrpgce
Hah, that's amusingly dumb. That's a decent solution, but also a timeout would 
be reasonable; `waitforkeyrelease` was only intended to wait a couple ticks 
anyway.

`waitforkeyrelease` waits for a joystick analog stick exactly when it would 
register as a keypress in-game; it calls `anykeypressed` which calls `keyval`.

Stuck joystick buttons seem to be a very common problem. This must be at least 
the 3rd or 4th time I've heard of someone being confused by a depressed button 
on a gamepad that's plugged in but not in use. And my own PS1 controller has a 
permanently stuck thumbstick button when I turn on analog mode. Maybe we should 
automatically detect and ignore stuck buttons?

Plus also checking joystick buttons in Custom seems to cause a lot of problems 
because of reasons like this, so as I said before it's safer to just disable it 
by default.



-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1245#issuecomment-1242938640
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] waitforkeyrelease broken on some Linux boxes under unknown conditions (Issue #1245)

2022-09-10 Thread James Paige via Ohrrpgce
Okay, this was a dumb one.

My gamepad had fallen face-down on the floor. The analog stick was being pushed 
just so very slightly. I guess it was not enough to trigger movement when 
playing the game, but it was enough to make waitforkeyrelease get stuck.

The reason that rebooting my computer helped a few times is probably because 
the cord was right next to my computer and I bumped it with my foot while 
leaning over to check the power light

I have worked around this bug by adding logic to waitforkeyrelease so that if 
it waits a really long time, it starts to display the name of the scancode it 
is waiting for

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1245#issuecomment-1242822947
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] waitforkeyrelease broken on some Linux boxes under unknown conditions (Issue #1245)

2022-09-10 Thread James Paige via Ohrrpgce
Closed #1245 as completed via 8266d2879fadb54611d4d930e5b5bb6338b4aefc.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1245#event-7361525287
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] waitforkeyrelease broken on some Linux boxes under unknown conditions (Issue #1245)

2022-09-10 Thread James Paige via Ohrrpgce
Okay, I actually am reopening this one now. It keeps happening, and it is 
driving me crazy. Also sometimes rebooting doesn't fix it... also at least 
once, I managed to fix it by opening a new terminal window instead of rebooting 
(but can't reproduce again). Seems to be triggered by going into powersave 
mode, as far as I can tell

Also, even more importantly, I did some troubleshooting, and narrowed this down 
to waitforkeyrelease -- it actually has nothing to do with spawning external 
processes, that command is just mainly used when spawning external processes, 
but the spam debug menu command that uses it also freezes in the same way

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1245#issuecomment-1242818138
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] waitforkeyrelease broken on some Linux boxes under unknown conditions (Issue #1245)

2022-09-10 Thread James Paige via Ohrrpgce
Reopened #1245.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1245#event-7361514271
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org