Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7717737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:58:44+00:00 2026-06-01T02:58:44+00:00

I have some ActionScript3 code that for some reason only crashes in a stack

  • 0

I have some ActionScript3 code that for some reason only crashes in a stack overflow when compiled for ‘Release’ mode. The method it crashes in doesn’t call any other function and does therefore not recurse in any way.
The weird thing is that when compiled in ‘Debug’ mode it works perfectly.
The ‘Release’ mode also starts working if I enable ‘Verbose stack traces’ in the compiler options. What is this trickery? Is there a bug in the flash compiler when it tries to optimize too much?


Edit:

Here is the stack trace:

Stacktrace:
VerifyError: Error #1023: Stack overflow occurred.

    at Extensions::CRunObjectSelection/filterNonQualifierObjects()
    at Extensions::CRunObjectSelection/filterObjects()
    at Extensions::CRunEasing/con_IsObjectMoving()
    at Extensions::CRunEasing/condition()
    at Objects::CExtension/condition()
    at Conditions::CCndExtension/eva2()
    at Conditions::CCndExtension/eva1()
    at Events::CEventProgram/computeEventList()
    at RunLoop::CRun/f_GameLoop()
    at RunLoop::CRun/doRunLoop()
    at Application::CRunApp/loopFrame()
    at Application::CRunApp/playApplication()
    at Application::CRunApp/stepApplication()

And here is some of the code referenced in that report:

public function selectAll(Oi:int):void
{
    var pObjectInfo:CObjInfo = OiList[Oi];
    pObjectInfo.oilNumOfSelected = pObjectInfo.oilNObjects;
    pObjectInfo.oilListSelected = pObjectInfo.oilObject;
    pObjectInfo.oilEventCount = eventProgram.rh2EventCount;

    var i:int = pObjectInfo.oilObject;
    while(i >= 0)
    {
        var pObject:CObject = ObjectList[i];
        pObject.hoNextSelected = pObject.hoNumNext;
        i = pObject.hoNumNext;
    }
}

public function filterNonQualifierObjects(rdPtr:Object, Oi:int, negate:Boolean, filter:Function):Boolean
{
    var pObjectInfo:CObjInfo = OiList[Oi];
    var hasSelected:Boolean;
    if (pObjectInfo.oilEventCount != eventProgram.rh2EventCount){
        selectAll(Oi);  //The SOL is invalid, must reset.
    }

    //If SOL is empty
    if(pObjectInfo.oilNumOfSelected <= 0){
        return false;
    }

    var firstSelected:int = -1;
    var count:int = 0;
    var current:int = pObjectInfo.oilListSelected;
    var previous:CObject = null;

    while(current >= 0)
    {
        var pObject:CObject = ObjectList[current];
        var filterResult:Boolean = filter(rdPtr, pObject);
        var useObject:Boolean = Boolean(int(filterResult) ^ int(negate));
        hasSelected = Boolean(int(hasSelected) | int(useObject));

        if(useObject)
        {
            if(firstSelected == -1){
                firstSelected = current;
            }

            if(previous != null){
                previous.hoNextSelected = current;
            }

            previous = pObject;
            count++;
        }
        current = pObject.hoNextSelected;
    }
    if(previous != null){
        previous.hoNextSelected = -1;
    }

    pObjectInfo.oilListSelected = firstSelected;
    pObjectInfo.oilNumOfSelected = count;

    return hasSelected;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:58:45+00:00Added an answer on June 1, 2026 at 2:58 am

    Your problem could be caused by this bug: http://bugs.adobe.com/jira/browse/ASC-2993

    See also this question: Why does calling this function with more than 2 parameters in Actionscript 3 cause stack overflow?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some jquery code that is doing an ajax lookup and returning comma
I have a Flash-file with some ActionScript code that loads an RSS-feed and animates
We have been given some code that does a URLRequest call which is really
I've got some legacy code that I really don't have time to rewrite. Is
I have some ActionScript code that splits a string using Regular Expression and lets
I have some code that uses an ArrayCollection, it imports: import mx.collections.ArrayCollection; then: static
I have some files that are uuencoded, and I need to decode them, using
I have some files stored at amazon. all in private mode, and since I
I have some script in my default page that redirects users to language specific
I have some Java code which performs bitwise operations on a BitSet. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.