Skip to content

Instantly share code, notes, and snippets.

@iandol
Created August 14, 2012 15:39
Show Gist options
  • Save iandol/3350352 to your computer and use it in GitHub Desktop.
Save iandol/3350352 to your computer and use it in GitHub Desktop.
Syncronisation Error, OS X 10.6.8 + PTB 3.0.10 + dual non-mirrored display
>> Screen('Preference', 'Verbosity', 10); %errors and warnings
PTB-INFO: Connection to Psychtoolbox kernel support driver instance #0 (Revision 0) established.
>> VBLSyncTest
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 1 (Old CGDisplayId 0xb41e5b4). Reenumerating all displays...
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 1 (New CGDisplayId 0xb41e5b4). Reenumeration done.
PTB-INFO: This is Psychtoolbox-3 for Apple OS X, under Matlab 64-Bit (Version 3.0.10 - Build date: Aug 7 2012).
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.
PTB-INFO: Using CGL for fullscreen onscreen window creation...
PTB-INFO: Using GLEW version 1.5.3 for automatic detection of OpenGL extensions...
PTB-INFO: Connection to kernel-level vbl handler established (shmem = 0x13a488000).
PTB-DEBUG: PPM file magic is P6
-> Ok
# CREATOR: GIMP PNM Filter Version 1.1
PTB-DEBUG: Recognized splash image of 432 x 89 pixels, maxlevel 255. Loading...
OpenGL-Extensions are: GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_shading_language_100 GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_geometry_shader4 GL_EXT_transform_feedback GL_APPLE_client_storage GL_APPLE_specular_vector GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators GL_APPLE_element_array GL_APPLE_flush_render GL_APPLE_aux_depth_stencil GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip GL_SGIS_generate_mipmap GL_ARB_imaging GL_ARB_point_parameters GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat GL_ARB_shadow GL_ARB_depth_texture GL_ARB_shadow_ambient GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_draw_buffers GL_ARB_shader_texture_lod GL_ARB_color_buffer_float GL_ARB_half_float_vertex GL_ARB_texture_rg GL_ARB_texture_compression_rgtc GL_ARB_framebuffer_object GL_EXT_compiled_vertex_array GL_EXT_draw_buffers2 GL_EXT_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_texture_rectangle GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap GL_EXT_texture_filter_anisotropic GL_EXT_separate_specular_color GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_sRGB GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp GL_EXT_packed_depth_stencil GL_EXT_bindable_uniform GL_EXT_texture_integer GL_EXT_gpu_shader4 GL_EXT_framebuffer_sRGB GL_EXT_provoking_vertex GL_APPLE_flush_buffer_range GL_APPLE_ycbcr_422 GL_APPLE_rgb_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range GL_APPLE_float_pixels GL_ATI_texture_float GL_ARB_texture_float GL_ARB_half_float_pixel GL_APPLE_pixel_buffer GL_APPLE_object_purgeable GL_NV_blend_square GL_NV_fog_distance GL_NV_conditional_render GL_ATI_texture_mirror_once GL_ATI_blend_equation_separate GL_ATI_blend_weighted_minmax GL_ATI_texture_env_combine3 GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGI_color_matrix GL_EXT_texture_array GL_EXT_vertex_array_bgra GL_ARB_instanced_arrays GL_ARB_depth_buffer_float GL_EXT_packed_float GL_EXT_texture_shared_exponent
PTB-DEBUG: Interrogating Low-level renderer capabilities for onscreen window with handle 10:
Indicator variables: FBO's 1, ATI_texture_float 1, ARB_texture_float 1, Vendor ATI Technologies Inc., Renderer ATI Radeon HD 5870 OpenGL Engine.
Indicator variables: maxcolorattachments = 8, maxrectangletexturesize = 16384, maxnativealuinstructions = 2048.
GPU supports UYVY - YCrCb texture formats for optimized handling of video content.
Basic framebuffer objects with rectangle texture rendertargets supported --> RGBA8 rendertargets with blending.
Framebuffer objects support fast blitting between each other.
Framebuffer objects support anti-aliasing via multisampling.
Hardware supports floating point textures of 16bpc and 32bpc float format.
Assuming ATI R300 core or later: Hardware supports basic floating point framebuffers of 16bpc and 32bpc float format.
Assuming ATI R500 or later (maxtexsize=16384): Hardware supports floating point blending on 16bpc float format.
Hardware supports full 32 bit floating point precision shading.
Assuming ATI R600 or later (Matching namestring): Hardware supports floating point blending and filtering on 16bpc and 32bpc float formats.
No compiled in support for OpenML OML_sync_control extension. Using standard implementation.
PTB-DEBUG: Interrogation done.
PTB-INFO: You are using a multi-display setup (2 active displays):
PTB-INFO: Please read 'help MultiDisplaySetups' for specific information on the Do's, Dont's,
PTB-INFO: and possible causes of trouble and how to diagnose and resolve them.
PTB-INFO: According to the operating system, some of your connected displays do not seem to
PTB-INFO: be switched into mirror mode. For a discussion of mirror mode vs. non-mirror mode,
PTB-INFO: please read 'help MirrorMode'.
PTB-DEBUG: glClear splash image top-left reference pixel: 255 255 255
PTB-INFO: Threshold Settings for successfull video refresh calibration are: maxStdDev = 1.000000 msecs, maxDeviation = 10.000000 %, minSamples = 50, maxDuration = 5.000000 secs.
PTB-DEBUG: Output of all acquired samples of calibration run follows:
PTB-DEBUG: Sample 0: 0.000000
PTB-DEBUG: Sample 1: 0.013092
PTB-DEBUG: Sample 2: 0.013302
PTB-DEBUG: Sample 3: 0.013381
PTB-DEBUG: Sample 4: 0.013257
PTB-DEBUG: Sample 5: 0.013354
PTB-DEBUG: Sample 6: 0.013377
PTB-DEBUG: Sample 7: 0.013252
PTB-DEBUG: Sample 8: 0.013322
PTB-DEBUG: Sample 9: 0.013348
PTB-DEBUG: Sample 10: 0.013358
PTB-DEBUG: Sample 11: 0.013297
PTB-DEBUG: Sample 12: 0.013306
PTB-DEBUG: Sample 13: 0.013368
PTB-DEBUG: Sample 14: 0.013368
PTB-DEBUG: Sample 15: 0.013262
PTB-DEBUG: Sample 16: 0.013319
PTB-DEBUG: Sample 17: 0.013321
PTB-DEBUG: Sample 18: 0.013366
PTB-DEBUG: Sample 19: 0.013382
PTB-DEBUG: Sample 20: 0.013238
PTB-DEBUG: Sample 21: 0.013429
PTB-DEBUG: Sample 22: 0.013295
PTB-DEBUG: Sample 23: 0.013273
PTB-DEBUG: Sample 24: 0.013386
PTB-DEBUG: Sample 25: 0.013311
PTB-DEBUG: Sample 26: 0.013364
PTB-DEBUG: Sample 27: 0.013286
PTB-DEBUG: Sample 28: 0.013377
PTB-DEBUG: Sample 29: 0.013261
PTB-DEBUG: Sample 30: 0.013310
PTB-DEBUG: Sample 31: 0.013407
PTB-DEBUG: Sample 32: 0.013245
PTB-DEBUG: Sample 33: 0.013407
PTB-DEBUG: Sample 34: 0.013285
PTB-DEBUG: Sample 35: 0.013385
PTB-DEBUG: Sample 36: 0.013280
PTB-DEBUG: Sample 37: 0.013303
PTB-DEBUG: Sample 38: 0.013333
PTB-DEBUG: Sample 39: 0.013318
PTB-DEBUG: Sample 40: 0.013384
PTB-DEBUG: Sample 41: 0.013326
PTB-DEBUG: Sample 42: 0.013276
PTB-DEBUG: Sample 43: 0.013391
PTB-DEBUG: Sample 44: 0.013317
PTB-DEBUG: Sample 45: 0.013304
PTB-DEBUG: Sample 46: 0.013319
PTB-DEBUG: Sample 47: 0.013305
PTB-DEBUG: Sample 48: 0.013351
PTB-DEBUG: Sample 49: 0.013371
PTB-DEBUG: Sample 50: 0.013283
PTB-DEBUG: End of calibration data for this run...
PTB-INFO: OpenGL-Renderer is ATI Technologies Inc. :: ATI Radeon HD 5870 OpenGL Engine :: 2.1 ATI-1.6.36
PTB-INFO: Renderer has 1024 MB of VRAM and a maximum 1008 MB of texture memory.
PTB-INFO: VBL startline = 1024 , VBL Endline = 1109
PTB-INFO: Measured monitor refresh interval from beamposition = 16.684844 ms [59.934633 Hz].
PTB-INFO: Will use beamposition query for accurate Flip time stamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 13.322967 ms [75.058354 Hz]. (50 valid samples taken, stddev=0.058230 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 13.333331 ms [75.000015 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: Using OpenGL GL_TEXTURE_RECTANGLE_EXT extension for efficient high-performance texture mapping...
WARNING: Mismatch between measured monitor refresh intervals! This indicates problems with rasterbeam position queries.
----- ! PTB - WARNING: SYNCHRONIZATION TROUBLE ! ----
One or more internal checks (see Warnings above) indicate that
queries of rasterbeam position are not properly working for your setup.
Psychtoolbox will work around this by using a different timing algorithm,
but it will cause Screen('Flip') to report less accurate/robust timestamps
for stimulus timing.
Read 'help BeampositionQueries' for more info and troubleshooting tips.
PTB-INFO: Support for fast OffscreenWindows enabled.
The refresh interval reported by the operating system is 13.33333 ms.
PTB-DEBUG: Allocated unicode string: 77.000000 101.000000 97.000000 115.000000 117.000000 114.000000 105.000000 110.000000 103.000000 32.000000 109.000000 111.000000 110.000000 105.000000 116.000000 111.000000 114.000000 32.000000 114.000000 101.000000 102.000000 114.000000 101.000000 115.000000 104.000000 32.000000 105.000000 110.000000 116.000000 101.000000 114.000000 118.000000 97.000000 108.000000 46.000000 46.000000 46.000000 32.000000 84.000000 104.000000 105.000000 115.000000 32.000000 99.000000 97.000000 110.000000 32.000000 116.000000 97.000000 107.000000 101.000000 32.000000 117.000000 112.000000 32.000000 116.000000 111.000000 32.000000 50.000000 48.000000 32.000000 115.000000 101.000000 99.000000 111.000000 110.000000 100.000000 115.000000 46.000000 46.000000 46.000000
Measured refresh interval, as reported by "GetFlipInterval" is 13.32297 ms. (nsamples = 0, stddev = 0.00000 ms)
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007129 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007084 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007174 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007178 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007057 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007062 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007071 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007128 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.006958 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007083 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007140 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007133 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007187 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007147 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007131 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007102 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007059 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007167 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007174 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007245 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007132 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007025 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007069 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007078 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007079 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007103 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007056 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007016 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007171 secs) or between forbidden scanline 1 and 50. Delaying...
PTB-DEBUG: Swaprequest too close to last swap vbl (0.007085 secs) or between forbidden scanline 1 and 50. Delaying...
ans =
9
PTB-DEBUG: In ScreenCloseAllWindows(): Destroying window 0
PTB-DEBUG: In PsychReleaseScreen(): After display release for screen 1 (Old CGDisplayId 0xb41e5b4). Reenumerating all displays...
PTB-DEBUG: In PsychReleaseScreen(): After display release for screen 1 (New CGDisplayId 0xb41e5b4). Reenumeration done.
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 1 (Old CGDisplayId 0xb41e5b4). Reenumerating all displays...
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 1 (New CGDisplayId 0xb41e5b4). Reenumeration done.
PTB-INFO: Releasing shared memory mapping for screen 1.
PTB-DEBUG: In PsychReleaseScreen(): After display release for screen 1 (Old CGDisplayId 0xb41e5b4). Reenumerating all displays...
PTB-DEBUG: In PsychReleaseScreen(): After display release for screen 1 (New CGDisplayId 0xb41e5b4). Reenumeration done.
PTB missed 0 out of 600 stimulus presentation deadlines.
One missed deadline is ok and an artifact of the measurement.
Have a look at the plots for more details...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment