glGenSyncTokenCHROMIUM exception randomly thrown

Hi,

I observed (and also had it reported by some of my users) the following exception leading to Cesium crashing.

It happens very randomly, sometimes after of a long period of normal operation of Cesium (one hour+)

Here is the log:

GL_INVALID_OPERATION : glGenSyncTokenCHROMIUM: fence sync must be flushed before generating sync token

WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost

Cesium.js:477 An error occurred while rendering. Rendering has stopped.

undefined

RangeError: Invalid array length

RangeError: Invalid array length

at ye (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:471:22507)

at Se (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:471:25387)

at Ve (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:472:2616)

at Be (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:472:570)

at qe (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:472:6648)

at de.render (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:472:11828)

at P.render (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:477:23779)

at t (http://dev.gefs.com/projects/GEFS/libs/3rdp/Cesium/1-27/Cesium.js:477:10572)

This is Cesium 1.27 stable, running on Google Chrome (54.0.2840.99 m (64-bit)) with a Geforce 610M

It has been reported to me that this error does not occur when running on Firefox but I can not confirm this.

Cheers,

Xavier.

Thanks Xavier. Do you have any way for us to reproduce this? It will be very difficult for us to figure out what is going on otherwise.

Best,

Hannah

Hi Hannah,

Sadly, I do not have any reproductible scenario: this appears to be quite a rare and random error.

I just thought I would let you know in case the logs and error message would ring any bell.

Thanks,

Xavier.

Did you ever figure out what was causing this?

Apparently this issues was resolved by reducing the tile cache size I had pushed to unreasonable value. Vram would eventually fill up and that would cause the crash after some time.

This is not entirely confirmed yet but it looks promising.

Xaviet