Unity8 restarts often due to running out of memory #965
Comments
While the concern is understandable, increasing the swap space is not an appropriate solution, as it will greatly reduce the lifespan of the internal storage flash on these devices, due to the vastly increased number of writes that using it as swap would create. This is I think caused by a bug in the browser, which if I understand correctly, has been improved in the current RC build. Can you test the RC channel to see if this behaves better for you? |
You mean it's more like a memory leak? Does uNav use the same browser component? |
I don't know if uNav is embedding a web view or not, but it sounds like it is leaking memory if it keeps using more and more as you scroll across the map. I think there was also an issue with unity8's OOM score which might be fixed in devel now as well. |
I tried to decrease Unity8's out-of-memory score, but unfortunately you're not allowed to do that in Upstart session jobs. Seems like no one but root is allowed to set the score adjustments. |
I have installed OTA-6. I am still for bigger swap, and I don't care if it shortens life for internal memory (I could though use external SSD for swap I guess?), because it's unusable right now. With OTA-6, and 32MB SWAP.img, browser do not longer crash Unity - browser itself just WSOD's. I have opened https://www.ermitazas.lt/top-meniu/kontaktai/parduotuves/ and kept scrolling down, to load multiple google maps widgets (showing store locations), until it basically crashes (white page). uNav still crashes whole Unity desktop after some scrolling though. After increasing swap to 1GB, I see no such problems, phone is perfectly usable. |
The issue seems to be that zram, which compresses data in RAM, was not getting started on boot on devices where it is configured. ubports/lxc-android-config#20 should fix it. |
But that zram is only for android-container, i.e. on android subsystem, drivers..? Or it's more? Will it actually conserve enough to have significant more memory for apps? |
The E5 and E4.5 allocate 512 MB of zram by default, which is mounted in the Ubuntu userspace. It will not provide you with 1GB more space. You will be able to run apps more like before the 16.04 transition. |
Hi,
After upgrading from OTA-3 to OTA-5, Unity has started crashing often. uNav, Reddit webapp, browser invokes crash for whole destkop - Untiy reboots, showing loading dots...
I've noticed that swap space is only 32MB. I believe in Canonical times it was around 500MB, but I might recall badly.
Anyway, I did experiment:
free -m
output - it started with about (only!) 270MB available memory.Then, I've increaced swap size:
After this, uNav did not reproduce system crash. I see about ~180MB of swap used up constantly. System looks more stable, at least for now. 32MB default swap is really unrealistic on this device.
Please increase default swap size at least on small-memory devices such as BQ E5.
The text was updated successfully, but these errors were encountered: