# Thunkable app crashes and restarts during testing

**URL:** <https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358>\
**Category:** Questions about Thunkable X\
**Created:** [April 26, 2019, 2:52am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358 "2019-04-26T02:52:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![talkingtree](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@talkingtree](https://community.thunkable.com/u/talkingtree)\
**Post date:** [April 26, 2019, 2:52am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/1 "2019-04-26T02:52:28Z")

</div>

Hi,

Does anyone know how to solve this? The Thunkable app crashes and restarts whenever I’m testing the information page with Web API and populating information.

Link:  
[https://x.thunkable.com/copy/d95242d48a3fa419b9ba6b96208aa002](https://x.thunkable.com/copy/d95242d48a3fa419b9ba6b96208aa002)

---

<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:** [April 26, 2019, 7:42am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/2 "2019-04-26T07:42:27Z")

</div>

Hi,

Need a link to the application

---

<div class="post-metadata">

**Author:** ![talkingtree](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@talkingtree](https://community.thunkable.com/u/talkingtree)\
**Post date:** [April 26, 2019, 8:09am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/3 "2019-04-26T08:09:42Z")

</div>

Here it is

[https://x.thunkable.com/copy/d95242d48a3fa419b9ba6b96208aa002](https://x.thunkable.com/copy/d95242d48a3fa419b9ba6b96208aa002)

---

<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:** [April 26, 2019, 9:13am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/4 "2019-04-26T09:13:08Z")

</div>

Run on Android 5.1. The first screen works, the State selection works, the search works. The new search button also works. What is the problem with your device?

---

<div class="post-metadata">

**Author:** ![talkingtree](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@talkingtree](https://community.thunkable.com/u/talkingtree)\
**Post date:** [April 26, 2019, 10:44am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/5 "2019-04-26T10:44:23Z")

</div>

It crashes at the last page, here’s a link

---

<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:** [April 26, 2019, 11:16am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/6 "2019-04-26T11:16:51Z")

</div>

Okay, I’ll take a look. I think the problem is that some object = null.

Take a look at my example

[https://x.thunkable.com/projects/5cc2cde0776b8cea9bac8abc/project/properties/designer/](https://x.thunkable.com/projects/5cc2cde0776b8cea9bac8abc/project/properties/designer/)

---

<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:** [April 26, 2019, 11:29am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/7 "2019-04-26T11:29:08Z")

</div>

You use the Web\_API block and other blocks without checking for errors. This makes the application unstable to errors. Before using objects and data, you must first make sure that they exist. If you use the Web Api block and others, this does not mean that the data in it will be necessary. You need to check the status block for = 200 and the like.

---

<div class="post-metadata">

**Author:** ![talkingtree](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@talkingtree](https://community.thunkable.com/u/talkingtree)\
**Post date:** [April 26, 2019, 12:38pm UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/8 "2019-04-26T12:38:32Z")

</div>

Ok, I see, so I should remake Web\_API again?

---

<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:** [April 26, 2019, 8:16pm UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/9 "2019-04-26T20:16:02Z")

</div>

No, you need to supplement the Web\_api block with error protection. Have you seen how status = 200 is used in my Web\_API block? This means that the successful processing of the request. But this treatment may be unsuccessful.

When you use the get property of object block (or any block for working with objects), you need to be sure that this object exists. I can not tell you in detail about all cases of protection against errors, but if something does not work, then it can be either an error in your blocks or a Thunkable X bug.

---

<div class="post-metadata">

**Author:** ![talkingtree](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@talkingtree](https://community.thunkable.com/u/talkingtree)\
**Post date:** [April 28, 2019, 1:35pm UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/10 "2019-04-28T13:35:05Z")

</div>

Ok, thanks a lot for your help. I’ve gone through your example and the approach in this example and your approach is neat and very interesting, you had also setup the layouts.

---

<div class="post-metadata">

**Author:** ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)\
**Post date:** [December 30, 2019, 2:37am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/11 "2019-12-30T02:37:51Z")

</div>

Hello !!

i cant find your project. i have the same problem.

thanks !!

carlos

---

<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:** [December 30, 2019, 8:05am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/12 "2019-12-30T08:05:22Z")

</div>

Hello, I think I deleted this project. See [http://droidscript.ru/main/statyi/thunkablex\_debugging.php](http://droidscript.ru/main/statyi/thunkablex_debugging.php)

---

<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:46am UTC](https://community.thunkable.com/t/thunkable-app-crashes-and-restarts-during-testing/75358/13 "2024-11-08T11:46:11Z")

</div>


