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

 
 

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

Submitted by:  Zou Lunkai <zoulunkai>
Submitted on:  Sun 19 Aug 2007 03:04:54 AM UTC  
 
Category: ActionScriptSeverity: 4 - Important
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

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

Confirmed.

Benjamin Wolsey <bwy>
Project 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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by zoulunkai (Submitted the item)
  •  

    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):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 14 Mar 2008 09:05:56 AM UTCbwyStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 10 Mar 2008 11:29:35 PM UTCstrkStatusNone=>Ready For Test
    Sun 06 Jan 2008 09:08:50 PM UTCstrkSeverity3 - Normal=>4 - Important
      Summarycharacters are not destructed as expected =>characters are not destructed as expected (super bug)
    Wed 28 Nov 2007 04:24:57 PM UTCstrkDependencies-=>Depends on task #7373
    Tue 11 Sep 2007 05:43:34 PM UTCstrkAssigned toNone=>strk
      Summarycharacters are not destructed as expected (ASBroadcaster unimplemented)=>characters are not destructed as expected
    Sun 09 Sep 2007 07:21:28 AM UTCstrkSummarycharacters are not destructed as expected=>characters are not destructed as expected (ASBroadcaster unimplemented)
    Sun 19 Aug 2007 04:46:14 AM UTCzoulunkaiAttached File-=>Added levIsoIslands.swf, #13719
    Sun 19 Aug 2007 03:04:54 AM UTCzoulunkaiAttached File-=>Added Kirupa_OOP_soldier_deconstruct.swf, #13717

    Back to the top


    Powered by Savane 3.1-cleanup1