-
Notifications
You must be signed in to change notification settings - Fork 59
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
java.util.ConcurrentModificationException (no error message) #626
Comments
Also seems to happen more often, the more models/schemas i have. |
Hi @Reedyuk. There seems to be a problem while processing the project linked to a specific Gradle task. Unfortunately, we cannot point to the source with the stacktrace above. How do your project setup and Gradle scripts look like? Would it be possible for you to provide us with a repro case or a repository we could check out? |
I have just tried with another project but it seems to be ok, which is wierd.
I assume its some sort of wierd gradle issue running tasks parallel. Its also important to have support for ios sim and arm64:
So i think its something to do with when gradle runs in parallel the ios sim target and iosarm target compile task? |
We don't parallelize our builds at the moment due to project constraints. We are planning on turning that feature on in the future though. In any case, the issue you are experiencing points to a problem with our analytics implementation and parallel builds. For the time being, I would recommend you don't use parallel builds until we have investigated the issue further. |
We will add a quick fix for accessing the different project configurations synchronously to avoid concurrency exceptions. This doesn't fix the issue per se but at least will give us time until we have a fix for #498 which will likely solve the problem. Please refer to said issue to follow up on the problem if you keep experiencing problems while using parallel builds. |
Fixed in |
Actually still happening but i think i know why.
And gradle
|
I seem to be getting the same issue. It's happening for me when I run: In my case it's totally consistent. I can't run any of my shared ios tests without the failure. It seemed to start when I upgraded to 0.9.0. I'm using the gradle versions above (7.1.0 and 7.3.2) and have |
@iamsteveholmes could you please post your Gradles configurations so we can try to reproduce? |
@nhachicha I think I figured out what was causing the problem in my case. One of my properties in a class Background : RealmObject {
@PrimaryKey
var _id: String = Random.nextLong().toString()
var _partition = "public"
var name: String = ""
var description: String = ""
} So notice the |
@iamsteveholmes I'm not sure this is the root cause since the generated IR when you use typed property or implicit type is the same. @cmelchior Is working on a PR that should enable Gradle cache configuration that should improve things |
I think there is a bug with the realm plugin, when task: :compileKotlinIosSimulatorArm64 is running, i am getting the following:
Sometimes it works and sometimes it doesn't, i guess due to the concurrency.
Here is the same with --stacktrace
The text was updated successfully, but these errors were encountered: