Closed Bug 1100944 Opened 5 years ago Closed 5 years ago

Intermittently "Operation timed out: connecting to runtime" message displayed even if the simulator opens


(DevTools :: WebIDE, defect)

Windows 7
Not set


(firefox34 unaffected, firefox35 fixed, firefox36 fixed)

Firefox 36
Tracking Status
firefox34 --- unaffected
firefox35 --- fixed
firefox36 --- fixed


(Reporter: petruta.rasa, Assigned: jryans)



(Keywords: regression)


(1 file, 1 obsolete file)

Reproduced with Firefox 34 beta 9, Dev Edition 35.0a2 and Nightly 36.0a1 2014-11-17 under Win 7 64-bit.

Steps to reproduce:
1. Open WebIDE using a profile where simulators were previously installed
2. Connect to any simulator
3. When it is opened, select another simulator from the list

Expected results:
Selected simulator opens

Actual results:
2/3. The simulator is opened, but the following message is displayed on "Troubleshooting" section: Operation timed out: connecting to runtime Firefox OS x.y
Browser console:
"Connection status changed: connecting" app-manager.js:100
"Operation timed out: connecting to runtime Firefox OS 2.0" webide.js:316:4
UI.reportError() webide.js:316
UI.setupBusyTimeout/this._busyTimeout<() webide.js:258
I've seen this behavior too.  It feels like the simulator takes longer to open and listen for a connection, but I don't there were any simulator changes.

We could just bump WebIDE's timeout to work around it, but my guess some code change in WebIDE is making this slower somehow.

It should not be affected by simulator versions, but test with 2.2 to ensure consistent results.

Hoping someone can find a regression window, or else I can try when I get some time.
I've the with all the version of simulator with the firefox developer edition.
Also with the app manager the simulator window is opened but is black and from the app manager result not connected.
The issue reproduces with 2.2 simulator too.

Last good revision: 1e2993c99323 (2014-09-24)
First bad revision: 1735ff2bb23e (2014-09-25)

Last good revision: f8ad56c861c1
First bad revision: 4e596b0a38e2

I suspect bug 1055011.
(In reply to Petruta Rasa [QA] [:petruta] from comment #3)
> I suspect bug 1055011.

I was hoping it would be something more "interesting" than the one where we lowered the timeout... :(

Petruta, in comment 0 you say it also affects Firefox 34, but bug 1055011 is not in 34.  Is it perhaps a different problem then?

In the mean time, I'll up the timeout at least.
Flags: needinfo?(petruta.rasa)
Attached file MozReview Request: bz://1100944/jryans (obsolete) —
Attachment #8526226 - Flags: review?(paul)
/r/841 - Bug 1100944 - Nudge WebIDE timeout higher. r=paul

Pull down this commit:

hg pull review -r b0f414ad24dfaba0261d07de357da82e2b4efbcf
Depends on: 1102445
I just tried to reproduce on Firefox 34 beta 11. I encountered the message once, but that time the simulator failed to open. It could have been a different problem there, but it's not easy to catch it. I'll update if I'll have new info.
Flags: needinfo?(petruta.rasa)
Attachment #8526226 - Flags: review?(paul) → review+
Assignee: nobody → jryans
Closed: 5 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
Comment on attachment 8526226 [details]
MozReview Request: bz://1100944/jryans

Approval Request Comment
[Feature/regressing bug #]: Bug 1055011
[User impact if declined]: Users will see a "connection timeout" in WebIDE, even though the connection will eventually succeed.  Bug 1055011 set a timeout that was a bit too low.
[Describe test coverage new/current, TBPL]: m-c
[Risks and why]: Low, just changing a timeout value.
[String/UUID change made/needed]: None
Attachment #8526226 - Flags: approval-mozilla-aurora?
Attachment #8526226 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
I'm using the developer edition (36.0a2 (2014-12-27)) and the problem still exists with the simulator version 1.3-1.4-2.0, 2.1 and 2.2 don't have this problem.
Attachment #8526226 - Attachment is obsolete: true
Attachment #8618647 - Flags: review+

I am also facing the same problem reported by Petruta initially. It is on the latest version of FFOS - 38.0.6. I have installed FF simulator versions 1.3, 1.4, 2.0 and 3.0 but while running my app on any of these simulators, I am getting the error "Operation timed out:installing and running app"

Kindly help me to resolve this issue urgently.


Please note : These simulators were working fine in the earlier version of Firefox 37.0.3
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.