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

MDAL crashes with MARS data (GRIB) #79

Closed
PeterPetrik opened this issue Jan 16, 2019 · 13 comments · Fixed by #80
Closed

MDAL crashes with MARS data (GRIB) #79

PeterPetrik opened this issue Jan 16, 2019 · 13 comments · Fixed by #80
Assignees
Labels
bug Something isn't working
Milestone

Comments

@PeterPetrik
Copy link
Contributor

PeterPetrik commented Jan 16, 2019

https://apps.ecmwf.int/datasets/data/interim-full-daily/levtype=sfc/

crashes on

void MDAL::DriverGdal::addDataToOutput( GDALRasterBandH raster_band, std::shared_ptr<MemoryDataset> tos, bool is_vector, bool is_x )
{
  assert( raster_band );

where raster_band is null pointer;

@PeterPetrik PeterPetrik added the bug Something isn't working label Jan 16, 2019
@PeterPetrik PeterPetrik added this to the MDAL 0.2.0 milestone Jan 16, 2019
@PeterPetrik PeterPetrik self-assigned this Jan 16, 2019
@PeterPetrik
Copy link
Contributor Author

@nirvn

@nirvn
Copy link

nirvn commented Jan 16, 2019

Thanks for looking into this @PeterPetrik .

@saberraz
Copy link
Contributor

_mars-atls14-95e2cf679cd58ee9b4db4dd119a05a8d-JqgDKs.grib.zip
Works fine with the attached data.

@nirvn
Copy link

nirvn commented Jan 16, 2019

@saberraz
Copy link
Contributor

auuuch....it didn't even give any error message...💥💥💥

@nirvn
Copy link

nirvn commented Jan 16, 2019

Yeah it's brutal ;)

@PeterPetrik
Copy link
Contributor Author

@nirvn do you have the same (failing) testcase but smaller (smaller area or less timesteps). ideally < 1MB so I can add it to test suite.

I think I found the error . In dataset, there is variable wind which has metadata which suggests it is vector quantity. But it has just 1 part of the data...

@nirvn
Copy link

nirvn commented Jan 16, 2019

Nothing at-hand unfortunately. I'll try to fetch a smaller version that still crashes tomorrow.

@saberraz
Copy link
Contributor

wind_u.grib.zip
I have extracted the first 2 time steps from the problematic grib and saved it in this file...which still crashes QGIS.

cdo seltimestep,1/2 _mars-atls06-70e05f9f8ba4e9d19932f1c45a7be8d8-BlonFv.grib wind_u.grib

@PedroVenancio
Copy link

Hi @PeterPetrik ,

I've some NetCDF files that crash QGIS (both 3.4.4 and Master) when loading them as Mesh or thru Browser. This seems to just happen in Windows (OSGeo4w64bits).

Can you please take a look?

Any of NetCDF from this site have this behaviour:

http://mf2.ipma.pt/downloads/

Thank you very much!

Best regards,
Pedro

@saberraz
Copy link
Contributor

saberraz commented Feb 4, 2019

Hi @PedroVenancio
I tested it in Windows and it is related to #72

You need to change QGIS Shortcut in Windows. Right-click on QGIS shortcut in your start menu and select Properties.

In the new windows, set the Start in folder to somewhere, where user has write access (e.g. Desktop).
After that, I managed to open it:

ezgif com-video-to-gif

@PedroVenancio
Copy link

Hi @saberraz

I've done that change in the shortcut, but I get the same crash, both in QGIS 3.4.4 and Master:

QGIS version 3.4.4-Madeira
QGIS code revision 0e635828d9
Compiled against Qt 5.11.2
Running against Qt 5.11.2
Compiled against GDAL/OGR 2.4.0
Running against GDAL/OGR 2.4.0
Compiled against GEOS 3.7.0-CAPI-1.11.0
Running against GEOS 3.7.0-CAPI-1.11.0 673b9939
PostgreSQL Client Version 9.2.4
SpatiaLite Version 4.3.0
QWT Version 6.1.3
QScintilla2 Version 2.10.8
Compiled against PROJ 520
Running against PROJ 5.2.0

QGIS version 3.5.0-Master
QGIS code revision 57695bd036
Compiled against Qt 5.11.2
Running against Qt 5.11.2
Compiled against GDAL/OGR 2.4.0
Running against GDAL/OGR 2.4.0
Compiled against GEOS 3.7.0-CAPI-1.11.0
Running against GEOS 3.7.0-CAPI-1.11.0 673b9939
PostgreSQL Client Version 9.2.4
SpatiaLite Version 4.3.0
QWT Version 6.1.3
QScintilla2 Version 2.10.8
Compiled against PROJ 520
Running against PROJ 5.2.0

I updated them today with OSGeo4W.

I also have started QGIS as Admin, and directly in the Admin user account, and I get always the crash.

Do you have any other hint?

Thanks!

@saberraz
Copy link
Contributor

saberraz commented Feb 4, 2019

please follow #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants