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

Segfault on writing file with no points #138

Closed
CCInc opened this issue Oct 12, 2022 · 1 comment
Closed

Segfault on writing file with no points #138

CCInc opened this issue Oct 12, 2022 · 1 comment

Comments

@CCInc
Copy link
Contributor

CCInc commented Oct 12, 2022

To reproduce:

    writer::named_file::config c({0.01,0.01,0.01}, {0.0,0.0,0.0});
    writer::named_file out(tempfile, c);
    out.close(); // <- Segfault

The issue is due to pcompressor never getting set as writePoints is never called. However, writing an empty file should be a valid operation.

@hobu
Copy link
Collaborator

hobu commented Oct 17, 2022

Fix implemented in #139

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

2 participants