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

Fatal Exception: java.lang.IncompatibleClassChangeError #7822

Closed
alberto-cappellina opened this issue May 31, 2023 · 8 comments
Closed

Fatal Exception: java.lang.IncompatibleClassChangeError #7822

alberto-cappellina opened this issue May 31, 2023 · 8 comments
Labels
Encryption:Off Frequency:Sometimes More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. Needs-Attention O-Community Repro:No SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed

Comments

@alberto-cappellina
Copy link

How frequently does the bug occur?

Sometimes

Description

Hi guys,

we released a newer version of our app and we are receiving some strange crash on crashlytics.

I can't understand which is the problem and - of course - it's not replicable, so i'm writing you to asking which one could be the cause of it

Stacktrace & log output

Fatal Exception: java.lang.IncompatibleClassChangeError: The method 'java.lang.Class java.lang.Object.getClass()' was expected to be of type interface but instead was found to be of type virtual (declaration of 'io.realm.DefaultRealmModuleMediator' appears in /data/app/com.dolomitisuperski.skiapp-zbIU4xyAjlUuv8QKsfTx3g==/base.apk:classes4.dex)
       at io.realm.DefaultRealmModuleMediator.copyOrUpdate(DefaultRealmModuleMediator.java:1190)
       at io.realm.Realm.copyOrUpdate(Realm.java:1844)
       at io.realm.Realm.copyToRealmOrUpdate(Realm.java:1433)
       at it.intesys.dolomitisuperski.common.persistency.PersistencyManager.clearTableAndSave$lambda-8$lambda-7(PersistencyManager.kt:79)
       at it.intesys.dolomitisuperski.common.persistency.PersistencyManager.$r8$lambda$Ge5sZIMPsuVe462oP_wnuR1kruI()
       at it.intesys.dolomitisuperski.common.persistency.PersistencyManager$$ExternalSyntheticLambda2.execute(:4)
       at io.realm.Realm.executeTransaction(Realm.java:1633)
       at it.intesys.dolomitisuperski.common.persistency.PersistencyManager.clearTableAndSave(PersistencyManager.kt:77)
       at it.intesys.dolomitisuperski.common.persistency.SeasonPersistencyManager$DefaultImpls.saveSeasons(SeasonPersistencyManager.kt:30)
       at it.intesys.dolomitisuperski.common.persistency.PersistencyManager.saveSeasons(PersistencyManager.kt:12)

Can you reproduce the bug?

No

Reproduction Steps

No response

Version

io.realm:realm-gradle-plugin:10.11.1"

What Atlas App Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Android 8.0.0

Build environment

Android Studio version: Android Studio Electric Eel | 2022.1.1 Patch
Android Build Tools version: 34-rc4
Gradle version: 7.2.0

@clementetb
Copy link
Collaborator

From the exception, it seems that it is an issue with your project setup. Could you share some details from the app gradle config? What minSdk are you targeting? Source compatibility?

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Jun 5, 2023
@alberto-cappellina
Copy link
Author

Thanks for the reply,

here's what you are asking:

    minSdkVersion 24
    targetSdkVersion 32

compileOptions {
    targetCompatibility = '1.8'
    sourceCompatibility = '1.8'
}

all crashes are on android 8, various brand

@github-actions github-actions bot added Needs-Attention and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Jun 5, 2023
@rorbech
Copy link
Contributor

rorbech commented Jul 27, 2023

Hi @alberto-cappellina. Sorry for the delay here. Are you still seeing this issue?

From what I can find on related issues is that it is an issue with binary compatibility. It is hard to replicate unless we get some more details on the characteristics on the devices exhibiting this. Maybe you could try to use 10.15.0 or newer where we raised the minimal supported Java version to Java 11.

@sync-by-unito sync-by-unito bot added More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Jul 27, 2023
@alberto-cappellina
Copy link
Author

Hi @rorbech and thanks for the answer!

Yes sadly the issue is still present: the only characteristic that is recurring it is that all devices are android 8 based.

I'll try to update realm version to the suggested one (at least) and i'll get back to you

Thanks again,
A

@github-actions github-actions bot removed More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Jul 27, 2023
@sync-by-unito sync-by-unito bot added More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Jul 28, 2023
@github-actions
Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@alberto-cappellina
Copy link
Author

Hi, we updated the realm plugin to

    classpath "io.realm:realm-gradle-plugin:10.17.0"

but i'm still seeing the same issue. Always and only on Android 8.

Any idea? Any more detail needed?

@github-actions github-actions bot removed the More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. label Nov 22, 2023
@github-actions github-actions bot reopened this Nov 22, 2023
@github-actions github-actions bot added Needs-Attention and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Nov 22, 2023
@clementetb
Copy link
Collaborator

@alberto-cappellina can you reproduce it on an emulator or is device specific? Could you write a sample project that reproduces the issue? It would help massively tracking down it.

@sync-by-unito sync-by-unito bot added Waiting-For-Reporter Waiting for more information from the reporter before we can proceed More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. labels Dec 4, 2023
Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Encryption:Off Frequency:Sometimes More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. Needs-Attention O-Community Repro:No SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed
Projects
None yet
Development

No branches or pull requests

3 participants