App Crashes When Opened but Works Well in Companion

Hello,

I want to ask regarding my problem in opening my app created with Kodular.
When I open the app, it crashes. I tried in two devices and still facing the same problem.

I have tried :

  • Reviewing this topic and implementing them:
  • Looking up my newly added features, deleting them in case it might be the problem
  • Deleting some unnecessary components, such as Special Tools extensions since I do not need to determine some details of the phone yet.

Below are my components and blocks in Screen1:



blocks
blocks (1)
blocks (2)


blocks (4)


image
blocks (6)

Any help would be appreciated.
Stay safe and healthy!

Check if About Screen Title in Screen’s properties is emtpy. Also check tinydb’s properties, also namespace shouldn’t left empty

1 Like

Hello @dora_paz

Thank you for the response.
I have done that:



1 Like

If problem not solved, Check this :point_down:

1 Like

Hi there, Anu!
Many thanks for the solution but I have worked on that too:
image

1 Like

Still crashing ?

If still crashing use logcat to debug app’s errors

1 Like

Sorry but yes, it is still crashing.

I’ll on it, thanks in advance; I will post the result soon.

2 Likes

Hi again!

Below are the logs I have gotten when launching my app (package name : com.josum.memberNW).

09-20 20:20:11.868 1535 5489 E ProxCoverNoticeService: monitor view is null, no need to update minimum
09-20 20:20:11.869 4722 4942 E _V_AppStatisticManager: addLruPkg pkgName = com.josum.memberNW
09-20 20:20:11.885 2328 2426 E : nFreeSize: 6724448256
09-20 20:20:11.899 1049 1587 E TouchFilter: setTouchFilter LOG Enable prameter: 0
09-20 20:20:12.976 1776 1776 E AndroidRuntime: FATAL EXCEPTION: main
09-20 20:20:12.976 1776 1776 E AndroidRuntime: Process: com.josum.memberNW, PID: 1776
09-20 20:20:12.976 1776 1776 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.josum.memberNW/io.kodular.sani21bimo.NaturaWorld_GK.Screen1}: /tmp/1632142727378_0.22073312280917046-0/youngandroidproject/…/src/io/kodular/sani21bimo/NaturaWorld_GK/Screen1.yail:341:52: unbound location null
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2932)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3010)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.ActivityThread.-wrap11(Unknown Source:0)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1707)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.os.Looper.loop(Looper.java:192)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6759)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:875)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: Caused by: /tmp/1632142727378_0.22073312280917046-0/youngandroidproject/…/src/io/kodular/sani21bimo/NaturaWorld_GK/Screen1.yail:341:52: unbound location null
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at gnu.mapping.Location.get(Location.java:67)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at io.kodular.sani21bimo.NaturaWorld_GK.Screen1.lambda68(Screen1.yail:341)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at io.kodular.sani21bimo.NaturaWorld_GK.Screen1$frame.apply0(Screen1.yail:9)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at gnu.expr.ModuleBody.applyN(ModuleBody.java:226)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at gnu.expr.ModuleMethod.applyN(ModuleMethod.java:216)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:139)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at gnu.mapping.ProcedureN.apply1(ProcedureN.java:31)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at io.kodular.sani21bimo.NaturaWorld_GK.Screen1.$define(Screen1.yail:10265)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onCreateFinish2(SourceFile:503)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onCreateFinish(SourceFile:447)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at com.google.appinventor.components.runtime.Form.onCreate(SourceFile:377)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7147)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7138)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1219)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2885)
09-20 20:20:12.976 1776 1776 E AndroidRuntime: … 9 more
09-20 20:20:13.018 1049 20054 E ActivityManager: Sending non-protected broadcast com.vivo.perfdiagnosis.MSG_CENTER from system 1049:system/1000 pkg android
09-20 20:20:13.019 1049 20054 E ActivityManager: Sending non-protected broadcast com.vivo.perfdiagnosis.MSG_CENTER from system 1049:system/1000 pkg android
09-20 20:20:13.040 1049 1587 E ActivityManager: Sending non-protected broadcast com.vivo.abe.messagecenter.exception from system 1287:com.vivo.abe/1000 pkg com.vivo.abe
09-20 20:20:13.041 1049 1587 E ActivityManager: Sending non-protected broadcast com.vivo.abe.messagecenter.exception from system 1287:com.vivo.abe/1000 pkg com.vivo.abe
09-20 20:20:13.118 22114 22859 E : nFreeSize: 6724440064
09-20 20:20:13.183 1049 11528 E ActivityManager: Sending non-protected broadcast vivo.vtouch.application.resumed from system 29980:com.vivo.contentcatcher/1000 pkg com.vivo.contentcatcher
09-20 20:20:13.220 1049 10812 E PowerHalWrapper: duration: 6000ms
09-20 20:20:13.331 2292 2390 E Parcel : Class not found when unmarshalling: com.vivo.appbehavior.aidl.ExceptionObjVo
09-20 20:20:13.331 2292 2390 E Parcel : java.lang.ClassNotFoundException: com.vivo.appbehavior.aidl.ExceptionObjVo
09-20 20:20:13.331 2292 2390 E Parcel : at java.lang.Class.classForName(Native Method)
09-20 20:20:13.331 2292 2390 E Parcel : at java.lang.Class.forName(Class.java:453)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.Parcel.readParcelableCreator(Parcel.java:2897)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.Parcel.readParcelable(Parcel.java:2851)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.Parcel.readValue(Parcel.java:2754)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.Parcel.readArrayMapInternal(Parcel.java:3123)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:273)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.BaseBundle.unparcel(BaseBundle.java:226)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.BaseBundle.getLong(BaseBundle.java:1027)
09-20 20:20:13.331 2292 2390 E Parcel : at android.content.Intent.getLongExtra(Intent.java:7155)
09-20 20:20:13.331 2292 2390 E Parcel : at com.vivo.push.util.NotificationMonitor$1.run(NotificationMonitor.java:49)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.Handler.handleCallback(Handler.java:790)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.Handler.dispatchMessage(Handler.java:99)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.Looper.loop(Looper.java:192)
09-20 20:20:13.331 2292 2390 E Parcel : at android.os.HandlerThread.run(HandlerThread.java:65)
09-20 20:20:13.331 2292 2390 E Parcel : Caused by: java.lang.ClassNotFoundException: com.vivo.appbehavior.aidl.ExceptionObjVo
09-20 20:20:13.331 2292 2390 E Parcel : at java.lang.Class.classForName(Native Method)
09-20 20:20:13.331 2292 2390 E Parcel : at java.lang.BootClassLoader.findClass(ClassLoader.java:1355)
09-20 20:20:13.331 2292 2390 E Parcel : at java.lang.BootClassLoader.loadClass(ClassLoader.java:1415)
09-20 20:20:13.331 2292 2390 E Parcel : at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
09-20 20:20:13.331 2292 2390 E Parcel : … 15 more
09-20 20:20:13.331 2292 2390 E Parcel : Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

Any thoughts would be welcomed.
Thanks!

Hello again,

I think that this problem is solved.
My app is no longer crashing and I think it is done by

  • Deleting tinyDB
  • Deleting AdMob components

I am not sure whether it can be fixed by only modifying their properties, deleting them altogether, or anything else. But I think the most affecting component in my case is the AdMob.

I tried deleted AdMob and tinyDB on Screen1 → Screen1 no longer crashes but when opening another screen then my app suddenly closes itself.
I tried deleted AdMob on another screen → The screen loads successfully

Also, my AdMob component’s properties did not have the Ad Unit ID, perhaps that is the cause of crash.
image

Thank you everyone!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.