[Python-modules-team] Bug#662253: backtraces upon using XF86AudioRaiseVolume buttons: unichr() arg not in range(0x110000)

Yaroslav Halchenko debian at onerussian.com
Mon Mar 5 00:45:09 UTC 2012


Package: python-pyglet
Version: 1.1.4.dfsg-2
Severity: normal

testing new version of psychopy which uses pyglet and just randomly pressed
volume up buttong available on my thinkpad which generates following xev
information:

KeyPress event, serial 29, synthetic NO, window 0x7800001,
    root 0xb2, subw 0x0, time 698318837, (93,78), root:(94,79),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x7800001,
    root 0xb2, subw 0x0, time 698319005, (93,78), root:(94,79),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False


that lead to crash of the app with following backtrace:

r/lib/pymodules/python2.7/psychopy/demos/coder/stimuli/dot_gabors.py #####
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/psychopy/demos/coder/stimuli/dot_gabors.py", line 27, in <module>
    myWin.flip()#redraw the buffer
  File "/usr/lib/pymodules/python2.7/psychopy/visual.py", line 464, in flip
    self.winHandle.dispatch_events()#this might need to be done even more often than once per frame?
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1140, in dispatch_events
    self.dispatch_platform_event(e)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1169, in dispatch_platform_event
    event_handler(e)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 1326, in _event_key
    text, symbol = self._event_text_symbol(ev)
  File "/usr/lib/pymodules/python2.7/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)

pydb-ing provides:

(Pydb) p symbol
269025043L
(Pydb) p type(symbol)
<type 'long'>


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental'), (100, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-pyglet depends on:
ii  libgl1-mesa-glx [libgl1]  7.11-5  
ii  libglu1-mesa [libglu1]    7.11-5  
ii  libgtk2.0-0               2.24.8-3
ii  python [python-ctypes]    2.7.2-9 
ii  python-support            1.0.14  

Versions of packages python-pyglet recommends:
ii  libasound2  1.0.24.1-2
ii  libopenal1  1:1.13-2  

python-pyglet suggests no packages.

-- no debconf information





More information about the Python-modules-team mailing list