Bug report #13155
A Multiband image(e.g. landsat5,7,8) cannot be displayed in windows8.
Status: | Closed | ||
---|---|---|---|
Priority: | High | ||
Assignee: | - | ||
Category: | Rasters | ||
Affected QGIS version: | 2.12.0 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21218 |
Description
Hi all.
I tried to use landsat5,7,8 and worldview2 satellite images as multiband images.
But they couldn't be displayed well.
Sometimes, they can be displayed , sometimes, only white.
If they are white, Pushing Refresh button many times, then they might be displayed.
(They were all .tif type and created pyramid layer of all levels.)
I tried them on windows7 pro too, they work every time.
This problem happened only on windows8.
I tested on Windows8.1 pro,8GB and almost 100GB memory size, QGIS 2.10 and QGIS 2.8.2
Related issues
Associated revisions
Hopefully fix raster layers not rendering on Windows
The copy constructor for QgsContrastEnhancement was using
an uninitialized value for the mContrastEnhancementAlgorithm
member, resulting in no contrast function being set in
certain occasions.
Refs #13155
Fix raster layers not rendering on Windows 8
The copy constructor for QgsContrastEnhancement was using
an uninitialized value for the mContrastEnhancementAlgorithm
member, resulting in no contrast function being set in
certain occasions.
Refs #13155
(cherry-picked from cc505424cec9d5cf2a01663371d44d0fbd4a636a)
History
#1 Updated by Giovanni Manghi over 9 years ago
- Category set to Rasters
- Status changed from Open to Feedback
Did you noticed the difference between Win 8 and Win 7 on the same machine (same hardware) or on different machines?
#2 Updated by Nobuhiko Yoshimura over 9 years ago
Thank you for your response.
They were different machine.
I checked more than 5 machines for each(win8,win7).
All win7 was fine and All win8 has that problem.
#3 Updated by Nobuhiko Yoshimura over 9 years ago
I changed to QGIS 32 bit in Windows8.
It works well.
This problem is only 64bit version.
#4 Updated by Adrian Klink over 9 years ago
I had a similar problem and can add: the problem with Windows 8 and 64bit only applies to multiband raster layers when contrast stretch is active. Without contrast stretch, Win 8 / 64bit works well. (But of course, contrast stretch is necessary in most cases). This might be important for locating the bug with Win 8 / 64bit. Please see here:
QGIS Application Bug report #13181: random (In-)visibility Issue when using several large multispectral raster layers
#5 Updated by Luca Ongaro over 9 years ago
I have the same problem, the description of Adrian is correct.
I can add that it seems to be independent from image size and type.
#6 Updated by Adrian Klink about 9 years ago
Nobuhiko Yoshimura wrote:
I changed to QGIS 32 bit in Windows8.
It works well.This problem is only 64bit version.
Unluckily the issue can also happen with 32bit version in Windows 8, too. Changing from 64bit to 32bit QGIS only solves issue in part. It can still happen in seldom cases in 32bit, unlike the 64bit version where it happens very often. But it only happens when contrast stretch is enabled for the layer.
#7 Updated by Luca Ongaro about 9 years ago
The issue persists in QGIS 2.12.
#8 Updated by Giovanni Manghi about 9 years ago
- Affected QGIS version changed from 2.10.0 to 2.12.0
Can anyone attach/link sample data?
#9 Updated by Nobuhiko Yoshimura about 9 years ago
Giovanni Manghi wrote:
Can anyone attach/link sample data?
I guess thatyou could check this issue by using full scene of landsat images.
(Landsat8 images are better to check)
Please download it from here.
https://libra.developmentseed.org/
Thanks!!
#10 Updated by Giovanni Manghi about 9 years ago
I guess thatyou could check this issue by using full scene of landsat images.
(Landsat8 images are better to check)Please download it from here.
https://libra.developmentseed.org/
nope, I cannot replicate the issue. Tested on both Windows and Linux.
#11 Updated by Adrian Klink about 9 years ago
Giovanni Manghi wrote:
I guess thatyou could check this issue by using full scene of landsat images.
(Landsat8 images are better to check)Please download it from here.
https://libra.developmentseed.org/nope, I cannot replicate the issue. Tested on both Windows and Linux.
I have downloaded 3 landsat sample sets from given link (LC81960242015185LGN00.tar.bz, LC81960242015217LGN00.tar.bz, LC81960242015233LGN00.tar.bz), created a .vrt layer stack from each set (raster -> misc -> create virtualraster (catalog) -> using option separate [gdalbuildvrt -separate]) then issue occured after some retries enabling/disabling the .vrt layerstacks using color stretch to min max. Most likely issue will not occur if only one layer stack is loaded, but chances to see the issue increase when adding more layers (2-3 should be enough).
Used OS for testing: Windows 8.1 (64bit) with 8GB RAM - as far as I know, Linux and Windows 7 are not affected by issue, only Windows 8. (Never tried Windows 10)
Used QGIS for testing: 2.12.0 Lyon (64bit)
#12 Updated by Cédric Lardeux about 9 years ago
Hello,
I can confirm that during remote sensing training in the computer room we use computer on windows 8 64bit (intel core I7 and 8Go of ram in case on this information is usefull).
We use qgis 2.10 64bits and it's appear axactly as describe befor when we have probably more thabn 5 or 6 bands.
Indeed based o the same dataset given bellow, when we split data to create vrt with only 3 bands it works well contrary to the fulle dataset.
With Spot 6 with 4 band works well, with Radar data 3 bands in floats works well.
I remember that some people had the same problem with 2.8.
Just now the same for dev version 2.13.
I have tried to add option for comatibility mode as WINXPSP3 in bat file but not better
In comparison to my laptop on Ubuntu any problem. In my virtualbox with Win 7 64bits (for test) it work well. The same on standard laptop with win 7 64bits.
Edit:On Windows 10 also the bug
I hope you will find the problem because it's a limitation for windows user that want to use Qgis for remote sensing with OTB for exemple in the processing toolbox.
The dataset (clip of PanSharpen Landsat 8 in Brazil)
https://drive.google.com/file/d/0B3-2whKifktUaVNoYmxtcjlxUWc/view?usp=sharing
#13 Updated by Lammert Hilarides almost 9 years ago
I can confirm this behaviour on 64b versions of QGIS 2.8, 2.10 and 2.12 on Windows 8.1 and Windows 10, using multiband LandSat 8 imagery.
#14 Updated by Giovanni Manghi almost 9 years ago
- Status changed from Feedback to Open
I think there is enough feedback to say that the issue is confirmed, at least on some Windows machines.
#15 Updated by Giovanni Manghi almost 9 years ago
see also #12522
#16 Updated by Nyall Dawson almost 9 years ago
- Status changed from Open to Feedback
Please test with tomorrow's nightly builds and confirm whether the possible fix has worked
#17 Updated by Adrian Klink almost 9 years ago
Nyall Dawson wrote:
Please test with tomorrow's nightly builds and confirm whether the possible fix has worked
Just downloaded todays nightly build of 2.13 (64bit, Win 8.1). It works for me. Still need some more testing, but on first try with same scene no issue occured where it definitelly would have happen with versions <= 2.12. Thanks! Good Job!
#18 Updated by Nyall Dawson almost 9 years ago
- Resolution set to fixed/implemented
- Status changed from Feedback to Closed
100% confident this is fixed now - I've thrown a lot of testing at it.
#19 Updated by Luca Congedo almost 9 years ago
It works for me.
Thank you very much.