Skip to content

Problems camera/gatansocket3 GetImage() only receives b'' (no image data) on second handshake & causes GMS freeze #153

@Junschen1

Description

@Junschen1

I'm encountering a critical issue when using the GetImage() function from camera/gatansocket3 to read image data from DigitalMicrograph (Camera type: clearview/stela):
The first ExchangeMessage (enum_gs['GS_GetAcquiredImage']) works perfectly and I can receive the corresponding message/response as expected;
After sending the second handshake protocol message (enum_gs['GS_ChunkHandshake']), the program fails to receive any valid image data — the only returned value (len_recv) is an empty bytes object b'';
Worse still, this failure occasionally causes DM to completely freeze/crash.
I have replaced and tested multiple different versions of the serialEMCCD plugin, but the above issue persists across all versions and no improvement has been observed.
Core affected function: camera/gatansocket3 -> GetImage()
Key abnormal behavior: Valid response for 1st ExchangeMessage, only b'' for 2nd handshake (no image data)
I would greatly appreciate any guidance or fixes for this issue! 🙏
Best regards, Junshu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions