Repository navigation
[MEDIUM] [Android] Large images crashing the App - 'Canvas trying to draw too large' #34372
Copy link
Copy link
Closed
Closed
Copy link
Labels
EngineeringInternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffSmartScanWave5-free-submittersWave5-free-submittersWeeklyKSv2KSv2
Description
Activity
- changed the title
[-][Android] Large images crashing the App -- Canvas trying to draw too large(149730560bytes)[/-][+][Android] Large images crashing the App -- Canvas trying to draw too large[/+]on Jan 11, 2024 - addedDailyKSv2KSv2InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffSmartScanWave5-free-submittersWave5-free-submitters
on Jan 11, 2024 No C+ required yet
- changed the title
[-][Android] Large images crashing the App -- Canvas trying to draw too large[/-][+][Android] Large images crashing the App - Canvas trying to draw too large[/+]on Jan 11, 2024 - changed the title
[-][Android] Large images crashing the App - Canvas trying to draw too large[/-][+][Android] Large images crashing the App - 'Canvas trying to draw too large'[/+]on Jan 11, 2024 - moved this to Release 5: Best in Class in [#whatsnext] Wave 05 - Deprecate Free
on Jan 11, 2024 24 remaining items
- changed the title
[-][Android] Large images crashing the App - 'Canvas trying to draw too large'[/-][+][MEDIUM] [Android] Large images crashing the App - 'Canvas trying to draw too large'[/+]on Feb 20, 2024 Hey @chrispader, just wondering if you've heard anything else from Expo, or whether this conversation is taking place on a public GH repo?
Awaiting response from Expo and @chrispader
Asked for an update here
Fixed by #38671
Nice stuff! Sorry for not replying fast enough 🥲 I think this solution is valid, as long as
expo-imagetakes care of the downsamplingReacted by Jules- moved this from Polish to Done in [#whatsnext] #wave-collect
on Mar 21, 2024 - added a commit that references this issue
on Sep 25, 2026
Metadata
Metadata
Assignees
Labels
EngineeringInternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffSmartScanWave5-free-submittersWave5-free-submittersWeeklyKSv2KSv2
Type
Projects
- StatusShow more project fieldsMEDIUM
- StatusShow more project fieldsDone
Problem
The Android app crashes due to a Canvas OOM exception when the image dimensions are extremely large. This has been fixed in the past, but we recently switched to Expo Image so I believe we'll need a new solution.
We have spent time on different image libraries and many related issues, and I am now trying to combine our current issues and resolve the remaining canvas OOM exception.
Solution
Collect all past attempts, recent merged PRs, and determine the best path forward for resolving the crash:
react-native-fast-imageImageZoomNext question: Do we need a fix in Expo Image?