JDK-8330746 : [Linux/aarch64] java/awt/font/GlyphVector/LayoutCompatTest.java files differ byte offset=9891
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 22,23
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: aarch64
  • Submitted: 2024-04-20
  • Updated: 2024-04-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Tested on Ubuntu 22.04, aarch64

java.lang.RuntimeException: files differ byte offset=9891
	at LayoutCompatTest.compareLayouts(LayoutCompatTest.java:125)
	at LayoutCompatTest.main(LayoutCompatTest.java:115)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1575)
Comments
I have 22.04 on x64 and my font has the same checksum as yours % sha256sum /usr/share/fonts/truetype/fonts-deva-extra/chandas1-2.ttf 3ec43827db73ac426742fe6d3f610851789967337e917974f4651fcfa3a2967d /usr/share/fonts/truetype/fonts-deva-extra/chandas1-2.ttf And, as for you, the test passes for me on x64 since the results are the same. And interestingly both produce the same results as FFM did in your AARCH64 testing. So FFM seems more likely to be "correct" and the anomaly is actually JNI .. not sure what to make of that.
22-04-2024

Both chandas1-2.ttf font files have the same checksum on Ubuntu 22.04 x64 and Ubuntu 22.04 arrch64 systems. I also tested this on x64, it produces the same result for both ffm.txt and jni.txt.
22-04-2024

It looks like just one font where we have some difference in rounding of positions occuring The Positions line differ in a few places, easiest to see is the final values are 1060.0 vs 1059.0 Looks like an extremely minor issue, but it is still curious. ==== JNI: Hindi: java.awt.Font[family=Chandas,name=Chandas,style=plain,size=24] num glyphs = 90 Codes= 113 136 134 125 154 101 136 3 181 165 1769 125 3 144 163 100 103 125 3 132 157 402 134 141 154 3 115 416 3 115 102 3 489 154 115 159 401 130 115 3 139 154 149 154 113 96 3 115 163 3 103 403 120 130 3 489 401 130 136 154 132 134 3 115 163 3 403 144 109 3 109 115 3 140 151 3110 136 158 129 422 3 130 115 134 156 115 3 151 164 187 Positions= 0.0 0.0 25.0 0.0 38.0 0.0 53.0 0.0 66.0 0.0 72.0 0.0 87.0 0.0 100.0 0.0 112.0 0.0 132.0 0.0 138.0 0.0 145.0 0.0 158.0 0.0 170.0 0.0 188.0 0.0 188.0 0.0 213.0 0.0 229.0 0.0 242.0 0.0 254.0 0.0 266.0 0.0 266.0 0.0 271.0 0.0 286.0 0.0 300.0 0.0 306.0 0.0 318.0 0.0 338.0 0.0 344.0 0.0 356.0 0.0 376.0 0.0 391.0 0.0 403.0 0.0 416.0 0.0 422.0 0.0 442.0 0.0 442.0 0.0 447.0 0.0 460.0 0.0 480.0 0.0 492.0 0.0 508.0 0.0 514.0 0.0 527.0 0.0 533.0 0.0 558.0 0.0 558.0 0.0 570.0 0.0 590.0 0.0 590.0 0.0 602.0 0.0 618.0 0.0 623.0 0.0 638.0 0.0 651.0 0.0 663.0 0.0 676.0 0.0 681.0 0.0 694.0 0.0 707.0 0.0 713.0 0.0 725.0 0.0 740.0 0.0 752.0 0.0 772.0 0.0 772.0 0.0 784.0 0.0 789.0 0.0 807.0 0.0 820.0 0.0 832.0 0.0 845.0 0.0 865.0 0.0 877.0 0.0 893.0 0.0 906.0 0.0 921.0 0.0 934.0 0.0 934.0 0.0 949.0 0.0 949.0 0.0 961.0 0.0 974.0 0.0 994.0 0.0 1009.0 0.0 1015.0 0.0 1035.0 0.0 1047.0 0.0 1060.0 0.0 1060.0 0.0 ===== FFM: Hindi: java.awt.Font[family=Chandas,name=Chandas,style=plain,size=24] num glyphs = 90 Codes= 113 136 134 125 154 101 136 3 181 165 1769 125 3 144 163 100 103 125 3 132 157 402 134 141 154 3 115 416 3 115 102 3 489 154 115 159 401 130 115 3 139 154 149 154 113 96 3 115 163 3 103 403 120 130 3 489 401 130 136 154 132 134 3 115 163 3 403 144 109 3 109 115 3 140 151 3110 136 158 129 422 3 130 115 134 156 115 3 151 164 187 Positions= 0.0 0.0 25.0 0.0 38.0 0.0 53.0 0.0 66.0 0.0 72.0 0.0 87.0 0.0 100.0 0.0 112.0 0.0 132.0 0.0 138.0 0.0 145.0 0.0 158.0 0.0 170.0 0.0 188.0 0.0 188.0 0.0 213.0 0.0 229.0 0.0 242.0 0.0 254.0 0.0 266.0 0.0 265.0 0.0 270.0 0.0 285.0 0.0 299.0 0.0 305.0 0.0 317.0 0.0 337.0 0.0 343.0 0.0 355.0 0.0 375.0 0.0 390.0 0.0 402.0 0.0 415.0 0.0 421.0 0.0 441.0 0.0 441.0 0.0 446.0 0.0 459.0 0.0 479.0 0.0 491.0 0.0 507.0 0.0 513.0 0.0 526.0 0.0 532.0 0.0 557.0 0.0 557.0 0.0 569.0 0.0 589.0 0.0 589.0 0.0 601.0 0.0 617.0 0.0 622.0 0.0 637.0 0.0 650.0 0.0 662.0 0.0 675.0 0.0 680.0 0.0 693.0 0.0 706.0 0.0 712.0 0.0 724.0 0.0 739.0 0.0 751.0 0.0 771.0 0.0 771.0 0.0 783.0 0.0 788.0 0.0 806.0 0.0 819.0 0.0 831.0 0.0 844.0 0.0 864.0 0.0 876.0 0.0 892.0 0.0 905.0 0.0 920.0 0.0 933.0 0.0 933.0 0.0 948.0 0.0 948.0 0.0 960.0 0.0 973.0 0.0 993.0 0.0 1008.0 0.0 1014.0 0.0 1034.0 0.0 1046.0 0.0 1059.0 0.0 1059.0 0.0
22-04-2024

[~prr] attached.
22-04-2024

[~azvegint] Please attach the ffm.txt and jni.txt files the test wrote out.
22-04-2024