Posts that nka is monitoring
|
Feb 23, 2008
|
Topic: Need help with Gmail Addons script error I'm just a lowly user ;) but I did find something. However, I could not find anything that said the word "poll" as nothing came up under messages at all. Something did pop up, though, in the "Errors" tab. Here's what it said: [Exception..."'Component does not have requested interface' when calling method: [niIInterfaceRequestor::getInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "<unknown>" data:no] It's all Greek to me, but I hope this sheds some light on the situation. And again - thanks so much for this amazing script!</unknown> |
|
Feb 23, 2008
|
Topic: Need help with Gmail Addons script error Hi.Some people who have installed the Gmail Addons script have reported an unresponsive script error. Unfortunately, i havent been able to replicate this error on my computer. ---- For everyone ---- Please could you help by trying out the following steps. 1. install the script http://userscripts.org/scripts/show/19956 2. go to gmail 3. before you sign in open error console (Tools > Error Console) 4. click on messages in the error console 5. log in to gmail 6. check for the number of times the word 'Poll' is printed on the error console window Please report this number. Also could you please tell me if the script causes gmail to become unresponsive/slow or if you get any other error messages/dialogs. ---- For script developers and other people who can read and understand scripts ---- If you could figure out exactly whats going wrong and perhaps suggest a fix id be really happy :) Background info The basic idea is to only try to do anything when gmail is fully loaded. Previously, i used a polling mechanism to check whether gmail had fully loaded by checking for the presence of two elements on the page and the presence of a fully loaded GmailAPI object. This worked. But as the GmailAddons object was on many windows, and only one of them got the GmailAPI object, one of the GmailAddons object ran through the rest of the script and the others continued polling and checking for the presence of the GmailAPI object. This caused gmail to become slow and unresponsive when left open for long periods of time and/or when refreshed. To counter this, in the current version of the script, ive tried to start the polling mechanism only when the GmailAPI object has been fully loaded by running the script under the callback function. This means that ideally, polling wouldnt occour at all since the interface would probably be loaded by the time the GmailAPI object loads. Even if polling did occour, it would occour only on the GmailAddons object which is accessible by the GmailAPI object's callback function i.e. only on that window. So now there isnt any chance of polling occouring *once* the script has finished running on one window. Unfortunately, a few people still report an unresponsive script error and i really cant figure out whats going wrong. A few questions Under which window does the callback function of the GmailAPI object execute? I think its under top.js but i dont know how to check for that. I cant think of a better implementation than the current one for checking if gmail has fully loaded. (Though i admit the previous one was sloppy). Is this the best implementation possible or can anyone think of another better implementation? |
