App Crashes Alot - Dynamic Components Extension

If so then please post a list of components and Dynamic Component’s methods you are using.

So By Using Dynamic Components I am Creating :

  1. CardView
  2. Space
  3. Buttons
  4. Horizontal Arrangements
  5. VerticalArrangements
  6. Label

Other Components Using :

  1. View Pager
  2. Circular Progress
  3. Swipe Refresh Layout
  4. Admob Interstitial
  5. Notifier
    6.Spreadsheet
  6. Custom Progress
    8.Web
  7. Admob Banner
  8. Image Utilities
  9. Color Utilities
  10. Sharing
  11. TaigunClipboard
    14.SideMenu Layout
  12. Package Utilities
  13. Activity Starter
    17.Clock

Extension Using ::

  1. JSONUtils
  2. TaigunClipboard
  3. VerticalScrollArrangementHandler
  4. Pallet Color
  5. Dynamic Components

Here’s the list of each and every internal or external components I use in my app.

Thanks!

If it is really coming from my extension then as I said my extension catches the ClassNotFoundException(s) already, so it never reports these exceptions to the screen.

It just only shows App Inventor Runtime Errors if it is wrong with your blocks. So if these errors are being shown for you, then users will see these errors too.

But if you don’t see any error from my extension as Runtime Errors in your app, then you should question other extensions maybe :man_shrugging:.

Also without a full logcat, me or nobody can’t determine this issue.

Also we get that exception mostly when we use any external library (classes) but your extension uses java classes mainly so there is no chance that the issue is due to your extension.

1 Like

I can related to the issue, i am also observing the same.

When i am adding the extension “Dynamic Components” by companion doesn’t load anything it is complete blank screen and as soon as i remove this extension everything comes back to normal.

This is something i reported earlier and happening now as well.

Only seeing this issue when i am using the said extension.

I have tried duplicating the screens and issue persists.
If I create a new screen from scratch, everything is good until i add the extension.

The issue was not that severe earlier, but since yesterday it is happening more frequently and so far there is not work around.

Can You Please Guide me where I can find the full logcat as I have already provided the following error log in the community which I saw.

Please restart your companion after importing the extension.

I don’t get errors when I am using the App in my device. But the Google Play Console is showing a lot of crashes in its report.

Which android version are you using?

Crashes only occur in pie and 10.

Didn’t help.
Here are the things i have tried.

  1. Restart Companion
  2. Uninstall and Install Companion
  3. Duplicate Screen
  4. Create Screen from fresh (Only this worked until i add extension component)

Hey,
As your problem is not same please create a separate topic. You are going off topic with respect to the topic I created

Yes The report indicated this only that crashes are on 9 and 10 Android version.

BTW, I m using Android 9 / Pie.

Restart your builder then? Or try with the latest version?

@yusufcihan I m having the same problem as @Techy_Rakshak in my case when app opens i create a list using dynamic components extension but
When screen initalize screen freezes for sometime and asks for close the app or wait
M using Android 9

Can you provide a sample APK? So I can determine what’s going on.

I’ll send you via pm please wait

Edit m testing it right now using different parameters
And i think i m very near to the issue so give me some time may be it get solved then i’ll come back with the solution :wink:

1 Like

Here’s Below some of the Error logcat Which comes up.

@vknow360 Check if now you can figure out something from the below error logs.

I cloud Also see some crashes due to VerticalScrollArrangement Handler by @colinTree But the amount of crashes too low by the VerticalScrollArrangement.

Logcat Errors:

at android.app.ActivityThread.handleReceiver (ActivityThread.java:4011)
at android.app.ActivityThread.access$1500 (ActivityThread.java:255)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2079)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:230)
at android.app.ActivityThread.main (ActivityThread.java:7742)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:508)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1034)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateReceiver (AppComponentFactory.java:110)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:4004)

====================================
Report 2

java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:4000)
at android.app.ActivityThread.access$1400 (ActivityThread.java:269)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2021)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:7860)
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:1075)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateReceiver (AppComponentFactory.java:110)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3993)

==========================================
Another Same Crash
Report1

java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3388)
at android.app.ActivityThread.-wrap18 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1817)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:7025)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3383)

=====================================
report2

java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3374)
at android.app.ActivityThread.-wrap18 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1807)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:7000)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3369)

============================

Vertical Scroll handler error log

java.lang.IllegalArgumentException:
at android.view.MotionEvent.nativeGetAxisValue (Native Method)
at android.view.MotionEvent.getY (MotionEvent.java:2220)
at cn.colintree.aix.ScrollArrangementHandlers.VerticalScrollHandler$2.onMove (VerticalScrollHandler.java:123)
at cn.colintree.aix.ScrollArrangementHandlers.VerticalScrollHandler$2.onTouch (VerticalScrollHandler.java:105)
at android.view.View.dispatchTouchEvent (View.java:12523)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3026)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2705)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at com.google.appinventor.components.runtime.ScaledFrameLayout.dispatchTouchEvent (SourceFile:80)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3032)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2719)
at com.android.internal.policy.DecorView.superDispatchTouchEvent (DecorView.java:444)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1830)
at android.app.Activity.dispatchTouchEvent (Activity.java:3465)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent (WindowCallbackWrapper.java:69)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent (WindowCallbackWrapper.java:69)
at com.android.internal.policy.DecorView.dispatchTouchEvent (DecorView.java:402)
at android.view.View.dispatchPointerEvent (View.java:12768)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent (ViewRootImpl.java:5275)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess (ViewRootImpl.java:5075)
at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4590)
at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4643)
at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4609)
at android.view.ViewRootImpl$AsyncInputStage.forward (ViewRootImpl.java:4749)
at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4617)
at android.view.ViewRootImpl$AsyncInputStage.apply (ViewRootImpl.java:4806)
at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4590)
at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4643)
at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4609)
at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4617)
at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4590)
at android.view.ViewRootImpl.deliverInputEvent (ViewRootImpl.java:7318)
at android.view.ViewRootImpl.doProcessInputEvents (ViewRootImpl.java:7287)
at android.view.ViewRootImpl.enqueueInputEvent (ViewRootImpl.java:7248)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent (ViewRootImpl.java:7424)
at android.view.InputEventReceiver.dispatchInputEvent (InputEventReceiver.java:247)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents (Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents (InputEventReceiver.java:212)
at android.view.ViewRootImpl.doConsumeBatchedInput (ViewRootImpl.java:7392)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run (ViewRootImpl.java:7447)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1036)
at android.view.Choreographer.doCallbacks (Choreographer.java:832)
at android.view.Choreographer.doFrame (Choreographer.java:761)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1022)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:201)
at android.app.ActivityThread.main (ActivityThread.java:6810)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:873)

====================================

java.lang.ClassNotFoundException

java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2817)
at android.app.ActivityThread.access$1700 (ActivityThread.java:178)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1547)
at android.os.Handler.dispatchMessage (Handler.java:111)
at android.os.Looper.loop (Looper.java:194)
at android.app.ActivityThread.main (ActivityThread.java:5643)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:755)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass (ClassLoader.java:511)
at java.lang.ClassLoader.loadClass (ClassLoader.java:469)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2812)

Thanks!
Soon i Would be Attaching some images

1 Like

So you mean that the error is due to scroll handler extension and not dynamic components extension?

Nope! The major part of Crashes ( 1k + ) are unknown to me. Whereas just 5-7 cashes are shown from Vertical Scroll Handler Extension.

1 Like