-
Notifications
You must be signed in to change notification settings - Fork 31
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
Unknown Exception - Matrix calculation with local ORS instance for large amounts of data #180
Comments
Hi @lautre7, Did you already increase the timeout in the provider settings to the maximum value? Both using the plugin with a local ors instance and using the algorithms in separate pyqgis scripts is not really tested. You could do a selective Matrix for the features that produce the error, and take a look at them if the error persists. Best regards |
Hi @TheGreatRefrigerator, Yes, the timeout is on maximum value. The error occurs immediately when the concerning request is sent, so that should not be the problem. It seems to depend mainly on the count of points and the number of requests, so I guess somewhere there is a limitation of the number of individual routes or of the amount of data, but it is funny that after a few hours of error requests, it continues to work for more requests and routes than before the error occured. I don't know if it comes from the plug-in, QGIS itself or the ORS instance, but if you happen to find the reason, I am very curious. In the meantime I am using a workaround. Best regards |
@lautre7 Thanks for posting your issue. Could you paste your ors config file in here (without the sensitive parts, of course)? |
@MichaelsJP Here's the config file, sorry it took so long. |
Context:
Our local ORS instance has worked without problems so far. Recently, we increased the capacity for matrix calculation to 20,000 connections per request in order to evaluate larger amounts of points.
A large number of individual requests with less than 20,000 connections are sent to the local instance by a PyQGIS script in a loop via the QGIS plugin.
Excerpt from the script:
Problem:
For all tested records, an exception occurs after a certain number of requests, which we cannot explain and which also causes all subsequent requests from the same QGIS window to fail for several hours. Subsequently, further requests suddenly work again. Their quantity may be greater than that of the matrices created before the problem.
Line 50 is the line where the matrix tool is called.
I have attached a record of start and destination points where the problem occurred:
destinationpoints.zip
originpoints.zip
With this data set 739 matrices were calculated, then the error occurred for several hours with each query, before another 10,600 matrices were calculated without problems or further pauses.
Manual calculation:
I tried to compute the connections of the missing points manually with the tool "Matrix from Layers", but also after 739 elements the same problem occurred. There were also no new requests from this QGIS window, the error occurred immediately. I have also added the log files:
QGIS_Matrix_from_layers_Protocol.txt
The issue occurred in QGIS versions 3. 24. 2 and 3. 28. 4. For different output data (different number of points), the error occurred after a different number of requests.
There is no noticeable downtime of the service and there does not seem to be any capacity problems.
The search, whether the error could be with QGIS, has yielded nothing. We have not found any similar problems in your forum.
Our theory would be that there may be some restriction on requests (per time) in the backend of the ORS, but here it is questionable why a larger number of requests will work after the error occurs than before.
Can you help us with that?
Thank you very much.
The text was updated successfully, but these errors were encountered: