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

Iteration over new Logger data structure crashes with segmentation faults #134

Open
jonrkarr opened this issue Aug 23, 2021 · 0 comments
Open

Comments

@jonrkarr
Copy link
Contributor

jonrkarr commented Aug 23, 2021

Before realizing that len(...) does work to get the number of messages in the Logger data structure, I tried a couple of other ways to get all of the message. Unfortunately, they failed with segmentation faults.

Try to get list of messages

invalid_filename = 'invalid.rdf'
import pyomexmeta
rdf = pyomexmeta.RDF.from_file(invalid_filename, 'rdfxml')
list(pyomexmeta.Logger())

Try to iterate over list of messages

invalid_filename = 'invalid.rdf'
import pyomexmeta
rdf = pyomexmeta.RDF.from_file(invalid_filename, 'rdfxml')
for message in pyomexmeta.Logger():
    pass

Version: 1.2.13
Python: 3.9.5
OS: Ubuntu

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