qgisred / QGISRed

GNU General Public License v2.0
23 stars 8 forks source link

Map view freezing after second simulation #96

Open mcarvajalino opened 1 year ago

mcarvajalino commented 1 year ago

Hei,

I have been having a weird situation in QGIS 3.26 and 3.28. When I open one of my models and simulate it for the first time it works well, but if I try to run a second simulation in the same session the map view freezes completely, even though my results were properly calculated and I can see them when opening a new map view. I assume it has something to do with the "refreshing" part of the code. Here is a snapshot: image

The only way to fix it is either opening a new map view or restarting QGIS (refresh doesn't help) which is quite annoying.

Thanks in advance for your help!

fmartine commented 1 year ago

Hi Mcarvajalino,

We have tried to reproduce the problem you mention without success. Is this problem repetitive, or has it occurred accidentally? In case it was repetitive, can you tell us the steps to follow to reproduce it?

mcarvajalino commented 1 year ago

Hi Fernando,

It's been repetitive. I open my model (created in QGISRed) and run a first simulation (either after modifying something in it or straight out of the last saved state) and everything runs smoothly. Then I change the visualization from "pressure" to "head" in the nodes and try to run again, the model runs successfully (status message window appears) but the screen freezes as shown in the previous message.

The only thing different in this model, compared to others I have developed in QGISRed before, is that I am using service connections this time. But I have been able to reproduce the error in previous models without service connections, so I doubt this is the reason. I reinstalled the plugin also, but the error keeps happening.

fmartine commented 1 year ago

Hello Marcos,

We have tried connecting with OpenStreetMap as the background of one of our test networks, then we calculated the network, changed the visualization variable from pressures to head, and the background does not freeze, so we cannot yet reproduce the error.

In the screenshot of the first message, the lake seems to be a trimmed image superimposed over the network, rather than a continuous background. Also, the image is shown in front of the network and it had to be behind by moving down the layer in the TOC.

If you can't work out this problem, we can arrange a meeting by teams. You already have my email to schedule an appropriate time. What country are you from?