bugGnash - The GNU Flash player - Bugs: bug #25919, MovieClipLoader fails after...

 
 

bug #25919: MovieClipLoader fails after LoadVars.sendAndLoad when swf contains Component.

Submitted by:  None
Submitted on:  Wed 18 Mar 2009 08:22:56 PM UTC  
 
Category: ActionScriptSeverity: 3 - Normal
Release: otherStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 07 Apr 2009 06:05:11 PM UTC, comment #3:

The smaller the better. I should think the bug can be reproduced with just two MovieClips, for instance, and it reduces the number of factors.

Our MovieClipLoader implementation seems to block - or at least it doesn't do any polling as it ought to, so it's not surprising there are some problems.

Benjamin Wolsey <bwy>
Project Member
Wed 25 Mar 2009 10:03:58 PM UTC, comment #2:

Is there a specific way I should attempt to simplify the testcase to make it easier to debug/troubleshoot. This issue is preventing me from moving forward on my project with Gnash, so I'm eager to help anyway I can.

Anonymous
Fri 20 Mar 2009 10:33:26 AM UTC, comment #1:

This is an interesting testcase, though there is almost a bit too much in it to debug it easily.

Notable differences are that onLoadProgress is called once for Gnash as it loads immediately. The pp calls it 7 times - I assume once per heart-beat - until it's fully loaded. 'Loaded' probably means 'parsed', I guess.

Width and height are not known until onLoadInit is called, Gnash gets them straight away.

If you click on '1' first, then a different number, the Gnash error is:

ERROR: MovieClip::replace_display_object: could not find any character at depth -16383
ERROR: MovieClip::replace_display_object: could not find any character at depth -16382

It seems there is a character there, though: _level0.target is a movie_instance (must be the loaded movie) at -16382.

Benjamin Wolsey <bwy>
Project Member
Wed 18 Mar 2009 08:22:56 PM UTC, original submission:

Description of issue:

Attached test case shows how MovieClipLoader fails to function properly after call to LoadVars.sendAndLoad when SWF being loaded contains a Flash UI Component such as Label, TextArea, DataGrid, etc.

Release(s) affected:

Verified issue using Gnash 0.8.3 (win32), 0.8.4 (linux), and 0.8.5 (linux).

Test case setup:

Content.fla's frame 1 actions add 4 new functions to MovieClip prototype (just to make life easier): getMCL, setMCL, loadClip, and unloadClip. These functions are then used by on(press) event handlers for each of the 6 numbered buttons to load the corresponding frame into the "target" clip. Button #1 contains sendAndLoad call with onLoad callback which demonstrates issue.

Target.fla has 6 frames, each with a colored background and static text. Frame 3 contains a single TextInput Component.

To reproduce issue:

Start "content.swf" and press #1 button. This will initiate sendAndLoad with onLoad function that will then load "target.swf" and go to frame 1 (using loadClip method). At this point pushing buttons 2 through 6 will not properly reload "target.swf" and go to the associated frame. Looking at the trace outputs, you will see that width and height of target_mc are now always 0.

If, however, you edit "target.fla" and remove the Flash UI component on frame 3 from both the stage and the library, the loadClip functionality will work just fine. In addition, the pages/frames will load properly if you push any one of buttons 2 through 6 BEFORE you push button #1.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17729:  testcase.zip added by None (140KiB - application/zip - Test case files)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bwy (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Mar 2009 08:22:57 PM UTCNoneAttached File-=>Added testcase.zip, #17729

    Back to the top


    Powered by Savane 3.1-cleanup1