-
Notifications
You must be signed in to change notification settings - Fork 70
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
The server crashes if the remote cursor shape changes #34
Comments
I cannot reproduce this issue. The cursor grows when I shake it on the Mac with macOS 10.13.6, I have |
The crash dump looks like it might be related to something unexpected in your copy+paste buffer. |
Sorry, the screenshot is from the other crash. The original issue was happening inside But anyway thanks for looking into it. |
For me it looked like there was some race condition while we were trying to call |
cursorData = (unsigned char*)malloc(sizeof(unsigned char) * cursorDataSize);
err = CGSGetGlobalCursorData(connection,
cursorData,
&cursorDataSize,
&cursorRowBytes,
&cursorRect,
&hotspot,
&cursorDepth,
&components,
&cursorBitsPerComponent);
//CGSReleaseConnection(connection);
if (err != kCGErrorSuccess) {
// maybe cursorDataSize here is not the same as it was while malloc has been executed
free(cursorData); |
|
@mykola-mokhnach, would it be acceptable to use the default cursor on the viewer side (until someone finds working code to get the cursor image)? |
It looks like the current implementation of cursor bitmap capture does not properly handle "locate cursor" feature which is available in the recent MacOS releases (the arrow grows in size for a moment if one shakes it for a while)
The text was updated successfully, but these errors were encountered: