-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[macOS/windows] Random crash when starting and stopping discovery #89
Comments
Hey, Can you try to run your project from Visual Studio on Windows using the local debugger ? I think you'll be able to get a crash log and a stacktrace 🙂 |
Thanks, I did a quick check on macOS, here's what I found: Bonsoir/packages/bonsoir_darwin/darwin/Classes/Discovery/BonsoirServiceDiscovery.swift Line 153 in c2ca675
|
Maybe it's a synchronization problem that occurs because of platforms have troubles dealing with a lot of browser instances or something like that. |
Hey, I've merged #91 into dependencies:
bonsoir:
git:
url: [email protected]:Skyost/Bonsoir.git
ref: master |
I've switched to Flutter's main channels, and now I see native stack trace in the stdout. This, however, looks the same as on Bonsoir
|
Any update on random crash bug? Due to this package my app is crashing on windows machine when I start and stop discovery continuously. The warning before crash I'm seeing is :
|
@rohanjariwala03 This has nothing to do with a crash (see #78). |
I'm also experiencing crashes on Windows. It happens when quickly starting and stopping the service discovery. Demo (expand the video): Screen.Recording.2024-08-15.150032.mp4The issue seems to be in the following line:
|
HAs anyone figured out how to fix this. i get the same error and after that the discovery stops and will not resolve the host
|
@dustin-auby See #78. |
Error on line 1, column 7: "name" field doesn't match expected name "bonsoir".
╷
1 │ name: bonsoir_workspace
│ ^^^^^^^^^^^^^^^^^
╵
exit code 65 |
dependencies:
bonsoir:
git:
url: https://github.com/Skyost/Bonsoir
ref: master
+ path: packages/bonsoir |
this doesn't solve the problem. |
Describe the bug
Hi 👋
I was testing a way to force discovery to send more queries (or at higher frequency) using Riverpod's refresh/invalidate, because I had some issues with my embedded device being discovered and stumbled upon this issue. There is no stack trace provided, even when running flutter in verbose. This happens to me on macOS (14.3.1, M1 Max), but have reports indicating that it also happens on Windows (Windows 10 Pro).
To Reproduce
Steps to reproduce the behavior:
Minimal repro project is here: https://github.com/karniv00l/bonsoir_issue
And code looks like that:
The app will randomly crash after a couple of seconds without any errors/stack trace.
Expected behavior
App should not crash without any errors
Desktop (please complete the following information):
Additional context
Going back to my initial problem - polling/querying for the service - is there any way this can be configured? It looks like the default behavior is exponential back off.
The text was updated successfully, but these errors were encountered: