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
run example.exe on Windows 10 output error msg: select, An operation was attempted on something that is not a socket #165
Comments
Does this happen on other Windows versions as well? I have it here, too, Windows 10. |
@bk138 |
Hi @bk138 : |
Maybe, microsoft changed the error tips from windows 7 to windows 10. Because, There are same error message on windows 10 like yesterday , :) |
@bk138 |
I can confirm the same issue on Win7 SP1 x64 using current libvncserver-master.
or
Is there a known fix for this? . |
@aquawicket no, there is no fix for this from now. I tried to fix this , but its a big challenge of grasp this whole project in limited time |
I am solved this problem under Windows XP and on MinGW GCC compiller. This problem lies in the types of data used. All of socket descriptors must be declared, as SOCKET instead int, so as in WinSock2 all of SOCKET are presented as void*, but under UNIX they are equivalent int. When you checking expression (socket(...) >= 0) under Windows, this condition is always TRUE, because void* is an unsigned integer type. Details: https://msdn.microsoft.com/ru-ru/library/windows/desktop/ms740516(v=vs.85).aspx . |
I present to your attention my pull request #185 and I'm waiting for your comments. |
@lvorobjev Thanks , I memtioned the bug is Socket data type above, I tried to fix it before, but the other issue pops up. so I stop research it. Let me check your pull request. |
Hi, I found another link which provides insight into a similar issue and fix, https://sourceforge.net/p/libvncserver/bugs/39/ @Ivorobjev : Are you able to connect to your vnc server built using mingw using the novnc? |
That bug is 3 years old, Has libvncserver not worked on windows for that long? Or maybe it came incrementally with new win OS's. Anyway, What was the last version that worked on windows? I have no luck creating any server on windows. All errors above continue. |
I think the reason is that it was almost exlusively built with MinGW for Windows, not MSVC. |
this issue still exist. cant run on Windows 10 |
whm200410 fork works for Windows, but has not been tested on all systems yet. Reference: #195 |
Update:
|
We are facing the same issues here on Windows 10. This is quite an old post and it (this issue) does not seem fixed. We should attempt to fix severe or critical and/or old issues first. Then move on to other issues. |
Having "rfbProcessNewConnection: error in select: The operation completed successfully" on windows 7 too (libvncserver master) |
It's definitely wrong to build with LIBVNCSERVER_WORDS_BIGENDIAN defined on Win32. Instead use the auto-detected endianess macro (which will indicate little endian on i686/x86_64). Removing the hardcoded define makes all tests pass (especially encodingtest) when built with MinGW64 toolchain. In combination with PR LibVNC#257 this fixes issues LibVNC#165 and LibVNC#249.
It's definitely wrong to build with LIBVNCSERVER_WORDS_BIGENDIAN defined on Win32. Instead use the auto-detected endianess macro (which will indicate little endian on i686/x86_64). Removing the hardcoded define makes all tests pass (especially encodingtest) when built with MinGW64 toolchain. In combination with PR LibVNC#257 this fixes issues LibVNC#165 and LibVNC#249.
It's definitely wrong to build with LIBVNCSERVER_WORDS_BIGENDIAN defined on Win32. Instead use the auto-detected endianess macro (which will indicate little endian on i686/x86_64). Removing the hardcoded define makes all tests pass (especially encodingtest) when built with the MinGW64 toolchain. In combination with PR LibVNC#257 this fixes issues LibVNC#165 and LibVNC#249.
Hi Eeveryone:
System Enviroment:
Promblem Description
I just simply build libvncserver on windows 10 referred to: https://github.com/LibVNC/libvncserver/blob/master/.appveyor.yml
it build compeletely success with 0 errors.
I find example.exe in the folder of examples, and run example.exe from CMD. but it repeating output error message: select, An operation was attempted on something that is not a socket
it seems like the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.
So, I just download realVNC's VNC viewer to connect localhost:5900 but it is does not work and I tried no_vnc(html5 client) in webclients folder and does not work,too.
Then, I tried simple.exe, vncev.exe looks well when no client connected to them,
but they also ouptput error message as follows when vncviewer conected:
vncev.exe:
simple.exe:
Does anyone can solve this problem?
Finally, I tried use SDLviewer in client_examples folder, the server(vncev,exe, simple.exe, example.exe) also repeating show error messages like above.
I have really no idea to solve this from now.
The text was updated successfully, but these errors were encountered: