Test10# "Crash" 0.71

Bug #1147406 reported by zahurdias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lightspark
Confirmed
Medium
Unassigned

Bug Description

package {
    import flash.utils.getTimer;
    import flash.display.*;
    import flash.events.*;
    import flash.text.*;

    [SWF(frameRate=120)]

    public class Test10 extends MovieClip {
        private var t:int;
        private var tf:TextField = new TextField();
        private var last:uint = getTimer();
        private var ticks:uint = 0;
        private var bmdata:BitmapData= new BitmapData(600, 600);
        private var bmap:Bitmap;

        public function Test10() {
                tf.autoSize = TextFieldAutoSize.LEFT;
                tf.text = "----- fps";
                tf.textColor=0xFFFFFF;
                bmap=new Bitmap(bmdata);
                this.addChild(bmap);
                addEventListener(Event.ENTER_FRAME, _run);
        }

            private function _run(evt:Event):void
            {
                ticks++;
                var now:uint = getTimer();
                var delta:uint = now - last;

     if (delta >= 1000) {
      var fps:Number = ticks / delta * 1000;
      tf.text = fps.toFixed(1) + " fps";
      ticks = 0;
      last = now;
     }

                this.removeChild(bmap);
                bmdata.fillRect(bmdata.rect, 0xFF000000)
                bmdata.draw(tf);
                bmap=new Bitmap(bmdata);
                this.addChild(bmap);
            }
    }
}

Revision history for this message
zahurdias (zahurdias) wrote :

*** Error in `lightspark': corrupted double-linked list: 0x00007f0e400b8fc0 ***

Revision history for this message
zahurdias (zahurdias) wrote :

also "Violación de segmento" that is "segment violation" or just hangs

Revision history for this message
Antti Ajanki (aajanki) wrote :

This allocates all memory and finally gets killed by the out of memory killer.

Also, if you are not running git version, you may encounter segfaults due to incorrect bounds checking in fillRect. This problem was already fixed in git.

Changed in lightspark:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.