droidVncServer icon indicating copy to clipboard operation
droidVncServer copied to clipboard

"Could not start server :(" message

Open gryphon2411 opened this issue 9 years ago • 8 comments

When clicking on "Start" button, the application granted with super user, and then I get the message mentioned in this issue title. The VNC server status stays as "Stopped" during the whole process above.

Is there any log to view why does the server cant start?

I would like this problem to be fixed.

Thanks.

gryphon2411 avatar Jul 04 '15 13:07 gryphon2411

Hello,

Same error on Galaxy S5

Best regards

dvinz avatar Jul 05 '15 13:07 dvinz

This App is for ICS only. If you have Lollipop or newer you will get "error: only position independent executables (PIE) are supported." through new security enhancement, see: https://source.android.com/security/enhancements/enhancements50.html

You can see the error message on a command line.

OldSparkyMI avatar Dec 09 '15 11:12 OldSparkyMI

is lollipop support on the road map?

Jspoor avatar Dec 15 '15 16:12 Jspoor

I don't know, but currently I don't think so. The last real commit is 4 years ago, the project is currently down.

But you can try to build it on your own with the current android sdk and -fPIE and -pie flags set.

OldSparkyMI avatar Dec 16 '15 06:12 OldSparkyMI

Same here with CM 12 :(

lupa18 avatar Mar 25 '16 18:03 lupa18

I just tried, if I could build this with the NDK - looks like it's enough to rebuild the droidvncserver native executable. This is no fun though, because one needs to compile openssl and libpng and i think two different jpeg libraries ... (these are all linked statically, not to mention that openssl is very outdated)

After some tweaking (disabling OpenSSL features, changing some C macros, fixing an assembly instruction etc. I could actually get it running (armeabi, x86 and mips - no luck with armeabi-v7a) and it didn't show the message "Could not start server :(" anymore, but it showed that the server was running and it was running (the port was open and I could connect to the kind of HTTP server that would also run on port 5801).

When I tried to connect with three different VNC clients though, the native app segfaulted... :(

I/DEBUG ( 281): Revision: '0' I/DEBUG ( 281): ABI: 'arm' I/DEBUG ( 281): pid: 30122, tid: 30122, name: androidvncserve >>> /data/data/org.onaips.vnc/files/androidvncserver <<< I/DEBUG ( 281): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xdeadbaad W/NativeCrashListener( 775): Couldn't find ProcessRecord for pid 30122 I/DEBUG ( 281): Abort message: 'invalid address or address of corrupt block 0xb7280e30 passed to dlfree'

droidvncserver.diff.zip

chtisgit avatar May 21 '16 00:05 chtisgit

Hello and thanks chtisgit! I will give this a try when I am back from italy mid june.

OldSparkyMI avatar May 31 '16 06:05 OldSparkyMI

Bump this. On Android 7.1 and need a VNC Server app.

7fe avatar Aug 18 '17 02:08 7fe