XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

RP2 export to pdf crashes when the report includes text using the Cambria font

Open cpyrgas opened this issue 5 years ago • 6 comments

The attached very simple report has a single field with font set to "Cambria". When trying to export to pdf, RP2 crashes with a System.AccessViolationException in the readUShort() method of class rpTTFReader.

METHOD readUShort AS WORD
LOCAL s IS TTF_USHORT // swap bytes s:b[2] := SELF:pCurrent[1] <----- exception here s:b[1] := SELF:pCurrent[2] SELF:pCurrent += 2 RETURN s:w

cpyrgas avatar Jan 24 '20 00:01 cpyrgas

Confirmed. This seems to work fine in VO strange enough.

RobertvanderHulst avatar Jan 24 '20 10:01 RobertvanderHulst

Closed by accident?

cpyrgas avatar Jul 11 '23 10:07 cpyrgas

It does not crash with Cambria on my machine. What version of Cambria do you have installed ?

baramuse avatar Jul 26 '23 07:07 baramuse

Can't reproduce it now either. But I'm sure it will resurface again, probably after a PC reboot etc

cpyrgas avatar Jul 26 '23 08:07 cpyrgas

We have a discussion on the XSharp forums : https://www.xsharp.eu/forum/public-3rdpart/3587-rp2-crash-when-using-specific-fonts-in-windows11-22h2 I'm trying to pinpoint it to the font parserbut now I can't make it crash on .net, so if you do have a font that makes it crash please report it back so I can give it a go :)

baramuse avatar Jul 26 '23 08:07 baramuse

OK, will do!

cpyrgas avatar Jul 26 '23 09:07 cpyrgas