Sudden crashes or fail to launch app - unhandled internal error

OS: Win10
PsychoPy version: 2024.1.5
Standard Standalone? (y/n) If not then what?: I’m not sure? installed by my uni admins
What are you trying to achieve?: Just opening psychopy and opening my task that previously worked without problems.

What did you try to make it work?: I had my task open for a few hours (tested a participant in the morning, no trouble at all), then i left it inactive for an hour, and then suddenly got an error message (see below) and had to quit the program. To reopen, I tried double clicking on my task’s .psyexp file, but got a message saying “Windows can’t open this type of file”. Then tried opening psychopy from the start bar (by searching “psychopy” and opening the app that way), which only works if i delete the appData preference file every time. Even then, as soon as the builder opens, clicking on anything at all will raise unhandled internal error and crash psychopy (see below)

What specifically went wrong when you tried that?:
This is the unhandled internal error message i get:
Traceback (most recent call last):
File “C:\Program Files (x86)\OpenSesame\Lib\site-packages\psychopy\app\builder\builder.py”, line 1732, in onResize
self.redrawRoutine() # then redraw visible
^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files (x86)\OpenSesame\Lib\site-packages\psychopy\app\builder\builder.py”, line 1922, in redrawRoutine
self.drawComponent(self.pdc, component, yPos)
File “C:\Program Files (x86)\OpenSesame\Lib\site-packages\psychopy\app\builder\builder.py”, line 2112, in drawComponent
dc.DrawBitmap(thisIcon, self.iconXpos, yPos + iconYOffset, True)
TypeError: PseudoDC.DrawBitmap(): arguments did not match any overloaded call:
overload 1: argument 2 has unexpected type ‘float’
overload 2: argument 2 has unexpected type ‘float’

ALSO I was using v2024.1.5, but after psychopy crashed and i cleared AppData, the only psychopy available to open is v2023.1.3. It’s like the newer version suddenly disappeared from the computer. I do not have admin access to reinstall right now.

The paths in your error messages look like they’re from OpenSesame’s install of PsychPy - which I’m guessing is 2023.1.3. Try editing your system environment variables, is the path to OpenSesame’s PsychPy in “path”?

Thanks for your reply, indeed I am using OpenSesame’s install of PsychoPy. I don’t know exactly what went wrong but it was a wider issue with software in my lab. The lab technicians fixed it soon after!

1 Like