Closed Bug 1487124 Opened 6 years ago Closed 5 years ago

Permafailing Android testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_vertical_bounds | UnknownException: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)"

Categories

(Remote Protocol :: Marionette, defect, P3)

Version 3
ARM
Android
defect

Tracking

(firefox62 unaffected, firefox63 disabled)

RESOLVED WONTFIX
mozilla63
Tracking Status
firefox62 --- unaffected
firefox63 --- disabled

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: test-disabled)

Attachments

(1 file)

Filed by: toros [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=196448647&repo=mozilla-inbound

https://queue.taskcluster.net/v1/task/bK84YzvaRqubUkQL-yxO_Q/runs/0/artifacts/public/logs/live_backing.log

[task 2018-08-29T13:48:56.074Z] 13:48:56     INFO -  TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_tab_already_closed
[task 2018-08-29T13:49:00.257Z] 13:49:00     INFO -  TEST-SKIP | testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_tab_already_closed | took 4182ms
[task 2018-08-29T13:49:00.986Z] 13:49:00     INFO -  TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_vertical_bounds
[task 2018-08-29T13:49:17.217Z] 13:49:17  WARNING -  TEST-UNEXPECTED-ERROR | testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_vertical_bounds | UnknownException: [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://marionette/content/capture.js :: capture.canvas :: line 156"  data: no]
[task 2018-08-29T13:49:17.217Z] 13:49:17     INFO -  stacktrace:
[task 2018-08-29T13:49:17.218Z] 13:49:17     INFO -  	capture.canvas@chrome://marionette/content/capture.js:156:3
[task 2018-08-29T13:49:17.218Z] 13:49:17     INFO -  	capture.element@chrome://marionette/content/capture.js:51:10
[task 2018-08-29T13:49:17.219Z] 13:49:17     INFO -  	takeScreenshot@chrome://marionette/content/listener.js:1547:14
[task 2018-08-29T13:49:17.219Z] 13:49:17     INFO -  	dispatch/</req<@chrome://marionette/content/listener.js:482:14
[task 2018-08-29T13:49:17.219Z] 13:49:17     INFO -  	dispatch/<@chrome://marionette/content/listener.js:477:15
[task 2018-08-29T13:49:17.220Z] 13:49:17     INFO -  Traceback (most recent call last):
[task 2018-08-29T13:49:17.220Z] 13:49:17     INFO -    File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 159, in run
[task 2018-08-29T13:49:17.220Z] 13:49:17     INFO -      testMethod()
[task 2018-08-29T13:49:17.220Z] 13:49:17     INFO -    File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py", line 299, in test_capture_vertical_bounds
[task 2018-08-29T13:49:17.221Z] 13:49:17     INFO -      screenshot = self.marionette.screenshot()
[task 2018-08-29T13:49:17.221Z] 13:49:17     INFO -    File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1938, in screenshot
[task 2018-08-29T13:49:17.221Z] 13:49:17     INFO -      body, key="value")
[task 2018-08-29T13:49:17.222Z] 13:49:17     INFO -    File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 26, in _
[task 2018-08-29T13:49:17.223Z] 13:49:17     INFO -      return func(*args, **kwargs)
[task 2018-08-29T13:49:17.223Z] 13:49:17     INFO -    File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 755, in _send_message
[task 2018-08-29T13:49:17.223Z] 13:49:17     INFO -      self._handle_error(err)
[task 2018-08-29T13:49:17.224Z] 13:49:17     INFO -    File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 775, in _handle_error
[task 2018-08-29T13:49:17.224Z] 13:49:17     INFO -      raise errors.lookup(error)(message, stacktrace=stacktrace)
[task 2018-08-29T13:49:17.225Z] 13:49:17     INFO -  TEST-INFO took 16231ms
It's a new test as brought in via bug 1485730. Given that this only fails on Android we might want to just disable it on that platform for now. As it looks like the maximum allowed dimensions are way smaller due to lesser memory availability.
Depends on: 1485730
OS: Unspecified → Android
Hardware: Unspecified → ARM
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/034adef609b9
[marionette] Skip test_capture_vertical_bounds on Android. r=whimboo
Assignee: hskupin → nobody
Status: ASSIGNED → NEW
Priority: P5 → P3
https://hg.mozilla.org/mozilla-central/rev/034adef609b9
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Eliza Balazs [:ebalazs_] from comment #7)
> Last failure log its from 29.08:
> https://treeherder.mozilla.org/logviewer.html#?job_id=196530582&repo=mozilla-
> central&lineNumber=1719

Correct, as you can see above the test got skipped.

Lets try to unskip once Mn jobs run on the faster Android 7.0 x86 platform.

Depends on: 1500509

Interestingly this failed for deskop and not mobile where we usually have the 32768px working. Lets see how this goes over the next days.

This is still present with bug 1500509 fixed now.

No longer depends on: 1500509
Summary: Permafailing [tier2] testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_vertical_bounds | UnknownException: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" → Perma [tier2] testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_vertical_bounds | UnknownException: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)"
Summary: Perma [tier2] testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_vertical_bounds | UnknownException: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" → Permafailing Android testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py TestScreenCaptureContent.test_capture_vertical_bounds | UnknownException: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)"

The failure here actually happened in ctx.drawWindow. The call to this API will go away with my work on bug 1559592. We should try to re-enable the test once this bug is fixed.

Depends on: 1559592

As discovered by tnikkel over on bug 1574935 this could also be very likely a OOM situation, and it fails way earlier because it's even less memory available as on a desktop 32-bit system.

Now with bug 1559592 the situation will become even worse given that two copies of this large screen capture have to be kept in memory. We will use bug 1574935 to discuss how to improve the situation.

Depends on: 1574935
Blocks: 1578783

This failure will most likely also affect GeckoView but we are not going to add support for that to marionette harness. As such this test won't run under this job anymore.

Status: REOPENED → RESOLVED
Closed: 6 years ago5 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: