android / android/app-bundle-samples
AAssetManager cannot handle a pack nearly 2GB on 32 bit device
- Dominant language
- C++
- Stars
- 735
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
For the install-time method, I have an issue with AAssetMangaer if the asset nearly to 2GB. Device has throw the exception
09-28 17:39:11.868 11327 11467 E filemap : mmap(0,441527557) failed: Out of memory
09-28 17:39:11.868 11327 11467 W asset : create map from entry failed
than the app crash because it cannot read the data.
Do you have any suggestion for it?
Thanks,
Contributor guide
Research direction
Start by reproducing the install-time asset-pack failure on a 32-bit Android device with an asset nearing 2 GB, using the reported AAssetManager and filemap mmap errors as the starting point. The issue names no source file, test, requested change, or acceptance criteria, so the expected definition of done needs to be established before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100