-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault on keyevents test. #74
Comments
The same happens to me. Built with X and no SDL on Devuan Ceres, using gcc. I used the git clone of April 7. The behavior is quite random. Usually I get a seg fault as soon as I release a key on the keyevent test, but sometimes the program continues to work. In all cases, however, it seems that the event is processed twice. Furthermore, ch code given on key-up is not correct, and is always the same for the same session, independently of the key. I'm attaching a couple of screenshots that could clarify what actually happens, when the program does not seg fault: Moreover, I added some print on stderr to First case: press and release 'a'
Second case: press Rshift
The same happens not only for any Ctrl, Shitf etc., but also for any key that is not within the ASCII range. I tried for example with ù and ò. Third case: press 'a', give focus to another window, give focus to keyevent test and press 's'
|
Example usage: `./agartest -d glx(no-im) keyevents` See Issue #74 (Segmentation fault on keyevents test). git-svn-id: file:///home/dev/agar/trunk@11247 86a84d31-9702-0410-8f1e-a60cab7bd424
This may possibly be due to X input methods. Could you try the test again with X input methods disabled? In revision 32b0acb, I've added an option If you run |
Check the numerical status code of `XwcLookupString()` as well as its return value. Should resolve Issue #74. Thanks @tsesani and @scaramacai! git-svn-id: file:///home/dev/agar/trunk@11248 86a84d31-9702-0410-8f1e-a60cab7bd424
Revision 8a1ca67 should hopefully fix the problem. Can you confirm that it does for you? |
Thank you very much for your quick reply! Things are going better. Segmentation faults are disappeared. The problem that the key-(up/down) is processed twice still exists, however when the 'Tab' key is pressed and released, for some reason I don't understand, the test comes to a state where there is only one "key-down, key-up" per key, and from that point on all seems to go fine. Actually, the Tab key is the only one that gives the right response since the very beginning of the test. I was also able to put the test in the right state by:
I tested this with both -d glx and with -d 'glx(no-im)' as suggested by you. I also tried to disable the global keys bindings in |
News 2024-04-12Recompiled using clang (but don't think this is the point) and also added SDL2. The behavior is the same as before (tested glx, sdl2mw, and sdl2fb) but discovered that clicking any mouse button (1-5) one or more times the problem disappears (as it is when pressing and releasing Tab). Hope this can help to fix the code. |
Devuan Chimaera 4.0 and Daedalus 5.0 with all updates.
Could be caused by the latest security updates for xorg.
Built with X and no SDL from 1.7.0 release and current git clone.
The text was updated successfully, but these errors were encountered: