opensourceBIM / BIMsurfer-before2019

This is the repository of the v1 and v2 version of BIM Surfer. It is not maintained anymore. Find the most recent version on https://github.com/opensourceBIM/BIMsurfer
MIT License
432 stars 195 forks source link

No loaded ifc model is displayed #259

Open astraube opened 6 years ago

astraube commented 6 years ago

No model appears in BIMSurfer. The following error appears in the browser console. Has anyone ever experienced this?

Uncaught TypeError: object.getGeometry is not a function at Properties.selected (eval at globalEval (bimviews.js?_v=0.0.106:338), :59:11) at eval (eval at globalEval (bimviews.js?_v=0.0.106:338), :49:4) at Array.forEach () at EventRegistry.trigger (bimviews.js?_v=0.0.106:16795) at Project.selected (eval at globalEval (bimviews.js?_v=0.0.106:338), :48:25) at Node.ProjectTree.treeItemClick [as onClick] (eval at globalEval (bimviews.js?_v=0.0.106:338), :265:11) at Node.linkClick (bimviews.js?_v=0.0.106:15444) at HTMLAnchorElement.dispatch (bimviews.js?_v=0.0.106:4732) at HTMLAnchorElement.elemData.handle (bimviews.js?_v=0.0.106:4544)

AND

Uncaught TypeError: Cannot read property 'then' of undefined at BimServerGeometryLoader.start (BimServerGeometryLoader.js?bust=1533192504001:125) at BimServerModelLoader.loadOids (BimServerModelLoader.js?bust=1533192504001:82) at BimServerApiPromise.callback (BimServerModelLoader.js?bust=1533192504001:16) at BimServerApiPromise.fire (bimserverapipromise.js:56) at bimServerApi.call (model.js:744) at multiCall (bimserverclient.js?_v=1533192504192:877) at getJson (bimserverclient.js?_v=1533192504192:653) at XMLHttpRequest.xhr.onload (bimserverclient.js?_v=1533192504192:538) bimserverclient.js?_v=1533192504192:53 [default] Getting serializer info bimserverclient.js?_v=1533192504192:255 Uncaught TypeError: callback is not a function at call (bimserverclient.js?_v=1533192504192:255) at multiCall (bimserverclient.js?_v=1533192504192:877) at getJson (bimserverclient.js?_v=1533192504192:653) at XMLHttpRequest.xhr.onload (bimserverclient.js?_v=1533192504192:538)

phiqus commented 6 years ago

also stuck here...

sigurdne commented 6 years ago

I was able to make it start by loading the bimserverclient from downloaded source. I have a modified clone here: https://github.com/sigurdne/BIMsurfer There are still issues, but it connects and download the model

phiqus commented 6 years ago

I managed to make the error dissapear, by changing the source code in the BIMsurfer src: BimServerGeometryLoader.js. see below:

github_259

Now the model loads, i can see it in the Chrome console using console.log(). However, no geometry is rendered. NOTE: the latest version of BimSurfer seems to have changed the above function completely. I am trying to use an older version to work - which is working in my current deployed BimServer - which is the one I query for model data.

UPDATE: Yes, Its now rendering, with new code as you mentioned above - with the new function changed + possibly other changes. My current setup on deployed BIMserver: github_259-2

I am running BimSurfer on Node.js (v8.11.4) application in Express. seems to work fine on most examples.