Skip to content

You cannot get_data_from_shared_memory if data is an error report#162

Merged
Baharis merged 1 commit into
instamatic-dev:mainfrom
Baharis:main
May 30, 2026
Merged

You cannot get_data_from_shared_memory if data is an error report#162
Baharis merged 1 commit into
instamatic-dev:mainfrom
Baharis:main

Conversation

@Baharis
Copy link
Copy Markdown
Member

@Baharis Baharis commented May 30, 2026

When working with a camera via shared memory, any issue should be reported as a tuple of 500 i.e. error code and code description. However, in the current version of the code, if using shared memory is True, the (500, ErrorCode) would be interpreted as instruction for shared memory rather than an error code. Consequently, the error displayed would be along the lines of "cannot interpret (500, ErrorCode) tuple as dict" rather than the actual error that happened on the camera. This PR fixes this little issue, which is especially important when debugging the emulator. With this fix, errors are passed to the main GUI correctly, even if using shared memory is True.

@Baharis Baharis self-assigned this May 30, 2026
@Baharis Baharis added the bug label May 30, 2026
@Baharis Baharis merged commit 25bdf10 into instamatic-dev:main May 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant