Vizible’s Blog

Xbmc on linux crash with my script

Posted in Logs by wearetherock on October 1, 2009
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  136 (XFree86-DRI)
  Minor opcode of failed request:  9 ()
  Resource id in failed request:  0x5200002
  Serial number of failed request:  29677
  Current serial number in output stream:  29677
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x4a00015
  Serial number of failed request:  19544
  Current serial number in output stream:  19546
X Error of failed request:  BadColor (invalid Colormap parameter)
  Major opcode of failed request:  79 (X_FreeColormap)
  Resource id in failed request:  0x4a00014
  Serial number of failed request:  19545
  Current serial number in output stream:  19548
CRITSEC[0x8beb5e4]: Trying to enter destroyed section.
CRITSEC[0x8beb5e4]: Trying to enter destroyed section.
CRITSEC[0x8beb5e4]: Trying to enter destroyed section.
CRITSEC[0x8beb670]: Trying to enter destroyed section.
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  136 (XFree86-DRI)
  Minor opcode of failed request:  9 ()
  Resource id in failed request:  0x5200002
  Serial number of failed request:  29678
  Current serial number in output stream:  29678
CRITSEC[0x8bed0e0]: Trying to enter destroyed section.
CRITSEC[0x8bed0e0]: Trying to leave destroyed section.

You but me

Posted in Logs by wearetherock on August 13, 2009

Code
======================================
import re
match = re.compile(r’^b([ajk]+$)+’)

isRight = match.findall(‘bajkajkajkajk’)
print isRight
print bool(isRight)

isRight = match.findall(‘baaajjjkkk’)
print isRight
print bool(isRight)

isRight = match.findall(‘bajkb’)
print isRight
print bool(isRight)

isRight = match.findall(‘bkkkjjjjaaaabbbb’)
print isRight
print bool(isRight)

isRight = match.findall(‘bbbajk’)
print isRight
print bool(isRight)

~
Result

======================================
[‘ajkajkajkajk’]
True
[‘aaajjjkkk’]
True
[]
False
[]
False
[]
False
~

Python – XBMC script error

Posted in Logs by wearetherock on August 10, 2009

Code
=====================================
”’
self.settings[‘server’] = ‘192.168.1.110’
pattern = ‘\[.+?\] 0.0-10.0 sec (.+?) MBytes (.+?) (.+)/sec’
program = [‘C:\\KXBMC\\conference\\iperf.exe’,’-c’, self.settings[‘server’] ]
proc = subp.Popen(program, stdin=subp.PIPE, stdout=subp.PIPE, shell = True)
”’

Message
=====================================

File “special:\\xbmc\system\python\python32.zlib\subprocess.py, line 549, in __init__
File “special:\\xbmc\system\python\python32.zlib\subprocess.py, line 639, in get_handles
File “special:\\xbmc\system\python\python32.zlib\subprocess.py, line 650, in _make_inheritable
TypeError: an integer is required

IPERF – OpenSCManager failed – Access is denied

Posted in Logs by wearetherock on August 10, 2009

C:\> iperf.exe -s
————————————————————
Server listening on TCP port 5001
TCP window size: 8.00 KByte (default)
————————————————————
OpenSCManager failed – Access is denied. (0x5)

Can’t made pywiiuse work

Posted in Logs, Programming, Python by wearetherock on July 31, 2009

Library from http://sourceforge.net/projects/uncpythontools/files/pywiiuse/ just try example code.
~

C:\Data\download\wiiuse\pywiiuse-1.12>python example.py
Traceback (most recent call last):
File "example.py", line 72, in <module>
wiimotes = wiiuse.init(nmotes, [1,2], handle_event, handle_ctrl_status, handle_disconnect)
File "C:\Data\download\wiiuse\pywiiuse-1.12\PyWiiUse.py", line 287, in init
dll = ctypes.cdll.wiiuse
File "C:\Python26\lib\ctypes\__init__.py", line 423, in __getattr__
dll = self._dlltype(name)
File "C:\Python26\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
~

Library from http://visualization.tudelft.nl/~rene/pywiiuse_win32/pywiiuse-0_0_7.win32.exe
I can connect Wiimote, Set LEDs light, made it vibrate but can’t receviced button press event,
same situation as http://stackoverflow.com/questions/481943/python-with-wiimote-using-pywiiuse-module.
~