opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
174 stars 87 forks source link

BIM viewer often doesn't show the model (Java error> Streamer: IllegalStateException TEXT_FULL_WRITING) #73

Closed mansch closed 8 years ago

mansch commented 8 years ago

With the changes regarding the update of the JS api (e.g. rename of queryNew -> query) there seem to be some side effects. Nearly everytime bimvie.ws is not able to display the 3D model. It gets stuck at this state: stuck

Seems to be affected by timing. Reloading the page several times it sometims works, but reloading again may fail again.

Release 1.6.61 with latest plugins: BIMServer JavaScript API 0.0.103 BIMsurfer 0.0.30 BIMvie.ws 0.0.66

mansch commented 8 years ago

For larger models BIMvie.ws sometimes at least starts loading but then stops. Some parts of the model are already painted, then no more updates happen, both stuck (progressbar and scene).

stuck2

Tomcat output shows the error: 11:28:13 INFO [org.bimserver.ServiceInterface.download]: Reading from cache ea44a421324c667ee2d5becd4a81fa26 ( NewDiskCacheManager.java:105) 5 ms prepare time 11:28:14 ERROR [Streamer 287]: (BimServer.java:205) java.lang.IllegalStateException: The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1177) ~[tomcat-websock et.jar:8.0.33] at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryStart(WsRemoteEndpointImplBase.java:1130) ~[tomcat-websoc ket.jar:8.0.33] at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendBytes(WsRemoteEndpointImplBase.java:133) ~[tomcat-websocket.jar:8.0.33] at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:43) ~[tomcat-websocket.jar:8.0.33] at org.bimserver.servlets.websockets.jsr356.Jsr356Impl.sendBlocking(Jsr356Impl.java:133) ~[bimserver-1.5.61.jar:na] at org.bimserver.servlets.Streamer$1.run(Streamer.java:100) ~[bimserver-1.5.61.jar:na]

rubendel commented 8 years ago

Pretty sure this is fixed in https://github.com/opensourceBIM/BIMserver/commit/ca2bb52c121237a9fa8f693083d0999eae7856f4. I'll make a new release with this fix in it this week.

mansch commented 8 years ago

Thanks! :+1: I've tested 1.5.62-SNAPSHOT and can confirm its working there.. like a charm :)

rubendel commented 8 years ago

Cool, thanks for confirming