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

"Bad magic number" error on known valid OpenEXR files #140

Closed
scottdyer opened this issue Dec 13, 2023 · 7 comments
Closed

"Bad magic number" error on known valid OpenEXR files #140

scottdyer opened this issue Dec 13, 2023 · 7 comments

Comments

@scottdyer
Copy link
Contributor

Finally managed to get ctlrender to run without an iexDebug error, but now am getting an old error where valid OpenEXR files are not recognized and so no image processing takes place.

To be fair, this might be related to an old version of ctlrender since I had to resort back to the old brew formula install for it to run. Is there a way to check version on ctlrender?

% ctlrender -ctl ~/aces-dev/transforms/ctl/utilities/ACESutil.Unity.ctl SonyF35.StillLife.exr ~/tmp/testout.exr

Unable to read tiff file: Not a TIFF or MDI file, bad magic number 12150 (0x2f76)unable to read file SonyF35.StillLife.exr (unknown format).

I now recall this error is perhaps why I went back and tried to reinstall everything from source, but then of course I was getting the iexDebugtrap error.

Any recommendations on how to get rid of whatever linked files are causing the install from source to not work? Or, how I might get around this error when using the install from homebrew?

@michaeldsmith
Copy link
Collaborator

@scottdyer I think you can use homebrew to build/install from the master source branch by adding the --head argument, like this

brew install --head ctl

I will look into adding automatic version info to the ctlrender usage, that's a great idea.

Let me know if build/install using --head fixes this error.

@michaeldsmith
Copy link
Collaborator

I confirmed that your test command/file using ctlrender installed with brew install ctl gives the error you reported "Unable to read tiff file..." and installing ctlrender install with brew install --head ctl fixes the issue.

@scottdyer
Copy link
Contributor Author

After clearing everything out again and reinstalling using --head, it worked!
Thank you!

@aforsythe
Copy link
Member

Should the current head be tagged as a release and the homebrew formula updated so brew install ctl works without the need to use --head?

@aforsythe aforsythe reopened this Jan 3, 2024
@michaeldsmith
Copy link
Collaborator

@aforsythe I just published release tag ctl-1.5.3, do you know how to update the homebrew formula?

@michaeldsmith
Copy link
Collaborator

I found the ctl homebrew formula on github, it looks like it has already picked up the ctl-1.5.3 tag release

https://github.com/Homebrew/homebrew-core/commits/c7caed52b7f11772bc73fd1df2197717f9a41454/Formula/c/ctl.rb

@aforsythe
Copy link
Member

Just installed from homebrew using brew install ctl and works great now. Thanks!

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

3 participants