Closed germanicianus closed 1 year ago
I split off the zoom problem in #318. This should fix the issue of uncontrollably rising memory consumption.
Additionally, I compared memory consumption of Firefox and Chrome when uploading a background image. For Chrome the memory consumption remained similar after uploading multiple backgrounds. For Firefox uploading an image has a definitive impact on the memory consumption. By uploading multiple images in a row the memory cost of the Lab tab alone can eat up to 700 MB in my tests. After GC ticks in the consumption lowers again.
This problem is on Chrome too and I am not even able to upload the image.
@rishabhdeepsingh the uploading should be fixed with #273. Do you get significantly higher memory consumption on Chrome? I didnt with Chrome & Chromium on Ubuntu 18.04.
No, I am not getting any high memory consumption.
Okay, then #273 should be enough for Chrome :)
The first time I uploaded a simulation background image, it has been displayed, but was extremely zoomed in. Therefore I tried to zoom out with the mouse wheel (rolling it back). This lead to Firefox eating up all the RAM and thrashing the paging file. In the end even the mouse pointer was frozen and I had to hard reset the computer.
System: Windows 7 SP 1 on latest patch level Firefox ESR 68.2.0 64 bit
Steps to reproduce:
Once I had Firefox displaying the just uploaded background just briefly (also extremely large) - see the screenshot at the end.
Workaround: After uploading the background image, reload the page, select EV3 again and cycle through the background. The just uploaded one is there and will be displayed correctly.
What I also miss is the documentation on which pixel size the image has to have for which virtual cm size. I found that out uploading an image and comparing the pixel size with the ultrasonic sensor reading - it's apparently pixel/3 = cm.