BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

ConcurrentModificationException every time I call methods with "guid"

Open dkurillo opened this issue 3 years ago • 2 comments

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

dkurillo avatar Oct 29 '21 07:10 dkurillo

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.

hlg avatar Oct 29 '21 07:10 hlg

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.

dkurillo avatar Nov 10 '21 06:11 dkurillo