Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PsychoPy n170 fails on Windows 10 Pro #150

Open
sbastiaens opened this issue Jan 7, 2022 · 5 comments
Open

PsychoPy n170 fails on Windows 10 Pro #150

sbastiaens opened this issue Jan 7, 2022 · 5 comments
Labels

Comments

@sbastiaens
Copy link

  • Windows 10 Pro
  • Python Version: 3.7.11
  • Brain Interface Used: Crown

When running n170.present (form visual_n170), PsychoPy freezes and python crashes.
The problem was fixed by removing show_instructions(duration). We think that the error comes from the fact that mywin = visual.Window([1600, 900], monitor="testMonitor", units="deg", fullscr=True) is repeated twice and therefore PsychoPy creates two screens which makes it crash.

@sbastiaens sbastiaens added the bug Something isn't working label Jan 7, 2022
@gbernal
Copy link

gbernal commented Jan 22, 2022

Hi,

I'm seeing similar issues when running the n170 experiment, p300, and so on. looking adding break points into the code, the code fails when it goes into mywin = visual.Window([1600, 900], monitor="testMonitor", units="deg", fullscr=True)
as mentioned by @sbastiaens I tried commenting out show_instructions(duration) but that didn't fix it for me

This is my setup
Windows 10
Python Version: 3.9
Brain Interface Used: Cyton

[2022-01-22 18:39:35.565] [board_logger] [info] openning port \.\COM19
Traceback (most recent call last):
File "C:\Users\ExpMachine\Documents\GitHub\eeg-notebooks\tests\00x__ssvep_run_experiment.py", line 20, in
n170.present(duration=record_duration, eeg=eeg_device, save_fn=save_fn)
File "c:\users\ExpMachine\documents\github\eeg-notebooks\eegnb\experiments\visual_n170\n170.py", line 37, in present
mywin = visual.Window([1600, 900], monitor="testMonitor", units="deg", fullscr=True)
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\visual\window.py", line 343, in init
self.monitor = monitors.Monitor(monitor, autoLog=autoLog)
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\monitors\calibTools.py", line 127, in init
self._loadAll()
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\monitors\calibTools.py", line 446, in loadAll
self.calibs = json_tricks.load(thisFile, ignore_comments=False,
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\site-packages\json_tricks\nonp.py", line 266, in load
return loads(string, preserve_order=preserve_order, ignore_comments=ignore_comments, decompression=decompression,
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\site-packages\json_tricks\nonp.py", line 236, in loads
return json_loads(string, object_pairs_hook=hook, **jsonkwargs)
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\json_init
.py", line 359, in loads
return cls(**kw).decode(s)
TypeError: init() got an unexpected keyword argument 'encoding'
Exception ignored in: <function Window.del at 0x00000224BE696160>
Traceback (most recent call last):
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\visual\window.py", line 582, in del
self.close()
File "C:\Users\ExpMachine\miniconda3\envs\eeg-notebooks\lib\site-packages\psychopy\visual\window.py", line 2274, in close
self.backend.close() # moved here, dereferencing the window prevents
AttributeError: 'NoneType' object has no attribute 'close'

@gbernal
Copy link

gbernal commented Jan 23, 2022

I solved this issue by upgrading psychopy to 2021.2.3

@ErikBjare
Copy link
Collaborator

@gbernal Thanks for that, I updated to latest Psychopy in #167 so at least that shouldn't be an issue anymore.

@ErikBjare
Copy link
Collaborator

Hey @oreHGA I had to revert that PR, so we're still on an old version of psychopy.

@ErikBjare ErikBjare reopened this Apr 25, 2022
@rkakrik
Copy link

rkakrik commented Jun 30, 2022

Same problem in Arch Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants