Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a project fails with RuntimeError: index out of bounds #6

Closed
wonder-sk opened this issue Sep 28, 2023 · 4 comments
Closed

Loading a project fails with RuntimeError: index out of bounds #6

wonder-sk opened this issue Sep 28, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@wonder-sk
Copy link
Member

Here's the test project: test_project.zip

Loading it will emit this error:

Uncaught (in promise) RuntimeError: index out of bounds
    loadProject https://qgis-js.dev.schmuki.io/assets/wasm/qgis-js.js line 6867 > Function:8
    <anonymous> https://qgis-js.dev.schmuki.io/assets/index-5d3bd54b.js:120
    r https://qgis-js.dev.schmuki.io/assets/index-5d3bd54b.js:1
    n https://qgis-js.dev.schmuki.io/assets/index-5d3bd54b.js:1
    async* https://qgis-js.dev.schmuki.io/assets/index-5d3bd54b.js:120
[qgis-js.wasm:5700853:1](https://qgis-js.dev.schmuki.io/assets/wasm/qgis-js.wasm)
    <anonymous> https://qgis-js.dev.schmuki.io/assets/index-5d3bd54b.js:120
    AsyncFunctionThrow self-hosted:856
@wonder-sk wonder-sk added the bug Something isn't working label Sep 28, 2023
@boardend
Copy link
Collaborator

Seems like a problem with QGIS Expressions:

Uncaught (in promise) RuntimeError: memory access out of bounds
    at QgsExpressionNodeFunction::QgsExpressionNodeFunction(int, QgsExpressionNode::NodeList*) (qgis-js.wasm:0x56fcf9)
    at exp_parse(expression_parser_context*) (qgis-js.wasm:0x54bcdc)
    at parseExpression(QString const&, QString&, QList<QgsExpression::ParserError>&) (qgis-js.wasm:0x54e291)
    at QgsExpression::QgsExpression(QString const&) (qgis-js.wasm:0x55145f)
    at QgsProperty::loadVariant(QVariant const&) (qgis-js.wasm:0x9d9bd6)
    at QgsPropertyCollection::loadVariant(QVariant const&, QMap<int, QgsPropertyDefinition> const&) (qgis-js.wasm:0x9dfd9b)
    at QgsAbstractPropertyCollection::readXml(QDomElement const&, QMap<int, QgsPropertyDefinition> const&) (qgis-js.wasm:0x9dce8d)
    at QgsSymbolLayerUtils::loadSymbolLayer(QDomElement&, QgsReadWriteContext const&) (qgis-js.wasm:0x447965)
    at QgsSymbolLayerUtils::loadSymbol(QDomElement const&, QgsReadWriteContext const&) (qgis-js.wasm:0x4455a5)
    at QgsSymbolLayerUtils::loadSymbols(QDomElement&, QgsReadWriteContext const&) (qgis-js.wasm:0x45d3fb)

@wonder-sk
Copy link
Member Author

Then it looks like a duplicate of #5, not sure why it was giving me a different error...

@boardend
Copy link
Collaborator

Just re-checked you test_project.zip after fixing #5

Now it fails with RuntimeError: unaligned memory access in QgsNetworkAccessManager due to the OSM XYZ tiles. So probably a duplicate of #3 ...

@wonder-sk
Copy link
Member Author

Cool thanks - let's close this ticket then...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants