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

This app works normally on the phone emulator, but it crashes when I download it to the phone.
The following is the error information of the Google play test report.
Can anyone tell me what went wrong!

FATAL EXCEPTION: main
Process: io.kodular.app97204.Hi_EV3, PID: 20762
java.lang.RuntimeException: Unable to start activity ComponentInfo{io.kodular.app97204.Hi_EV3/io.kodular.app97204.Hi_EV3.Screen1}: /tmp/1636897566444_0.4775395744126023-0/youngandroidproject/…/src/io/kodular/app97204/Hi_EV3/Screen1.yail:11:78: unbound location null
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: /tmp/1636897566444_0.4775395744126023-0/youngandroidproject/…/src/io/kodular/app97204/Hi_EV3/Screen1.yail:11:78: unbound location null
at gnu.mapping.Location.get(Location.java:67)
at io.kodular.app97204.Hi_EV3.Screen1.lambda4(Screen1.yail:11)
at io.kodular.app97204.Hi_EV3.Screen1$frame.apply0(Screen1.yail:523)
at gnu.expr.ModuleMethod.apply0(ModuleMethod.java:186)
at kawa.lang.Promise.force(Promise.java:27)
at kawa.lang.Promise.force(Promise.java:37)
at kawa.lib.misc.force(misc.scm:98)
at io.kodular.app97204.Hi_EV3.Screen1.$define(Screen1.yail:10307)
at com.google.appinventor.components.runtime.Form.onCreateFinish2(SourceFile:503)
at com.google.appinventor.components.runtime.Form.onCreateFinish(SourceFile:447)
at com.google.appinventor.components.runtime.Form.onCreate(SourceFile:377)
at android.app.Activity.performCreate(Activity.java:7144)
at android.app.Activity.performCreate(Activity.java:7135)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
… 11 more

1 Like

Something is empty in Screen1, check About Screen Title and if this isn’t empty the scroll go through list in post1

4 Likes

Hi folks… i just encountered app freezes at the opening of my app just a week a go. I’m using web view. The weird thing is, when i use the previous apk the problem occur too. So it seems not related to kodular update or any component. I have open the web page on Chrome mobile or desktop and it works normally… I still can’t figure out what’s the problem… Please help…

Will these bugs still be fixed before targetSdkVersion = 31 becomes mandatory? (Probably in a few months …)

See also here:

https://community.appinventor.mit.edu/t/android-12-migration/45926/4?u=anke

2 Likes

Oh sorry, this link was from the AI2 power user forum (only visible for PUs).

So here is a screenshot of it (and the mentioned → blog):

When I try to access https://unchive.kodular.io, it says 182.79.218.34 refused to connect?

Works fine for me

1 Like

Alright, it did not even after trying on different laptop. I then downloaded it from GITHUB and using is locally. Now, next step is to figure out what component I need to fix to fix app in playstore. Will update if I succeed.

Meanwhile eagerly waiting for this bug to be fixed.

Is there a way we can compile the app on Eagle?

This post was flagged by the community and is temporarily hidden.

Thank you so much for this post, it helps a lot :clap:

2 Likes

This is a very good topic for newcomers to kodular to fix crashes of app!

1 Like

happy christmas!

Hello Kodular community,
My app still crashes when i open it. I have done everything which are given above but it didn’t solved yet.
So, Plz can you all suggest some to solve it
Thanks

I have only this blocks in Screen1
Screenshot 2022-01-09 at 8.37.44 AM

Thanks for the post, it served me a lot!

1 Like

Thanks for the post… due to download component my app was crashing now its working properly.

1 Like

Hello coders

I would like to present here the behavior I have observed.

I made a larger chat app.

When I pressed the home button in the main screen, the application ended the app as requested:
image

If I then wanted to start the app again, the app flashed (almost always) briefly and then closed again. The app only opened the second time you clicked it.

Now I’ve removed the “Close Application” command and I haven’t observed the behavior anymore.

does anyone know the problem? What could it be?
I have checked all the measures described here and corrected them if necessary.

Do I have the following extensions installed?
Could it be one of them?

I believe your problem is same as the below topic,
Please refer :point_down:

1 Like

Hi i have a problem
Webview crashes when i open app
No message pops up just gives black screen then crashes
Default settings
I was exported my app before and its working but when i export now it doesnt work

When i try to open my app in android 4 it doesnt crash but in android 6 it keeps crashing

This post was flagged by the community and is temporarily hidden.