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

Uncaught TypeError: Cannot read property 'onload' of undefined #5605

Closed
borisyankov opened this Issue Aug 20, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@borisyankov

borisyankov commented Aug 20, 2016

For reason unknown an error is thrown deep in Highcharts code.

The file where it is thrown is:
https://github.com/highcharts/highcharts/blob/90b2d6569709c7c27fab48cdb3944395bdef40aa/js/parts/SvgRenderer.js

The line is on:

if (!ren.imgCount && charts[ren.chartIndex].onload) {

ren.chartIndex is 0,

charts is equal to [undefined, {some object}]

So, trying to access onload on the first element is the cause.

It is hard to isolate the code to reproduce, but if you can lead me to what could be causing it, I can try to trace it.

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Aug 22, 2016

Collaborator

Thanks for reporting! Based on your information, I can see that this happens when the chart is destroyed before the image is loaded: http://jsfiddle.net/highcharts/95tcanbm/.

Collaborator

TorsteinHonsi commented Aug 22, 2016

Thanks for reporting! Based on your information, I can see that this happens when the chart is destroyed before the image is loaded: http://jsfiddle.net/highcharts/95tcanbm/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment