opensourceBIM / BIMserver

The open source BIMserver platform
GNU Affero General Public License v3.0
1.56k stars 613 forks source link

ConcurrentModificationException every time I call methods with "guid" #1219

Open dkurillo opened 3 years ago

dkurillo commented 3 years ago

When I call any method related to guids (such as indexGuids or getByGuid) on IfcModelInterface I get java.util.ConcurrentModificationException...

java.util.ConcurrentModificationException at com.google.common.collect.HashBiMap$Itr.hasNext at org.bimserver.ifc.IfcModel.indexGuids at org.bimserver.ifc.IfcModel.getByGuid

hlg commented 3 years ago

I assume you are using the Java client. This is probably related to #786. Do you use deep or lazy loading? If you are not using deep loading yet and given that your model is not too large, please try with deep loading to see if the error persists.

dkurillo commented 3 years ago

I assume you are using the Java client. This is probably related to #786. Do you use deep or lazy loading? If you are not using deep loading yet and given that your model is not too large, please try with deep loading to see if the error persists.

Yes. Error occures only in lazy loading mode.