Studio 7 crashed

Studio 7 crashed while editing Java file.

java.lang.StackOverflowError
    at com.haulmont.studio.backend.util.MetadataUtil.getKeyForClass(SourceFile:977)
    at com.haulmont.studio.backend.util.MetadataUtil.lambda$raPsiCached$41(SourceFile:957)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:958)
    at com.haulmont.studio.backend.util.MetadataUtil.ra(SourceFile:953)
    at com.haulmont.studio.backend.util.MetadataUtil.raPsiCached(SourceFile:957)
    at com.haulmont.studio.backend.model.EntityPsi.getFqn(SourceFile:294)
    at com.haulmont.studio.backend.model.Entity.equals(SourceFile:447)
    at java.util.Objects.equals(Objects.java:59)
    at com.intellij.util.CachedValueStabilityChecker.areEqual(CachedValueStabilityChecker.java:137)
    at com.intellij.util.CachedValueStabilityChecker.checkFieldEquivalence(CachedValueStabilityChecker.java:122)
    at com.intellij.util.CachedValueStabilityChecker.checkFieldEquivalence(CachedValueStabilityChecker.java:125)
    at com.intellij.util.CachedValueStabilityChecker.checkFieldEquivalence(CachedValueStabilityChecker.java:125)
    at com.intellij.util.CachedValueStabilityChecker.checkProvidersEquivalent(CachedValueStabilityChecker.java:86)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:60)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45)
    at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:148)
    at com.haulmont.studio.backend.util.MetadataUtil.lambda$raPsiCached$41(SourceFile:957)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:958)
    at com.haulmont.studio.backend.util.MetadataUtil.ra(SourceFile:953)
    at com.haulmont.studio.backend.util.MetadataUtil.raPsiCached(SourceFile:957)
    at com.haulmont.studio.backend.model.EntityPsi.getFqn(SourceFile:294)
    at com.haulmont.studio.backend.model.Entity.equals(SourceFile:447)
    at java.util.Objects.equals(Objects.java:59)
...

stacktrace.txt (116.0 KB)

Hi, @ray1!

Thank you for bug report. The issue will be fixed in the next bug-fix release.
https://youtrack.cuba-platform.com/issue/STUDIO-5574

@ray1 what version IDEA are you using? 2019.1 EAP?

Yes. Released a few days ago I think.

We don’t test Studio with EAP builds yet. Please use the last public release of IDEA or the Studio bundle.

Will do. :+1:t5: