Hi
I am using iphone x to view pdf but while scrolling it is crashing.
SwiftSyncfusionFlutterPdfViewerPlugin.swift:161: Fatal error: Unexpectedly found nil while unwrapping an Optional value
* thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value
frame #0: 0x00000001856c53d4 libswiftCore.dylib`_swift_runtime_on_report
libswiftCore.dylib`_swift_runtime_on_report:
-> 0x1856c53d4 <+0>: ret
libswiftCore.dylib`_swift_reportToDebugger:
0x1856c53d8 <+0>: b 0x1856c53d4 ; _swift_runtime_on_report
libswiftCore.dylib`_swift_shouldReportFatalErrorsToDebugger:
0x1856c53dc <+0>: adrp x8, 451942
0x1856c53e0 <+4>: ldrb w0, [x8, #0xbc]
Target 0: (Runner) stopped.
Hi Muhammed,
Thank you for contacting Syncfusion support.
We are analyzing the reported issue from our side. Kindly share with us the issue reproducing document and steps which will be helpful for us to provide you a prompt solution at the earliest. We will share the analysis details on 4 March 2022.
Regards,
Dilli babu.
I have a similar issue that I am not sure if it is related or not. This is flutter on MacOS.
syncfusion_pdfviewer_macos/SyncfusionFlutterPdfViewerPlugin.swift:93: Fatal error: Unexpectedly found nil while unwrapping an Optional value
This happens on MacOS. Steps to reproduce for my issue.
let document = self.documentRepo[documentID]!!
in this function:
private func getPagesHeight( call: FlutterMethodCall, result: @escaping FlutterResult)
{
guard let argument = call.arguments else {return}
let documentID = argument as! String
let document = self.documentRepo[documentID]!!
let pageCount = NSNumber(value: document.numberOfPages)
var pagesHeight = Array<Double>()
for index in stride(from: 1,to: pageCount.intValue + 1, by: 1){
let page = document.page(at: Int(index))
var pageRect = page!.getBoxRect(.mediaBox)
if(page!.rotationAngle > 0)
{
let angle = CGFloat(page!.rotationAngle) * CGFloat.pi/180
pageRect = (pageRect.applying(CGAffineTransform(rotationAngle: angle)))
}
pagesHeight.append(Double(pageRect.height))
}
result(pagesHeight)
}
Hi Justin,
We are checking on the reported query and will update details on July 13,2022.
Regards,
Deepika R
Hi Justin,
Currently, we are setting up the environment to check the reported issue and we will update the further details on July 20, 2022.
Regards,
Deepika Ravi
Hi Justin,
We tried to reproduce the reported issue with provided details, but when the application is in full screen or exiting full screen, the PDF loads properly without any crashes in our side. For your reference, we have prepared a simple sample (along with the output screen record of the same) and it can be downloaded from the following link,
https://www.syncfusion.com/downloads/support/directtrac/general/ze/F~173293-135344067.zip
If you still reproduce the reported issue in your use case, then kindly share the modified issue reproducing in the sample and share the issue replicating video, which will be helpful for us to provide a prompt solution at the earliest.
Regards,
Deepika Ravi
Hi,
I have the same problem on MacOS. Unfortunately it appears quite sporadic so that I can't give steps to reproduce.
I have an exandable list where the PDFViewer is part of the expansion tiles bodies. The problem seems to be connected with scrolling through the list. But as I mentioned ... it's sporadic and no predictable error. :-(
I'll get back to this thread as soon as I managed to record or reproduce the error.
Vera
Hi Vera Spoettl Zeisberg ,
We tried to reproduce the reported issue with provided details, but the PDF loads properly without any crashes in our side. For your reference, we have prepared a simple sample and it can be downloaded from the attachment.
If you still reproduce the reported issue in your use case, then kindly share the modified issue reproducing in the sample and share the issue replicating video, which will be helpful for us to provide a prompt solution at the earliest.
Regards,
Deepika R