The Tournament Director Forums

Main => Help Me => Topic started by: destadula on February 07, 2010, 01:19:46 PM

Title: Script Debugging Error
Post by: destadula on February 07, 2010, 01:19:46 PM
Not sure if this has been posted before or not but I will explain what is happening. First off my equipment

Windows 7 Professional
TD Version: 2.5.10
IE 8.0.760.16385
Screen Saver Off
Sleep Off
Monitor turn off - off
tasks running - everything shut off including virus protection & windows defender

Ok here's the problem I have been experiencing:

We play a monthly tournament that (yesterday) had

48 players
15 rounds it lasted
5:18 minutes to complete

The last couple of tournament just after around the 10th rounds when the program is running for no reason or players go to hit the X to bust out I am seeing script debugging errors on a popup asking if I want to debug it Yes or No.

I hit yes and then nothing works including hitting escape, taking the mouse and trying to use any controls on the bottom of the screen, the clock runs but shows it as being locked up, and so on. I usually have to close the software out and then restart the program and it will work until the next event such as bust out and then it starts with the debugging error.

As soon as it clears to the next round or gets down to say 5 players it (TD) will work fine.

Sorry about not looking at the details of the debugging error, but in the next day or two I will try to duplicate it for you and post in here.

Any ideas based on what I posted here?

Desta Dula
Title: Re: Script Debugging Error
Post by: Stuart Murray on February 07, 2010, 02:35:41 PM
Yeh get a debugging error practically every game I run, which freezes the tournament until i select yes or no, i usually hit no but do get it popping up even two or three times in a tourney.  says something along the lines of "do you wish to continue running scripts on this page?"

Would be interesting to find out what it is and if it can be sorted out.

I'm running vista.

Regards
Stuart
Title: Re: Script Debugging Error
Post by: destadula on February 07, 2010, 03:30:55 PM
Good (well not good per say) I am glad it wasn't just me.

I should also add that I can't remember this happening until I upgraded to 2.5.10 and it seemed this upgrade was very simple in content and additions.

Desta Dula
(knuckle head in italian)
Man Poker Club
http://www.manpokerclub.com (http://www.manpokerclub.com)
Title: Re: Script Debugging Error
Post by: Corey Cooper on February 08, 2010, 09:58:06 AM
You shouldn't get a script error at all.  It would be helpful to see the text of the error.

Unless you want Windows to open a debugger and try to step through the code line-by-line (which it likely won't be able to do anyway), don't press "Yes" to debug the script.  Press "No".

You actually shouldn't be seeing errors like this, but you're probably seeing them because you have script debugging turned on in Internet Explorer.  There are a couple of settings you can change to (hopefully) modify this behavior.

On the Internet Explorer "Tools" menu, select "Internet Options".  Then select the "Advanced" tab.  Check these boxes:

- Disable script debugging (Internet Explorer)
- Disable script debugging (Other)

(You might not see the second one.)  UNcheck this one:

- Display a notification about every script error

These settings really aren't useful unless you're actually debugging scripting on web pages.
Title: Re: Script Debugging Error
Post by: destadula on February 08, 2010, 10:38:16 AM
Corey

Thank you for your response. The suggestions you have made here I have done and what I will do is start a mock tournament in about 10 minutes and document everything in the event something should happen.

If it runs without any errors, I will also post here to allow others users to see what was done and the results for future reference.


Desta Dula
(knuckle head in italian)
Man Poker Club
http://www.manpokerclub.com
 
Title: Re: Script Debugging Error
Post by: destadula on February 08, 2010, 12:51:40 PM
Ok as promised I ran the mock tournament and here are the results:

I ran the tournament all was fine until round 4 with 1:15 remaining in the round and I got this error:


An error has occurred in the script on this page

Line: 1
Char: 1
Error: Call was rejected by callee
Code: 0
URL: ms-its:C:\Program Files\The Tournament Director 2\TD.lib::clockThread.html

Do you want to debug this error Yes or No

When this happens everything becomes unusable untiol you exit the program and then restart it.

Desta Dula
(knuckle head in italian)
Man Poker Club
http://www.manpokerclub.com
 

Title: Re: Script Debugging Error
Post by: Corey Cooper on February 09, 2010, 11:34:23 AM
That's a new one, I'll have to do some research on this.

So, you're saying you checked the options to "Disable script debugging", and yet Internet Explorer still asked you if you wanted to debug the script when the error occurred?

Edit: Also, do you have Auto-save enabled?  Could this error be occurring when the auto-save is kicking in to save the tournament?  (Probably not for a mock tournament, but just want to cover my bases.)
Title: Re: Script Debugging Error
Post by: Stuart Murray on February 09, 2010, 12:13:29 PM
Corey,

Thats the same message i get when runnign tourneys also.  I just disabled script debugging IE was unchecked other was checked already so will see what happens over next wee while.

Regards
Stuart
Title: Re: Script Debugging Error
Post by: destadula on February 09, 2010, 04:58:59 PM
I followed all the previous instructions as far as what to check and uncheck.

During tournaments I have the auto save enabled and that is the error. During the test for this post I did not have auto save enabled and it did the same thing and then I started all over with auto save enabled and the exact same error message both times.

Could this be a windows 7, in conjunction with ie 8 problem with the upgrade to 2.5.10? The reason I ask I never seen this or for that matter any error before I upgraded to .10.

Hope this helps you track it down. Also I am volunteering myself to you to try any suggestions you may have to try and help with the correction.
Title: Re: Script Debugging Error
Post by: Corey Cooper on February 10, 2010, 09:47:36 AM
Unsure what is going on at this point.  Try this, if you don't mind:

On the Internet Explorer "Tools" menu, select "Internet Options".  Then select the "Advanced" tab. UNcheck this box: "Enable third-party browser extensions".

Make sure you close all open Internet Explorer windows, and the Tournament Director.  Then try the TD again and see if you get the same error.  I'm curious if this might be due to some extension/plug-in to IE.
Title: Re: Script Debugging Error
Post by: destadula on February 10, 2010, 10:48:08 AM
I am setting it up now and will run it and report back to you with the results. Give me an hour or two to get to say round 4+


Desta Dula
Man Poker Club
http://www.manpokerclub.com
 
Title: Re: Script Debugging Error
Post by: destadula on February 10, 2010, 01:30:46 PM
Ok so I just got done running the mock tournament with all the suggestions you had requested and round 6 got the exact same error.

There is no common event that I can see that triggers this script error.

Its not a certain time, bust outs, table movement, events, nothing.

Is there a possibility of getting a copy of the previous version before the TD 2.5.10 to load that and see if the problem continues with that version or if this is strictly a 2.5.10 issue.

I will await your next suggestion.
Title: Re: Script Debugging Error
Post by: Stuart Murray on February 10, 2010, 04:49:36 PM
Have run several tourneys since I changed the script options in IE and so far so good no more errors.

Hope you get your problem sorted destadula

Regards
Title: Re: Script Debugging Error
Post by: Corey Cooper on February 11, 2010, 09:59:39 AM
Well, as is typical, the "fix" works for one person, not for another.   ???

destadula, if you want to try 2.5.9, email me and I'll send it to you, but I would be very surprised if it made a difference.

The nature of the error leads me to believe it should only happen when the TD is calling into either the Common Dialog control or into Windows Scripting functions, such as when you save a file, or open the file selection dialog, or the font dialog.  And nothing like that happens in the background thread that updates the clock - except for the auto-save code, which is why I asked about that.

So to me it gets lumped into the strange Internet Explorer quirks bucket.  I hope we can figure it out, but I'm not holding my breath.
Title: Re: Script Debugging Error
Post by: destadula on February 20, 2010, 08:55:23 PM
OK Corey as  stated in my email I was going to pound on the software with your suggestions and used 2.5.9 & 2.5.10 in my tests.

I am using Windows 7 64 bit Professional with 8 gigs of memory.

Here is what I found after checking and unchecked the advanced options in IE 8 that you suggested.

In every instance of the error popping up for the script debugging error it happened in combination of three things happening at the same time and they are

1. Auto save enabled
2. Hitting the "X" to bust out players and
3. Player movement (balancing tables) suggested when the player busts out.

Now with the suggestions of checking the options in advanced in IE8 it seems to have corrected the problems, but if I unchecked any one of them the error will pop up once again.

It took almost a week, but I knew I would find the common thread to the error.


I hope this helps you out with this.

Destadula
Title: Re: Script Debugging Error
Post by: Stuart Murray on May 14, 2010, 03:44:08 PM
Corey,

I thought I was okay, but several recent tournaments I have run have been a nightmare for script errors, almost constantly when busting players out or other events fire the previously stated runtime error pops up and freezes the tournament, which when running multiple tasks or going onto do something else on screen with TD can go missed until I notice it on the clock display(s)

I have the Script Debugging options checked (both) on IE and also the enable third party browser extensions unchecked.

I would say it is definitely occurring due to events firing which include audio and visual information - bust out's / blind increases approaching

Any help you can give would be great.

stu
Title: Re: Script Debugging Error
Post by: destadula on May 15, 2010, 08:37:12 AM
Stu & Corey,

I thought it was just me and had not commented on this since my last post. So let me update Corey as to what has been happening.
Both 2.5.9 & 10 run great on the first run after an install and then script errors.

An error has occurred in the script on this page
Line: 1
Char: 1
Error: Call was rejected by calleeCode: 0
URL: ms-its:C:\Program Files\The Tournament Director 2\TD.lib::clockThread.html

Do you want to debug this error Yes or No



Now I always select "no", but then the program becomes very unstable and has to be shut down and restarted.
Here is some info that might help you out or to dial in the error:


TD Setup

1. Auto save after events
2. Make backups when saving
3. Program file location: C:\Program Files (x86)\The Tournament Director 2\lib
4. Tournament File Location: D:\TD Files Backups\2010 Season\Saves\2010_template.tdt
5. Data Stores: D:\TD Files Backups
6. Events -
   a) bustout sounds Yes
   b) 1 minute warning for round sound yes
   c) Balance tables sounds yes
   d) Other sounds level end warning, tournament start, tables unbalanced and break warning
7. Template I run the template I posted here on this forum (Mafia template)

My Computer

Windows 7 64 b - 8 Gigs memory
Internet Explorer 8.0.7600.16385

Add-ons Running
- Accelerators  - All are Bing Search related
- InPrivateBrowsing None
- Search Providers Bing
- ToolBars & Extensions Shockwave flash & Live Signin


Any other information or setup that you may need or what I will be more than happy to provide to you to see if in fact it is as simple as maybe a setting that Win7 and IE8 offer together.
Title: Re: Script Debugging Error
Post by: JackTheDog on May 16, 2010, 10:12:42 AM
Using TD 2.5.10 on a Win 7-32 Pro laptop with 4gb RAM and IE 8.0.7600.16385 here. I've been running TD weekly for 3 months for single table games and never saw the script message. We played our first multi-table game Friday and the script error popped up three or four times during the game. I replied no, the dialog closed, and I didn't have any instability issues. I checked my IE options this morning after reading this thread, and both Disable Script Checking boxes were checked, and the Display a Notification box was UNchecked. The error occurred when I was busting a player out, but not always, and I didn't notice if it had anything to do with a player move. I have auto save checked. I'll write down the message and circumstance if I see it again and pass it along. Hope this helps.
Title: Re: Script Debugging Error
Post by: Corey Cooper on May 17, 2010, 12:26:30 PM
If you don't mind sharing a little system information, could someone experiencing this issue do the following and send it to me:

- Type "msinfo32" into the search bar on the Windows Start menu (or for XP, select Run... and enter "msinfo32")
- The System Information tool should open
- On the File menu, select "Save..." and select a filename
- Attach the file to an email to support@thetournamentdirector.net

Not sure if it will help, but any type of information might be useful at this point.
Title: Re: Script Debugging Error
Post by: Corey Cooper on May 20, 2010, 09:55:11 PM
Thank you everyone for the detailed information you have provided - it is immensely helpful.  I have no idea what is happening at this point, but at least I have reproduced the problem.  That's a huge plus.  This is definitely occurring when the the tournament is auto-saved.  Note the save icon in the upper-right corner - and the line number in the error message actually confirms it.
Title: Re: Script Debugging Error
Post by: Corey Cooper on May 27, 2010, 11:17:02 PM
I have released version 2.5.11 to fix this issue specifically.

I can't say with 100% certainty what the issue was, but after testing on Win XP, Vista, and Windows 7, it appears the issue only happened on Windows 7.  It was not the auto-save technically that was causing the issue, but anything calling from the clock thread into the main program.  Turning on the auto-save just increased the frequency of the issue occurring.  In my long running tests, the error occurred about 20 times per 10,000 auto-saves, or about once out of every 7,000 possible times it could occur.  That's pretty infrequent, so I'm fairly surprised you guys saw it more than once or twice in any tournament.  I just put in some good error catching code (where none was ever needed before), and the error is just ignored and the tournament moves on.

I was able to reproduce this problem pretty easily on Windows 7, so I think I got it.  But I would certainly appreciate feedback from you who have also seen it.

Thanks again.
Title: Re: Script Debugging Error
Post by: Barry Chuckle on June 08, 2010, 09:21:10 AM
I have 2.5.11 and I don't have auto save on and I have the IE options set as suggested and I get the same error!

I have just noticed that it is a different line though!
Title: Re: Script Debugging Error
Post by: Corey Cooper on June 08, 2010, 11:18:56 AM
Awesome.  Line 1 is a comment.  Did this happen immediately or did it take a while?
Title: Re: Script Debugging Error
Post by: Stuart Murray on June 08, 2010, 11:57:57 AM
I have had my first 12 hour tournament run under 2.5.11.

I must say you have (almost) got rid of the problem, it appeared once during the tournament, but unfortunately I don't have the details to hand as I was too busy with the tourney to take details etc.

It is however, a fantastic improvement from what I had before, where it would appear frequently.  I will try and catch it ASAP and report back when/if it appears, but if i'm only getting it once in such a long tourney I am not really that concerned!

Stuart