<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Reza Ghassemi</b> <span dir="ltr"><<a href="mailto:reza.robin1@gmail.com">reza.robin1@gmail.com</a>></span><br>
Date: Mon, Apr 28, 2014 at 11:56 AM<br>Subject: Re: [Cogl] Can't get COGL 1.14 tests to pass on Ubuntu 12.04 LTS-Saucy<br>To: Robert Bragg <<a href="mailto:robert@sixbynine.org">robert@sixbynine.org</a>><br><br>
<br><div dir="ltr"><div>Hi Robert,</div><div>Here's the results of some individual tests. Looks like they all have a problem with screen pixels not equaling expected pixel values.</div><div>I'm running ubuntu 12.04 with lts-saucy as a VM with VMWare. Options to cogl configure</div>
<div><div>--enable-debug=yes --enable-gl=no --enable-gles1=no --enable-gles2=yes. This problem does not occur if --enable-gl=yes is used and the gles options are set to "no".</div></div><div>Is this a graphics driver issue?</div>
<div><br></div><div>Thanks,</div><div>Reza</div><div><br></div><div><br></div><div>test-primitive:</div><div><br></div><div>Error:test-utils.c:241:test_utils_compare_pixel: assertion failed (screen_pixel_string == expected_pixel_string): ("#000000" == "#ff00ff")</div>
<div><br></div><div>Program received signal SIGABRT, Aborted.</div><div>0x00007ffff7272425 in __GI_raise (sig=<optimized out>)</div><div> at ../nptl/sysdeps/unix/sysv/linux/raise.c:64</div><div>64<span style="white-space:pre-wrap"> </span>../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.</div>
<div>(gdb) where</div><div>#0 0x00007ffff7272425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64</div><div>#1 0x00007ffff7275b8b in __GI_abort () at abort.c:91</div><div>#2 0x00007ffff7b4cf6d in g_assertion_message () from /lib/x86_64-linux-gnu/libglib-2.0.so.0</div>
<div>#3 0x00007ffff7b4d2bd in g_assertion_message_cmpstr () from /lib/x86_64-linux-gnu/libglib-2.0.so.0</div><div>#4 0x00000000004070c9 in test_utils_compare_pixel ( screen_pixel=0x7fffffffded0 "", expected_pixel=4278255615) at test-utils.c:241</div>
<div>#5 0x0000000000407143 in test_utils_check_pixel (test_fb=0x74dcd0, x=2, y=2, expected_pixel=4278255615) at test-utils.c:259</div><div>#6 0x000000000041354f in test_paint (state=0x7fffffffdf50) at test-primitive.c:200</div>
<div>#7 0x0000000000413b33 in test_primitive () at test-primitive.c:329</div><div>#8 0x0000000000407ad5 in main (argc=2, argv=0x7fffffffe078) at test-conform-main.c:91</div><div>(gdb) list test-utils.c:241</div><div>236<span style="white-space:pre-wrap"> </span> char *screen_pixel_string =</div>
<div>237<span style="white-space:pre-wrap"> </span> g_strdup_printf ("#%06x", screen_pixel_num >> 8);</div><div>238<span style="white-space:pre-wrap"> </span> char *expected_pixel_string =</div>
<div>239<span style="white-space:pre-wrap"> </span> g_strdup_printf ("#%06x", expected_pixel >> 8);</div><div>240<span style="white-space:pre-wrap"> </span></div><div>241<span style="white-space:pre-wrap"> </span> g_assert_cmpstr (screen_pixel_string, ==, expected_pixel_string);</div>
<div>242<span style="white-space:pre-wrap"> </span></div><div>243<span style="white-space:pre-wrap"> </span> g_free (screen_pixel_string);</div><div>244<span style="white-space:pre-wrap"> </span> g_free (expected_pixel_string);</div>
<div>245<span style="white-space:pre-wrap"> </span> }</div><div><br></div><div><br></div><div>test-path:</div><div><br></div><div><div>ERROR:test-path.c:60:check_block: assertion failed (screen_pixel == intended_pixel): ("#000000" == "#ffffff")</div>
<div><br></div><div>Program received signal SIGABRT, Aborted.</div><div>0x00007ffff7272425 in __GI_raise (sig=<optimized out>)</div><div> at ../nptl/sysdeps/unix/sysv/linux/raise.c:64</div><div>64<span style="white-space:pre-wrap"> </span>../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.</div>
<div>(gdb) where</div><div>#0 0x00007ffff7272425 in __GI_raise (sig=<optimized out>)</div><div> at ../nptl/sysdeps/unix/sysv/linux/raise.c:64</div><div>#1 0x00007ffff7275b8b in __GI_abort () at abort.c:91</div>
<div>#2 0x00007ffff7b4cf6d in g_assertion_message () from /lib/x86_64-linux-gnu/libglib-2.0.so.0</div><div>#3 0x00007ffff7b4d2bd in g_assertion_message_cmpstr ()</div><div> from /lib/x86_64-linux-gnu/libglib-2.0.so.0</div>
<div>#4 0x000000000040c713 in check_block (block_x=0, block_y=0, block_mask=8) at test-path.c:60</div><div>#5 0x000000000040cc7b in validate_result () at test-path.c:184</div><div>#6 0x000000000040cdcf in test_path () at test-path.c:211</div>
<div>#7 0x00000000004074ac in main (argc=2, argv=0x7fffffffe088) at test-conform-main.c:59</div></div><div><br></div><div>test-point-sprite</div><div><br></div><div><div>ERROR:test-utils.c:241:test_utils_compare_pixel: assertion failed (screen_pixel_string == expected_pixel_string): ("#ffffff" == "#0000ff")</div>
</div><div><br></div><div><div>#0 0x00007ffff7272425 in __GI_raise (sig=<optimized out>)</div><div> at ../nptl/sysdeps/unix/sysv/linux/raise.c:64</div><div>#1 0x00007ffff7275b8b in __GI_abort () at abort.c:91</div>
<div>#2 0x00007ffff7b4cf6d in g_assertion_message () from /lib/x86_64-linux-gnu/libglib-2.0.so.0</div><div>#3 0x00007ffff7b4d2bd in g_assertion_message_cmpstr ()</div><div> from /lib/x86_64-linux-gnu/libglib-2.0.so.0</div>
<div>#4 0x00000000004070c9 in test_utils_compare_pixel (</div><div> screen_pixel=0x85f050 "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\240", expected_pixel=65535)</div>
<div> at test-utils.c:241</div><div>#5 0x000000000040722b in test_utils_check_region (test_fb=0x74dcd0, x=0, y=0, width=6, </div><div> height=6, expected_rgba=65535) at test-utils.c:290</div><div>#6 0x0000000000415ecd in do_test (check_orientation=0) at test-point-sprite.c:136</div>
<div>#7 0x0000000000415ef5 in test_point_sprite () at test-point-sprite.c:149</div><div>#8 0x0000000000407dc0 in main (argc=2, argv=0x7fffffffe078) at test-conform-main.c:106</div></div><div><br></div></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Apr 5, 2014 at 5:41 PM, Robert Bragg <span dir="ltr"><<a href="mailto:robert@sixbynine.org" target="_blank">robert@sixbynine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Reza,<br>
<br>
Can you perhaps try running some of these tests individually which<br>
might give us a bit more information about what could be going wrong<br>
for you?<br>
<br>
If you cd into the tests/conform directory then if you have already<br>
run make test before then you should see wrapper scripts for all of<br>
the individual tests so you can e.g. run ./test-primitive<br>
<br>
When run this way, the script also prints out how that test can also<br>
be run individually under the gdb debugger. If it looks like the test<br>
is crashing with a segfault then it would also help to run the test<br>
under gdb so we can see a backtrace showing where the crash is<br>
happening.<br>
<br>
When building Cogl, it could be good to pass --enable-debug and<br>
CFLAGS="-g3 -O0" to ./configure if you aren't already, which could<br>
improve the diagnostics we can get.<br>
<br>
Kind regards,<br>
Robert<br>
<div><div><br>
On Thu, Apr 3, 2014 at 2:18 AM, Reza Ghassemi <<a href="mailto:reza.robin1@gmail.com" target="_blank">reza.robin1@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I want to track down how to get COGL 1.14 fully working on Ubuntu 12.04 with<br>
> version lts-saucy or the latest lts.<br>
><br>
> The conforming tests fail with Ubuntu 12.04 using version lts-saucy (the<br>
> newer version), but succeed using an older version of 12.04, lts-raring.<br>
><br>
><br>
><br>
> Any help would be appreciated.<br>
><br>
><br>
><br>
> Here are the results.<br>
><br>
> Lts-saucy:<br>
><br>
><br>
><br>
> cogl/tests/conform$ run-tests.sh config.env<br>
><br>
> Key:<br>
><br>
> ok = Test passed<br>
><br>
> n/a = Driver is missing a feature required for the test<br>
><br>
> FAIL = Unexpected failure<br>
><br>
> fail = Test failed, but it was an expected failure<br>
><br>
> PASS! = Unexpected pass<br>
><br>
><br>
><br>
> Test ES2 ES2-NPT<br>
><br>
><br>
><br>
> test_pipeline_user_matrix: ok ok<br>
><br>
> test_blend_strings: ok ok<br>
><br>
> test_premult: ok ok<br>
><br>
> test_path: FAIL FAIL<br>
><br>
> test_depth_test: ok ok<br>
><br>
> test_color_mask: ok ok<br>
><br>
> test_backface_culling: FAIL fail<br>
><br>
> test_layer_remove: ok ok<br>
><br>
> test_sparse_pipeline: ok ok<br>
><br>
> test_npot_texture: ok ok<br>
><br>
> test_sub_texture: ok ok<br>
><br>
> test_pixel_buffer_map: ok ok<br>
><br>
> test_pixel_buffer_set_data: ok ok<br>
><br>
> test_pixel_buffer_sub_region: ok ok<br>
><br>
> test_texture_3d: FAIL FAIL<br>
><br>
> test_wrap_modes: FAIL FAIL<br>
><br>
> test_texture_get_set_data: ok ok<br>
><br>
> test_atlas_migration: ok ok<br>
><br>
> test_read_texture_formats: ok ok<br>
><br>
> test_write_texture_formats: ok ok<br>
><br>
> test_alpha_textures: ok ok<br>
><br>
> test_wrap_rectangle_textures: n/a n/a<br>
><br>
> test_primitive: FAIL FAIL<br>
><br>
> test_just_vertex_shader: ok ok<br>
><br>
> test_pipeline_uniforms: ok ok<br>
><br>
> test_snippets: ok ok<br>
><br>
> test_custom_attributes: FAIL FAIL<br>
><br>
> test_bitmask: ok ok<br>
><br>
> test_offscreen: ok ok<br>
><br>
> test_framebuffer_get_bits: n/a n/a<br>
><br>
> test_point_size: FAIL FAIL<br>
><br>
> test_point_sprite: FAIL FAIL<br>
><br>
> test_point_sprite_orientation: fail fail<br>
><br>
> test_version: ok ok<br>
><br>
> test_alpha_test: ok ok<br>
><br>
> test_map_buffer_range: FAIL FAIL<br>
><br>
> test_primitive_and_journal: ok ok<br>
><br>
> test_copy_replace_texture: ok ok<br>
><br>
> test_pipeline_cache_unrefs_texture: ok ok<br>
><br>
> test_gles2_context: ok ok<br>
><br>
> test_gles2_context_fbo: ok ok<br>
><br>
> test_gles2_context_copy_tex_image: ok ok<br>
><br>
> test_euler_quaternion: ok ok<br>
><br>
> test_texture_no_allocate: ok ok<br>
><br>
> jim@ubuntu:~/KingsCanyon/trunk/3rdParty/cogl/tests/conform$<br>
><br>
><br>
><br>
><br>
><br>
> Lts-raring:<br>
><br>
><br>
><br>
> /cogl/tests/conform$ run-tests.sh config.env<br>
><br>
> Key:<br>
><br>
> ok = Test passed<br>
><br>
> n/a = Driver is missing a feature required for the test<br>
><br>
> FAIL = Unexpected failure<br>
><br>
> fail = Test failed, but it was an expected failure<br>
><br>
> PASS! = Unexpected pass<br>
><br>
><br>
><br>
> Test ES2 ES2-NPT<br>
><br>
><br>
><br>
> test_pipeline_user_matrix: ok ok<br>
><br>
> test_blend_strings: ok ok<br>
><br>
> test_premult: ok ok<br>
><br>
> test_path: ok ok<br>
><br>
> test_depth_test: ok ok<br>
><br>
> test_color_mask: ok ok<br>
><br>
> test_backface_culling: ok fail<br>
><br>
> test_layer_remove: ok ok<br>
><br>
> test_sparse_pipeline: ok ok<br>
><br>
> test_npot_texture: ok ok<br>
><br>
> test_sub_texture: FAIL FAIL<br>
><br>
> test_pixel_buffer_map: ok ok<br>
><br>
> test_pixel_buffer_set_data: ok ok<br>
><br>
> test_pixel_buffer_sub_region: ok ok<br>
><br>
> test_texture_3d: ok ok<br>
><br>
> test_wrap_modes: ok ok<br>
><br>
> test_texture_get_set_data: ok ok<br>
><br>
> test_atlas_migration: ok ok<br>
><br>
> test_read_texture_formats: ok ok<br>
><br>
> test_write_texture_formats: ok ok<br>
><br>
> test_alpha_textures: ok ok<br>
><br>
> test_wrap_rectangle_textures: n/a n/a<br>
><br>
> test_primitive: ok ok<br>
><br>
> test_just_vertex_shader: ok ok<br>
><br>
> test_pipeline_uniforms: ok ok<br>
><br>
> test_snippets: ok ok<br>
><br>
> test_custom_attributes: ok ok<br>
><br>
> test_bitmask: ok ok<br>
><br>
> test_offscreen: ok ok<br>
><br>
> test_framebuffer_get_bits: n/a n/a<br>
><br>
> test_point_size: ok ok<br>
><br>
> test_point_sprite: ok ok<br>
><br>
> test_point_sprite_orientation: fail fail<br>
><br>
> test_version: ok ok<br>
><br>
> test_alpha_test: ok ok<br>
><br>
> test_map_buffer_range: ok ok<br>
><br>
> test_primitive_and_journal: ok ok<br>
><br>
> test_copy_replace_texture: ok ok<br>
><br>
> test_pipeline_cache_unrefs_texture: ok ok<br>
><br>
> test_gles2_context: ok ok<br>
><br>
> test_gles2_context_fbo: ok ok<br>
><br>
> test_gles2_context_copy_tex_image: ok ok<br>
><br>
> test_euler_quaternion: ok ok<br>
><br>
> test_texture_no_allocate: ok ok<br>
><br>
><br>
><br>
><br>
><br>
> Saucy installation:<br>
><br>
> ii libegl1-mesa-dev-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the EGL API -- development files<br>
><br>
> ii libegl1-mesa-drivers-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the EGL API -- hardware drivers<br>
><br>
> ii libegl1-mesa-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the EGL API -- runtime<br>
><br>
> ii libgl1-mesa-dri-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the OpenGL API -- DRI modules<br>
><br>
> ii libgl1-mesa-dri-lts-saucy:i386 9.2.1-1ubuntu3~precise1<br>
> free implementation of the OpenGL API -- DRI modules<br>
><br>
> ii libgl1-mesa-glx-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the OpenGL API -- GLX runtime<br>
><br>
> ii libgl1-mesa-glx-lts-saucy:i386 9.2.1-1ubuntu3~precise1<br>
> free implementation of the OpenGL API -- GLX runtime<br>
><br>
> ii libglapi-mesa-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the GL API -- shared library<br>
><br>
> ii libglapi-mesa-lts-saucy:i386 9.2.1-1ubuntu3~precise1<br>
> free implementation of the GL API -- shared library<br>
><br>
> ii libgles2-mesa-dev-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the OpenGL|ES 2.x API -- development files<br>
><br>
> ii libgles2-mesa-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the OpenGL|ES 2.x API -- runtime<br>
><br>
> ii libglu1-mesa 8.0.4-0ubuntu0.7<br>
> Mesa OpenGL utility library (GLU)<br>
><br>
> ii libglu1-mesa:i386 8.0.4-0ubuntu0.7<br>
> Mesa OpenGL utility library (GLU)<br>
><br>
> ii libopenvg1-mesa-lts-saucy 9.2.1-1ubuntu3~precise1<br>
> free implementation of the OpenVG API -- runtime<br>
><br>
> ii libtxc-dxtn-s2tc0 0~git20110809-2.1<br>
> Texture compression library for Mesa<br>
><br>
> ii libtxc-dxtn-s2tc0:i386 0~git20110809-2.1<br>
> Texture compression library for Mesa<br>
><br>
><br>
><br>
> raring installation:<br>
><br>
> ii libegl1-mesa-dev-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the EGL API -- development files<br>
><br>
> ii libegl1-mesa-drivers-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the EGL API -- hardware drivers<br>
><br>
> ii libegl1-mesa-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the EGL API -- runtime<br>
><br>
> ii libgl1-mesa-dri-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the OpenGL API -- DRI modules<br>
><br>
> ii libgl1-mesa-glx-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the OpenGL API -- GLX runtime<br>
><br>
> ii libglapi-mesa-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the GL API -- shared library<br>
><br>
> ii libgles2-mesa-dev-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the OpenGL|ES 2.x API -- development files<br>
><br>
> ii libgles2-mesa-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the OpenGL|ES 2.x API -- runtime<br>
><br>
> ii libglu1-mesa 8.0.4-0ubuntu0.6<br>
> Mesa OpenGL utility library (GLU)<br>
><br>
> ii libopenvg1-mesa-lts-raring 9.1.4-0ubuntu0.1~precise2<br>
> free implementation of the OpenVG API -- runtime<br>
><br>
> s<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Cogl mailing list<br>
> <a href="mailto:Cogl@lists.freedesktop.org" target="_blank">Cogl@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/cogl" target="_blank">http://lists.freedesktop.org/mailman/listinfo/cogl</a><br>
><br>
</blockquote></div><br></div>
</div></div></div><br></div>