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

ascent crash while trying to write image to non existent directory #1400

Open
cyrush opened this issue Oct 15, 2024 · 1 comment
Open

ascent crash while trying to write image to non existent directory #1400

cyrush opened this issue Oct 15, 2024 · 1 comment
Labels

Comments

@cyrush
Copy link
Member

cyrush commented Oct 15, 2024

We think that using:

image_prefix: "mydir/mypng"

Where mydir doesn't exist, lead to a crash.

We should error, not crash.

@cyrush cyrush added the bug label Oct 15, 2024
@cyrush cyrush changed the title ascent crash while trying to write image to non existant directory ascent crash while trying to write image to non existent directory Oct 15, 2024
@emily-howell
Copy link
Member

This does hit a Conduit warning in the ascent_png_encoder.cpp (

CONDUIT_WARN("Error saving PNG buffer to file: " << filename);
)

It reads "Error saving PNG buffer to file:{path_to_file}"

I tested this with both an absolute path and a relative path and it hits the same error.

Is the desired behavior that the "mydir" get created? Or that the error is more specific?

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

No branches or pull requests

2 participants