bugGnash - The GNU Flash player - Bugs: bug #20832, characters are not destructed as...

 
 

bug #20832: characters are not destructed as expected (super bug)

Submitter:  Zou Lunkai <zoulunkai>
Submitted:  Sun 19 Aug 2007 03:04:54 AM UTC
   
 
Category:  ActionScript Severity:  4 - Important
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  strk
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 14 Mar 2008 09:05:56 AM UTC, comment #10: 

Confirmed.

Benjamin Wolsey <bwy>
Group Member
Mon 10 Mar 2008 11:29:35 PM UTC, comment #9: 

soldiers can be removed now, super is fixed enough for it.

Sandro Santilli <strk>
Group Member
Wed 12 Sep 2007 04:28:33 PM UTC, comment #8: 

Yes, it was removeMovieClip.
I committed better support for AsBroadcaster so you can now see it almost 100% functional (soldier receive the events and march in random diretions, and stop receiving messages when removal is attempted).

The remaining problem is related to 'super'.
I guess 'super' is one of those things we'd like fixed for 0.8.2

Sandro Santilli <strk>
Group Member
Tue 11 Sep 2007 07:16:06 PM UTC, comment #7: 

Next problem:

4550] 21:15:36: TRACE: Removing _level0.s9
4550] 21:15:36: ACTIONSCRIPT ERROR: builtin method or gettersetter for gnash::sprite_instance called from gnash::as_object instance.

I bet it's removeMovieClip ...

Sandro Santilli <strk>
Group Member
Tue 11 Sep 2007 07:15:07 PM UTC, comment #6: 

Alright, problem is as_object::copyProperties also copying _proto_ now that it's a normal property.

copyProperties is called (among others) from attachMovieClip
and after construction took place.

Sandro Santilli <strk>
Group Member
Tue 11 Sep 2007 05:43:34 PM UTC, comment #5: 

AsBroadcaster is implemented enough for what I can see.
The problem now seems related to removeMovieClip not being found against the object it's supposed to handle the event (or something similar).

When clicking on the 'remove soldier' button I receive:

ActionCallMethod: Can't find method [string:removeMovieClip] of object [movieclip(_level0.s9):0x87e52a8]

The second time it's s8, then s7 and so on till you get:

TRACE: No remaining soldiers to remove.


Note that for each of the movieclips (duplicated) there's also
an error about 'init' method not being found:

ActionCallMethod: Can't find method [string:init] of object [movieclip(_level0.s9):0x87e52a8]

This happens at startup, before hitting any button

Sandro Santilli <strk>
Group Member
Wed 29 Aug 2007 06:38:30 PM UTC, comment #4: 

Sorry, listed Stage twice, one is Selection.
I committed checks for the _listeners object in all the class-level actionscript.all tests. Of course all failing ..

Sandro Santilli <strk>
Group Member
Wed 29 Aug 2007 06:25:45 PM UTC, comment #3: 

The kirupa movie is likely failing due to ASBroadcaster being unimplemented.

See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2

We should at least print an UNIMPLEMENTED message when ASBroadcaster is attempted to be used, but better yet we should implement it, it also seems (from senocular above) that would simplify code for Key,Stage,Mouse,Stage and TextField by removing duplications...

Sandro Santilli <strk>
Group Member
Sun 19 Aug 2007 08:54:16 PM UTC, comment #2: 

I didn't test, but I can't see how the GC can have to do with that.
Maybe try with another renderer, or disabling the invalidated bounds in gui/gui.cpp (enabling invalidated bound debugging would have the same effect: full redraw)

Sandro Santilli <strk>
Group Member
Sun 19 Aug 2007 04:46:15 AM UTC, comment #1: 

see another attached file: levIsoIslands.swf

This orinal link is:

http://www.levitated.net/daily/levIsoIsands.html

The movieclips in this file also seems have problems to be destructed. Note that when playing with Gnash, no cubes could get removed after being placed on the grid(from visual check).

(file #13719)

Zou Lunkai <zoulunkai>
Sun 19 Aug 2007 03:04:54 AM UTC, original submission:  


See attached swf file.

When the button labled as "remove soldier" is pressed, the number of soldiers on the screen should be decreased.  With -v option, the printing message showed the character did get removed. But we could see that, they were still on the screen. Is it related to GC?

See this link:

http://www.kirupa.com/developer/oop/AS1OOPClassesWithMCs9.htm

there are sources and explanations on how the attached swf file works.

Zou Lunkai <zoulunkai>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #13719:  levIsoIslands.swf added by zoulunkai (10KiB - application/x-shockwave-flash)
file #13717:  Kirupa_OOP_soldier_deconstruct.swf added by zoulunkai (3KiB - application/x-shockwave-flash)

 

Digest:
   task dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bwy (Posted a comment)
  • -email is unavailable- added by strk (Posted a comment)
  • -email is unavailable- added by zoulunkai (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-03-14 bwy StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2008-03-10 strk StatusNone Ready For Test
    2008-01-06 strk Severity3 - Normal 4 - Important
        Summarycharacters are not destructed as expected characters are not destructed as expected (super bug)
    2007-11-28 strk Dependencies- Depends on task #7373
    2007-09-11 strk Assigned toNone strk
        Summarycharacters are not destructed as expected (ASBroadcaster unimplemented) characters are not destructed as expected
    2007-09-09 strk Summarycharacters are not destructed as expected characters are not destructed as expected (ASBroadcaster unimplemented)
    2007-08-19 zoulunkai Attached File- Added levIsoIslands.swf, #13719
    2007-08-19 zoulunkai Attached File- Added Kirupa_OOP_soldier_deconstruct.swf, #13717

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code