"Cannot read properties of null (reading 'append')" error when using some PDF

Hi Syncfusion Team,

We have received a complaint recently from one of our users about a file he is no longer able to save when open in a PDF Viewer. After investigation on our end, we found out that they were errors in the console coming from your component.

The errors were all the same in a local environment 

And we did reproduce the same error using the instance found in your "Getting Started" page (https://ej2.syncfusion.com/angular/documentation/pdfviewer/getting-started/#run-the-application)

I have included a sanitized version of the file for privacy reasons but it still causes the error to pop up even if other files we had tried didn't.


I would greatly appreciate it if you can look on your side if there is indeed a problem or if there is something we are doing wrong

Regards,

Michel-Antoine


Attachment: problematic__file_13e5a57.zip

6 Replies

SK Shamini Kiruba Sobers Syncfusion Team January 27, 2022 03:17 PM UTC

Hi MichelAntoine, 
  
We were unable to replicate the reported issue by downloading or saving the document loaded in PDF Viewer. The sample we tried at our end can be downloaded from the following link. 
  
  
  
Run the web service first and then the Angular sample. 
  
Kindly try the sample we have provided and revert to us with a modified sample and more details about your issue if you have any concerns about this. And could you please share the network tab response details while saving the document? This will be helpful to investigate further and provide the solution at the earliest. 
  
Regards, 
Shamini


ML MichelAntoine Lemire January 28, 2022 07:29 PM UTC

Hi Shamini,


We have found another problem on our side that was preventing the save to work and now that it's fixed, it worked


That being said, the error mentioned above is still there, even if it doesn't seem to prevent saving as I first thought.

I should add that it seems to happen only when scrolling the document while he is loading


Regards,

Michel-Antoine




SK Shamini Kiruba Sobers Syncfusion Team February 1, 2022 07:15 AM UTC

Hi MichelAntoine, 

Thanks for the additional information. We were now able to reproduce the issue "Cannot read properties of null (reading 'append')" error when scrolling the document before loading. We will validate it and update further details on February 3rd, 2022

Regards, 
Shamini


SK Shamini Kiruba Sobers Syncfusion Team February 3, 2022 03:26 PM UTC

Hi MichelAntoine, 

We have validated the issue “Script error occurs on scrolling the landscapes PDF document before loading” and logged it as a defect. The fix for the issue will be available in our upcoming weekly NuGet release on February 23rd, 2022. You can track the status of the issue through the following link. 


Regards, 
Shamini 



SK Shamini Kiruba Sobers Syncfusion Team February 24, 2022 03:09 PM UTC

Hi MichelAntonie, 

Sorry for the inconvenience. The fix was not included in our latest weekly NuGet release. However, we have shared the custom package for the same. We will include this fix in our upcoming weekly NuGet release on March 2, 2021 
  
 
Regards, 
Shamini 



SK Shamini Kiruba Sobers Syncfusion Team March 2, 2022 12:52 PM UTC

Hi MichelAntonie, 

We have fixed the reported issue and the fix for the reported issue was included in our latest weekly release v19.4.0.54. Kindly upgrade to that version to get the issue resolved.  
    
Packages:    
    
Blazor Client     
Blazor Sever    
Service side package       
ASP.NET Core :       
        
ASP.NET MVC:       
   
 
Regards, 
Shamini 


Loader.
Up arrow icon