High CPU and GUI issues

Hi,

please check the attached sample. I see some problems there:

  1. Gap on bottom
    there is an empty space below the document, it shouldn't be there. When you resize the window it is fixed

  2. High CPU
    please uncomment line 20 in MainWindow.xaml.cs to set dark theme
    CPU usage is now constantly high - seems like consuming one thread
  3. ShowAnnotationTools not working
    when line 20 is uncommented then pdfViewer.ToolbarSettings.ShowAnnotationTools = false; is not working anymore

Thank you!

Attachment: HideToolbarItems_54119df8.zip

13 Replies

DD Divya Dhayalan Syncfusion Team September 15, 2021 03:50 PM UTC

Hi Ondrej, 
 
Thank you for contacting Syncfusion support.  
 
We can reproduce the below reported issues with the provided sample. We are currently checking all the issue and we will provide furthermore details on 21st September 2021. 
    1. Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom
    2. Annotation tool hiding is not working after applying the dark theme.
    3. The CPU usage is increasing more after applying the dark theme. We observed that there is ~30% CPU usage difference between the normal control and theme applied control. Kindly provide us more details if our observation is different to what you have mentioned.
Without Theme 
With Theme 
 
 
 
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team September 22, 2021 06:53 PM UTC

Hi Ondrej, 
 
Please find the details in the below table. 
 
Query 
Details 
Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom 
We confirmed the issue “Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom” as a defect in our product. We will include the fix for this issue in our weekly NuGet release, which will be available on October 12th, 2021.  
 
Please use the below feedback link to track the status of the reported bug. 
 
Note: If you require patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.  
 
Annotation tool hiding is not working after applying the dark theme. 
On analyzed further, we found the issue “Annotation tool hiding is not working after applying theme” is fixed as a stability work. Also, the fix for this issue will be available in our upcoming 2021 volume 3 release. We will let you know once the release is rolled out.  
 
The CPU usage is increasing more after applying the dark theme.  
We are still analyzing on this issue with more priority, and we will update further details on 27th September 2021. 
 
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team September 27, 2021 01:54 PM UTC

Hi Ondrej, 
 
Please find the details in the below table. 
 
Query 
Details 
Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom 
As we have mentioned in our previous update, we will include the fix in our weekly NuGet release, which will be available on October 12th, 2021 
 
Please use the below feedback link to track the status of the reported bug. 
 
Note: If you require patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.  
 
Annotation tool hiding is not working after applying the dark theme. 
As we have mentioned in our previous updated, the fix for this issue will be available in our upcoming 2021 volume 3 release. We will let you know once the release is rolled out.  
The CPU usage is increasing more after applying the dark theme.  
On analyzed further, we found the increased CPU consumption is occurring due to applying the theme in the Loaded event handler.  The CPU usage can be reduced by applying the theme after the InitializeComponent() method in the window constructor. Please find the below code snippet for the same. 
 
public MainWindow() 
                             { 
                                           InitializeComponent(); 
                                           Syncfusion.SfSkinManager.SfSkinManager.SetTheme(this, new Syncfusion.SfSkinManager.Theme("MaterialDark")); 
                                           pdfViewer.Load("../../Data/F Sharp Succinctly.pdf"); 
                             } 
 
We have also modified the provided sample, and which can be downloaded from the below link, 
 
Please check the above details and let us know if you need any further assistance on this. 
 
Regards, 
Divya 



OS Ondrej Svoboda September 27, 2021 02:03 PM UTC

Hi,

so that means that theme can be set only once - in the constructor and later can't be changed? (e.g. on button click)


Regards

Ondřej



DD Divya Dhayalan Syncfusion Team September 28, 2021 09:22 AM UTC

Hi Ondrej, 
 
We can also set the theme in runtime. We have cross checked the CPU consumption by applying theme using a button click and observed the CPU consumption is same as for the default theme. The sample which we have used can be downloaded from the below link, 
 
Please let us know if the solution helps. 
 
Regards, 
Divya 



OS Ondrej Svoboda October 5, 2021 12:50 PM UTC

Hi,

I can confirm that second item in the table is resolved in the latest version.


But I still have that CPU issue even when theme is being applied in the constructor as you proposed. I've found out that work around that works for me is to delay PDF file loading in there. I use dispatcher for that:

PdfViewer.Dispatcher.BeginInvoke(DispatcherPriority.Background, new System.Action(() =>

{

PdfViewer.Load(PdfPath);

}));

Strange part is that I can't reproduce this issue in your sample.



DD Divya Dhayalan Syncfusion Team October 6, 2021 04:46 PM UTC

Hi Ondrej, 
 
Thank you for the update. We are glad to know that the issue “Annotation tool hiding is not working after applying theme” is resolved in your end using the latest version.  
 
Regarding the CPU consumption and delay in rendering of PDF document issue, we tried to reproduce the issue in our end with the provided code snippet and applying localization for the application. However, we could not reproduce the issue with our PDF document in our end.  
 
We request you to modify the sample which we provided in the last update by reproducing the issue and share with us or kindly share below listed details to analyze more on this and assist you with a better solution.  
1.      Modified sample 
2.      Detailed replication steps 
3.      Problem occurring PDF document 
4.       Any other default settings changes ( applying localization, themes) 
Regards,  
Divya   



OS Ondrej Svoboda October 7, 2021 07:40 AM UTC

Unfortunately I've tried to modify your sample to reproduce the issue but without success. I suspect it to be some kind of race condition or something like that.



DD Divya Dhayalan Syncfusion Team October 9, 2021 04:42 AM UTC

Hi Ondrej, 
A support incident to track this particular query has been created under your account for a better follow up on the reported issue. Please log on to our support website to check for further updates.      
  
 
Kindly let us know if you need further assistance.  
       
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team October 12, 2021 07:34 PM UTC

 Hi Ondrej, 
 
We have included the fix for this issue "Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom" in our latest weekly NuGet release, so kindly upgrade to latest version v19.3.0.45 to get the issue resolved.   
    
  
Disclaimer: This fix will be included in our 2021 Volume 3 SP-1 release which will be available in November 2021 
  
Please find the feedback link below, 
 
Regards, 
Divya 



OS Ondrej Svoboda October 13, 2021 07:13 AM UTC

Hi,

I can confirm that it works. Thanks.

Ondřej



DD Divya Dhayalan Syncfusion Team October 14, 2021 03:21 AM UTC

Hi Ondrej, 
 
Most Welcome. 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team November 14, 2021 08:49 AM UTC

Hi Ondrej, 
  
As we mentioned earlier, we have included the fix “Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom” into the 2021 Volume 3 SP-1 release.  
 
We are glad to announce that our Essential Studio 2021 Volume 3 Service Pack Release V19.3.0.53 is rolled out and is available for download under the following link. 
 
Please find the feedback link below, 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
Regards, 
Divya  


Loader.
Up arrow icon