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

NetworkManager.Initialize() deadlock running from F# Interactive #122

Closed
reinux opened this issue Sep 11, 2020 · 7 comments
Closed

NetworkManager.Initialize() deadlock running from F# Interactive #122

reinux opened this issue Sep 11, 2020 · 7 comments

Comments

@reinux
Copy link
Contributor

reinux commented Sep 11, 2020

Calling networkManager.Initialize() in F# Interactive causes it to deadlock.

Here's an async stack trace:

image

I've been trying to reproduce this in C# Interactive so that it's easier to repro, but it's not seeing ZigBeeNet.Transport.Serial at all for whatever reason.

@Mr-Markus
Copy link
Owner

I do not have experience with F#, but mabye @nicolaiw has an idea?

@nicolaiw
Copy link
Contributor

Maybe I will find the time to have a look at this in the next view weeks. Does it just happen in the interactive window or did you tried it in a simple console application as well?

Regards

@reinux
Copy link
Contributor Author

reinux commented Sep 14, 2020

Thanks @nicolaiw!

It works fine in a console application, to the extent that Initialize() will succeed and start waiting for connections, though I still haven't been able to get it to find any endpoints on my devices (which I mentioned here).

I just prefer to work in F# Interactive so I can iterate and tinker really quickly.

I thought it might have something to do with the fact that F# Interactive, when running in Visual Studio, hooks into the Windows message pump, but I turned that off using the --gui- flag, as well as tried running dotnet fsi in a console window, and it still behaves the same.

@reinux
Copy link
Contributor Author

reinux commented Oct 30, 2020

Just an FYI, this works just fine with .NET Interactive, which is really cool. Exploratory tinkering with Zigbee is really convenient.

@nicolaiw
Copy link
Contributor

nicolaiw commented Nov 6, 2020

I am sorry. Did not find the time to dig into this. Is this still an Issue? I did not used F# for a while :D

@reinux
Copy link
Contributor Author

reinux commented Nov 6, 2020

I've kind of given up on F# Interactive, but it works just fine in .NET Interactive.

Thanks though!

@reinux
Copy link
Contributor Author

reinux commented Nov 6, 2020

Closing since it looks like F# Interactive is going to be abandoned soon in favor of .NET Interactive anyway.

@reinux reinux closed this as completed Nov 6, 2020
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