Native Android app crashes on open

It might not be something of importance but remember that nowadays Thunkable servers are slower on performance and your changes might not take effect immediately.
there are times that I had to close and test again 2 or 3 times to see the affect of my changes.

I have seen the refresh block crashing the app but when I insert a wait block just above it, seems to fix the issue.

1 Like

I noticed that with the web app deployments, so I am trying to be mindful of that. However thanks for the reminder as it wouldnā€™t hurt to wait a bit longer.

1 Like

Great point. When in doubt, I do something obvious like change the screen background color - then Iā€™m sure Iā€™ve got the updated version ā€“ or not!

2 Likes

I have tried a few things and have had no luck. But in case something pops out at you, let me know. Here is what I have done at this point. (FYI, I took @catsarisky 's advice and started changing background colors to make sure my updates were going through). IDK where to go from this point.

  1. Removed all blocks from the opens function.
  2. Changed DVL source to google sheets (Same data)
  3. Completely removed DVL

You might want to hit that intercom button (bottom right) and ask Thunkable staff to try a reset on your project.

1 Like

UPDATE: I removed my screen from the top navigation, therefore removing the top navigation from the screen, and it worked without crashing. Any thought on why?

1 Like

I had problems one time with top navigation and a navigate to block another screen. Iā€™m trying to reproduce as a sample project and canā€™t get it to do soā€¦

Hmm. My older project (both are snap to place) has a different style ā€œnavigate toā€ block, that will /not/ navigate to a page within a top navigator (but doesnā€™t crash - at least in iOS) ā€“ itā€™ll only navigate to the top navigator. The project I just made has a slightly different looking ā€œnavigate toā€ block that doesnā€™t navigate to navigators. Butā€¦ neither one crashes (on iOS), so Iā€™m stumped at least until Iā€™m home later tonight and have my Android device to test on. Hey @jane , did the ā€œnavigate toā€ block get a stealth overhaul?

The navigator component acts weirdly. I tested it last week.

It seems to be ok with some screens and not the other. I had an empty screen that crashes the app every time but failed to pin point the error behind it. I ended up removing the navigator and adding it again and it worked with me. Iā€™m now testing it on daily basis waiting to witness it crash again.

I donā€™t know about the stealth, but I think I got tunnel vision and I have found the problem. I was bested by a web viewer. After my tests today, I found out that my settings page was what was giving me issues. My settings page had a VISIBLE web viewer, but once I removed it and made it a button to push to open the link in a browser, everything is working. Sorry I didnā€™t catch this earlier. Based on the suggested troubleshooting in this form, I was looking for a NON-Visible web viewer on the pages I was directly navigating too. My guess is with the navigation, it might ā€œloadā€ all of the pages in the navigation (which is where my settings were), and that is what broke it. So even though I was not navigating directly to my settings, the web viewer there broke it.

Never the less, this presents a different issue as a visible web viewer was crashing the app. But that might be a issue for another topic.

1 Like

Iā€™m glad you found it! That was a tough one.

1 Like

Sorry, all for making you look so hard when the answer was early in the thread. But lessons learned!

1 Like

I like a good puzzle. :slight_smile:

We learn from each other and each lesson learned is worth the effort.

I always say when I make the mistake the second time that it apparently means I failed to learn from the first lesson.

1 Like

So. I canā€™t replicate this crash on my Android 7 testing device. I was going to file a bug report with a sample project, but I canā€™t make it crash. What am I missing?

(I also canā€™t make it crash with a non-visible webviewer, so maybe Iā€™m just doing something wrong!)

1 Like

Itā€™s the same for me and I test on Android 7 and 9. It crashes on 9 only so I assume it would crash on 10 and 11 too.

Interesting. I wanted to post a sample project that crashes over on Github because I donā€™t think thereā€™s a good clear one, especially not one involving the webviewer in a navigator that bnice found today, but without being able to trigger a crash, I canā€™t. If youā€™ve got time and inclination, I hope youā€™ll post a Github bug report.

1 Like

See this from a PM with another community member

You were right. The web viewer cannot be invisible (even if it is visible in a row or column that is invisible)

He tried to have the web viewer inside a column row and made the container of the web viewer invisible and the app kept crashing although the web viewer itself is visible. Which is weird enough for me and the same screen runs perfect on Android 7.

Hi @catsarisky
Can you give a little explanation on the topic of resetting a project. What exactly is reset?

1 Like

I donā€™t work for Thunkable. Iā€™ve seen an asset reset offered by Thunkable staff several times for glitchy behavior.

2 Likes