Can you reproduce using one of our samples or online demos?
No
Are you using the WebViewer server?
No
Does the issue only happen on certain browsers?
No
Is your issue related to a front-end framework?
Yes
Is your issue related to annotations?
No
Please give a brief summary of your issue:
WebViewer Crash/Unexpected Page Refresh on use of core.zoomTo()
Please describe your issue and provide steps to reproduce it:
We are experiencing a page instability(page crash) issue when the zoom level of the WebViewer is adjusted(zoom in or out). We utilize the core zoom function (core.zoomTo()), in our custom zoom component(very similar to the default one)
Issue 1: Page Crash
When users adjust the zoom level over a session:
The browser tab/page will unexpectedly crash.
Users on iOS/Safari are presented with the message: “A problem repeatedly occurred on http://website”.
The WebViewer instance and all unsaved session data are lost. This failure is more readily observed on older devices (e.g., 4-8 zoom adjustments).
To isolate the issue, we tested a minimal WebViewer setup (v8.1.0) and observed similar instability behavior, which requires us to repeatedly and consistently trigger the zoomTo() function to reproduce:
On the Safari browser (e.g., iPhone/iPad), repeatedly trigger the zoomTo() function by zooming in and out.
The WebViewer iframe/page will unexpectedly refresh or reload itself.
Please assist with this issue.
Please provide a link to a minimal sample where the issue is reproducible:
NA
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
WebViewer crashing or refreshing unexpectedly during zoom operations can be frustrating, especially on older devices or certain browsers. This issue could relate to resource constraints or handling of the zoom function, especially if the zoom operation triggers excessive rendering.
Some things you can try:
Optimize the zoom function by debouncing or throttling the core.zoomTo() calls to prevent excessive operations that could overwhelm the browser.
Ensure that the WebViewer is not running in a constrained environment such as low memory or CPU, especially on older devices.
Check for memory leaks or excessive resource usage in your custom zoom component that might contribute to instability.
Consider upgrading WebViewer to a newer version if possible, as there may be performance improvements or bug fixes related to rendering and zooming.
Test on different devices and browsers to identify if the issue is isolated to specific environments, which can guide further troubleshooting.
Here are some resources that might help you:
Get started with Full API: This guide can help you ensure your setup is optimal for using advanced functions like core.zoomTo().
WebViewer Server Configuration Options: Although you are not using a server, understanding configuration options may provide insights into performance tuning.
Hopefully, this helps you solve your problem while you wait for a human to get back to you.
Our team has addressed several mobile-related crash issues caused with zooming, across our latest WebViewer versions. I would recommend updating to the latest version of WebViewer to see if that resolves the problem on your end. Let me know if that works for you.