java.lang.IllegalArgumentException: Cannot copy an object from another Realm instance.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Alex Kombo
, 1 year ago
Cannot copy an object from another Realm instance.
via Stack Overflow by Marcel50506
, 1 year ago
java.lang.IllegalArgumentException: Cannot copy an object from another Realm instance.
at io.realm.RealmList.copyToRealmIfNeeded(RealmList.java:261)
at io.realm.RealmList.add(RealmList.java:190)
at com.radioafrica.music.activity.AudioPlayer$1.execute(AudioPlayer.java:193)
at io.realm.Realm$1.run(Realm.java:1187)
at io.realm.internal.async.BgPriorityRunnable.run(BgPriorityRunnable.java:34)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

13 times, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.