# Web Viewer crashing while loading image

**URL:** https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558
**Category:** Questions about Thunkable X
**Created:** [May 27, 2020, 9:05am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558 "2020-05-27T09:05:51Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 27, 2020, 9:05am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/1 "2020-05-27T09:05:51Z")

</div>

Hello.

I am currently building an app that uses a webviewer along with a MediaDB to view images. Whenever I try to load my image, the app just crashes.

The problem originally was that the full height of the image was not being displayed, just the top part. I trying adjusting the height of the webviewer to see if that would solve the problem, but now the app just continues to crash.

I have tried putting it into a row, adjusing the height to fill the container, and so on but it just didn’t work. Would anyone have an idea as to what the problem may be, and how I could fix this? Thankyou.

---

<div class="post-metadata">

### Author: ![jaythemanchs](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jaythemanchs/32/92809_2.png) [@jaythemanchs](https://community.thunkable.com/u/jaythemanchs)
#### Post date: [May 27, 2020, 10:24am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/2 "2020-05-27T10:24:19Z")

</div>

You should use an image with the image URL.

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 27, 2020, 10:28am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/3 "2020-05-27T10:28:46Z")

</div>

Without a link to your app it is difficult to understand

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 7:10am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/4 "2020-05-28T07:10:15Z")

</div>

That is what I am doing. I am storing image URLs in a database.

---

<div class="post-metadata">

### Author: ![jaythemanchs](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jaythemanchs/32/92809_2.png) [@jaythemanchs](https://community.thunkable.com/u/jaythemanchs)
#### Post date: [May 28, 2020, 7:11am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/5 "2020-05-28T07:11:31Z")

</div>

Are you using the image component?

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 7:13am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/6 "2020-05-28T07:13:42Z")

</div>

Here is a link to a duplicate. The webviewer I am having issues with is on the first screen ‘Pictures’.

[https://x.thunkable.com/projects/5ecf63e7f73d4a75d7b16d11/Pictures/designer](https://x.thunkable.com/projects/5ecf63e7f73d4a75d7b16d11/Pictures/designer)

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 7:14am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/7 "2020-05-28T07:14:37Z")

</div>

No I am using a webviewer. Should I use the image component for this?

---

<div class="post-metadata">

### Author: ![jaythemanchs](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jaythemanchs/32/92809_2.png) [@jaythemanchs](https://community.thunkable.com/u/jaythemanchs)
#### Post date: [May 28, 2020, 7:15am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/8 "2020-05-28T07:15:35Z")

</div>

Yes, definitely.

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 7:21am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/9 "2020-05-28T07:21:15Z")

</div>

Thanks for the suggestion. I tryed using the image component, but the app continues to crash after loading the image.

---

<div class="post-metadata">

### Author: ![jaythemanchs](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jaythemanchs/32/92809_2.png) [@jaythemanchs](https://community.thunkable.com/u/jaythemanchs)
#### Post date: [May 28, 2020, 7:22am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/10 "2020-05-28T07:22:20Z")

</div>

oh, ok. I will try to help

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 28, 2020, 7:23am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/11 "2020-05-28T07:23:19Z")

</div>

Your blocks don’t have any error checking or error protection. Do you think that the app should work well? In addition, you use a lot of duplicate blocks - and this is a good source of errors

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 7:25am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/12 "2020-05-28T07:25:39Z")

</div>

Hmmm haven’t been using the error blocks, might be something i’ll have to implement.

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 7:27am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/13 "2020-05-28T07:27:12Z")

</div>

Okay. I will have a look and see if I can minimize the duplicates. Thanks for the suggestion.

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 28, 2020, 7:28am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/14 "2020-05-28T07:28:22Z")

</div>

No, this is what you need to always implement in all projects! Imagine that you were given a Bicycle to ride down a mountain. You will immediately sit on it and go, or first check whether the brakes on the bike are working, whether there are any defects that are there, check what is at the bottom of the mountain and around the bend, can you safely pass it?

The more blocks you use, the more bugs and errors there will be in your app

---

<div class="post-metadata">

### Author: ![jaythemanchs](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jaythemanchs/32/92809_2.png) [@jaythemanchs](https://community.thunkable.com/u/jaythemanchs)
#### Post date: [May 28, 2020, 7:29am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/15 "2020-05-28T07:29:21Z")

</div>

I see

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 8:16am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/16 "2020-05-28T08:16:13Z")

</div>

Thankyou for all the help so far, its much appreciated. So I have went through the screen code and simplified it as much as I could. The app seems to be happy loading the rest of the UI for the screen, but still crashes whenever it tries to load the image. Below is the code I am currently using:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/6/76ce52ddc6b63fb015e90e826345264e9d2aabe2.png)

---

<div class="post-metadata">

### Author: ![jaythemanchs](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jaythemanchs/32/92809_2.png) [@jaythemanchs](https://community.thunkable.com/u/jaythemanchs)
#### Post date: [May 28, 2020, 8:22am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/17 "2020-05-28T08:22:04Z")

</div>

Slight suggestion.

- the url is wrong
- there is no url under that file path
- the end path of the url is wrong

That might solve your problem.

oh ok.

---

<div class="post-metadata">

### Author: ![b8680513613d40](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@b8680513613d40](https://community.thunkable.com/u/b8680513613d40)
#### Post date: [May 28, 2020, 8:27am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/18 "2020-05-28T08:27:18Z")

</div>

Sorry, just to clarify for everyone I was just using a random image in the public duplicate for testing. It’s being properly used in the private version.

---

<div class="post-metadata">

### Author: ![conor.speedce](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/conor.speedce/32/71398_2.png) [@conor.speedce](https://community.thunkable.com/u/conor.speedce)
#### Post date: [June 8, 2020, 12:16am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/19 "2020-06-08T00:16:26Z")

</div>

oh my good look  
i can barley figure out how to use thunkable

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:27am UTC](https://community.thunkable.com/t/web-viewer-crashing-while-loading-image/590558/20 "2024-11-08T11:27:44Z")

</div>


