<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>68835</bug_id>
          
          <creation_ts>2011-09-26 14:31:33 -0700</creation_ts>
          <short_desc>[GTK] [ATK] testatk fails in the getExtents test</short_desc>
          <delta_ts>2015-05-07 18:02:51 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro G. Castro">alex</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>mario</cc>
    
    <cc>mrobinson</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>473388</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2011-09-26 14:31:33 -0700</bug_when>
    <thetext>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 &quot;pk-gtk-module&quot;
Gtk-Message: Failed to load module &quot;canberra-gtk-module&quot;
/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&apos; 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 &quot;../../Source/WebKit/gtk/tests/testatk.c&quot;, line=1335, func=0x4109d0 &quot;testWebkitAtkGetExtents&quot;, message=0x80edf0 &quot;assertion failed (fline_window.height == afline_window.height): (38 == 19)&quot;)
    at gtestutils.c:1425
#3  0x00007ffff2aea227 in g_assertion_message_cmpnum (domain=0x0, file=0x40c940 &quot;../../Source/WebKit/gtk/tests/testatk.c&quot;, line=1335, func=0x4109d0 &quot;testWebkitAtkGetExtents&quot;, expr=0x40e3d0 &quot;fline_window.height == afline_window.height&quot;, arg1=38, cmp=0x40fb39 &quot;==&quot;, 
    arg2=19, numtype=105 &apos;i&apos;) 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 &quot;&quot;) at gtestutils.c:1280
#7  0x00007ffff2ae99dd in g_test_run_suite_internal (suite=0x6777a0, path=0x7ffff2b53820 &quot;&quot;) at gtestutils.c:1291
#8  0x00007ffff2ae99dd in g_test_run_suite_internal (suite=0x677220, path=0x7ffff2b53820 &quot;&quot;) 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&apos; we use ATK_TEXT_BOUNDARY_LINE_END instead of ATK_TEXT_BOUNDARY_LINE_START?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532456</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-01-09 13:07:26 -0800</bug_when>
    <thetext>Mario, any insight into this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532872</commentid>
    <comment_count>2</comment_count>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2012-01-10 01:02:49 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Mario, any insight into this one?

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

The code used in getExtents basically relies in WebCore&apos;s code only, so perhaps it happened to him due to having specific versions of some libraries used by WebCore, but I&apos;m not sure yet. As I said above, I can&apos;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 :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533087</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-01-10 08:12:37 -0800</bug_when>
    <thetext>Still failing for you Alex?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>570557</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-03-05 03:53:25 -0800</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092922</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2015-05-07 18:02:51 -0700</bug_when>
    <thetext>Going to close this since it&apos;s a WebKit1 bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>