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.

NS_ERROR_FAILURE in Firefox 105.0.1

See original GitHub issue

Expected behavior

I am using react-chartjs-2 and graphs were rendering fine until last Firefox update to version 105.0.1. Using mozregression I have managed to narrow the version when rendering breaks, it works in 104.0.3 but not in 105.0

INFO: Narrowed integration regression window to [5f7f879c, 118aa10a] (2 builds) (~1 steps left)

The graph also loads fine in other browsers: I have tested it in Chrome and Edge.

Current behavior

The page including the graph is not loading. It returns NS_ERROR_FAILURE.

In my actual website, it does not fail every time but most of them, I have not been able to identify the reason. In the reproducible sample, it is always failing for me when reloading.

Reproducible sample

https://codesandbox.io/s/including-changing-units-in-ticks-forked-rj98p

Optional extra steps/info to reproduce

Click on load button.

Possible solution

No response

Context

I am using react-chartjs-2 version 3.0.5.

I have found this Firefox bug but it is not related to the latest version and it mentions hidden and display attributes, which I am not using.

I have also found this issue #4775 but it is old and it is mentioned as solved.

chart.js version

v3.5.1

Browser name and version

Firefox 105.0.1

Link to your project

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19

github_iconTop GitHub Comments

1reaction
rozpuszczalnycommented, Sep 29, 2022

And here comes more:

Here’s the ion-content + raw canvas .fillText also fails with such error. So probably it’s an issue with the Firefox itself, or Ionic, or Stencil, or DOM Custom Elements, and chart.js is affected, because it uses canvas and fillText

https://stackblitz.com/edit/angular-ivy-pyvhyk?file=src/app/pages/index/index.page.ts

  ngAfterViewInit() {
    const ctx = this.canva.nativeElement.getContext('2d');

    ctx.fillText('Hello, world', 10, 10);
  }

obraz

1reaction
rozpuszczalnycommented, Sep 29, 2022

Alright, with the newest Ionic 6 it also happens:

https://stackblitz.com/edit/angular-ivy-hcqrgf?file=src/app/pages/index/index.page.html

obraz

But here is something I encounter in my project (but I use Ionic 5), so outside ion-content it works perfectly fine, but one I’m inside ion-content, the app crashes (in the stackblitz, the chart is being rendered, but the expection is thrown).

Read more comments on GitHub >

github_iconTop Results From Across the Web

941146 - NS_ERROR_FAILURE when other browsers work ...
I was able to avoid triggering the NS_ERROR_FAILURE error from Firefox by adding 'sandbox="allow-same-origin"' to the iframe attributes. js.
Read more >
Firefox 105.0.1, See All New Features, Updates and Fixes
Reverted focus behavior for new windows back to the content area instead of the address bar (bug 1784692). Reference link to 105.0 release ......
Read more >
NS_ERROR_FAILURE after updating to Firefox Developer ...
NS_ERROR_FAILURE indicates some error outside of SpiderMonkey, so back to "Untriaged" for now. Component: JavaScript Engine → Untriaged. Product: Core → ...
Read more >
Component returned failure code: 0x80004005 ...
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) ... Do a clean reinstall and delete the Firefox program folder before ...
Read more >
Exception NS_ERROR_FAILURE in ctx.scale() if width or ...
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180807170231 I manage to reproduce this issue on Windows ...
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