hnmr293 / posex

Posex - Estimated Image Generator for Pose2Image
577 stars 72 forks source link

waiting for unpkg.com / memory leak #1

Open RoyRiv3r opened 1 year ago

RoyRiv3r commented 1 year ago

Hello there, thank you for this tool! It takes a while to the files needed to make this works, there is also a memory leak

hnmr293 commented 1 year ago

Thank you for your feedback, Aghneel!

I'm going to choice another CDN for better response.

On the Other hand, to resolve memory leak issue, I need more information about it. Please tell me the steps to reproduce the problem.

Thank you!

RoyRiv3r commented 1 year ago

Sure thing, whenever i start the app on firefox v110 windows 11, i have this huge memory leak that never stops, idk if its related to the long wait or not, if i need to do something to help fixing it, just tell me. YJpjCiq

Edit : I just tried on different browser and doesn't seem to have the problem..

hnmr293 commented 1 year ago

The devlopment environment detail.

CPU: Intel i7-13700
RAM: 64GB
GPU: NVIDIA RTX2080 SUPER
OS: Microsoft Windows 10 Home 22H2 (build 19045.2604)
Azazellz commented 1 year ago

Have similar issue here. 98% of memory use (32GB), HDD with SD under 100% load forever. But CPU and GPU works normally. controlnet models load very slowly. openpose preprocessor loading stuck. Image generation does not start.

After disabling this extension, everything returned to normal.

hnmr293 commented 1 year ago

Thanks for your feedback. Please tell me your environment.

Azazellz commented 1 year ago

Thanks for your feedback. Please tell me your environment.

* OS

* browser and its version

* local, or cloud such as colab

* if local, how you had installed webui (git or any installer)

* using symlink or not

Win10 Mozilla Firefox 110.0 (64-bit) Local. Git. No.

After switching to the latest version of Firefox 110.1 (64-bit), I was able to start generating images, but WebUi consumes more and more RAM over each image, like this: pic And in the end, it just freezes. Restarting the browser helps, but not for long.

Azazellz commented 1 year ago

Tried it on a Chrome (version 110.0.5481.178) too. The RAM is fine here, but the browser tab with WebUI and with your extension is using 95% of the CPU. When I switch to another tab, the load drops to almost zero. pic2

RoyRiv3r commented 1 year ago

I had the memory leak only on standalone version, now the extension works fine tbf! I think @hnmr293 added recently a way to lock the FPS, maybe try and check that?

Azazellz commented 1 year ago

Nothing has changed for me. Even in "low fps" mode, the Chrome tab still uses ~95% of the CPU power and the memory leak for Firefox still exists.

Graph of memory usage after several generations. The first drop is I disabled the extension and reloaded the browser tab. Then Firefox froze for a bit, and after that, a second drop appeared. pix3

LewisStewartOG commented 1 year ago

Same mem leak issue

Windows 10 LTSC, Waterfox G5.1.3, Local Git No

3840x2160 resolution Everything works just fine till it mem leaks out, Reproducible on my end.. Fresh restart > txt2img > enable Send this image to ControlNet > interact with poseX ui.. zoom w/ mouse wheel or m3 and move using m2 > mem leak

feffy380 commented 1 year ago

Also running into this memory leak on firefox. Memory usage climbs with every batch generated. Reloading the tab causes it to drop again so it seems the leak is on the javascript side