# Real DB Add Listener Crashes

**URL:** <https://community.thunkable.com/t/real-db-add-listener-crashes/75458>\
**Category:** Questions about Thunkable X\
**Created:** [April 28, 2019, 12:26am UTC](https://community.thunkable.com/t/real-db-add-listener-crashes/75458 "2019-04-28T00:26:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Galina\_Lang](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@Galina\_Lang](https://community.thunkable.com/u/Galina_Lang)\
**Post date:** [April 28, 2019, 12:26am UTC](https://community.thunkable.com/t/real-db-add-listener-crashes/75458/1 "2019-04-28T00:26:57Z")

</div>

I am currently taking a Thunkable class in college, we have been working with the real time databases. It was working fine until the recent update on Thunkable user interface a few weeks ago. Everytime I add the “add listener” block for the real time DB, the app will crash. This has happened to several of my fellow classmates. We noticed if we take out the “add listener” the app will not crash.

 ![16%20PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/2/f23822165f70ab22e3af811e377230112bf461af.png)

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [April 28, 2019, 12:39am UTC](https://community.thunkable.com/t/real-db-add-listener-crashes/75458/2 "2019-04-28T00:39:34Z")

</div>

Can you show the blocks please that cause it.

Another thing to do is create an app as small as possible that recreates the issue. This is a form of issue isolation. It helps clear out other potential influencers in identifying is the issue device related, asset related, code related a combination of either, or clear a bug.

Thanks

---

<div class="post-metadata">

**Author:** ![Galina\_Lang](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@Galina\_Lang](https://community.thunkable.com/u/Galina_Lang)\
**Post date:** [April 28, 2019, 3:31am UTC](https://community.thunkable.com/t/real-db-add-listener-crashes/75458/3 "2019-04-28T03:31:24Z")

</div>

I just added a photo of the blocks, thank you!

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [April 28, 2019, 3:42am UTC](https://community.thunkable.com/t/real-db-add-listener-crashes/75458/4 "2019-04-28T03:42:39Z")

</div>

I am not sure what the bug is however this is not a good idea.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/9/89ea41eb1fabbd13ced7f1ddf95e283133d8b19f.png)

The issue is calling a remote service on Screen open. I would put that to a procedure or a clock function. The reason is when the first screen opens the app is initializing. Things can get in the way like basic phone functions whiile the app is trying to secure its memory space.

Create two apps. One that writes and one that listens. With one text box, and and a button that triggers each. have a classmate use one app to write while you listen.

It is bullshit in some ways to go through this, yet it is reality in programming. You are learning great skills.

I will help all I can,

Make sense?

---

<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, 12:13pm UTC](https://community.thunkable.com/t/real-db-add-listener-crashes/75458/5 "2024-11-08T12:13:57Z")

</div>


