-
Notifications
You must be signed in to change notification settings - Fork 180
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
emit debug message when buffer clearing fails #469
Conversation
Thomas, I'm ok with this addition. At one point I had it in the code, but it's really not necessary since failure message(s) will already by written to the log when the buffer-clearing images fail. |
It was not at all clear in the log files - even at debug level 4 - what error was occurring. This won't spam the logs with useless success messages. |
Chris, with this change the user will get two errors about ASI_ERROR_TIMEOUT during the buffer clearing images. One from takeOneExposure() ("ERROR: Failed getting image, status = ...") at line 468, and one from the loop of taking 3 buffer clearing images at line 1957. |
Yes, that's intentional. I prefer to see errors as they happen. Deciding to exit after too many errors is a different bit of logic, and there's no guarantee that all the errors will be the same. Remember, I wasn't seeing timeouts at this stage, I was getting |
Chris,
Do you know which of these caused your error? If the first, any idea why pRgb.data would be NULL? |
Yes, it was caused by setting a 0x0 ROI (see #474). I had specified 1280x960 in my config file, and that wasn't getting properly processed, which led to the default 0x0 being passed in. This put the SDK/camera into a very confused state, and since the return code from ASISetROIFormat wasn't being checked, further operations would fail with Non-ASI errors. To help detect similar failures in the future, I intentionally log the image ROI if SetROI fails. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks good.
At least this way I know when the trash frame exposures fail, and why... rather than getting a silent failure