Skip to content

Remove false-positive memory check#10

Merged
ivan-digital merged 1 commit intomainfrom
fix/remove-memory-check
Apr 7, 2026
Merged

Remove false-positive memory check#10
ivan-digital merged 1 commit intomainfrom
fix/remove-memory-check

Conversation

@ivan-digital
Copy link
Copy Markdown
Contributor

Summary

  • Remove the /proc/meminfo memory check that was blocking Pixel 9 Pro users
  • ONNX Runtime uses mmap for model loading — low MemAvailable doesn't mean models can't load

Context

Issue #9: Pixel 9 Pro (16GB RAM) reports 240MB available and throws IllegalStateException. The device has plenty of physical RAM — the kernel just reports low MemAvailable because it's used for caches/buffers.

Test plan

  • Build passes
  • 15/15 unit tests pass

Fixes #9

ONNX Runtime loads models via mmap — the kernel pages data on demand,
so low MemAvailable doesn't mean models can't load. The check was
blocking Pixel 9 Pro users with 240MB reported available even though
the device has 16GB physical RAM.

Fixes #9
@ivan-digital ivan-digital merged commit 9cf9220 into main Apr 7, 2026
@ivan-digital ivan-digital deleted the fix/remove-memory-check branch April 7, 2026 20:56
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

Successfully merging this pull request may close these issues.

Bug: crash on Pixel 9 Pro

1 participant