Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeException while executing doInBackground() #118

Closed
andrewowen opened this issue Jul 24, 2024 · 2 comments
Closed

RuntimeException while executing doInBackground() #118

andrewowen opened this issue Jul 24, 2024 · 2 comments
Labels

Comments

@andrewowen
Copy link

andrewowen commented Jul 24, 2024

When swiping back and forth through a large list of pages in a Compose HorizontalPager, the app will eventually crash with this stack trace.

Devices:

  • Samsung SM-P610 (Tablet) Android 10
  • Galaxy Tab A9+ (Tablet) Android 14

Parsley Version: 3.0.6

E FATAL EXCEPTION: AsyncTask #7
Process: ####
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1029)
at java.util.ArrayList$Itr.next(ArrayList.java:982)
at java.util.AbstractCollection.addAll(AbstractCollection.java:335)
at
com.parsely.parselyandroid.ParselyTracker.persistQueue(ParselyTracker.java:500)
at
com.parsely.parselyandroid.ParselyTracker.access$500(ParselyTracker.java:58)
at
com.parsely.parselyandroid.ParselyTracker$QueueManager.doInBackground(ParselyTracke
r.java:686)
at
com.parsely.parselyandroid.ParselyTracker$QueueManager.doInBackground(ParselyTracke
r.java:679)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
@wzieba
Copy link
Collaborator

wzieba commented Jul 31, 2024

Hi there 👋 could you please try the newest version of the SDK, 4.1.0? Since 3.x we migrated from android.os.AsyncTask and rewritten concurency logic, which might be failing here.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Mar 17, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants