Bug 82601

Summary: [Qt] Diverging test results on 32/64 bit architectures
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ossy, zherczeg
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 62204    

Description Csaba Osztrogonác 2012-03-29 05:36:29 PDT
After http://trac.webkit.org/changeset/112397 landed, there are 6 diverging tests remain.
Comment 1 Csaba Osztrogonác 2012-03-29 05:46:46 PDT
I skipped the failing tests - http://trac.webkit.org/changeset/112524

Now the 64 bit results are in the tree, and I got the following fails on 32 bit:
--- /ramdisk/qt-linux-release/build/layout-test-results/fast/repaint/moving-shadow-on-container-expected.txt 
+++ /ramdisk/qt-linux-release/build/layout-test-results/fast/repaint/moving-shadow-on-container-actual.txt 
@@ -4,6 +4,6 @@
   RenderBlock {HTML} at (0,0) size 784x616
     RenderBody {BODY} at (8,8) size 768x600
       RenderSVGRoot {svg} at (8,8) size 468x173
-        RenderSVGPath {path} at (8,8) size 78x68 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83697e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10218e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
-        RenderSVGPath {path} at (200,46) size 128x125 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83697e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10218e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
-        RenderSVGPath {path} at (349,46) size 117x122 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.53081e-15 25 L -29.3893 40.4509 L -23.7764 7.72542 L -47.5528 -15.4508 L -14.6946 -20.2254 L -9.18485e-15 -50 L 14.6946 -20.2254 L 47.5528 -15.4508 L 23.7764 7.72542 L 29.3893 40.4509 Z"]
+        RenderSVGPath {path} at (8,8) size 78x68 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83691e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10215e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
+        RenderSVGPath {path} at (200,46) size 128x125 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83691e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10215e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
+        RenderSVGPath {path} at (349,46) size 117x122 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.53076e-15 25 L -29.3893 40.4509 L -23.7764 7.72542 L -47.5528 -15.4508 L -14.6946 -20.2254 L -9.18455e-15 -50 L 14.6946 -20.2254 L 47.5528 -15.4508 L 23.7764 7.72542 L 29.3893 40.4509 Z"]


--- /ramdisk/qt-linux-release/build/layout-test-results/fast/repaint/moving-shadow-on-path-expected.txt 
+++ /ramdisk/qt-linux-release/build/layout-test-results/fast/repaint/moving-shadow-on-path-actual.txt 
@@ -4,6 +4,6 @@
   RenderBlock {HTML} at (0,0) size 784x616
     RenderBody {BODY} at (8,8) size 768x600
       RenderSVGRoot {svg} at (8,8) size 458x163
-        RenderSVGPath {path} at (8,8) size 88x78 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83697e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10218e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
-        RenderSVGPath {path} at (200,46) size 138x135 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83697e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10218e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
-        RenderSVGPath {path} at (349,46) size 127x132 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.53081e-15 25 L -29.3893 40.4509 L -23.7764 7.72542 L -47.5528 -15.4508 L -14.6946 -20.2254 L -9.18485e-15 -50 L 14.6946 -20.2254 L 47.5528 -15.4508 L 23.7764 7.72542 L 29.3893 40.4509 Z"]
+        RenderSVGPath {path} at (8,8) size 88x78 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83691e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10215e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
+        RenderSVGPath {path} at (200,46) size 138x135 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83691e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10215e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
+        RenderSVGPath {path} at (349,46) size 127x132 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,100.00)}] [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [dash array={20.00}]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.53076e-15 25 L -29.3893 40.4509 L -23.7764 7.72542 L -47.5528 -15.4508 L -14.6946 -20.2254 L -9.18455e-15 -50 L 14.6946 -20.2254 L 47.5528 -15.4508 L 23.7764 7.72542 L 29.3893 40.4509 Z"]


--- /ramdisk/qt-linux-release/build/layout-test-results/svg/W3C-SVG-1.1/paths-data-03-f-expected.txt 
+++ /ramdisk/qt-linux-release/build/layout-test-results/svg/W3C-SVG-1.1/paths-data-03-f-actual.txt 
@@ -24,7 +24,7 @@
           chunk 1 text run 1 at (390.00,300.00) startOffset 0 endOffset 4 width 23.00: "M, a"
       RenderSVGRect {rect} at (348,243) size 4x4 [fill={[type=SOLID] [color=#0000FF]}] [x=348.00] [y=243.00] [width=4.00] [height=4.00]
       RenderSVGRect {rect} at (428,303) size 4x4 [fill={[type=SOLID] [color=#0000FF]}] [x=428.00] [y=303.00] [width=4.00] [height=4.00]
-      RenderSVGPath {path} at (252,29) size 209x100 [fill={[type=SOLID] [color=#C0C000] [fill rule=EVEN-ODD]}] [data="M 270 30 C 252.272 50.1015 253.547 80.6061 272.891 99.158 C 292.234 117.71 322.766 117.71 342.109 99.158 C 361.453 80.6061 362.728 50.1015 345 30 C 325.402 41.3151 315.847 64.383 321.704 86.2422 C 327.561 108.101 347.37 123.301 370 123.301 C 392.63 123.301 412.439 108.101 418.296 86.2422 C 424.153 64.383 414.598 41.3151 395 30 C 370.621 36.2946 354.726 59.7348 357.898 84.7125 C 361.071 109.69 382.322 128.412 407.5 128.412 C 432.678 128.412 453.929 109.69 457.101 84.7125 C 460.274 59.7348 444.379 36.2946 420 30 Z"]
+      RenderSVGPath {path} at (252,29) size 209x100 [fill={[type=SOLID] [color=#C0C000] [fill rule=EVEN-ODD]}] [data="M 270 30 C 252.272 50.1015 253.547 80.606 272.891 99.158 C 292.234 117.71 322.766 117.71 342.109 99.158 C 361.453 80.6061 362.728 50.1015 345 30 C 325.402 41.3151 315.847 64.383 321.704 86.2422 C 327.561 108.101 347.37 123.301 370 123.301 C 392.63 123.301 412.439 108.101 418.296 86.2422 C 424.153 64.383 414.598 41.3151 395 30 C 370.621 36.2946 354.726 59.7348 357.898 84.7125 C 361.071 109.69 382.322 128.412 407.5 128.412 C 432.678 128.412 453.929 109.69 457.101 84.7125 C 460.274 59.7348 444.379 36.2946 420 30 Z"]
       RenderSVGText {text} at (280,123) size 62x16 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (0,0) size 62x16
           chunk 1 text run 1 at (280.00,135.00) startOffset 0 endOffset 13 width 62.00: "M, A, a, a, z"


--- /ramdisk/qt-linux-release/build/layout-test-results/svg/css/stars-with-shadow-expected.txt 
+++ /ramdisk/qt-linux-release/build/layout-test-results/svg/css/stars-with-shadow-actual.txt 
@@ -4,6 +4,6 @@
   RenderBlock {HTML} at (0,0) size 784x616
     RenderBody {BODY} at (8,8) size 768x600
       RenderSVGRoot {svg} at (40,36) size 437x140
-        RenderSVGPath {path} at (40,36) size 156x150 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,100.00)}] [stroke={[type=SOLID] [color=#800080] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83697e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10218e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
-        RenderSVGPath {path} at (190,36) size 156x150 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,100.00)}] [stroke={[type=SOLID] [color=#800080] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83697e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10218e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
-        RenderSVGPath {path} at (349,46) size 138x132 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,100.00)}] [stroke={[type=SOLID] [color=#800080] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.53081e-15 25 L -29.3893 40.4509 L -23.7764 7.72542 L -47.5528 -15.4508 L -14.6946 -20.2254 L -9.18485e-15 -50 L 14.6946 -20.2254 L 47.5528 -15.4508 L 23.7764 7.72542 L 29.3893 40.4509 Z"]
+        RenderSVGPath {path} at (40,36) size 156x150 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,100.00)}] [stroke={[type=SOLID] [color=#800080] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83691e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10215e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
+        RenderSVGPath {path} at (190,36) size 156x150 [transform={m=((1.00,0.00)(0.00,1.00)) t=(250.00,100.00)}] [stroke={[type=SOLID] [color=#800080] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.83691e-15 30 L -35.2671 48.541 L -28.5317 9.27051 L -57.0634 -18.541 L -17.6336 -24.2705 L -1.10215e-14 -60 L 17.6336 -24.2705 L 57.0634 -18.541 L 28.5317 9.27051 L 35.2671 48.541 Z"]
+        RenderSVGPath {path} at (349,46) size 138x132 [transform={m=((1.00,0.00)(0.00,1.00)) t=(400.00,100.00)}] [stroke={[type=SOLID] [color=#800080] [stroke width=10.00]}] [fill={[type=SOLID] [color=#999999]}] [data="M 1.53076e-15 25 L -29.3893 40.4509 L -23.7764 7.72542 L -47.5528 -15.4508 L -14.6946 -20.2254 L -9.18455e-15 -50 L 14.6946 -20.2254 L 47.5528 -15.4508 L 23.7764 7.72542 L 29.3893 40.4509 Z"]


--- /ramdisk/qt-linux-release/build/layout-test-results/svg/custom/use-on-symbol-inside-pattern-expected.txt 
+++ /ramdisk/qt-linux-release/build/layout-test-results/svg/custom/use-on-symbol-inside-pattern-actual.txt 
@@ -17,7 +17,7 @@
         RenderSVGContainer {use} at (9,11) size 12x17 [transform={m=((0.50,0.00)(0.00,0.50)) t=(15.00,20.00)}]
           RenderSVGViewportContainer {svg} at (9,11) size 12x17
             RenderSVGPath {path} at (14,22) size 2x6 [stroke={[type=SOLID] [color=#008000] [stroke width=2.00]}] [data="M 0 15 L 0 5"]
-            RenderSVGPath {path} at (9,11) size 12x13 [stroke={[type=SOLID] [color=#008000] [stroke width=2.00]}] [data="M 0 5 C -1.93923 7.10121 -5.09176 7.54205 -7.53298 6.0534 C -9.97421 4.56475 -11.0258 1.56025 -10.0457 -1.12585 C -9.06566 -3.81196 -6.3263 -5.43327 -3.5 -5 C -5.61622 -6.51984 -6.50972 -9.23171 -5.71141 -11.7118 C -4.91309 -14.1919 -2.60543 -15.8734 7.15493e-8 -15.8734 C 2.60543 -15.8734 4.91309 -14.1919 5.71141 -11.7118 C 6.50972 -9.23171 5.61622 -6.51983 3.5 -5 C 6.3263 -5.43327 9.06566 -3.81196 10.0457 -1.12585 C 11.0258 1.56025 9.97421 4.56475 7.53298 6.0534 C 5.09176 7.54205 1.93923 7.10121 7.15256e-7 5 Z"]
+            RenderSVGPath {path} at (9,11) size 12x13 [stroke={[type=SOLID] [color=#008000] [stroke width=2.00]}] [data="M 0 5 C -1.93923 7.10121 -5.09176 7.54205 -7.53298 6.0534 C -9.97421 4.56475 -11.0258 1.56025 -10.0457 -1.12585 C -9.06566 -3.81196 -6.3263 -5.43327 -3.5 -5 C -5.61622 -6.51983 -6.50972 -9.23171 -5.71141 -11.7118 C -4.91309 -14.1919 -2.60543 -15.8734 7.15493e-8 -15.8734 C 2.60543 -15.8734 4.91309 -14.1919 5.71141 -11.7118 C 6.50972 -9.23171 5.61622 -6.51983 3.5 -5 C 6.3263 -5.43327 9.06566 -3.81196 10.0457 -1.12585 C 11.0258 1.56025 9.97421 4.56475 7.53298 6.0534 C 5.09176 7.54205 1.93923 7.10121 7.15256e-7 5 Z"]
       RenderSVGPath {path} at (0,0) size 203x92 [stroke={[type=SOLID] [color=#B42D25] [stroke width=2.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 50 L 100 0 L 200 20 L 150 70 L 50 90 Z"]
     RenderSVGContainer {g} at (8,4) size 205x98 [transform={m=((1.00,0.00)(0.00,1.00)) t=(10.00,10.00)}]
       RenderSVGText {text} at (0,-6) size 74x21 contains 1 chunk(s)


and svg/transforms/transform-origin-css-property.xhtml reftest fails, but I can't find results on the bot.
Comment 2 Csaba Osztrogonác 2012-06-12 04:10:53 PDT
I updated expected files to make these tests pass on 64 bit:
http://trac.webkit.org/changeset/120056

And I unskipped transforms/transform-origin-css-property.xhtml, because it passes now. And I removed its Qt specific expected results, because is is a reftest.
Comment 3 Zoltan Herczeg 2012-06-13 05:17:33 PDT
Again, a libc based error.

Example: svg/W3C-SVG-1.1/paths-data-03-f.svg
The input is a large arc: "A 50 50 0 1 0 345 30"
Converted to a bezier curve by SVGPathParser::decomposeArcToCubic

Full of sinf, cosf, tanf, atan2f, so the libm implementation is critical.