thesauri / jsmpeg-vnc-linux

Linux port of jsmpeg-vnc: a low latency, high framerate screen sharing server for Linux and client for browsers
36 stars 15 forks source link

It compiled on Ubuntu 20.04, but it's crashing instantly #8

Open marclava opened 3 years ago

marclava commented 3 years ago

$ ./jsmpeg-vnc desktop Erreur de segmentation

No idea how to debug that problem. I use a laptop with an extra screen; should I try with only one screen?

thesauri commented 3 years ago

You could try that. What display to use can also be set explicitly using the DISPLAY environment variable.

To dig deeper into what causes the error, try compiling with debug flags, run with valgrind and post the crash log here.

weeaudi commented 2 years ago

I also get a Segmentation fault error it doesn't work on any screen or a vnc server either.

thesauri commented 2 years ago

@weeaudi Did you try compiling with debug flags and running it with valgrind? That may provide some crash logs that can help in debugging this.

weeaudi commented 2 years ago

valgrind.log

Here is the log for when i ran valgrind

weeaudi commented 2 years ago

Also tried it without my monitor plugged in but that didn't work

thesauri commented 2 years ago

Thank you for the crash logs. I haven't touched this project in a long time, but I was able to reproduce the issue.

XOpenDisplay was failing in jsmpeg-vnc.c as no display was specified using the -i flag.

I fixed this in d79e3b1 by defaulting to the value of the DISPLAY environment variable unless it has been specified explicitly. In other words, pull the most recent version and try running it again, it should default to the primary screen now.

Also, I noticed that the binary has to be run with bin/ as the working directory for it to find the client side files.

weeaudi commented 2 years ago

I noticed the display variable Has to be the IP of the computer EX: 000.000.000.000:0 but the default is :0