General error with 1.80.00rc1 on Windows XP: "Window instance has no attribute '_progFBOtoFrame'"

351 views
Skip to first unread message

Bjoern Rump

unread,
Mar 4, 2014, 8:01:20 AM3/4/14
to psychop...@googlegroups.com
Hi,

there seems to be a general issue with PsychoPy 1.80.00rc1 on Windows XP (SP3), which even occurs when running one of the bundled demo experiments without making any changes. Right after entering the experimental info, the experiment (in this case the Stroop demo) terminates with the following error message:

#-----------------------------------------------------------------
Running: C:\Dokumente und Einstellungen\admin\Desktop\psychopy180demos\stroop\stroop_lastrun.py
Error in framebuffer activation
Traceback (most recent call last):

File "C:\Dokumente und Einstellungen\admin\Desktop\psychopy180demos\stroop\stroop_lastrun.py", line 47, in <module>
  units=u'norm')

File "C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\visual\window.py", line 341, in __init__
  self._monitor FrameRate = self.getActualFrameRate()

File "C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\visual\window.py", line 1483, in getActualFrameRate
  self.flip()

File "C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\visual\window.py", line 483, in flip
  GL.glUseProgram(self._progFBOtoFrame)
AttributeError: Window instance has no attribute '_progFBOtoFrame'
#-----------------------------------------------------------------

I was able to reproduce the problem on two separate Windows XP machines (PsychoPy 1.79.01 worked fine on these). I don't know if other Windows versions are affected as well. On OS X (10.8.5), the issue does not seem to be present.

Please let me know if you need any additional information.

Thanks!
Bjoern

PS: Is there really no way to copy the error messages from the PsychoPy output window? I wound up taking a screenshot of the window and then running OCR on the image to extract the text. That did not exactly strike me as elegant... :)

Jonathan Peirce

unread,
Mar 4, 2014, 9:05:10 AM3/4/14
to psychop...@googlegroups.com
Thanks for the speedy bug report (although 1.80 is available I haven't yet 'announced' it)
I think the graphics cards on these XP machines aren't as advanced as on the Mac?

Could you test a fix for me? Drill down into the psychopy files and find something like
    ...Lib/site-packages/psychopy/visual/window.py
Could you find line 1213 and change it from
        if self.useFBO and not GL.gl_info.have_extension('GL_EXT_framebuffer_object'):
to read
        if self.useFBO and not self._haveShaders or not GL.gl_info.have_extension('GL_EXT_framebuffer_object'):

Hopefully that will fix it? If not could you run the demo script called sysInfo.py and send us the output from that so I can see what your card does/doesn't support.

You should be able to copy from the output window by right-clicking. Yes, Ctrl-C might not work from that panel I think

cheers
Jon
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/e3f26b23-6d59-4c87-806d-e1523311717e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.


Bjoern Rump

unread,
Mar 4, 2014, 11:58:41 AM3/4/14
to psychop...@googlegroups.com
Thanks for the quick reply, Jon.

After I changed window.py per your instructions, I got the following error message:
#-----------------------------------------------------------------
Running: C:\Dokumente und Einstellungen\admin\Desktop\psychopy180demos\stroop\stroop_lastrun.py 
Traceback (most recent call last):
  File "C:\Dokumente und Einstellungen\admin\Desktop\psychopy180demos\stroop\stroop_lastrun.py", line 47, in <module>
    units='norm')
  File "C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\visual\window.py", line 311, in __init__
    self._setupGL()
  File "C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\visual\window.py", line 1327, in _setupGL
    self._setupPyglet()
  File "C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\visual\window.py", line 1213, in _setupPyglet
    if self.useFBO and not self._haveShaders or not GL.gl_info.have_extension('GL_EXT_framebuffer_object'):
AttributeError: Window instance has no attribute '_haveShaders'
Exception AttributeError: "Window instance has no attribute 'frameTexture'" in <bound method Window.__del__ of <psychopy.visual.window.Window instance at 0x0DB1E4B8>> ignored
#-----------------------------------------------------------------

So apparently "_haveShaders" is not a known attribute on that system either. I then removed the problematic if statement in line 1213 completely and unindented the next two lines accordingly. After I did that, the experiment ran without a hitch.


You are right, the Windows laptops (including their graphic chips) are indeed not as powerful as the Mac I used, but we have plenty of similar ones lying around and they still work well for experiments that are not too computationally/visually demanding. Sorry for assuming it was a general XP issue, I deliberately did the tests on two distinct laptop models to rule out the possibility that the issue was caused by idiosyncrasies of a single machine.

Here is the output from sysInfo.py from one of the Windows machines:
#-----------------------------------------------------------------
Welcome to PsychoPy2!
v1.80.00

##### Running: C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\demos\coder\sysInfo.py #####
Paths to files on the system:
    userPrefsFile: C:\Dokumente und Einstellungen\admin\Anwendungsdaten\psychopy2\userPrefs.cfg
    appDataFile: C:\Dokumente und Einstellungen\admin\Anwendungsdaten\psychopy2\appData.cfg
    demos: C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\demos
    appFile: C:\Programme\PsychoPy2\lib\site-packages\psychopy-1.80.00-py2.7.egg\psychopy\app\PsychoPy.py

System info:
Windows-XP-5.1.2600-SP3

Python info
C:\Programme\PsychoPy2\pythonw.exe
2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
numpy 1.7.1
scipy 0.12.0
matplotlib 1.3.0
pyglet 1.1.4
pyo version 0.6.6 (uses single precision)
pyo 0.6.6

PsychoPy 1.80.00
have shaders: False

OpenGL info:
vendor: Intel
rendering engine: Intel 965/963 Graphics Media Accelerator
OpenGL version: 2.0.0 - Build 7.15.10.5029
(Selected) Extensions:
True GL_ARB_multitexture
True GL_EXT_framebuffer_object
True GL_ARB_fragment_program
True GL_ARB_shader_objects
True GL_ARB_vertex_shader
True GL_ARB_texture_non_power_of_two
False GL_ARB_texture_float
False GL_STEREO
max vertices in vertex array: 1024
0.9181 WARNING Creating new monitor...
0.9183 WARNING Creating new monitor...
#-----------------------------------------------------------------


Finally, a quick note on copying text from the "PsychoPy output" window:
On my Windows machine, I cannot select text in that window using the mouse or <cmd><a>. The text area simply looks and behaves like a rendered image, rather than a text field... that is, unless I move the mouse cursor to the very bottom of the text area. Then it changes from an arrow to the text selection cursor and I can drag the text selection upwards or select the text using <cmd><a> (and then copy the text to the clipboard). Weird. But I am glad that I now know what to do in order to not have to jump through that awkward screenshot-OCR-hoop anymore.

The output window also behaves a little strange when you increase its size (this might be related to the above issue): the white text area does not get bigger and instead the additional area of the window is filled with a grey background. I've attached a screenshot depicting this phenomenon.


Again, thanks a lot and please let me know if I can be of any further help.

Bjoern
PsychoPy_output_screenshot.png

Brian Erickson

unread,
Mar 6, 2014, 6:26:35 PM3/6/14
to psychop...@googlegroups.com
I received a similar error trying to run any .psyexp file on a mac running OSX 10.6.8. Clicking run button takes one to a blank white screen. After pressing esc, console shows "error in framebuffer activation." 1.79.01 works fine.

Jonathan Peirce

unread,
Mar 7, 2014, 10:19:19 AM3/7/14
to psychop...@googlegroups.com
Brian, could you also try to run the sysInfo.py demo?
For Bjoern that gave me the info I needed to be able to fix the issue (his graphics card supports framebuffers but not floating point textures, whereas I assumed that the two things went together).

I'll be releasing a 1.80.01 early next week with these minor tweaks fixed.

Jon

ste...@miletic.nl

unread,
Mar 8, 2014, 10:46:54 AM3/8/14
to psychop...@googlegroups.com
Hi,

I seem to be having the exact same problem as Bjoern. I'm running Psychopy on an older MacBook (mid 2006 or 2007 I believe). The hardware may not be top of the notch anymore but it suffices for not too demanding experiments so I hope it can be fixed.

Here's my sysInfo output:

##### Running: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos/coder/sysInfo.py #####
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos/coder
/Applications/PsychoPy2.app/Contents/Resources
/Applications/PsychoPy2.app/Contents/Resources/lib/python27.zip
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/plat-darwin
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/plat-mac
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/plat-mac/lib-scriptpackages
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/lib-tk
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/lib-old
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/lib-dynload
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos/coder
/Applications/PsychoPy2.app/Contents/Resources
/Applications/PsychoPy2.app/Contents/Resources/lib/python27.zip
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/plat-darwin
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/plat-mac
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/plat-mac/lib-scriptpackages
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/lib-tk
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/lib-old
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/lib-dynload
Paths to files on the system:
    userPrefsFile: /Users/steven/.psychopy2/userPrefs.cfg
    appDataFile: /Users/steven/.psychopy2/appData.cfg
    demos: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos
    appFile: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/PsychoPy.py

System info:
Darwin-10.8.0-i386-32bit
OS X 10.6.8 running on i386

Python info
/Applications/PsychoPy2.app/Contents/MacOS/python
2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:32:06) 
[GCC 4.0.1 (Apple Inc. build 5493)]
numpy 1.7.1
scipy 0.12.0
matplotlib 1.3.0
pyglet 1.1.4
pyo 0.6.6

PsychoPy 1.80.00
have shaders: False

OpenGL info:
vendor: Intel Inc.
rendering engine: Intel GMA 950 OpenGL Engine
OpenGL version: 1.4 APPLE-1.6.36
(Selected) Extensions:
True GL_ARB_multitexture
True GL_EXT_framebuffer_object
True GL_ARB_fragment_program
True GL_ARB_shader_objects
True GL_ARB_vertex_shader
True GL_ARB_texture_non_power_of_two
False GL_ARB_texture_float
False GL_STEREO
max vertices in vertex array: 2048

Thanks a lot for the effort,

Jonathan Peirce

unread,
Mar 10, 2014, 12:40:54 PM3/10/14
to psychop...@googlegroups.com
Thanks for the info Steven,

That's coming up for the same reason as Brian's; the graphics card (that wretched Intel GMA 950 again) supports a subset of the necessary features for the advanced form of rendering. I'll implement a fix that checks explicitly for both of the necessary parts.

cheers,
Jon
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jonathan Peirce

unread,
Mar 11, 2014, 12:14:47 PM3/11/14
to PsychoPy Users
I think this is fixed in the repository. Could someone with one of these graphics cards (Intel GMA 950 or similar) download and test the new window.py from here:
    https://github.com/psychopy/psychopy/blob/master/psychopy/visual/window.py
(download using the 'raw' button)

cheers,
Jon

On 10/03/2014 15:08, Brian Erickson wrote:
Jon,
I will run this as soon as I have access to the computer again, sorry for delay.

Brian

ste...@miletic.nl

unread,
Mar 11, 2014, 12:28:32 PM3/11/14
to psychop...@googlegroups.com
I just tried the Stroop demo with this new window.py - works like a charm!

Many thanks for the effort!

Bjoern Rump

unread,
Mar 12, 2014, 5:50:41 AM3/12/14
to psychop...@googlegroups.com
Just wanted to confirm that the new window.py fixes the issue on my system as well.

Thanks again!
Reply all
Reply to author
Forward
0 new messages