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

Crashes in WSL 1 #18

Open
DSdPR opened this issue Sep 21, 2021 · 6 comments
Open

Crashes in WSL 1 #18

DSdPR opened this issue Sep 21, 2021 · 6 comments

Comments

@DSdPR
Copy link

DSdPR commented Sep 21, 2021

Hello, I've been trying to run the application on a Ubuntu 20.04 installation within a Windows 10 computer using WSL version 1. While I can run the simple monitoring client described in the GNSS-SDR documentation (https://gnss-sdr.org/docs/tutorials/monitoring-software-receiver-internal-status/) without problems, when using the gnss-sdr-monitor application I have noticed it crashes as soon as gnss-sdr starts streaming data. Any idea why this might be? Thank you

@acebrianjuan
Copy link
Owner

Hi Daniel (@DSdPR),

Thank you for reporting this.

Honestly, I have never tested the gnss-sdr-monitor application on a WSL instance, so I don't know what the cause of the crash might be but I am interested in finding out more details.

Are there any error messages printed on the console when the crash occurs?
Can you send me a gdb backtrace when the crash occurs so I can investigate this?

Regards,
Álvaro

@DSdPR
Copy link
Author

DSdPR commented Sep 21, 2021

Hi Álvaro, here is the backtrace:
image

I tested this running a simple configuration with the SDR in which it reads a signal, locks onto certain SVs and then gives a position fix. It's about a minute worth of signal.

It is not so much a crash as the program freezes, with no further output or error messages on the console, that is why I had to issue an interrupt. There is a brief window, while the SDR is performing Acquisition, when I can interact with the program and connect to the SDR. However, once it locks onto an SV, the program freezes and I can no longer select any option or telecommands.

@acebrianjuan
Copy link
Owner

I tested this running a simple configuration with the SDR in which it reads a signal, locks onto certain SVs and then gives a position fix. It's about a minute worth of signal.

It is not so much a crash as the program freezes, that is why I had to issue an interrupt. There is a brief window, while the SDR is performing Acquisition, when I can interact with the program and connect to the SDR. However, once it locks onto an SV, the program freezes and I can no longer select any option or telecommands.

Oh I see, so the GUI doesn't crash but it becomes unresponsive when GNSS-SDR starts locking onto satellites. Then, given that you are running GNSS-SDR with a pre-recorded signal file, I suspect you are experiencing the same performance issue as reported in issue #10.

Try doing the following:

  1. Set SignalSource.enable_throttle_control=true in your receiver configuration file (the reason is explained here).
  2. Set a relatively low buffer size value (for example 1000) in the gnss-sdr-monitor preferences panel (Edit > Preferences), so that the GUI doesn't eat up too much memory.

The GUI should remain responsive now.

Let me know if this solved the issue or if the problem still persists.

Álvaro

@DSdPR
Copy link
Author

DSdPR commented Sep 21, 2021

I have set the throttle control alongside a low buffer size, but still no luck, the GUI keeps freezing when the first NAV messages are received on the SDR. Here is the corresponding backtrace:
image

@acebrianjuan
Copy link
Owner

What version of gnss-sdr are you using?

Are you using a resource-constrained WSL instance?

@DSdPR
Copy link
Author

DSdPR commented Sep 22, 2021

The version is v 0.15, and there is nothing indicating the WSL instance might be resource-constrained. I suspect this issue might be due to how WSL version 1 has no real linux kernel. I will try again later with a WSL version 2 to see if there is any luck. Thanks for your help.

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