Menu

#20 Fn keys crash in linux

open
nobody
None
5
2011-06-09
2011-06-09
Anonymous
No

On linux (32bit, archlinux) the brainworkshop crashes everytime I use Fn keys to alter volume. Otherwise the program runs nice.
Attaching the crash msg.
Thanks for a great program! :)

$ brainworkshop &
[1] 11408
[marek@beruska ~]$ AL lib: pulseaudio.c:612: Context did not connect: Connection refused
Traceback (most recent call last):
File "/usr/share/brainworkshop/brainworkshop.pyw", line 4348, in <module>
pyglet.app.run()
File "/usr/share/brainworkshop/pyglet/app/__init__.py", line 264, in run
EventLoop().run()
File "/usr/share/brainworkshop/pyglet/app/xlib.py", line 82, in run
window.dispatch_platform_event(e)
File "/usr/share/brainworkshop/pyglet/window/xlib/__init__.py", line 1169, in dispatch_platform_event
event_handler(e)
File "/usr/share/brainworkshop/pyglet/window/xlib/__init__.py", line 1326, in _event_key
text, symbol = self._event_text_symbol(ev)
File "/usr/share/brainworkshop/pyglet/window/xlib/__init__.py", line 1262, in _event_text_symbol
symbol = ord(unichr(symbol).lower())
ValueError: unichr() arg not in range(0x110000) (wide Python build)

[1]+ Exit 1 brainworkshop

Discussion

  • Jonathan Toomim

    Jonathan Toomim - 2011-12-29

    Looks like the Fn key is generating an extra wide unicode character, or something, and pyglet is choking on it. I'll forward this to Alex Holkner; maybe he can fix it, or at least use a try:...except:... block to turn this into a warning (and ignore the keypress) instead of a fatal error.

     
  • Marek Otahal, CTU Prague

    sounds reasonable, do you happen to know if it was implemented? I can still observe the crash on 2.8.1. Thanks

     

Log in to post a comment.