3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
257 stars 143 forks source link

[Bug]: popups don't work on diagrams #4568

Closed loic74 closed 3 weeks ago

loic74 commented 3 months ago

What is the bug? (in English)

When a layer contains diagrams, the popups don't appear and the browser console displays this message: "RangeError: Maximum call stack size exceeded".

Capture d'écran 2024-07-03 120816

Steps to reproduce the issue

  1. Add diagrams on a points layer
  2. Click on a point

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : safe * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu 20.04

Browsers

Chrome

Browsers version

Chrome 126

Relevant log output

Symbology.js:310 

Uncaught RangeError: Maximum call stack size exceeded
    at get parentRule (Symbology.js:310:9)
    at get legendOn (Symbology.js:289:18)
    at get legendOn (Symbology.js:292:29)
    at get legendOn (Symbology.js:292:29)
    at get legendOn (Symbology.js:292:29)
    at get legendOn (Symbology.js:292:29)
    at get legendOn (Symbology.js:292:29)
    at get legendOn (Symbology.js:292:29)
    at get legendOn (Symbology.js:292:29)
    at get legendOn (Symbology.js:292:29)
Gustry commented 3 months ago

I don't think it's linked to the diagrams but the symbology. We got the issue on another project.

Are you using the rule based renderer ? Can you check your rule based items ? Labels and description ? (remove the description and/or reduce it)

loic74 commented 3 months ago

OK. I did a lot of tests. It seems that you can't have a diagram and more than one rule (or pictogram) in the rule based renderer. With a single rule, the popup works normally. Without diagrams, popus works even with several rules in the rule based renderer.

nboisteault commented 2 months ago

@loic74 can you check that you don't have any newline character in the label and description of your legends?

loic74 commented 2 months ago

@nboisteault No newline character in the label or description.

github-actions[bot] commented 1 month ago

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎