You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Edward Stangler <es...@bradmark.com> on 2021/09/16 00:39:10 UTC

Error in SWF mxtests

With latest everything, fresh everything, getting an error in SWF side of mxtests:

ant mxtests

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
    at mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
    at mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

The error happens on this line:

        else if(root.parent != root.stage && root.loaderInfo.applicationDomain != root.parent.parent.loaderInfo.applicationDomain)

Because root.parent.parent is null.

Anybody else getting this?  Dunno what changed;  don't think this was happening a few months ago.


Re: Error in SWF mxtests

Posted by Yishay Weiss <yi...@apache.org>.
I'm getting it too after pulling in latest changes.

On 2021/09/16 00:39:10, Edward Stangler <es...@bradmark.com> wrote: 
> With latest everything, fresh everything, getting an error in SWF side of mxtests:
> 
> ant mxtests
> 
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
>     at UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
>     at mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
>     at mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
>     at flash.display::MovieClip/nextFrame()
>     at mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
>     at flash.utils::Timer/_timerDispatch()
>     at flash.utils::Timer/tick()
> 
> The error happens on this line:
> 
>         else if(root.parent != root.stage && root.loaderInfo.applicationDomain != root.parent.parent.loaderInfo.applicationDomain)
> 
> Because root.parent.parent is null.
> 
> Anybody else getting this?  Dunno what changed;  don't think this was happening a few months ago.
> 
> 

RE: Error in SWF mxtests

Posted by Yishay Weiss <yi...@hotmail.com>.

From: Yishay Weiss<ma...@hotmail.com>
Sent: Friday, September 24, 2021 9:35 AM
To: Edward Stangler<ma...@bradmark.com>; dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Error in SWF mxtests

Pashmina, can you verify your changes make mxtests pass?



My CLT-L09. On O2.


-------- Original message --------
From: Edward Stangler <es...@bradmark.com>
Date: Tue, 21 Sep 2021, 00:21
To: dev@royale.apache.org
Subject: Re: Error in SWF mxtests

I can confirm that the original exception is fixed, in the latest.

But now there is another exception (return type mismatch) in fdb in the new file ContainerRawChildrenList.as:


[trace] TestCase Start: ButtonTestScript$ButtonTest1
[trace]
[trace] return types dont match
[trace]    virt flash.display::DisplayObject mx.core::IChildList/mx.core:IChildList::addChild()
[trace]    over mx.core::UIComponent mx.core::ContainerRawChildrenList/addChild()
[Fault] exception, information=VerifyError: Error #1053: Illegal override of ContainerRawChildrenList in mx.core.ContainerRawChildrenList.

        at mx.core::Container/get rawChildren()[/org/apache/royale/0.9.9/mx/core/Container.as:1807]
        at UnitTester$/_getObjectsUnderPoint()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:1130]
        at UnitTester$/_getObjectsUnderPoint()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:1134]
        at UnitTester$/getObjectsUnderPoint()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:706]
        at DispatchMouseEvent/doStep()[c:\somewhere\royale-asjs\mustella\src\main\royale\DispatchMouseEvent.as:122]
        at TestStep/execute()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestStep.as:75]
        at DispatchMouseEvent/execute()[c:\somewhere\royale-asjs\mustella\src\main\royale\DispatchMouseEvent.as:0]
        at TestCase/runSteps()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:443]
        at TestCase/runBody()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:318]
        at TestCase/runSetup()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:296]
        at TestCase/runTest()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:264]
        at UnitTester/runTests()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:2113]
        at UnitTester/runMoreTests()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:2159]
        at UnitTester$/enterFrameHandler()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:1253]




On 9/20/2021 7:43 AM, Pashmina Kazi wrote:
Hi Yishay,

I have commented my changes in SystemManager.as and ISystemManager.as to get mxtests works now it is throwing that error:
[image.png]

Regards,
Pashmina

On Mon, Sep 20, 2021 at 12:33 AM Yishay Weiss wrote:
Pashmina, have you looked into this? I think the CI asjs builds are failing because of this. I imagine you are busy but the longer asjs builds fail the more difficult it is diagnose problems. Please let us know how you plan to handle this. Thanks.

From: Yishay Weiss
Sent: Friday, September 17, 2021 10:17 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Error in SWF mxtests

Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All commits since then except one were done by @pashminakazi<ma...@gmail.com>, can you please debug this? If you are unsure how to debug this you can simply rollback to various commits since 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see which commit is responsible for the failure.

To run mxtests, simply run ‘ant mxtests’ from royale-asjs

Let us know if you need guidance.

Thanks.

From: Edward Stangler
Sent: Thursday, September 16, 2021 3:39 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Error in SWF mxtests

With latest everything, fresh everything, getting an error in SWF side of mxtests:

ant mxtests

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
    at mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
    at mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

The error happens on this line:

        else if(root.parent != root.stage && root.loaderInfo.applicationDomain != root.parent.parent.loaderInfo.applicationDomain)

Because root.parent.parent is null.

Anybody else getting this?  Dunno what changed;  don't think this was happening a few months ago.




Re: Error in SWF mxtests

Posted by Edward Stangler <es...@bradmark.com>.
I can confirm that the original exception is fixed, in the latest.

But now there is another exception (return type mismatch) in fdb in the new file ContainerRawChildrenList.as:


[trace] TestCase Start: ButtonTestScript$ButtonTest1
[trace]
[trace] return types dont match
[trace]    virt flash.display::DisplayObject mx.core::IChildList/mx.core:IChildList::addChild()
[trace]    over mx.core::UIComponent mx.core::ContainerRawChildrenList/addChild()
[Fault] exception, information=VerifyError: Error #1053: Illegal override of ContainerRawChildrenList in mx.core.ContainerRawChildrenList.

        at mx.core::Container/get rawChildren()[/org/apache/royale/0.9.9/mx/core/Container.as:1807]
        at UnitTester$/_getObjectsUnderPoint()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:1130]
        at UnitTester$/_getObjectsUnderPoint()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:1134]
        at UnitTester$/getObjectsUnderPoint()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:706]
        at DispatchMouseEvent/doStep()[c:\somewhere\royale-asjs\mustella\src\main\royale\DispatchMouseEvent.as:122]
        at TestStep/execute()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestStep.as:75]
        at DispatchMouseEvent/execute()[c:\somewhere\royale-asjs\mustella\src\main\royale\DispatchMouseEvent.as:0]
        at TestCase/runSteps()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:443]
        at TestCase/runBody()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:318]
        at TestCase/runSetup()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:296]
        at TestCase/runTest()[c:\somewhere\royale-asjs\mustella\src\main\royale\TestCase.as:264]
        at UnitTester/runTests()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:2113]
        at UnitTester/runMoreTests()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:2159]
        at UnitTester$/enterFrameHandler()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:1253]




On 9/20/2021 7:43 AM, Pashmina Kazi wrote:
Hi Yishay,

I have commented my changes in SystemManager.as and ISystemManager.as to get mxtests works now it is throwing that error:
[image.png]

Regards,
Pashmina

On Mon, Sep 20, 2021 at 12:33 AM Yishay Weiss wrote:
Pashmina, have you looked into this? I think the CI asjs builds are failing because of this. I imagine you are busy but the longer asjs builds fail the more difficult it is diagnose problems. Please let us know how you plan to handle this. Thanks.

From: Yishay Weiss
Sent: Friday, September 17, 2021 10:17 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Error in SWF mxtests

Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All commits since then except one were done by @pashminakazi<ma...@gmail.com>, can you please debug this? If you are unsure how to debug this you can simply rollback to various commits since 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see which commit is responsible for the failure.

To run mxtests, simply run ‘ant mxtests’ from royale-asjs

Let us know if you need guidance.

Thanks.

From: Edward Stangler
Sent: Thursday, September 16, 2021 3:39 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Error in SWF mxtests

With latest everything, fresh everything, getting an error in SWF side of mxtests:

ant mxtests

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
    at mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
    at mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

The error happens on this line:

        else if(root.parent != root.stage && root.loaderInfo.applicationDomain != root.parent.parent.loaderInfo.applicationDomain)

Because root.parent.parent is null.

Anybody else getting this?  Dunno what changed;  don't think this was happening a few months ago.




Re: Error in SWF mxtests

Posted by Yishay Weiss <yi...@apache.org>.
Hi Pashmina,

I cannot see your png. I am not sure when I will have time to debug mx tests without knowing which change created the problem. Can you try rolling back your changes one by one until you know which one is causing the problem. If there are technical questions on how to perform the rollback, or on how to run mxtests please let us know and we'll do our best to help.

Thanks,
Yishay 

On 2021/09/20 12:41:52, Pashmina Kazi <pa...@gmail.com> wrote: 
> Hi Yishay,
> 
> I have commented my changes in SystemManager.as and ISystemManager.as to
> get mxtests works now it is throwing that error:
> [image: image.png]
> 
> Regards,
> Pashmina
> 
> On Mon, Sep 20, 2021 at 12:33 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
> 
> > Pashmina, have you looked into this? I think the CI asjs builds are
> > failing because of this. I imagine you are busy but the longer asjs builds
> > fail the more difficult it is diagnose problems. Please let us know how you
> > plan to handle this. Thanks.
> >
> > From: Yishay Weiss<ma...@hotmail.com>
> > Sent: Friday, September 17, 2021 10:17 AM
> > To: dev@royale.apache.org<ma...@royale.apache.org>;
> > pashminakazi@gmail.com<ma...@gmail.com>
> > Subject: RE: Error in SWF mxtests
> >
> > Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All
> > commits since then except one were done by @pashminakazi@gmail.com<mailto:
> > pashminakazi@gmail.com>. @pashminakazi@gmail.com<mailto:
> > pashminakazi@gmail.com>, can you please debug this? If you are unsure how
> > to debug this you can simply rollback to various commits since
> > 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see which
> > commit is responsible for the failure.
> >
> > To run mxtests, simply run ‘ant mxtests’ from royale-asjs
> >
> > Let us know if you need guidance.
> >
> > Thanks.
> >
> > From: Edward Stangler<ma...@bradmark.com>
> > Sent: Thursday, September 16, 2021 3:39 AM
> > To: dev@royale.apache.org<ma...@royale.apache.org>
> > Subject: Error in SWF mxtests
> >
> > With latest everything, fresh everything, getting an error in SWF side of
> > mxtests:
> >
> > ant mxtests
> >
> > TypeError: Error #1009: Cannot access a property or method of a null
> > object reference.
> >     at
> > UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
> >     at
> > mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
> >     at
> > mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
> >     at flash.display::MovieClip/nextFrame()
> >     at
> > mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
> >     at flash.utils::Timer/_timerDispatch()
> >     at flash.utils::Timer/tick()
> >
> > The error happens on this line:
> >
> >         else if(root.parent != root.stage &&
> > root.loaderInfo.applicationDomain !=
> > root.parent.parent.loaderInfo.applicationDomain)
> >
> > Because root.parent.parent is null.
> >
> > Anybody else getting this?  Dunno what changed;  don't think this was
> > happening a few months ago.
> >
> >
> >
> 

Re: Error in SWF mxtests

Posted by Pashmina Kazi <pa...@gmail.com>.
Hi Yishay,

I have commented my changes in SystemManager.as and ISystemManager.as to
get mxtests works now it is throwing that error:
[image: image.png]

Regards,
Pashmina

On Mon, Sep 20, 2021 at 12:33 AM Yishay Weiss <yi...@hotmail.com>
wrote:

> Pashmina, have you looked into this? I think the CI asjs builds are
> failing because of this. I imagine you are busy but the longer asjs builds
> fail the more difficult it is diagnose problems. Please let us know how you
> plan to handle this. Thanks.
>
> From: Yishay Weiss<ma...@hotmail.com>
> Sent: Friday, September 17, 2021 10:17 AM
> To: dev@royale.apache.org<ma...@royale.apache.org>;
> pashminakazi@gmail.com<ma...@gmail.com>
> Subject: RE: Error in SWF mxtests
>
> Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All
> commits since then except one were done by @pashminakazi@gmail.com<mailto:
> pashminakazi@gmail.com>. @pashminakazi@gmail.com<mailto:
> pashminakazi@gmail.com>, can you please debug this? If you are unsure how
> to debug this you can simply rollback to various commits since
> 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see which
> commit is responsible for the failure.
>
> To run mxtests, simply run ‘ant mxtests’ from royale-asjs
>
> Let us know if you need guidance.
>
> Thanks.
>
> From: Edward Stangler<ma...@bradmark.com>
> Sent: Thursday, September 16, 2021 3:39 AM
> To: dev@royale.apache.org<ma...@royale.apache.org>
> Subject: Error in SWF mxtests
>
> With latest everything, fresh everything, getting an error in SWF side of
> mxtests:
>
> ant mxtests
>
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
>     at
> UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
>     at
> mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
>     at
> mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
>     at flash.display::MovieClip/nextFrame()
>     at
> mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
>     at flash.utils::Timer/_timerDispatch()
>     at flash.utils::Timer/tick()
>
> The error happens on this line:
>
>         else if(root.parent != root.stage &&
> root.loaderInfo.applicationDomain !=
> root.parent.parent.loaderInfo.applicationDomain)
>
> Because root.parent.parent is null.
>
> Anybody else getting this?  Dunno what changed;  don't think this was
> happening a few months ago.
>
>
>

RE: Error in SWF mxtests

Posted by Yishay Weiss <yi...@hotmail.com>.
Pashmina, have you looked into this? I think the CI asjs builds are failing because of this. I imagine you are busy but the longer asjs builds fail the more difficult it is diagnose problems. Please let us know how you plan to handle this. Thanks.

From: Yishay Weiss<ma...@hotmail.com>
Sent: Friday, September 17, 2021 10:17 AM
To: dev@royale.apache.org<ma...@royale.apache.org>; pashminakazi@gmail.com<ma...@gmail.com>
Subject: RE: Error in SWF mxtests

Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All commits since then except one were done by @pashminakazi@gmail.com<ma...@gmail.com>. @pashminakazi@gmail.com<ma...@gmail.com>, can you please debug this? If you are unsure how to debug this you can simply rollback to various commits since 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see which commit is responsible for the failure.

To run mxtests, simply run ‘ant mxtests’ from royale-asjs

Let us know if you need guidance.

Thanks.

From: Edward Stangler<ma...@bradmark.com>
Sent: Thursday, September 16, 2021 3:39 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Error in SWF mxtests

With latest everything, fresh everything, getting an error in SWF side of mxtests:

ant mxtests

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
    at mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
    at mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

The error happens on this line:

        else if(root.parent != root.stage && root.loaderInfo.applicationDomain != root.parent.parent.loaderInfo.applicationDomain)

Because root.parent.parent is null.

Anybody else getting this?  Dunno what changed;  don't think this was happening a few months ago.



Re: Error in SWF mxtests

Posted by Harbs <ha...@gmail.com>.
I suspect the problem is here:
https://github.com/apache/royale-asjs/blob/d6eaf0ad1e2a621d27ec8fbde52a5097d7f49498/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as#L527

Pashmina, Please try to do a better job of documenting what you are doing. If you make a significant change, you should discuss it on the list. I have no idea why you you added stage — especially since it always returns null.

Also, please try to be better about not committing non-functional code, or if you must, at least document it. I see a number of code blocks in your latest commits which do not actually serve a functional purpose. (i.e. keyLocation, stage (above), not sure about titleIcon)

Thanks,
Harbs

> On Sep 17, 2021, at 10:17 AM, Yishay Weiss <yi...@hotmail.com> wrote:
> 
> Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All commits since then except one were done by @pashminakazi@gmail.com<ma...@gmail.com>. @pashminakazi@gmail.com<ma...@gmail.com>, can you please debug this? If you are unsure how to debug this you can simply rollback to various commits since 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see which commit is responsible for the failure.
> 
> To run mxtests, simply run ‘ant mxtests’ from royale-asjs
> 
> Let us know if you need guidance.
> 
> Thanks.
> 
> From: Edward Stangler<ma...@bradmark.com>
> Sent: Thursday, September 16, 2021 3:39 AM
> To: dev@royale.apache.org<ma...@royale.apache.org>
> Subject: Error in SWF mxtests
> 
> With latest everything, fresh everything, getting an error in SWF side of mxtests:
> 
> ant mxtests
> 
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
>    at UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
>    at mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
>    at mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
>    at flash.display::MovieClip/nextFrame()
>    at mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
>    at flash.utils::Timer/_timerDispatch()
>    at flash.utils::Timer/tick()
> 
> The error happens on this line:
> 
>        else if(root.parent != root.stage && root.loaderInfo.applicationDomain != root.parent.parent.loaderInfo.applicationDomain)
> 
> Because root.parent.parent is null.
> 
> Anybody else getting this?  Dunno what changed;  don't think this was happening a few months ago.
> 


RE: Error in SWF mxtests

Posted by Yishay Weiss <yi...@hotmail.com>.
Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All commits since then except one were done by @pashminakazi@gmail.com<ma...@gmail.com>. @pashminakazi@gmail.com<ma...@gmail.com>, can you please debug this? If you are unsure how to debug this you can simply rollback to various commits since 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see which commit is responsible for the failure.

To run mxtests, simply run ‘ant mxtests’ from royale-asjs

Let us know if you need guidance.

Thanks.

From: Edward Stangler<ma...@bradmark.com>
Sent: Thursday, September 16, 2021 3:39 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Error in SWF mxtests

With latest everything, fresh everything, getting an error in SWF side of mxtests:

ant mxtests

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
    at mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
    at mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

The error happens on this line:

        else if(root.parent != root.stage && root.loaderInfo.applicationDomain != root.parent.parent.loaderInfo.applicationDomain)

Because root.parent.parent is null.

Anybody else getting this?  Dunno what changed;  don't think this was happening a few months ago.