Skip to content
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

OOM in Camera #30

Closed
rinigus opened this issue Nov 18, 2019 · 4 comments
Closed

OOM in Camera #30

rinigus opened this issue Nov 18, 2019 · 4 comments

Comments

@rinigus
Copy link
Contributor

rinigus commented Nov 18, 2019

OOM can be triggered by:

  • start few apps and browser
  • start camera (Jolla's stock)
  • shoot video, stay in camera after its done
  • switch to camera photo mode, no pictures needed to be taken
  • in camera, swipe to left to get to shot video
  • watch video
  • go back to camera

When you get back to the camera, other processes will be killed in the background by low memory killer.

That will not happen, if after watching video, you'll get to desktop and close camera app.

@rinigus
Copy link
Contributor Author

rinigus commented Nov 19, 2019

looks like disabling CONFIG_ANDROID_LOW_MEMORY_KILLER in kernel gets rid of it

@rinigus
Copy link
Contributor Author

rinigus commented Nov 19, 2019

however, disabling it leads to simple way of rebooting device - tested using

perl -wE 'my @xs; for (1..2**20) { push @xs, q{a} x 2**20 }; say scalar @xs;'

So, if wishing to use classical oom killer, we will need to set its options correctly as well

@rinigus
Copy link
Contributor Author

rinigus commented Nov 19, 2019

Same script froze Android lowmemorykiller. Maybe a touch too aggressive

@rinigus rinigus mentioned this issue Dec 18, 2019
@rinigus
Copy link
Contributor Author

rinigus commented Jul 14, 2021

Not in AOSP10/aarch64

@rinigus rinigus closed this as completed Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant