Kodular Slider Crash Android 12

[:ballot_box_with_check:] I checked out Kodular Fenix (v1.5.0) Bug Tracker before creating a new topic

Steps to reproduce the issue

Grab a slider, and test it yourself.

Expected Behaviour

It should not have crashed.

Actual Behaviour

Crash.

Video

Show your Blocks

No, blocks, happens at initialization of Slider.

Android version

12

Logs

time: 1658937117540
msg: java.lang.ClassCastException: com.android.internal.graphics.drawable.RoundedCornerProgressDrawable cannot be cast to android.graphics.drawable.ClipDrawable
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Baxolino.Akku.Manager/io.kodular.dennis_littawe1542.AkkuManager.Screen1}: java.lang.ClassCastException: com.android.internal.graphics.drawable.RoundedCornerProgressDrawable cannot be cast to android.graphics.drawable.ClipDrawable
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3707)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7871)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:550)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.ClassCastException: com.android.internal.graphics.drawable.RoundedCornerProgressDrawable cannot be cast to android.graphics.drawable.ClipDrawable
	at com.google.appinventor.components.runtime.Slider.<init>(SourceFile:86)
	at java.lang.reflect.Constructor.newInstance0(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
	at gnu.expr.PrimProcedure.apply(PrimProcedure.java:272)
	at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
	at gnu.mapping.CallContext.runUntilValue(CallContext.java:298)
	at gnu.kawa.reflect.Invoke.applyN(Invoke.java:209)
	at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
	at io.kodular.dennis_littawe1542.AkkuManager.Screen1.$define(Screen1.yail:10254)
	at com.google.appinventor.components.runtime.Form.onCreateFinish(SourceFile:483)
	at com.google.appinventor.components.runtime.Form.onCreate(SourceFile:394)
	at android.app.Activity.performCreate(Activity.java:8054)
	at android.app.Activity.performCreate(Activity.java:8034)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1347)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
	... 12 more

3 Likes

Hi @Xoma,

Does the Companion crash too? If so, it might just require a library upgrade.

My device:joy:

1 Like

No, we dont test our app in companion. It is really huge and companion fails to load our app.

1 Like