Re: [visualization-api] Google charts just often started breaking with cannot read property __closure_events_fn_XXXXX of null

20 views
Skip to first unread message

Daniel LaLiberte

unread,
Jun 11, 2017, 7:49:02 PM6/11/17
to Google Visualization API
The only thing that has changed recently is the loader, so if there is a problem related to the loader, it would seem to be timing related.  It is plausible that, for example, we are not properly detecting the window has finished loading, in which case, elements might not u ready.

But from what I can see in the error you reported (in a version of your page that uses 45.2?) you are doing a draw in response to a resize event, so either the page has finished loading and the charts have been drawn previously, or perhaps there is a resize event occurring before the page has finished loading.  You'll have to isolate this problem in a simpler case so we will have a chance of finding a resolution.

On Thu, Jun 8, 2017 at 11:39 AM, Siddharth Dalal <si...@chartiq.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/f1a73505-59c1-4c52-bfb6-650a3a57baa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Siddharth Dalal

unread,
Jun 12, 2017, 8:33:35 AM6/12/17
to Google Visualization API
It was with 45.1. I'll see if I can make a simpler example. The chart is initially drawn and does get redrawn on window resize. In some charts, I maintain aspect ratio so the div height gets resized as the width gets resized but this is not what causes the error because it happens in charts where the only thing I do on window resize is chartwrapper.draw. I use an array of chartWrappers, sometimes multiple arrays of chartwrappers to manage multiple charts on the screen. 


On Sunday, June 11, 2017 at 7:49:02 PM UTC-4, Daniel LaLiberte wrote:
The only thing that has changed recently is the loader, so if there is a problem related to the loader, it would seem to be timing related.  It is plausible that, for example, we are not properly detecting the window has finished loading, in which case, elements might not u ready.

But from what I can see in the error you reported (in a version of your page that uses 45.2?) you are doing a draw in response to a resize event, so either the page has finished loading and the charts have been drawn previously, or perhaps there is a resize event occurring before the page has finished loading.  You'll have to isolate this problem in a simpler case so we will have a chance of finding a resolution.
On Thu, Jun 8, 2017 at 11:39 AM, Siddharth Dalal <si...@chartiq.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages