UIMarkupTextPrintFormatter crash at the time of initialisation

while initialising the UIMarkupTextPrintFormatter the app is crashing with the following error.

Thread 1: EXC_BAD_ACCESS(code =1, address=0x0)

sample code:

 let formatter = UIMarkupTextPrintFormatter(markupText: content) 

the parameter content is the HTML string. Tried with passing simple HTML string but still having the same crash. The Occurrence of the crash is 7/10 times and mostly when the device is offline.

Issue specifically occurring in iPad OS 16.3

Attaching the screenshot for reference.

UIMarkupTextPrintFormatter crash at the time of initialisation
 
 
Q