psychopy.org | Reference | Downloads | Github

Pyxid module crash


#1

Hi,

I try to use the pyxid module. My development PC has no XID device connected.
When I import the module and run get_xid_devices() in Python in a Windows Powershell, the function returns an empty array.

However, when I run the same code in PsychoPy, PsychoPy crashes and needs to reboot.
Any solutions or workaround?

Code:

import pyxid
pyxid.get_xid_devices()

P


#2

Can anyone comment on this?


#3

What error messages are produced?


#4

Hi Michael,

I just figured it out by looking in the pyxid code and adding some print statements to see where the problem occurs.
I installed a virtual serial port bridge using com0com which is the source of the crash.
Removing the virtual port fixed the issue.
I tracked down the crash in pyxid_impl.py at the con.flush_input() statement right after the con.open() statement in the detect_xid_devices function.