box / box/viewer.js

Viewer.js memory leak

Open
#210 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
333
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Hi,

(I use Silex framework with twig html)

When loading large documents (400+ pages, 30MB), the loading process is very slow and memory leak occurs on the client side. The browser memory usage grows to +1000 MB after opening and then freezes. Viewer.js opens in RAW HTML version of the document from our server. Memory leaks can also occur if the minimal code I use to render the document (At first I thought that this is caused by a memory leak, therefore I put everything else comments, but the memory leak remained):

var url = $('#viewerContainer').data('assets-url');

docViewer = Crocodoc.createViewer('.viewer', {

url: url,

});

docViewer.load();

The question is, whether there is a setting for viewer.js or box view api (using to convert to pdf raw html) what could solve the problem? Possibly some other advice?

Thank you for help.

![2015-11-21 16_38_58-greenshot](https://cloud.githubusercontent.com/assets/15310070/11361551/91948010-928e-11e5-8732-1fde7aac2f50.jpg)

Raw html document:
https://drive.google.com/file/d/0ByDvWaiboN9DYkJ4UFF0NmtqVWM/view?usp=drive_web

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.