nbdd0121 / wsld

WSL Daemon - Stable X11 connection and time synchronisation for WSL2
Apache License 2.0
298 stars 24 forks source link

x11-over-vsock.exe crashing... #2

Closed pmorch closed 3 years ago

pmorch commented 3 years ago

I love the concept. Great that my X11 clients don't die when the network changes.

However, I've now seen x11-over-vsock.exe --daemon crash a number of times - about once a day. Often when I close the lid of the laptop, go somewhere and re-open the laptop, then I can see in Task Manager that x11-over-vsock.exe is no longer running, and all my X11 clients have disappeared. (Which is ironic, because that is exactly the use-case I want to solve... :-))

It doesn't happen consistently enough that I can reproduce it reliably, unfortunately. Of course I'll keep trying to figure out how to reproduce it. But I'm not sure what else to do. Is there anything I can do to do debug the situation? Any log files to investigate, any crash core files I can send you? Anybody else seeing this?

nbdd0121 commented 3 years ago

Can you run x11-over-vsock in cmd to see if there are any errors?

pmorch commented 3 years ago

Ok, I'll run it in a cmd.exe window for the time being and report back if anything gets printed there when/if it crashes next time. I just took the laptop out of the bag after the café yesterday where I reported this bug, and my X11 clients are still running, so no crash this time...

Oh, and you might already have made the connection, but my setup is as documented in #1.

nbdd0121 commented 3 years ago

Could it be a misconfiguration in task scheduler? Make sure you didn't check "Start the task only if the computer is on AC power", "Stop if the computer switches to battery power" in conditions, and "Stop the task if it runs longer than" in settings (these are on by default).

pmorch commented 3 years ago

I think you're probably absolutely right. I'm apologize for the noise. I'll let it run the next couple of days and then update #1 accordingly.