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