So our JS app runs fine locally, but when we deploy to our server we get this error when the app begins to display features on the map (point features in this case):
RuntimeError:
"abort((CompileError: webassembly.instantiatestreaming() section was shorter than expected size (1000435 bytes expected, 389112 decoded) @+394360) Build with -s ASSERTIONS=1 for more info"
The webapp is deployed to a closed network environment when we get this error.
We are using v4.20 of the JS api. If we can't find a solution, we may try to update to the latest version but that is not easily done due to my development environment.
Solved! Go to Solution.
So basically, it came down to our feature object having a null spatial reference. We are using the INDEXDB storage in the web browser to store objects locally. When the object goes in to INDEXDB it was losing the spatial reference. We simply reassigned the spatial reference when it came out of INDEXDB before displaying.
So basically, it came down to our feature object having a null spatial reference. We are using the INDEXDB storage in the web browser to store objects locally. When the object goes in to INDEXDB it was losing the spatial reference. We simply reassigned the spatial reference when it came out of INDEXDB before displaying.