I have an issue in my CesiumJS website where sometimes Cesium works and sometimes it doesn’t. Sometimes the globe appears and my app works, in other times it appears I’m stuck in outer space the globe never appears. When I’m stuck in outer space, I get this message:
Non-standard status.
An error occurred in “CesiumTerrainProvider”: Failed to obtain terrain tile X: 2 Y: 0 Level: 2
Closing the browser and re-opening always fixes it, but after opening a few tabs of my site, the error appears. Refreshing the page doesn’t fix it; only closing all open browser windows does. Any idea why I can’t always access the tiles?
dzung
October 2, 2020, 3:52pm
2
Hi there! Welcome to the Cesium Community.
A couple of our users have had this issue in the past. I recommend checking out the following resources:
Hello all,
About 10 months ago, I had done some work to gather a bunch of SRTM data and convert it to a format that is usable by Cesium. We set up a custom terrain server and we were able to serve and view our custom terrain tiles.
More recently, the need for a custom terrain server has come back and what I had worked on is finally being put to use. We have encountered some problems that we were not getting before, however. I believe our terrain server is setup correctly, but we are getting er…
Hi,
We have aerial imagery for land surface and Digital Elevation Model from LiDAR data. We use ArcGIS Server to serve this data as web services.
I’ve tried to use our web service to create our own earth surface but I got the this error when I’ve tried to create my own terrain.
I’ve tried to use “Hello World SandCastle Example” and ESRI free elevation web service for testing but I got the same error again.
And I tried this example but the result is the same.;
http://cesiumjs.org/Cesium/Buil…
opened 10:34PM - 27 Sep 14 UTC
closed 10:27AM - 28 Sep 14 UTC
I've created a tileset and added the missing top tile:
https://github.com/geo-d… ata/cesium-terrain-builder/issues/1
Unfortunately, I'm still getting an error:
An error occurred in "CesiumTerrainProvider": Failed to obtain terrain tile X: 1 Y: 0 Level: 0.
This tile is generated by the terrain builder, and the URL is correct, but it seems to fail in the createHeightmapTerrainData method of CesiumTerrainProvider. An error occurs in this line:
var heightBuffer = new Uint16Array(buffer, 0, provider._heightmapWidth \* provider._heightmapWidth);
I wonder if there is something wrong in the buffer obtained from the file. buffer.byteLength is 48, while provider._heightmapWidth \* provider._heightmapWidth is 4225. Isn't the buffer too short?
This is the tile:
http://thematicmapping.org/data/tiles/terrain/jotunheimen/0/1/0.terrain
3d, terrain, cesium
Which browser are you working with? Do you have the same error when using other browsers?
Please follow up if the above resources didn’t resolve your issue.
I’m using Chrome and Edge. The issue still persists. It’s as if my network has issues downloading layer.json sometimes, but not always. Can you think of any reason why closing/re-opening all browser windows would fix the issue with downloading layer.json ?
The error I’m seeing in my Developer Console when I’m stuck in outer space is this:
The origin ‘MY_URL’ did not find ‘MY_URL’ in the Access-Control-Allow-Origin response
header for cross-origin resource at ‘https://api.cesium.com/v1/assets/1/endpoint?access_token=MY_KEY ’.
Of note, I am using the default CesiumTerrainProvider.
dzung
October 6, 2020, 2:03pm
5
Have you tried using a different network? Can you recreate the issue in a Sandcastle ?