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

ecCodes 'field->file' assertion fails on index.select() #131

Closed
acowlikeobject opened this issue Feb 15, 2020 · 1 comment
Closed

ecCodes 'field->file' assertion fails on index.select() #131

acowlikeobject opened this issue Feb 15, 2020 · 1 comment

Comments

@acowlikeobject
Copy link

I'm running into a peculiar problem where I can build, write and select from index files once, but if I do it again in the same interpreter session, I get an ecCodes assertion failed.

E.g., in the following snippet, I run exactly the same lines twice; it works the first time but crashes the second. So far I'm able to reproduce this with any grib I use.

Am I not using index objects correctly? Or is something else going on?

import pygrib

grib_path = 'test.grib'

for idx_path in (grib_path + '.idx1', grib_path + '.idx2'):
    index = pygrib.index(grib_path, 'endStep')
    index.write(idx_path)
    index.close()

    pygrib.index(idx_path).select(endStep=0)  # Test  open and select.
    print(idx_path, 'worked')

Output:

test.grib.idx1 worked                                                                                                                                                                               
ecCodes assertion failed: `field->file' in /home/conda/feedstock_root/build_artifacts/eccodes_1579074340882/work/src/grib_index.c:1470
Aborted (core dumped)
@acowlikeobject acowlikeobject changed the title ecCodes 'field->file' assertion fails on index.write() ecCodes 'field->file' assertion fails on index.select() Feb 15, 2020
@acowlikeobject
Copy link
Author

Actually, this issue is entirely within eccodes. Opened an issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant