Error while jumping screens

Same problem

java.lang.RuntimeException: Unable to start activity ComponentInfo{appinventor.ai_pmesystem.Bilgiler/io.kodular.pmesystem.Bilgiler.Screen1}: java.util.ConcurrentModificationException
at android.app.ActivityThread.performLaunchActivity(Unknown Source:591)
at android.app.ActivityThread.handleLaunchActivity(Unknown Source:36)
at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:57)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:99)
at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:34)
at android.app.ActivityThread$H.handleMessage(Unknown Source:43)
at android.os.Handler.dispatchMessage(Unknown Source:21)
at android.os.Looper.loop(Unknown Source:210)
at android.app.ActivityThread.main(Unknown Source:107)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
at com.android.internal.os.ZygoteInit.main(Unknown Source:281)
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1441)
at java.util.HashMap$KeyIterator.next(HashMap.java:1465)
at com.google.appinventor.components.runtime.EventDispatcher.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME(SourceFile:242)
at com.google.appinventor.components.runtime.EventDispatcher.dispatchEvent(SourceFile:199)
at com.google.appinventor.components.runtime.Slider.PositionChanged(SourceFile:422)
at com.google.appinventor.components.runtime.Slider.onProgressChanged(SourceFile:414)
at android.widget.SeekBar.onProgressRefresh(Unknown Source:9)
at android.widget.ProgressBar.doRefreshProgress(Unknown Source:65)
at android.widget.ProgressBar.refreshProgress(Unknown Source:21)
at android.widget.ProgressBar.setProgressInternal(Unknown Source:30)
at android.widget.ProgressBar.setProgress(Unknown Source:2)
at com.google.appinventor.components.runtime.Slider.moH2L3ThNq0Qhevz3oD0wpnUoXefdMi3gJ5JHfEbjrtgsvRvpM1e34BZQYI4s5i0(SourceFile:150)
at com.google.appinventor.components.runtime.Slider.(SourceFile:109)
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.pmesystem.Bilgiler.Screen1.$define(Screen1.yail:10248)
at com.google.appinventor.components.runtime.Form.onCreateFinish2(SourceFile:497)
at com.google.appinventor.components.runtime.Form.onCreateFinish(SourceFile:441)
at com.google.appinventor.components.runtime.Form.onCreate(SourceFile:380)
at android.app.Activity.performCreate(Unknown Source:16)
at android.app.Activity.performCreate(Unknown Source:1)
at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)
at android.app.ActivityThread.performLaunchActivity(Unknown Source:368)
… 11 more

CANCELFORWARD 1 DELETE 1 REPLY EDIT

How do you know this is related with the problem from the original post? I see you imported an aia from app inventor into kodular.

Hi Peter,

I started my project on ai2 in ~2013 then i switch to other ai2 platforms for new features.

its work before update. There is a problem with switching screens. When i was return to screen 1 my app fc.

Don’t hijack this topic. I created a new one.

How did you get get message?

See here: Only one Slider with Slider.PositionChanged event is possibe on a screen since Eagle

Thanks for mention,I use 2 slider at Screen1 maybe problem source is slider.

If you use the two sliders only on Screen1, this problem should not occur because Screen1 never needs to be reopened.
.

We need use Kodular reccommed screen swithing methods.If we dont use it some components not work correctly like notifier.

So screen1 closed and reopened on my app

Yes, then your problem should be there too.

Thanks you find problem source.I disable one of the sliders position changed block and compiled my app.Its working

Fine, but I have 4-6 sliders in many of my apps that are all needed. So we have to wait for a bugfix …

Try this ,its new

Ok, thanks, I’ll take a look at that later … and test …

I tried it, and the app does not crash, fine, but it does not store / get the correct values of the TinyDB, when switching screen … check it

maybe am wrong … I am now a bit confused …

Screen1:

Screen2:


sliderBug2.aia (27.1 KB)

Companion works, APK not. Tested on Android 5 / 9.

1 Like

Yes its works on companion and its not work on real app.I wiil test it on ai2 and if its not work i will report to ai2 team

Thanks, I checked it and it works on AI2.

1 Like

Yes its works on ai2.

@KodularCreator Can you check this bug guys?

1 Like

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