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

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

Open
marclava opened this issue Feb 25, 2021 · 7 comments
Open

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

marclava opened this issue Feb 25, 2021 · 7 comments

Comments

@marclava
Copy link

$ ./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
Copy link
Owner

thesauri commented Feb 26, 2021

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
Copy link

weeaudi commented Feb 7, 2022

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

@thesauri
Copy link
Owner

thesauri commented Feb 7, 2022

@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
Copy link

weeaudi commented Feb 7, 2022

valgrind.log

Here is the log for when i ran valgrind

@weeaudi
Copy link

weeaudi commented Feb 7, 2022

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

@thesauri
Copy link
Owner

thesauri commented Feb 8, 2022

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
Copy link

weeaudi commented Feb 8, 2022

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

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

3 participants