Forum Discussion
Sometimes print jobs started by PrintQueueStream suffer an Exception in XpsRasterService.dll
The optional update September 20, 2022—KB5017383 (OS Build 22000.1042) Preview (microsoft.com), which mentions this issue as below:
Addresses a known issue that affects XML Paper Specification (XPS) viewers. This might stop you from opening XPS files in some non-English languages. These include some Japanese and Chinese character encodings. This issue affects XPS and Open XPS (OXPS) files.
This issue was causing issues when reading XPS files with some specific characters (it was especially seen with some Japanese chars), causing GetGlyphRunBoundsEx() to possibly throw an AV but could also lead to infinite loops. The root cause on Windows 11 was related to the move to STL 110 C++ Runtime Library, which was leading to a slightly different behavior to the one on Windows 10 which we had to correctly handle.