Skip to content
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

InvalidStateError, automatch.js line 381 and 394 #183

Open
metamorphy opened this issue Mar 28, 2014 · 8 comments
Open

InvalidStateError, automatch.js line 381 and 394 #183

metamorphy opened this issue Mar 28, 2014 · 8 comments

Comments

@metamorphy
Copy link

Seeing these errors in Making Fun logs, for example:

Line 381:

Sat Mar 22 04:01:18 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":381,"logCount":2,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"en-US","playerId":"5327cfa5e4b00562c8faf3d9","sessionId":"532c667ae4b0733798c157f5"}
Wed Mar 26 20:13:44 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":381,"logCount":1,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0","navigator.platform":"Win32","navigator.language":"en-US","playerId":"50d3ca0be4b00e9b124220a1","sessionId":"533334c2e4b0c487107d759b"}
Mon Mar 24 11:05:14 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":381,"logCount":5,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.0; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"sv-SE","playerId":"505f7340fca2893af1cba6fa","sessionId":"532f4f8be4b0733798c1ab90"}

and line 394:

Sat Mar 22 21:23:09 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":1,"navigator.userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0","navigator.platform":"Linux x86_64","navigator.language":"fr","playerId":"516d321ae4b082c74d7b345d","sessionId":"532c87a4e4b0733798c15d8d"}
Mon Mar 24 13:23:45 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":4,"navigator.userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"MacIntel","navigator.language":"en-US","playerId":"516cd2c1e4b082c74d7a166a","sessionId":"532e3e18e4b0f9f5e0d6eeb4"}
Tue Mar 25 00:48:12 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":4,"navigator.userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"MacIntel","navigator.language":"en-US","playerId":"505f216aa2e6714a97eee440","sessionId":"5330860de4b0733798c1c90a"}
Tue Mar 25 02:45:11 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":2,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"en-US","playerId":"50635cc651c3843e7939ece8","sessionId":"532d1381e4b0f9f5e0d6d0b2"}
Tue Mar 25 03:06:35 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":3,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"en-US","playerId":"5327cfa5e4b00562c8faf3d9","sessionId":"532f69e0e4b0733798c1af7e"}
Tue Mar 25 14:03:19 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":1,"navigator.userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0","navigator.platform":"Linux x86_64","navigator.language":"de","playerId":"505f03ecfca2893af1cba622","sessionId":"532f1709e4b0733798c1a380"}
Tue Mar 25 19:20:07 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":4,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"pl","playerId":"50893139a2e67cff211cd7e5","sessionId":"532caf97e4b0f9f5e0d6c235"}
Tue Mar 25 22:51:52 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":2,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.0; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"de-DE","playerId":"50ec989ce4b0433d9e57d38e","sessionId":"532ccbb7e4b0f9f5e0d6c6eb"}
Wed Mar 26 10:11:15 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":2,"navigator.userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"MacIntel","navigator.language":"en-US","playerId":"516cd2c1e4b082c74d7a166a","sessionId":"53329a81e4b0c487107d5e6a"}
Wed Mar 26 16:32:11 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":3,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"fr","playerId":"507c07d751c30da02a09cd1f","sessionId":"5332db02e4b0c487107d6693"}
Wed Mar 26 20:43:12 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":3,"navigator.userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"MacIntel","navigator.language":"en-US","playerId":"516cd2c1e4b082c74d7a166a","sessionId":"53329a81e4b0c487107d5e6a"}
Wed Mar 26 21:02:15 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":5,"navigator.userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"MacIntel","navigator.language":"en-US","playerId":"516cd2c1e4b082c74d7a166a","sessionId":"53329a81e4b0c487107d5e6a"}
Wed Mar 26 22:56:16 UTC 2014: {"message":"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable","url":"chrome://gokosalvager/content/automatch.js","lineNumber":394,"logCount":2,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.0; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"de-DE","playerId":"50ec989ce4b0433d9e57d38e","sessionId":"53335396e4b06d1e374638e7"}
Tue Mar 25 19:36:35 UTC 2014: {"message":"TypeError: GS.getGameClient(...) is undefined","url":"chrome://gokosalvager/content/vptoggle.js","lineNumber":433,"logCount":4,"navigator.userAgent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0","navigator.platform":"Win32","navigator.language":"de-DE","playerId":"515d928fe4b03c71b674d538","sessionId":"53309472e4b0f9f5e0d72a0a"}

@aiannacc
Copy link
Owner

What Salvager version is this? There's no code on line 381 of automatch.js at the moment, though there was something there a couple versions ago.

@metamorphy
Copy link
Author

The logged information (which is from the last few days) is all the information I have. From the browser info above it is from a number of different browsers run by users in English, French, Swedish... I'm provided this info in case it is useful -- if it refers to a line in an old version that has since been fixed, please close this bug.

P.S. I didn't mean to paste the last log line here... it's a different error (TypeError from a different place is GS)

@aiannacc aiannacc reopened this Mar 28, 2014
@aiannacc
Copy link
Owner

I reopened and deleted my previous comment here after reading your comment in the other issue.

Okay, so if these are server logs then that explains why they look so foreign to me. Are these errors causing issues on your end?

@metamorphy
Copy link
Author

No, the only issue it's causing is that in this particular type of logging, the GS errors outnumber all other errors, so it's obscuring info we'd like to see. No biggie. There are a few other types of GS errors in the logs, but they are very infrequent. Let me know if you want them. I could email you entire logs if you want.

@aiannacc
Copy link
Owner

It looks like these are attempts to use an invalid websocket connection to my own server. I'm guessing that these logs are generated on the client side and then sent to you? I can't imagine that that section of code is somehow communicating with MakingFun.

I plan to refactor that class pretty soon. It was from my early experiments with websockets and it does a lot of things terribly badly. I'm betting that the errors will go away when I do, at least for people who are getting Salvager updates. I'll let you know when I do.

@metamorphy
Copy link
Author

It looks like these are attempts to use an invalid websocket connection to my own server. I'm guessing that these logs are generated on the client side and then sent to you?

I haven't actually looked into the exact mechanism myself, but I'm sure that's it. (an error handler that sends these automatically and the server logs what it receives)

@aiannacc
Copy link
Owner

Jeff, could you tell me what TrueSkill parameters are used for the Pro
rating system? I realize this is a weird forum to ask in, but I can't find
your contact info on github or MF.

On Fri, Mar 28, 2014 at 1:26 PM, Jeff Mallett notifications@github.comwrote:

It looks like these are attempts to use an invalid websocket connection to
my own server. I'm guessing that these logs are generated on the client
side and then sent to you?

I haven't actually looked into the exact mechanism myself, but I'm sure
that's it. (an error handler that sends these automatically and the server
logs what it receives)

Reply to this email directly or view it on GitHubhttps://github.com//issues/183#issuecomment-38964261
.

@aiannacc
Copy link
Owner

aiannacc commented Apr 1, 2014

Nevermind. Scratch that request.

On Sat, Mar 29, 2014 at 5:07 PM, Andrew I andrewiemail@gmail.com wrote:

Jeff, could you tell me what TrueSkill parameters are used for the Pro
rating system? I realize this is a weird forum to ask in, but I can't find
your contact info on github or MF.

On Fri, Mar 28, 2014 at 1:26 PM, Jeff Mallett notifications@github.comwrote:

It looks like these are attempts to use an invalid websocket connection
to my own server. I'm guessing that these logs are generated on the client
side and then sent to you?

I haven't actually looked into the exact mechanism myself, but I'm sure
that's it. (an error handler that sends these automatically and the server
logs what it receives)

Reply to this email directly or view it on GitHubhttps://github.com//issues/183#issuecomment-38964261
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants