urish / web-bluetooth-polyfill

Windows 10 Web Bluetooth Polyfill
76 stars 15 forks source link

Error: Attempting to use a disconnected port object #30

Closed kekbait closed 6 years ago

kekbait commented 6 years ago

Hi, First, thanks a lot for your work ! The extension is throwing this message while trying to connect :

capture1

Windows Version : 1703 (15063.674)

extensions::messaging:102 Uncaught (in promise) Error: Attempting to use a disconnected port object
    at PortImpl.postMessage (extensions::messaging:102:13)
    at Port.publicClassPrototype.(anonymous function) [as postMessage] (extensions::utils:140:26)
    at Promise (chrome-extension://elnncjplpoecpedhbdfhjkgnakeopmdh/background.js:16:20)
    at new Promise (<anonymous>)
    at nativeRequest (chrome-extension://elnncjplpoecpedhbdfhjkgnakeopmdh/background.js:7:12)
    at startScanning (chrome-extension://elnncjplpoecpedhbdfhjkgnakeopmdh/background.js:106:9)
    at requestDevice (chrome-extension://elnncjplpoecpedhbdfhjkgnakeopmdh/background.js:161:5)
    at port.onMessage.addListener (chrome-extension://elnncjplpoecpedhbdfhjkgnakeopmdh/background.js:333:13)
    at EventImpl.dispatchToListener (extensions::event_bindings:403:22)
    at Event.publicClassPrototype.(anonymous function) [as dispatchToListener] (extensions::utils:140:26)
kekbait commented 6 years ago

Found the error. Visual C++ Redistributable for Visual Studio 2015 (x86) was missing on my system.

Can you update the README.md with Visual C++ Redistributable for Visual Studio 2015 (x86) as a requirement/dependency ?

Steps to check :

  1. Trying to launch C:\Program Files (x86)\Web Bluetooth Polyfill\BLEServer.exe manually
  2. If an error message containing something like "VCRUNTIME140.dll is missing", install Visual C++ Redistributable for Visual Studio 2015 (x86) from here : https://www.microsoft.com/en-us/download/details.aspx?id=48145
  3. Launch C:\Program Files (x86)\Web Bluetooth Polyfill\BLEServer.exe one more time
  4. If this window appears : capture2

Then everything is ok :)

Again, thanks a lot for this polyfill. Cheers

urish commented 6 years ago

Thank you very much for the detailed instructions! Can you please send a Pull Request with these instructions (in README under the Troubleshooting section)

On 18 Oct 2017 14:54, "kekbait" notifications@github.com wrote:

Found the error. Visual C++ Redistributable for Visual Studio 2015 (x86) was missing on my system.

Can you update the README.md with Visual C++ Redistributable for Visual Studio 2015 (x86) as a requirement/dependency ?

Steps to check :

  1. Trying to launch C:\Program Files (x86)\Web Bluetooth Polyfill\BLEServer.exe manually
  2. If an error message containing something like "VCRUNTIME140.dll is missing", install Visual C++ Redistributable for Visual Studio 2015 (x86) from here : https://www.microsoft.com/en- us/download/details.aspx?id=48145 https://www.microsoft.com/en-us/download/details.aspx?id=48145
  3. Launch C:\Program Files (x86)\Web Bluetooth Polyfill\BLEServer.exe one more time
  4. If this window appears : [image: capture2] https://user-images.githubusercontent.com/26081966/31719478-e88f2c6e-b413-11e7-9f94-99f3a18f8e9c.PNG

Then everything is ok :)

Again, thanks a lot for this polyfill. Cheers

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/urish/web-bluetooth-polyfill/issues/30#issuecomment-337580614, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2dnvF6yMv9ssMPnHA-PuUDNADcAMxLks5stfTmgaJpZM4P9nIc .

kekbait commented 6 years ago

Sure mate. It's done.

urish commented 6 years ago

Thanks a bunch!