question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image Node not rendering on Firefox

See original GitHub issue

Hi,

Using the latest version of VideoContext and this snippet of code, it looks to me that image rendering is broken on VC.

        const canvas = document.getElementById("canvas");
        const button = document.getElementById("button");
        const vc = new VideoContext(canvas);
        const in1 = vc.image("image.png", 0);
        in1.start(0);
        in1.end(10);
        in1.connect(vc.destination);

This works on Chrome 72 on MacOS and other vendors. However this does fail on Firefox 65 and Firefox Nightly.

Reported warning in the console is

Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.

It can be traced back to this Bugzilla issue https://bugzilla.mozilla.org/show_bug.cgi?id=1400077

I will probably look into that in the next couple of days

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gsouquetcommented, Mar 8, 2019

I looked a bit more into this issue. It is definitely an issue around createImageBitmap. I suspect a regression on the Firefox JS VM.

I created an issue on Bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1533680

0reactions
yakcacommented, Mar 10, 2020

Still awaiting fix from Firefox upstream

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firefox not rendering or displaying graphics correctly, tried ...
Firefox not rendering or displaying graphics correctly... When a page first loads up, fine but if you hit some buttons, then the back...
Read more >
html d3.js, image renders in firefox but not in chrome
I have an html and json file running a D3 graphic that runs in firefox but does not run in chrome. The error...
Read more >
Web: Image not visible in Mozilla Firefox · Issue #63828 - GitHub
When inspecting the elements in Firefox, you can find the image by searching for svg. If you set the height of the found...
Read more >
html-to-image - npm
Generates an image from a DOM node using HTML5 canvas and SVG. ... All the top level functions accept DOM node and rendering...
Read more >
Sorting out Problems with Transparency - Mozilla Hubs
Color images (on a computer–not print, that's a different topic, ... I'm going to use Blender to render out an image of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found