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

Raster calculator freezes the GUI with big rasters #28403

Closed
qgib opened this issue Nov 21, 2018 · 7 comments
Closed

Raster calculator freezes the GUI with big rasters #28403

qgib opened this issue Nov 21, 2018 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Nov 21, 2018

Author Name: Alessandro Pasotti (@elpaso)
Original Redmine Issue: 20583
Affected QGIS version: 3.5(master)
Redmine category:raster_calculator
Assignee: Alessandro Pasotti


Raster is a dem 40000x40000 and even with a simple expression it takes ages and the GUI completely freezes (no cancellation is possible: it is disabled in code)

This makes the tool completely unusable for large rasters.

@qgib
Copy link
Contributor Author

qgib commented Nov 23, 2018

Author Name: Giovanni Manghi (@gioman)


Hi Alessandro, likely duplicate of #21389 ?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 26, 2018

Author Name: Alessandro Pasotti (@elpaso)


Yeah, related but not the same bug.


  • assigned_to_id was configured as Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented Nov 28, 2018

Author Name: Anónimo (Anónimo)


Applied in changeset d3d1805.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Nov 28, 2018

Author Name: Giovanni Manghi (@gioman)


Thanks Alessandro for tackling this, it was MUCH needed.

@qgib
Copy link
Contributor Author

qgib commented Nov 28, 2018

Author Name: Alessandro Pasotti (@elpaso)


I actually fixed the "big" issue (the crash #21389) but I couldn't do much for the first part of GUI freeze: this is happening because the rasters are read as a whole and that operation is not interruptable.

But, once the raster are read and the computation starts, the progress bar now appears and the operation can be interrupted.

So, since this is a partial fix, I'm going to leave this open.


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Nov 28, 2018

Author Name: Alessandro Pasotti (@elpaso)


A small step forward: #8564

@qgib
Copy link
Contributor Author

qgib commented Dec 6, 2018

Author Name: Alessandro Pasotti (@elpaso)


Applied in changeset 273a71a.


  • status_id was changed from Reopened to Closed

@qgib qgib closed this as completed Dec 6, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant