我已经通过neurodebian存储库(包名:octave-psychtoolbox-3)成功安装了最新版本的psychtoolbox3。
调用AssertOpenGL似乎工作得很好:
>> AssertOpenGL
PTB-INFO: Display ':0' : X-Screen 0 : Output 0 [default]: Primary output : Connected : CRTC 0 [XID 642]
PTB-INFO: Display ':0' : X-Screen 0 : Assigning primary output as 0 with RandR-CRTC 0 and GPU-CRTC 0.但是当我向Screen发出一个调用时,我得到了一个相当隐秘的错误。
>> Screen('Resolution', iscreen, 1024, 768, refreshrate);
INTERNAL PSYCHTOOLBOX ERROR
error: PsychError_internal
general description: Unspecified error, probably a Psychtoolbox bug
specific description: Attempt to set invalid video settings
module name: Screen
subfunction call: Resolution
file name: Linux/Screen/PsychScreenGlue.c
function name: PsychSetScreenSettings
line number: 1776
INTERNAL PSYCHTOOLBOX ERROR
error: PsychError_internal
general description: Unspecified error, probably a Psychtoolbox bug
specific description: Attempt to restore now invalid video settings
module name: Screen
subfunction call: Resolution
file name: Linux/Screen/PsychScreenGlue.c
function name: PsychRestoreScreenSettings
line number: 1846
PTB-ERROR: Error during error handling! ScreenCloseAllWindows() called recursively! Trying to break out of this vicious cycle...
PTB-ERROR: Maybe it is a good idea to exit and restart Matlab/Octave.
Error using Screen
See error message printed above.在对Screen的调用中,iscreen = max(Screen('Screens'));行设置了变量iscreen,它等于0。
你知道哪里出问题了吗?我知道这个脚本可以在MacOSX下运行,但是由于某种原因,它在这台机器上崩溃了(Ubuntu12.04/ Matlab R2012a)。
提前感谢!
编辑:有些人认为这可能是我的显示器不支持我传递给Screen调用的刷新率的问题。不幸的是,当我用显示器的当前刷新率替换refreshrate变量时,我仍然得到相同的错误。还有其他想法吗?
发布于 2012-10-03 05:59:46
您请求的刷新率不受支持。
试试Screen('Resolution',iscreen,1024,768,60);你就会明白我的意思了。
ResolutionTest.m将报告支持的分辨率。不知道你从哪能拿到价格。
https://stackoverflow.com/questions/12689537
复制相似问题