BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

The minimal sample of BIMSurfer v3 doesn't work with the latest version of BIMServer.

Open diegovisentin opened this issue 7 months ago • 2 comments

In version 1.5.187, something must be wrong between BIMServer and BIMSurfer because even the minimal example does not work.

Steps to reproduce the behavior:

  1. Makes the appropriate configurations to the "home\plugins\org.opensourcebim.bimsurfer3-0.0.277.jar\apps\minimal.js" file
  2. Start BIMServer
  3. Point to "http://localhost:[port]/apps/bimsurfer3/apps/minimal.html"
  4. No 3d drawing appears
  5. Redoing the steps with the previous version 1.5.186 instead works

An incompatibility has probably been introduced between the client and the server with the current version, though I can't identify the cause. I was only able to verify that login and project retrieval are successful, but downloading and drawing are not.

diegovisentin avatar May 15 '25 13:05 diegovisentin

Thanks for reporting. I've been able to reproduce this. It seems as if execution of BinaryGeometryMessagingStreamingSerializer is broken. With 1.5.187, during download with this serializer, there is a very short stream generated with 88 byte only and GeometryAccellerator reports a total of 0 triangles. This serializer works a bit different from most others. I am going to scan through the changes to find the one(s) that might have affected the download with this type of serializer.

hlg avatar May 16 '25 10:05 hlg

I found the reason for this regression: 10fe78a. Somehow, the query in GeometryAccellerator does not work anymore.

https://github.com/opensourceBIM/BIMserver/blob/b27aa205b8ec324195dd5b18290b7656f033885d/BimServer/src/org/bimserver/geometry/accellerator/GeometryAccellerator.java#L131-L153

I did not yet understand how the direct references in this query and the object placement query work differently. Below is the codes that creates the directField entries in the object placement query for reference.

https://github.com/opensourceBIM/BIMserver/blob/7f1661e117889b9a5da93dd51d2d789e95e2222a/BimServer/src/org/bimserver/BimServer.java#L750

https://github.com/opensourceBIM/BIMserver/blob/7f1661e117889b9a5da93dd51d2d789e95e2222a/PluginBase/src/org/bimserver/database/queries/om/Include.java#L290-L312

hlg avatar Jun 09 '25 18:06 hlg