You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GlfImage::OpenForReading attempts to open an image file for reading, and if it's not possible, it returns an empty pointer.
On the other hand, if one of the libraries OIIO uses to open a file throws an exception, it will be unhandled by OIIO, glf, hydra, or usdImagingGL (gazing up the call stack), and throw all the way out to the running application where there's no reasonable way to respond to the exception. Since not loading was already deemed non-fatal by OpenForReading, I think an exception from a loading library should also be treated as non-fatal.
If the call to _OpenForReading were guarded here with a try { } catch(...) { return GlfImageSharedPtr(); } the behavior would be more consistent.
GlfImage::OpenForReading attempts to open an image file for reading, and if it's not possible, it returns an empty pointer.
On the other hand, if one of the libraries OIIO uses to open a file throws an exception, it will be unhandled by OIIO, glf, hydra, or usdImagingGL (gazing up the call stack), and throw all the way out to the running application where there's no reasonable way to respond to the exception. Since not loading was already deemed non-fatal by OpenForReading, I think an exception from a loading library should also be treated as non-fatal.
If the call to _OpenForReading were guarded here with a try { } catch(...) { return GlfImageSharedPtr(); } the behavior would be more consistent.
The text was updated successfully, but these errors were encountered: