Skip to content
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

OSXvnc-server shuts down with ‘Received Result: -9876 during event loop, Shutting Down’ error #59

Open
egigoka opened this issue May 23, 2024 · 4 comments

Comments

@egigoka
Copy link

egigoka commented May 23, 2024

Issue Summary

OSXvnc-server shuts down unexpectedly with “Received Result: -9876 during event loop, Shutting Down.”

Steps to Reproduce

1.	Start the VNC server with the command: `OSXvnc-server -rfbauth ~/.vnc/.pass -rfbport 5900 -loglevel debug -nobonjour`
2. Observe the server log until it shuts down with the error: `2024-05-23 23:41:09.856 OSXvnc-server[95400:1751548] Received Result: -9876 during event loop, Shutting Down`

Expected Behavior

The VNC server should remain running and accept client connections without shutting down.

Actual Behavior

The server starts and waits for clients, but shuts down unexpectedly with the error “Received Result: -9876 during event loop, Shutting Down.”

Logs
OSXvnc-server -rfbauth ~/.vnc/.pass -rfbport 5900 -loglevel debug -nobonjour
2024-05-23 23:41:05.682 OSXvnc-server[95400:1751548] Arguments: -rfbauth /Users/egigoka/.vnc/.pass -rfbport 5900 -loglevel debug -nobonjour
2024-05-23 23:41:05.743 OSXvnc-server[95400:1751548] Detected HiDPI Display with scaling factor of 2.000000
2024-05-23 23:41:05.836 OSXvnc-server[95400:1751548] Running in Little Endian
2024-05-23 23:41:05.837 OSXvnc-server[95400:1751548] Waiting for clients
2024-05-23 23:41:05.837 OSXvnc-server[95400:1751570] Registering Bonjour Service(_rfb._tcp.) - FuckingM1.local
2024-05-23 23:41:05.838 OSXvnc-server[95400:1751572] Started listener thread on IPv6 port 5900
2024-05-23 23:41:05.839 OSXvnc-server[95400:1751570] Using Private Event Source
2024-05-23 23:41:05.840 OSXvnc-server[95400:1751570] Using Smart Event Tap -- HID for console user
2024-05-23 23:41:05.840 OSXvnc-server[95400:1751570] Started listener thread on IPv4 port 5900
2024-05-23 23:41:09.851 OSXvnc-server[95400:1751916] Protocol version 3.8
2024-05-23 23:41:09.856 OSXvnc-server[95400:1751548] Received Result: -9876 during event loop, Shutting Down
2024-05-23 23:41:09.856 OSXvnc-server[95400:1751548] Disabling Bonjour Service - FuckingM1.local
2024-05-23 23:41:09.856 OSXvnc-server[95400:1751548] Removing Observers
2024-05-23 23:41:09.856 OSXvnc-server[95400:1751548] RFB shutdown complete

Additional Information

•	macOS version: 14.5
•	OSXvnc-server version: vine-server: 5.3.2 https://github.com/stweil/OSXvnc/ as reported by Homebrew
•	Hardware: M1 MacBook Air 2020

Troubleshooting Steps Taken

1.	Checked for port conflicts using lsof -i :5900.
2.	Verified firewall settings to ensure the VNC server is allowed.
3.	Checked system logs for additional error messages.
4.	Disabled Bonjour service with -nobonjour.
5.	Reinstalled vine-server using Homebrew.
6.	Tried running the VNC server as root.
7. 	Tried running Vine Server.app, set password, clicked Start Server, second icon of Vine Server constantly opening and closing, server crashed when I've tried to connect

None of these steps resolved the issue.

Report generated using assistance from ChatGPT due to me being not native English speaker.

@stweil
Copy link
Owner

stweil commented May 23, 2024

Did you try to connect a client? If yes: which one?

@egigoka
Copy link
Author

egigoka commented May 24, 2024

Did you try to connect a client? If yes: which one?

Yes, server is running waiting for clients until I try to connect to it. I've tried only RealVNC. I'll try anothers, thanks!

@egigoka
Copy link
Author

egigoka commented May 25, 2024

Same error on:

macOS:

  • RealVNC 7.11.1 (r26) ARMv8-A (May 9 2024 17:20:06)
  • Screen Sharing.app 4.3 (594.2.1)
  • TigerVNC v1.13.1
  • Chicken (did not run)

iOS:

  • RealVNC 4.8.0.52119
  • Remote Ripple 3.5.1 (shows black screen, server errors out on disconnect)
  • Screens 5 (did not connect without payment)
  • Mocha VNC Lite 5.9
  • VMouse - VNC Remote Mouse 3.3

Windows:

  • RealVNC 7.11.1 (r26) x64 (May 9 2024 17:24:12)
  • TightVNC 2.8.81 gpl
  • UltraVNC 1.5.0.0 indev
  • UltraVNC 1.4.6

Some clients show password prompt, but server is already down

Any option to send more logs from server?

It's the same 14 lines in output to terminal.

@stweil
Copy link
Owner

stweil commented May 25, 2024

-9876 is eventLoopQuitErr, so RunCurrentEventLoop() returned that result code.

But I have no idea how I can reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants