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

SIGSEGV on file open error #1593

Closed
EmersonDove opened this issue Nov 14, 2023 · 1 comment
Closed

SIGSEGV on file open error #1593

EmersonDove opened this issue Nov 14, 2023 · 1 comment

Comments

@EmersonDove
Copy link

EmersonDove commented Nov 14, 2023

Hey everyone,

Trying to figure out a good way to handle this SIGSEGV:

Error opening file: Cannot read image file "/Users/emerson/Downloads/Blood_burst/blood_bursts_bloodSpray004.0001.exr". Operation not permitted.

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Just doing a simple:

EXRFile *readEXR(const char *filename) {
    Imf::MultiPartInputFile file(filename);
}

Any good cross platform way to go about checking existence or handling failure?

@EmersonDove
Copy link
Author

Resolved it was just my code accessing the pointer coming back after the function was handled (skill issue)

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