-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.7.5+] NS_ERROR_FAILURE on Firefox 47 #2692
Comments
Looks more like something specific to Firefox which raises an Which is a shame because it was introduced because sigh |
@boris-petrov Do you have a conf of a graph that triggers the issue ? I'd like to be sure to have a test case that fails. Can't seems to reproduce the issue on newer version of Firefox and not sure how I can downgrade to such an old FF version. |
@boris-petrov Not quite sure how to reproduce your issue. I'm clicking on various samples using firefox 47 and they all seems to show fine. Can't seems to be able to inspect anything to see if some kind of error shows in a console though...
I'd like to check something that I know for sure trigger the issue. In case this is related to some kind of combinaisons of configurations (ex: legend hidden, missing data point, whatever..). edit Found the console, there is a bunch of errors in there that has nothing to do with c3js and I can't seems to find the error you are talking about. But all charts are displaying fine in sample. Is that really a 'blocking' error or just some error in logs without consequence ? Firefox 47 starts to be rather old. |
The charts don't appear in our case at all due to that error - our integration tests caught that. So it is "blocking", yes. This FF is very old indeed, we use it to test our ES5 build (and, as you can see, it actually does catch some errors that don't appear in the latest Chrome/Firefox builds). There is pretty much no other browser that you can use to test ES5 on Linux. I'll try to create some reproduction now or at least give you some pointers. |
@panthony - I can see that in my case it breaks when I just call: const options = {
bindto: '#someId',
data: {
type: 'pie',
columns: []
}
};
c3.generate(options); This doesn't happen on your side using FF 47? If not, could you point me to some standalone example project using c3 which I can just modify to break? |
@boris-petrov Unfortunately no... If there is a different behavior between FF on MacOSX & Linux ... |
I'd say you can test the config I used here: But FF47 is able to render jsfiddle apparently. |
@panthony - using almost the same code as you, I managed to break it. As you mentioned in your first comment, the div must not be visible: <h1>chart 1</h1>
<div id="chart1" style="display: none;"></div>
<script src="https://d3js.org/d3.v5.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.6/c3.min.js"></script>
<script>
c3.generate({
bindto: '#chart1',
data: {
type: 'pie',
columns: []
}
});
</script> Note the |
@boris-petrov Ok, then I believe a quick workaround for you would be to either use, in the mean time, something like |
@panthony - yes, thanks. Will you consider fixing this? It's obviously a horrible Firefox bug but I guess it could be a common use case... |
@boris-petrov Ideally yes although I'm not quite sure what could be done instead of try/catch and returning a size of 0. Before it was using |
You could try-catch, yes, and then fall-back to the old code which used |
To be noted that:
A fix could be to wrap |
@boris-petrov Out of curiosity, what do you do once you rendered the chart within a Since, as far as I know, the chart can't be rendered properly. Do you re-call manually |
@panthony - well, the chart is rendered in a hidden panel, which, when expanded, would make a request and populate the chart with data by calling Thanks for fixing it so quickly! |
Updating from 0.7.4 to any of the two new versions causes
NS_ERROR_FAILURE
Exception,result: 2147500037
. Not sure what that means. This is the stacktrace:Using the latest Chrome this doesn't happen so the issue is somewhere with older browsers.
The text was updated successfully, but these errors were encountered: