Closed Bug 1157112 Opened 9 years ago Closed 2 years ago

Canvas path rendering bug

Categories

(Core :: Graphics: Canvas2D, defect, P3)

2.0 Branch
Unspecified
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: unibasil, Unassigned)

References

Details

(Keywords: regression, reproducible, Whiteboard: [gfx-noted])

Attachments

(2 files)

Attached image canvas-firefox.png
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150403141925

Steps to reproduce:

Ubuntu: 14.04.2 LTS (32bit and 64bit versions)
Firefox: Mozilla Firefox  for Ubuntu canonical - 1.0
Installed: 36.0.1+build2-0ubuntu0.14.04.1

Run this HTML in Firefox:
----------------------------
<!DOCTYPE html>
  <html>
  <head>
    <title>Ray Circle</title>
  </head>
  <body>
  <canvas height='640' width='640' id='example'>You should update your browser.</canvas>
  <script>
      var example = document.getElementById("example"),
          ctx     = example.getContext('2d'),
  	PIdiv180 = Math.PI / 180,
  	size = 480;

      ctx.beginPath();
      for (var i = 0; i < 360; i++) {
          ctx.moveTo(320, 320);
          ctx.lineTo(320 + Math.sin(i * PIdiv180) * 320, 320 + Math.cos(i * PIdiv180) * 320);
      }
      ctx.stroke();
  </script>
  </body>
  </html>
----------------------------


Actual results:

See attached file canvas-firefox.png


Expected results:

The same figure without artefacts.
Attached file reporter's testcase
Reproduced on ubuntu since Firefox4.0
Status: UNCONFIRMED → NEW
Component: Untriaged → Canvas: 2D
Ever confirmed: true
Keywords: regression
OS: Unspecified → Linux
Product: Firefox → Core
Version: 37 Branch → 2.0 Branch
Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=2968d19b0165&tochange=29a6a85fab8e

Suspect: f236632a9747	Jeff Muizelaar — Bug 542605. Update cairo to 12d521df8acc483b2daa844d4f05dc2fe2765ba6. r=vlad,jwatt,bas
Blocks: 542605
This is a very old regression, I don't think this is a high priority sadly.
Whiteboard: [gfx-noted]
Keywords: reproducible
Seems now it draws well in Firefox Quantum 57.0.4 (64-bit), Ubuntu 16.04
Severity: normal → S3

Fixed by something in this range.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: