Bug 68835

Summary: [GTK] [ATK] testatk fails in the getExtents test
Product: WebKit Reporter: Alejandro G. Castro <alex>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: cgarcia, mario, mrobinson, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Alejandro G. Castro 2011-09-26 14:31:33 PDT
Just happened in my desktop doing the release process, apparently it goes to the beginning of the new line:

[jhbuild]alex@livonia:~/checkout/webkit-1.6$ WebKitBuild/Release/Programs/unittests/testatk
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
/webkit/atk/caretOffsets: OK
/webkit/atk/caretOffsetsAndExtranousWhiteSpaces: OK
/webkit/atk/comboBox: OK
/webkit/atk/embeddedObjects: OK
/webkit/atk/getTextAtOffset: OK
/webkit/atk/getTextAtOffsetForms: OK
/webkit/atk/getTextAtOffsetNewlines: OK
/webkit/atk/getTextAtOffsetTextarea: OK
/webkit/atk/getTextAtOffsetTextInput: OK
/webkit/atk/getTextAtOffsetWithSpecialCharacters: OK
/webkit/atk/getTextInParagraphAndBodySimple: OK
/webkit/atk/getTextInParagraphAndBodyModerate: OK
/webkit/atk/getTextInTable: OK
/webkit/atk/getHeadersInTable: OK
/webkit/atk/textAttributes: OK
/webkit/atk/textSelections: OK
/webkit/atk/getExtents: **
ERROR:../../Source/WebKit/gtk/tests/testatk.c:1335:testWebkitAtkGetExtents: assertion failed (fline_window.height == afline_window.height): (38 == 19)
Abortado (`core' generado)



Program received signal SIGABRT, Aborted.
0x00000037fc4330c5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64	  return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0  0x00000037fc4330c5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00000037fc434a76 in abort () at abort.c:92
#2  0x00007ffff2ae9ff9 in g_assertion_message (domain=0x0, file=0x40c940 "../../Source/WebKit/gtk/tests/testatk.c", line=1335, func=0x4109d0 "testWebkitAtkGetExtents", message=0x80edf0 "assertion failed (fline_window.height == afline_window.height): (38 == 19)")
    at gtestutils.c:1425
#3  0x00007ffff2aea227 in g_assertion_message_cmpnum (domain=0x0, file=0x40c940 "../../Source/WebKit/gtk/tests/testatk.c", line=1335, func=0x4109d0 "testWebkitAtkGetExtents", expr=0x40e3d0 "fline_window.height == afline_window.height", arg1=38, cmp=0x40fb39 "==", 
    arg2=19, numtype=105 'i') at gtestutils.c:1459
#4  0x00000000004076ef in testWebkitAtkGetExtents () at ../../Source/WebKit/gtk/tests/testatk.c:1335
#5  0x00007ffff2ae963c in test_case_run (tc=0x675f90) at gtestutils.c:1227
#6  0x00007ffff2ae991b in g_test_run_suite_internal (suite=0x682400, path=0x7ffff2b53820 "") at gtestutils.c:1280
#7  0x00007ffff2ae99dd in g_test_run_suite_internal (suite=0x6777a0, path=0x7ffff2b53820 "") at gtestutils.c:1291
#8  0x00007ffff2ae99dd in g_test_run_suite_internal (suite=0x677220, path=0x7ffff2b53820 "") at gtestutils.c:1291
#9  0x00007ffff2ae9b3f in g_test_run_suite (suite=0x677220) at gtestutils.c:1336
#10 0x00007ffff2ae8d9a in g_test_run () at gtestutils.c:887
#11 0x000000000040c7dd in main (argc=1, argv=0x7fffffffd988) at ../../Source/WebKit/gtk/tests/testatk.c:1689


#4  0x00000000004076ef in testWebkitAtkGetExtents () at ../../Source/WebKit/gtk/tests/testatk.c:1335
1335	    g_assert_cmpint(fline_window.height, ==, afline_window.height);
(gdb) p fline_window.height
$1 = 38
(gdb) p afline_window.height
$2 = 19
(gdb) p afline_window
$3 = {x = 280, y = 113, width = 241, height = 19}
(gdb) p fline_window
$4 = {x = 280, y = 113, width = 240, height = 38}
(gdb) 

Shouldn' we use ATK_TEXT_BOUNDARY_LINE_END instead of ATK_TEXT_BOUNDARY_LINE_START?
Comment 1 Martin Robinson 2012-01-09 13:07:26 PST
Mario, any insight into this one?
Comment 2 Mario Sanchez Prada 2012-01-10 01:02:49 PST
(In reply to comment #1)
> Mario, any insight into this one?

I was trying to reproduce this one since Alex reported it and couldn't do it at any moment, so I'm not sure if it was something specific to Alex's machine or something.

The code used in getExtents basically relies in WebCore's code only, so perhaps it happened to him due to having specific versions of some libraries used by WebCore, but I'm not sure yet. As I said above, I can't reproduce and it seems the bots are fine with that test as well, so not sure what else we can do here.

Sorry for not having commented before on this :(
Comment 3 Martin Robinson 2012-01-10 08:12:37 PST
Still failing for you Alex?
Comment 4 Carlos Garcia Campos 2012-03-05 03:53:25 PST
I got a similar failure today:

ERROR:../Source/WebKit/gtk/tests/testatk.c:1434:testWebkitAtkGetExtents: assertion failed (3 * height == mline_window.height): (54 == 52)
FAIL
GTester: last random seed: R02Sd66b4b90b04cc8eedffec821911ea60a
make[3]: *** [test] Terminado
Comment 5 Martin Robinson 2015-05-07 18:02:51 PDT
Going to close this since it's a WebKit1 bug.