Closed Bug 1184507 Opened 9 years ago Closed 9 years ago

Intermittent test_about_pages.py TestAboutPages.test_type_to_non_remote_tab | IOError: Connection to Marionette server is lost. Check gecko.log (desktop firefox) or logcat (b2g) for errors.

Categories

(Testing :: Marionette Client and Harness, defect)

x86
Linux
defect
Not set
normal

Tracking

(e10s+, firefox44 fixed)

RESOLVED FIXED
mozilla44
Tracking Status
e10s + ---
firefox44 --- fixed

People

(Reporter: RyanVM, Assigned: chmanchester)

References

(Blocks 1 open bug)

Details

(Keywords: crash, intermittent-failure)

Attachments

(1 file)

We had another one like this a couple days ago. Sadly not a one-off :(

19:26:27 INFO - TEST-START | test_about_pages.py TestAboutPages.test_type_to_non_remote_tab
19:38:29 INFO - Failed to gather test failure debug.
19:38:29 INFO - Traceback (most recent call last):
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/runner/base.py", line 571, in gather_debug
19:38:29 INFO - rv['source'] = marionette.page_source
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1170, in page_source
19:38:29 INFO - response = self._send_message('getPageSource', 'value')
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/decorators.py", line 36, in _
19:38:29 INFO - return func(*args, **kwargs)
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 692, in _send_message
19:38:29 INFO - response = self.client.send(message)
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_transport/transport.py", line 117, in send
19:38:29 INFO - response = self.receive()
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_transport/transport.py", line 73, in receive
19:38:29 INFO - raise IOError(self.connection_lost_msg)
19:38:29 ERROR - IOError: Connection to Marionette server is lost. Check gecko.log (desktop firefox) or logcat (b2g) for errors.
19:38:29 ERROR - TEST-UNEXPECTED-ERROR | test_about_pages.py TestAboutPages.test_type_to_non_remote_tab | IOError: Connection to Marionette server is lost. Check gecko.log (desktop firefox) or logcat (b2g) for errors.
19:38:29 INFO - Traceback (most recent call last):
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette_test.py", line 296, in run
19:38:29 INFO - testMethod()
19:38:29 INFO - File "/builds/slave/test/build/tests/marionette/tests/testing/marionette/client/marionette/tests/unit/test_about_pages.py", line 64, in test_type_to_non_remote_tab
19:38:29 INFO - self.wait_for_condition(lambda mn: mn.get_url() == "about:preferences")
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette_test.py", line 705, in wait_for_condition
19:38:29 INFO - value = method(self.marionette)
19:38:29 INFO - File "/builds/slave/test/build/tests/marionette/tests/testing/marionette/client/marionette/tests/unit/test_about_pages.py", line 64, in <lambda>
19:38:29 INFO - self.wait_for_condition(lambda mn: mn.get_url() == "about:preferences")
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1300, in get_url
19:38:29 INFO - response = self._send_message("getCurrentUrl", "value")
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/decorators.py", line 36, in _
19:38:29 INFO - return func(*args, **kwargs)
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 692, in _send_message
19:38:29 INFO - response = self.client.send(message)
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_transport/transport.py", line 117, in send
19:38:29 INFO - response = self.receive()
19:38:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_transport/transport.py", line 73, in receive
19:38:29 INFO - raise IOError(self.connection_lost_msg)
19:38:29 INFO - TEST-INFO took 721394ms
19:50:29 INFO - Failed to gather test failure debug.
19:50:29 INFO - Traceback (most recent call last):
19:50:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/runner/base.py", line 571, in gather_debug
19:50:29 INFO - rv['source'] = marionette.page_source
19:50:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1170, in page_source
19:50:29 INFO - response = self._send_message('getPageSource', 'value')
19:50:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/decorators.py", line 36, in _
19:50:29 INFO - return func(*args, **kwargs)
19:50:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 692, in _send_message
19:50:29 INFO - response = self.client.send(message)
19:50:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_transport/transport.py", line 117, in send
19:50:29 INFO - response = self.receive()
19:50:29 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette_transport/transport.py", line 73, in receive
19:50:29 INFO - raise IOError(self.connection_lost_msg)
19:50:29 ERROR - IOError: Connection to Marionette server is lost. Check gecko.log (desktop firefox) or logcat (b2g) for errors.
Assignee: nobody → cmanchester
Bug 1184507 - Disable TestAboutPages:test_type_to_non_remote_tab for being racy. r=ato

This test sends keys to the urlbar causing a page navigation, then waits on
the current url to confirm the navigation is reflected. Because the navigation
changes remoteness, the url check and loading the content listener in the
new process race. When the url check wins, it causes a hang by sending a
message before the frame script to receive it loads.

This is a very specific scenario that only impacts tests that need to cause
navigation to in-process pages with key events. If these sort of tests
become a priority, this will need to be revisited.
Attachment #8665796 - Flags: review?(ato)
Comment on attachment 8665796 [details]
MozReview Request: Bug 1184507 - Disable TestAboutPages:test_type_to_non_remote_tab for being racy. r=ato

https://reviewboard.mozilla.org/r/20357/#review18301
Attachment #8665796 - Flags: review?(ato) → review+
https://hg.mozilla.org/mozilla-central/rev/29e88f597e0e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.