[Deprecated] Avoid Crashes of the Application for some of the components

Tired of Crashes of the application

Try this method may be this help you to avoid crash for the usage of following components or others with same properties

  • Floating Action Button

  • Radio Button

  • Switch Component

  • About Screen Title

  • List View Filter Bar Hint

  • Elements from String (Spinner)

  • Audio, Contact, Date, Email, Image, List, Phone Number, Time & Video Picker (Text Field)

  • Download Component

  • TinyDB

  • Wallpaper Component

  • Screenshot Component

  • Keyguard Manager

  • Sharing Component

  • Fingerprint Component

  • Image Editor

  • Admob Component

  • Spreadsheet Component

  • State Progress Bar


If using Floating ActionButton and left the material icon name field empty it will lead to the crash so to prevent it write any material icon name (eg.add) and compile now it won’t crash.

image


If using Radio Button and left the text field empty it will lead to the crash so to prevent it add some letters or just enter spacebar so it won’t remain empty and compile now it won’t crash.


About Screen Title & List View Filter Bar Hint should not be empty

Also if Switch Component Text Fields are empty it may lead to the crashes.

Description, Save File As, Title Fields of Download Component should not be empty

Thanks to @Boban for reporting these


Elements from String from Spinner should not be empty which also leads to the crash

Thanks to @dora_paz for reporting this


Text fields of Audio, Contact, Date, Email, Image, List, Phone Number, Time & Video Picker should not be empty

image


TinyDB Namespace field should not be empty

image

Thanks @Muhendis_Matematik for reporting this


Wallpaper Component’s Save Wallpaper As field should not be empty

image

File Name, Notification Share Title & Notification Title of Screenshot Component should not be empty

Description & Title Field of Keyguard Manager should not be empty

Sharing Component’s Share Dialog Message Field should not be empty

image

Dialog Help Text & Dialog Title fields of Fingerprint component should not be empty

Image Editor Component’s Save New Image As field should not be empty

image


Admob Component’s Consent Message & Consent Title should not be empty

Thanks @Zagal for reporting this


Spreadsheet Component’s View Name field should not be empty

image

Thanks @jimy_jonayker for reporting this


State Progress Bar’s Elements From String field should not be empty

image


This similar conditions applies for some of the extension properties also. So make sure you don’t left their properties empty.


Before this update even if leave this fields empty the app was not crashing but after the update it seems to crash.

You can leave text fields empty of the Label, Button & Text Box it won’t lead to crash.

Hope it will help someone who are facing issue with such components


EDIT: You don’t need to follow this anymore, seems the issue has been fixed with the Kodular Fenix 1.5.4 update :smiley:


Thank You :slightly_smiling_face:

78 Likes

Thanks for the information :wink: :+1:

3 Likes

Good catch, I just saw that in one of my old projects, it was missing.

6 Likes

Thank you so much, I don’t know how to express my joy :heart:. From this post- After the update my app crashes on install but works fine in companion - #6 by Powertech_Development the problem is from my radio button as you said in your post, it works like magic, now my design is working as expected. Respect :+1:

3 Likes

A post was merged into an existing topic: My app keep crashing when i open the app

Ohh… Sorry… i too miss to read that reply. Apologize for my mistake and withdraws my word

3 Likes

List View - Filter Bar Hint

bild

3 Likes

Thanks again @Boban for helping and reporting those components which were leading to the crash :blush:

4 Likes

what about web component it doesn’t behave fine after fenix update or anything wrong with me only.
from yesterday my already existing apps which use web component for fetching data loads data in 1-3 minutes and also companion didn’t open it also takes 1-3 min and than crash. but when i turned on vpn everything works fine

3 Likes

Good Tips :+1:

3 Likes

In filled all text fields and switch button field …but screen doesn’t open…please help

2 Likes

Check whether your About Screen Title is empty or not ?

3 Likes

Thank god …it’s working now …but i didn’t write in about screen in other screens …and why they are working fine

3 Likes

now my application has worked. the problem is that the tables in tinydb also do not write names.

6 Likes

I got mine fixed Making Tiny web db text field not empty, Thanks a lot, hard working community

3 Likes

hello, my app also quit. have already followed all things

2 Likes

09-16 01:47:20.832 3776 3776 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Baxolino.Akku.Manager/io.kodular.bgpsdr.BatteryManger.Screen1}: /tmp/1631727692618_0.37055352105743056-0/youngandroidproject/…/src/io/kodular/bgpsdr/BatteryManger/Screen1.yail:1473:45: unbound location null
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2666)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6121)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: Caused by: /tmp/1631727692618_0.37055352105743056-0/youngandroidproject/…/src/io/kodular/bgpsdr/BatteryManger/Screen1.yail:1473:45: unbound location null
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at gnu.mapping.Location.get(Location.java:67)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at io.kodular.bgpsdr.BatteryManger.Screen1.lambda403(Screen1.yail:1473)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at io.kodular.bgpsdr.BatteryManger.Screen1$frame.apply0(Screen1.yail:69)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at gnu.expr.ModuleBody.applyN(ModuleBody.java:226)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at io.kodular.bgpsdr.BatteryManger.Screen1$frame.applyN(Screen1.yail)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at gnu.expr.ModuleMethod.applyN(ModuleMethod.java:216)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:139)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at gnu.mapping.ProcedureN.apply1(ProcedureN.java:31)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at io.kodular.bgpsdr.BatteryManger.Screen1.$define(Screen1.yail:10265)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onCreateFinish2(SourceFile:503)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onCreateFinish(SourceFile:447)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onCreate(SourceFile:377)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6739)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2619)
09-16 01:47:20.832 3776 3776 E AndroidRuntime: … 9 more

2 Likes

Is there also a possibility to create a new project and to take over everything so that it can be used as an update?

2 Likes

1

the second error that occurs in me is the download component. save file as should not be empty.

5 Likes

Thanks however, it’s all three av them, Description, Save File As, Title

bild

5 Likes