If it crashes with high resolution but works with lower resolution, it sounds to me as if you could put a limit on memory.
Check out this post on Memory Costs
1200 dpi - 7200x4800 (34,560,000 pixels) - 103,680,000 bytes (99 MB) 2400 dpi - 14400x9600 (138,240,000 pixels) - 414,720,000 bytes (396 MB)
If you fall into the range of 130 million pixels, you will significantly exceed your (fair) amount of memory, at least on most mobile devices today.
UPDATE
Here's another article on photography and memory issues.
source share