Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 22
Registered: ‎01-05-2013
My Device: Dev Alpha
My Carrier: Bell

Large image in webview crashes app

So I'm loading some html into a webview, and it sometimes contains img tags. If the image is too large, specifically, when trying to load an image that was taken with my Z10's camera, the app will crash while trying to load it. What's more, is if I load a smaller image first, and then the large one, it doesn't crash. Ex: One screen has a list of images. Click an item, new page with a webview gets pushed. If a smaller image is loaded first, then when the page is popped, and repushed with the larger image, then there is no issue. But if I push the page with the large image first, the app crashes while loading the image.


I had the same issue with an imageview and loading large images, and the solution was to resize the image before applying it to the imageview, but I'm not sure how to fix the issue with a webview.

Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Large image in webview crashes app

you should open an Issue for this and attach a sample

seems it's reproducible

ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Large image in webview crashes app

[ Edited ]

Hi Scott56, what SDK and OS versions are you using? If 10.1 or later, please issue a bug on jira at this link: https://www.blackberry.com/jira/secure/Dashboard.jspa


And please add your code to the issue log so that we can reproduce what you are seeing.




Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
New Contributor
Posts: 4
Registered: ‎04-02-2013
My Device: BlackBerry Z10
My Carrier: vodafone

Re: Large image in webview crashes app



I've the same problem Scott56 has described, with the exact behavior. I was wondering if there is a fix, or there is a still open bug?