-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page with long list of images, edit with image editor, memory problem #375
Comments
Thank you for raising an issue. Please make sure you have filled out issue respecting our form in English and given us as much context as possible. If not, the issue will be closed or not replied. |
Thanks for the problem. In addition to the improvement plan, we will take a closer look and improve it. It may help to improve the execution environment, especially if you provide information such as browser type, version, and os. Also the version of the image editor. Are you using the destroy method to destroy an instance? I need more information. For example, did you create 40 instances at the same time? Or is it still loading different images from one instance? |
Sorry, here is the env Browser: embed browser in app(webkit) And yes, we use the destroy method to destroy an instance. We wrap The The component will destroy itself when it's unmounted. And we will manually destroy So every time there would only be one |
We thought the memory problem might be caused by But if the user never use our image editor that is wrapped with We thought the |
|
Bugs in the vue wrapper has 3.8.0 applied, so it needs update. It will be reflected in the vue wrapper soon, so I think you can check it out at that time. If you are in a hurry, you can fix dependency version package.json directly and install it. |
Glad to hear that! So you mean all the memory problem are mostly caused by bugs in |
This was most likely because the event was not cleared when destroying at 3.8.0. It's hard to say that there is only one cause, but I hope it helps. I need more time to find everything in depth, I'll do it soon. |
I've tried destroy method of Is it a bug within thx |
After I digged into So, what's the problem with |
#334 |
Hello, First of all, thank you for the work on this library. I have been using it a lot in one of my projects. The project in question has a similar setup as the one described here (Vue.js + https://github.com/nhn/toast-ui.vue-image-editor with a long image list) and I have been experiencing a similar issue, particularly after opening a few large images in iOS Safari. I’ve submitted a PR that seems to have solved the issue for me at #495. |
Hello,
Our product has a page with long list of images, our user(mostly a teacher) will edit these images with
tui.image-editor
tomark
error area or score on the images.After the teacher edited 40 or more images, the page will
refresh automatically
even the editor instance destroyed every time after the teacher finished editing.We optimized for this by reducing(remove) the
invisible dom
(images). It will not refresh now. We are so happy. Our users are so happy!But,
there is still a problem, after our user(the teacher) edited 40 or more images, the
tui editor
cannot load the image anymore(onto the canvas). We think it's a memory problem. It will occur then the device in a low memory status.This problem are not easy to reproduce.
We are hoping that you could provide some optimizing ideas.(not fix it)
Thanks!
The text was updated successfully, but these errors were encountered: