Select to view content in your preferred language

WebAssembly error

878
1
Jump to solution
12-03-2023 04:31 PM
David1
by
Occasional Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
David1
by
Occasional Contributor

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.

View solution in original post

0 Kudos
1 Reply
David1
by
Occasional Contributor

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.

0 Kudos