Any tips for reducing errors in my project?

Hi,
There have been some problems which the Thunkable team have been working on to rectify built/downloaded app crashes. But what are the steps we should take to be sure our apps are not the cause of the problem? If an app is working well in Preview/Live Test, but then a downloaded version fails to open or crashes while in use, what steps should a Thunker take to rule out their blocks as being the cause of the problem?

I have discovered that I can reliably crash one of my apps by stabbing at the splash screen buttons during when it is loading. Thereā€™s a small image, which arrives late for some reason, providing a window for a user to do this before the page appears properly loaded.

:slight_smile:

This is a really great question actually @penny, I think we can maybe look at improving our troubleshooting guide as quite a few users at the moment are introducing errors in their blocks and then assuming that thereā€™s some issue with Thunkable.

For the moment, letā€™s stick to your app and we can go from there:

Is this something you expect your users to do? (or do repeatedly?)
Assuming youā€™ve made your own custom splash screen?
Are you using a button component here (you mentioned buttons) or an image?

Hi Dom,

ā€œIs this something you expect your users to do? (or do repeatedly?)ā€
No, not really but I just tried to cause a crash and realized I could in the loading moment. Thereā€™s an image and it loads last for some reason, though it is not a large image (15kb). The buttons appear before the image which makes them available to use and it seems thereā€™s a vulnerability in that moment. I suppose anyone in a hurry might hit the button earlier than the load sequence would like, and thus trigger the crash I was able to precipitate.

I read someone else referring to crashes related to changes of screen, too. Particularly the ā€œnavigate toā€ block.

Dom, please put a link to the troubleshooting guide.
:slight_smile:

Youā€™re right. It often happens that actions occur asynchronously and the user may try to perform an action with data that is not ready for use. What should do in this case? You need to check whether the data is ready to work with them. If the development environment doesnā€™t allow you to do this, then this is a huge problem.

Dom, is there a link to the guide you mention?

Hi @penny,

You could ā€˜Disableā€™ buttons for a short period of time, such as a couple of seconds. Then they will light up ready to use! You can also hide them depending on the type of app (or the type of users) you are dealing with and have a loading icon up for those few seconds etc.

Or use When Screen > Starts, instead of When Screen > Opens, that has fixed one or two issues for me.

Good luck!

:blush: :+1:

Whoā€™da Thunk that. Thank you. Iā€™ll try that.
:slight_smile:

@penny, hope it works for you!

Please click the Solution box on the relevant comment, if it was helpful, thank you :slight_smile:

1 Like

Iā€™m not sure it is a solution at this point, but Iā€™m certainly going to try it.
:slight_smile:

If this is it:
https://docs.thunkable.com/troubleshooting

Itā€™s a bit thin on options to try when downloaded apps crash on load, or run once and then need to be reinstalled to run a second time.

Hi @penny. would you be willing to share a copy of your link or the blocks that are on the screen that has issues?