I found that apps using anari-ospray crash when the environment variable OSPRAY_LOG_LEVEL was set. That's because anari-ospray installs a custom (user-settable) status function which is however NULL when the user did not set it as a device parameter. The proposed commit will default-initialize that status function to simply print the status messages to stderr, or to the device's default status function set by the user via anariLoadLibrary (if the latter is not NULL).
I found that apps using
anari-ospray
crash when the environment variableOSPRAY_LOG_LEVEL
was set. That's becauseanari-ospray
installs a custom (user-settable) status function which is howeverNULL
when the user did not set it as a device parameter. The proposed commit will default-initialize that status function to simply print the status messages tostderr
, or to the device's default status function set by the user viaanariLoadLibrary
(if the latter is notNULL
).