esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
677 stars 211 forks source link

hard crash when calling send_command() with eyelink #24

Open dschreij opened 10 years ago

dschreij commented 10 years ago

pygaze commit afef6d913357ca6b8e996747ee1f1b54dbce4e45 Windows 7; OpenSesame 2.8.3 Occurs on EyeLink CL/1000 and EyeLink 2000

When the pygaze_eyetracker.send_command() is called with EyeLink as the eyetracker type, the experiment crashes with a segmentation fault (thus quite serious). It does not depend on the contents you pass to send_command(). I've tried with various strings and all cause the crash.

smathot commented 10 years ago

Hi Daniel,

For me this works fine on Windows XP. Could you try to trace this down further? send_command() is just a wrapper around this:

import pylink
pylink.getEYELINK().sendCommand("my message")

What happens if you send commands directly with PyLink? It would be weird if calling send_command() always crashes always, because it is heavily used internally.

Cheers, Sebastiaan

dschreij commented 9 years ago

Hi Sebastiaan,

I finally got around testing this. It also crashes when you call the sendCommand function directly through pylink. Weirdly enough, this does not happen when using the old eyelink plugins...

I tested this on Windows 7 with the latest snapshot of pygaze. This is the error output

 Problem Event Name:    APPCRASH
  Application Name: python.exe
  Application Version:  0.0.0.0
  Application Timestamp:    527fcf56
  Fault Module Name:    eyelink_core.dll
  Fault Module Version: 1.9.329.0
  Fault Module Timestamp:   4e529dff
  Exception Code:   c00000fd
  Exception Offset: 00003123
  OS Version:   6.1.7601.2.1.0.256.4
  Locale ID:    1043

Not that this will probably mean anything to you, but just for the sake of completeness. eyelink_core.dll appears to be the culprit.

The pylink version appears to be 1.0.0.43. I might try upgrading (if it's possible to find a newer version. the SR forum is quite a mess)