Ticket #87 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

IE exception when closing

Reported by: paul Owned by: paul
Priority: blocker Milestone: OVA for Flowplayer (0.5.2)
Component: OVA for Flowplayer Version: OVA for Flowplayer (v0.5.1)
Keywords: Cc:
Forum thread:

Description

There is an urgent bug that we will like your help in solving it.
The bug occur only at Internet Explorer, and you need to make sure that the check box “Disable script debugging” isn’t check.

Example provided in email from Shirly: Instream/example22/player.html

The player will start the scheduled ads and movie.

When we press to close the page, we get a dialog box that notify that there is an error.
If we select the option of debugging the error we get the attached print screen.
Can you help us figure out the source of this error?

Change History

comment:1 Changed 3 years ago by paul

  • Cc Shirly.Mintz@… added

comment:2 Changed 3 years ago by paul

Ok, so good news on this.

I've managed to replicate this IE8 error when closing the page.

I don't know the source of the error yet, but I did notice that the following Javascript errors exist on that page when the page is loaded - the error you get when you close the browser is simply one of these errors (Object required, line 53)... so I think the real question is - what are these Javascript errors you get when the page is loaded. I'm looking into that now.

Paul


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Mon, 9 Aug 2010 08:45:26 UTC

Message: Object required
Line: 53
Char: 3
Code: 0
URI:  http://ds.serving-sys-dev4.com/instream/example30/player.html

(occurs about 10 times on page load)

comment:3 Changed 3 years ago by paul

Looking at different examples:

Instream/example24/player.html
Instream/example30/player.html

It seems that the error doesn't always happen on page load, but it does happen consistently when the browser is closed.

comment:4 Changed 3 years ago by paul

Looks to be a well known problem.

Looking at the IE debugger, the exception is thrown here:

function flashremoveCallback(instance, name) {

instance[name] = null;

}

See these threads for descriptions and possible fixes:

 http://bugs.adobe.com/jira/browse/FP-529
 http://www.longtailvideo.com/support/forums/jw-player/bug-reports/10374/javascript-error-with-embed
 http://flowplayer.org/forum/users/7494

Seems it's caused by the ExternalInterface calls from Flowplayer and the OVA swfs.

Two possible fixes look to be:

1) Ensuring I was using the 'type' attribute when embedding flash:

<object width="572" height="185" id="myId" type="application/x-shockwave-flash" >

2) Recommended by Dave Smith on the Longtail Video forum:

<script type="text/javascript">(function(){var s=function(){flashremoveCallback=function(i,n){if(i)i[n]=null;};window.setTimeout(s,10);};s();})();
</script>

comment:5 Changed 3 years ago by paul

A more specific thread on the Flowplayer forum about this issue:

 http://static.flowplayer.org/forum/8/19192

comment:6 Changed 3 years ago by paul

Update from Shirly..

We looked at the error more carefully and found out that it only occur when there is a SWF companion.
We saw that you are using the following structure:
<div id=”companion1”>
<embed width="300" height="100" src=" http://ds.preview.serving-sys-dev4.com/BurstingScript/ebAdLoader.swf?adData=http://ds.preview.serving-sys-dev4.com/BurstingRes/Site-23264/Type-24/874452_889ed572-f586-4c79-b8bf-7376f240af2d_AdData_pr.xml&ResourceID=1602260&isPreview=true&adPart=3" type="application/x-shockwave-flash" AllowScriptAccess="always"/>
</embed>
</div>

We usually inject flash to html by <object> tags that inside them the embed code can appear.
This way we prevent problems with cross browsers.

Can you inject the SWF companions using <object> tag?
We believe it will solve our error.

comment:7 Changed 3 years ago by paul

  • Cc Shirly.Mintz@… removed
  • Status changed from new to assigned

Very confused - Looking at my code, I'm actually putting the object tags around the embed code already... so this can't be the problem - can it?

comment:8 Changed 3 years ago by paul

The ID is missing in the object tag - adding this into the code to produce the ID to see if that resolves the issue

comment:9 Changed 3 years ago by paul

  • Status changed from assigned to closed
  • Resolution set to fixed

Done.

newHtml = '<object codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"' + dimensionAttributes + ' id="companion-' + this.index + '">';

comment:10 Changed 3 years ago by paul

  • Status changed from closed to reopened
  • Resolution fixed deleted

Re-opening - the added ID didn't resolve the issue...

comment:11 Changed 3 years ago by paul

After a lot of testing, it seems that the IE exception only occurs with the eb ad loader swf:

 http://ds.serving-sys-dev4.com/Instream/example24/ebAdLoader.swf?adData=http://ds.serving-sys-dev4.com/Instream/example24/872531_019cd9f8-75b7-45dd-bc2e-86ebd32ca163_AdData_pr.xml&ResourceID=1602260&isPreview=true&adPart=3

If I use  http://static.openvideoads.org/ads/companions/Schwab_300x250.swf - no IE exception.

So I've come the conclusion that it's something related to the way your "ebAdLoader.swf" works... I wonder if that "object" exception is being thrown as a result of something happening in that ad swf?

Not sure what to do - I don't know enough about "ebAdLoader.swf" to really track it down... thinking...

comment:12 Changed 3 years ago by paul

  • Status changed from reopened to closed
  • Resolution set to fixed

Was an issue in the ebAdLoader swf. Closing.

Note: See TracTickets for help on using tickets.