Aspose Word shaping harfbuzz bug

Hi

We have paid license for Aspose Word +Aspose PDF and in general the experience is very positive :slight_smile:

We have an exception in Aspose word shaping.harfbuzz classifier we using the latest 22.11 BUT I can say it happen in 22.4 also .

The OS that is not working is CentOS Linux version 7

java.lang.UnsatisfiedLinkError: 'long com.aspose.words.shaping.harfbuzz.HB.hb_buffer_create(int)'
	at com.aspose.words.shaping.harfbuzz.HB.hb_buffer_create(Native Method) ~[aspose.words-22.11-shaping-harfbuzz-plugin.jar:?]
	at com.aspose.words.shaping.harfbuzz.zzwE.<init>(Unknown Source) ~[aspose.words-22.11-shaping-harfbuzz-plugin.jar:?]
	at com.aspose.words.shaping.harfbuzz.zzYbL.zzwE(Unknown Source) ~[aspose.words-22.11-shaping-harfbuzz-plugin.jar:?]
	at com.aspose.words.shaping.harfbuzz.zzYbL.zzwE(Unknown Source) ~[aspose.words-22.11-shaping-harfbuzz-plugin.jar:?]
	at com.aspose.words.shaping.harfbuzz.zzYbL.shapeText(Unknown Source) ~[aspose.words-22.11-shaping-harfbuzz-plugin.jar:?]
	at com.aspose.words.zzWSF.zzwE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWSF.zzwE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzXJg.zzZTv(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzXJg.zzWDr(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzXQA.zzWDr(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYNv.zzYLL(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzY3b.zzXyO(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzY3b.zzX2v(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYNv.zzX2v(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzxd.zzXLy(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzxd.zzY97(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzxd.zzXbn(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzY4E.zzwE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzY4E.zzWWq(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWg3.zzYys(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWg3.zzY97(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWg3.zzgp(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYMh.zzwE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYMh.zzwE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzZ8v.zzWaR(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzZ8v.zzX2D(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzZ8v.zzwE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzsX.zzXFj(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzsX.zzYbL(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWOi.zzZJm(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWUh.zzX2D(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWUh.zzYbL(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzUB.zzWWq(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzsX.zzYbL(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzWOi.zzZJm(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzZOz.zzYbL(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzsR.zzWEu(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzZey.zzXmE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.Document.updatePageLayout(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzXBy.zzYLb(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzZfa.zzXFx(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYf7.zzqg(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYf7.zzX2D(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYf7.zzwE(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.zzYf7.zzXkC(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.Range.updateFields(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.aspose.words.Document.updateFields(Unknown Source) ~[aspose.words-22.11.jar:22.11.0]
	at com.idit.incl.framework.backend.utils.pdf.PdfCreatorAsposeINCL.convertWordMlToPdf(PdfCreatorAsposeINCL.java:78) ~[idit.coreasia-Common-CA2.3.7.2.jar:?]

Someone encounter such an exception? id it a bug?

I am attaching the Word document for u to reproduce the issue22.docx (134.6 KB)

@moshelatin,

we can’t reproduce this issue on our side using the latest version of Aspose.Words for Java. Please try updating your Aspose library and Harfbuzz plugin to the latest version. They can be downloaded from the following links:
Download Aspose.Words for Java 22.12
Download Aspose.Words for Java 22.12 Harfbuzz Plugin

In case the problem persists, please create a sample Java application (source code without compilation errors) that will help us reproduce your problem on our end, and attach it here as a zip file for testing.

Hi

I am using Harfbuzz plugin latest …

The error occurs only on CentOS Linux version 7 so did u check on top of that OS ?

@moshelatin,

We were able to reproduce this error using CentOS version 7. This issue has been logged as WORDSJAVA-2808. We will keep you posted and will let you know as soon as the issue is resolved. Please accept our apologies for the inconvenience.

The issues you have found earlier (filed as WORDSJAVA-2808) have been fixed in this Aspose.Words for Java 24.1 update.