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
Crash when calling QgsRasterHistogram.histogramVector #29700
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Anita Graser (@anitagraser) Related thread on GIS.SE: https://gis.stackexchange.com/questions/319163/how-to-use-qgsrasterinterface-histogram/319267#319267 |
@anitagraser I think that you should keep a reference to rh = QgsRasterHistogram()
p.initHistogram(rh, 1, 100) does it still crash? |
@anitagraser I cannot reproduce on master, I'm going to test 3.4 now |
Hopfully fixes qgis#29700
@anitagraser I may have found the issue. |
I'm afraid there's still the same crash as shown in the GIF above in QGIS code revision: 4662bb9 |
@anitagraser thanks for checking, the a.m. revision does not contain the patch: I'm working on the forward porting to master now and adding a test for it. |
Fwd port of PR qgis#30033 Fixes qgis#29700 With a new test for the bug.
Author Name: Anita Graser (@anitagraser)
Original Redmine Issue: 21885
Affected QGIS version: 3.7(master)
Redmine category:rasters
User Feedback
To reproduce, load a raster layer and run:
l = iface.activeLayer()
p = l.dataProvider()
p.initHistogram(QgsRasterHistogram(),1,100)
h=p.histogram(1)
h.histogramVector
Report Details
Crash ID: 83fbcfe1e268fc8a14c5f21189006505dfb05fea
Stack Trace
QGIS Info
QGIS Version: 3.6.1-Noosa
QGIS code revision: 2468226
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.4.1
Running against GDAL: 2.4.1
System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17134
The text was updated successfully, but these errors were encountered: