Error implicitly call google.visualization.DataTable without "new" - Safari only

51 views
Skip to first unread message

sylviat84

unread,
Oct 16, 2015, 5:20:51 PM10/16/15
to Google Visualization API
This error is happening in 
format_en,default_en,ui_en,table_en,controls+en,corechart_en.1.js

I never call google.visualization.DataTable (explicitly).  Rather, I always get my DataTable like this -
var google_data = google.visualization.arrayToDataTable(formatted_data);

Safari:
The error only happens on Safari 9.0, running on OS X Yosemite 10.10.5.   If I empty the browser cache, close safari, and rerun my program, it does NOT happen.   But if I empty the cache & just reload the page, it does happen.

Firefox:
It never happens on Firefox 41.0.2.  But (in case this is useful info), firefox does give a few warnings from this same module, i.e., 'Use of getAttributeNode() deprecated', and 'Empty string passed to getElementId()'

In case this info is relevant...
My application dynamically generates google.visualization graphs.  Most recently I added support for google.visualization.dashboard, and today I put in a feature which supports the 'select' event among dashboard components.  Both components are ChartWrappers - as they must be, for the DashBoard.  So to connect  2 components I connect the underlying graphs objects something like this:
listener_graphobj.getChart.setSelection(  sender_graphobj.getChart().getSelection()[0]  )  (It works)
I suspect that this causing the problem.  But because it happens only under very particular circumstances  I'm not sure how to think about it.

thank you.  Sorry for the long post.  Any insights/suggestions are greatly appreciated.

sylviat84

unread,
Oct 16, 2015, 5:58:56 PM10/16/15
to Google Visualization API
This is me again... posting this problem gave me new insight and I investigated.

The Safari bug  is coming from here:

var google_data = google.visualization.arrayToDataTable(formatted_data);

My 'formatted data' is large - 4133 rows.  I tested on an input dataset of 10 rows and it always works... no error!
On the 4133 rows it works perfectly the first time.  But on Safari, even after doing 'empty cache', is gives the error.

Any advice?  I really need to process datasets this size.

thank you.

Daniel LaLiberte

unread,
Oct 16, 2015, 9:47:07 PM10/16/15
to Google Visualization API
Can you point us to a page that shows the error (in Safari)?  It is hard for us to guess what might be happening otherwise.  Maybe you could narrow down the problem by cutting your data in half a few times until it stops failing.

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/bf956a5f-4f41-4919-bb21-55facd7a0873%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Sylvia Trembowelski

unread,
Oct 16, 2015, 11:05:53 PM10/16/15
to google-visua...@googlegroups.com
The page with the error is dynamically generated - and requires a login to access.

I will create a standalone program and to replicate the problem.  I’ll get back to you with the URL when I’m done.

thanks a lot.

You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/KvXAvsVedcM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.

Sylvia Trembowelski

unread,
Oct 19, 2015, 10:18:41 AM10/19/15
to google-visua...@googlegroups.com
I created a small test program to reproduce the error and found something new and unexpected.  

The error - “google visualization.DataTable without “new” - is thown only occurs when the Safari error console is open.(!) When the error console is closed the page reloads to completion with no errors.

I had planned to post the URL with the test pgm here, but out of concern for security I decided not to - you’ll have to take my word.  In any case, I’m okay now - I don’t think users will have the error console open.

As I recall, Firebug (which I haven’t used for years) would occasionally _cause_ bugs.

thanks for your help. 
Reply all
Reply to author
Forward
0 new messages