Code Monkey home page Code Monkey logo

Comments (4)

Nimrodda avatar Nimrodda commented on June 12, 2024

Do you have a sample project that reproduces this issue? Can you reproduce the issue with the example project that comes with the plugin? I need more info

from flutter_nsd.

harishkthedeveloper avatar harishkthedeveloper commented on June 12, 2024

@Nimrodda Thank you for your response. I've created a custom demo project for you to review:

Clone link - https://github.com/harishkthedeveloper/mdns_demo.git

I've also provided a demo video and log file for your convenience:

Demo video & log file - https://drive.google.com/drive/folders/1cQdpHMdnf3s-ofJ8kjixmOHL55P3AbO8?usp=sharing

To reproduce the issue, please follow these steps:

NOTE: In the file nsd_service.dart, replace String serviceTypeDiscover = "<add_your_service>._tcp"; with your service name.

  1. Click on the "Scan" button to go to the scanned device list page.
  2. Then, click the back button on the Appbar (we are stopping the service in the Dispose method).
  3. Try to switch between Wi-Fi networks in your mobile settings and return to the app.
  4. Repeat the above three steps more than 10 times to encounter the following errors:

Errors:

[MDNS] ERROR: ID:- 4961d42f-eed2-4952-89c9-9e9fad13c746 NsdError (message: "stopDiscovery: MulticastLock under-locked nsdMulticastLock", cause: internalError)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: NsdError (message: "Maximum outstanding requests reached", cause: maxLimit)

I'm seeking your guidance on why the service is not getting stopped or closed, and how we can avoid these errors. If these errors persist, it becomes challenging to provide users with a new device list. Your insights and suggestions will be highly appreciated.

from flutter_nsd.

Nimrodda avatar Nimrodda commented on June 12, 2024

I noticed you're mixing flutter_nsd plugin with nsd plugin and the file you referred me to nsd_service.dart doesn't even use flutter_nsd's API. You should file this bug to nsd plugin repo.

from flutter_nsd.

harishkthedeveloper avatar harishkthedeveloper commented on June 12, 2024

@Nimrodda thank you for your response, certainly i will check it with nsd, let me first try with only flutter_nsd plugin. I will let you know on further updates here if i get the solution

from flutter_nsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.