Closed wonder-sk closed 1 year ago
FYI: @andreasneumann hit that issue too and provided me a test project. I'm currently looking into this.
The old patch to get the QGIS expressions "working" in a debug build was way too aggressive. Basically removing all expression functions, which made the whole expression evaluation useless/failing 🙈
This is now fixed with https://github.com/qgis/qgis-js/commit/afbdda9cfee2dc288b1b9d4e17161e81ddeae978 which adds the needed flag (forcing optimization in debug builds) only to expression/qgsexpressionfunction.cpp
in QGIS (see also the upstream emscripten issue). QgsExpressions are now working with all build types in Chormium/Firefox 🥳
The fix is also published to the temporary demo site. The test project form @andreasneumann seems to work fine. Please report back so we can close this issue.
@boardend and @wonder-sk - looks good. I tested with my project and it loads fine.
There are a few issues with this project still (text size too small, cut-off-labels), but for these we should open separate issues.
Thanks for your feedback. See https://github.com/qgis/qgis-js/issues/8 and feel free to open a new issue for the cut-off-labels.
When using a QGIS project containing vector tiles layer with a couple of styling rules, it failed to load with this RuntimeError:
QgsExpressionNodeFunction tries to lock a recursive mutex, maybe that's the reason (possibly related to #3 which also fails when locking mutex, but with a different error message)