Closed Bug 1210801 Opened 9 years ago Closed 9 years ago

Error opening input stream while launching WebIDE, device connection fails

Categories

(DevTools Graveyard :: WebIDE, defect)

43 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jackwickham, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20151001004012

Steps to reproduce:

Enable WebIDE error logging as per https://developer.mozilla.org/en-US/docs/Tools/WebIDE/Troubleshooting#Enable_logging then open the browser console followed by the WebIDE


Actual results:

'Error opening input stream (invalid filename?): resource://gre/components/TCPSocket.js: undefined' is logged to the browser console, and the WebIDE is then unable to connect to any devices over USB or WiFi (chrome is able to connect successfully, and adb devices works correctly).


Expected results:

No errors should have been logged to the console, and the WebIDE should be able to connect to devices over WiFi and USB.
Component: Untriaged → Developer Tools: WebIDE
Summary: Error opening input stream while launching WebIDE → Error opening input stream while launching WebIDE, device connection falis
Summary: Error opening input stream while launching WebIDE, device connection falis → Error opening input stream while launching WebIDE, device connection fails
Firefox 43 has been waiting for bug 1207090 to be uplifted.  That was done today, so I would expect it to work after the next 43 update.

Can you check again after that and let me know what happens?
Depends on: 1207090
Flags: needinfo?(jackwickham)
USB debugging is now working, and no errors are being logged to the console when WebIDE is launched. However, my device (Nexus 5 running Android 5.1.1 with Firefox Aurora 43.0a2) still isn't showing up in wifi debugging pane, with wifi debugging enabled on the device.
Flags: needinfo?(jackwickham)
This may sound a little silly, but what happens if you try:

1. Make sure WebIDE is closed
2. Open Firefox on Android device
3. Verify WiFi debugging enabled
4. Open WebIDE

WebIDE is currently only scanning for devices on open in 43+, we need to add a "refresh" devices button, so maybe these steps will help.
Flags: needinfo?(jackwickham)
No - even with build 2015-10-06 on mobile and desktop, it's not working.
Flags: needinfo?(jackwickham)
Has WiFi debugging ever worked for you in the past?  Your initial report was about an error in USB debugging, so I wasn't sure if WiFi debugging is a regression as well, or it has just never worked at all.
Flags: needinfo?(jackwickham)
I've never tried to use it in the past, so I don't know if it ever worked. I've just tried installing nightly on my computer and beta on my phone, and that combination isn't working either. Computer is connected via ethernet and phone over wifi, but they are able to talk to one another normally (running a web server from my computer functions as expected).
Flags: needinfo?(jackwickham)
(In reply to jackwickham from comment #6)
> I've never tried to use it in the past, so I don't know if it ever worked.
> I've just tried installing nightly on my computer and beta on my phone, and
> that combination isn't working either. Computer is connected via ethernet
> and phone over wifi, but they are able to talk to one another normally
> (running a web server from my computer functions as expected).

Hmm... that could indeed be the issue.  Discovery of devices for WiFi uses multicast packets, which are fairly rare these days.  Most routers do not send them across different interfaces.  They don't travel multiple network hops, either.  Additionally, some routers are buggy / just drop them.

Can you re-test with the computer and device both using WiFi connection to the same WiFi router (no ethernet used)?
Flags: needinfo?(jackwickham)
WiFi debugging functions correctly on my laptop, so it looks like it is just that my router isn't allowing those packets through.
Flags: needinfo?(jackwickham)
Okay, great!  I think that's the best we can do for the moment.  I'm not aware of a way we can force the discovery to travel further without totally redesigning things.

Thanks for filing the bug, I'm glad we got these worked out!
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.