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

SearchNotes hangs up in WSL2 #182

Open
attilastrba opened this issue Jan 12, 2021 · 1 comment
Open

SearchNotes hangs up in WSL2 #182

attilastrba opened this issue Jan 12, 2021 · 1 comment

Comments

@attilastrba
Copy link

Hi guys,
I have a fresh install of the Notes plugin under Windows10 WSL2 and I have a strange problem. When I try to search in my .txt notes it hangs.
By debugging with strace I get the following never ending loop

select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout) select(1, [0], [], [0], {tv_sec=0, tv_usec=0}) = 0 (Timeout)

Does anybody have an idea?
Thank you very much

@msphinct
Copy link

I believe those are socket debug statements. I think it's just reporting that it's listening to the socket for a connection.
I'm not sure what your search problem is, but those indicate it's waiting for some network connection I believe.

If you strace any process with a network stack, you probably will see something like that. You might want to make sure strace is following all your forks/threads. Not sure about doing that on windows. ie, I think if you expand your strace to look at the process and ALL it's sub processes, you'll see more.
If you are using Cygwin, there's some flags to do this. Here's one of them:

-f, --trace-children trace child processes (toggle - default true)

Also, you might want to filter OUT those entries.

eg.,

strace | grep -v select

Good luck!

Pete

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