8 Replies Latest reply on Sep 17, 2009 2:51 PM by jdesko

    Nightly SDK and Flash Builder Beta

    jdesko Level 2

      Using nightly builds 4.0.0.10212 and 4.0.0.10146 I started getting this error when running the app:

       

      Error show in debug:

       

       

      Main Thread (Suspended: VerifyError: Error #1053: Illegal override of skipMeasure in spark.components.supportClasses.GroupBase.)

       

       

      It happens when I use ModuleManager to load a module ... below is the code that I use (modInfo is a IModuleInfo variable) ....

       

      public function loadMod(mod:String):void

      {

      modInfo = ModuleManager.getModule(mod);

      modInfo.addEventListener(ModuleEvent.ERROR, mod_errorHandler);

      modInfo.addEventListener(ModuleEvent.READY, mod_readyHandler);

      modInfo.load();

      }

       

      private function mod_errorHandler(event:ModuleEvent):void

      {

      Alert.show("There was an error\nloading this module\n" + event.errorText.toString());

      }

       

      private function mod_readyHandler(event:ModuleEvent):void

      {

      mainContent = mainContent_Group.addElement(modInfo.factory.create() as IVisualElement);

      }

       

       

       

        • 1. Re: Nightly SDK and Flash Builder Beta
          jdesko Level 2

          The same error occurs when trying to load a module with ModuleLoader.  The modules being loaded are MXML modules. 

          • 2. Re: Nightly SDK and Flash Builder Beta
            Peter deHaan Level 4

            jdesko,

             

            I believe that API changed recently. Have you recompiled your modules with the latest SDK as well, or is something possibly out of sync?

             

            If recompiling/cleaning the project doesnt solve the issue, can you please file a bug at http://bugs.adobe.com/flex/ and include a simple test case and somebody can take a look.

             

            Peter

            • 3. Re: Nightly SDK and Flash Builder Beta
              jdesko Level 2

              Peter;

              Thanks for the reply.  I've uninstalled FB and reinstalled, created a new project then used existing code, tried the two diff. SDK's, same results.  Cleaned over and over.

               

              However creating a new project and only using ModuleLoader in the app and loading a simple Module in the same folder works.  So will try some more troubleshooting.

              • 4. Re: Nightly SDK and Flash Builder Beta
                jdesko Level 2

                Peter;

                 

                Thanks again for the reply.

                 

                I've added to my list of things to check for when using nightly builds.  After your reply I noticed that even though FB standalone is auto compiling and I always clean, all of my mods were still not going into bin-debug, so I noticed in the project properties all of the mods were not attached, I haven't had this issue before with past nightly's but... the error given seemed misleading.  I'm loading the module and it's found, so I would have expected a different error given.

                 

                So if it helps anyone else my short check list for nightly's -

                 

                - In project properties, in the library path, framework.swc has to be first in the list or after playerglobal.swc.  If not I have an IVisualElement error.

                - Check the version of framework, rpc, spark, textLayout.swf under bin-debug.  I've had newer SDK's put older versions in that I've used.  I rename my SDK to the version# to spot easier.

                - Make sure all modules are specified for the project in project properties.  If not the error that started this discussion comes up.

                - The popular one - copy netmon.swc to the sdk/ frameworks/ libs folder.

                 

                John

                • 5. Re: Nightly SDK and Flash Builder Beta
                  Peter deHaan Level 4

                  jdesko,

                   

                  What was the issue with the IVisualElement error? I've seen a few vague references to it in forums and blogs but I'm not sure if we have a bug filed on the issue.

                   

                  If you have a small reproducible test case, can you please file a bug at http://bugs.adobe.com/flex/ and somebody can take a look at it.


                  Thanks,

                  Peter

                  • 6. Re: Nightly SDK and Flash Builder Beta
                    jdesko Level 2

                    Hello Peter;

                     

                    All that I have to do is to create a new project, I don't even need anything added to the app (components, script, etc.), then when I run debug, I get this error

                    Picture 3.png

                    This is the application

                     

                    <?xml version="1.0" encoding="utf-8"?>

                    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

                       xmlns:s="library://ns.adobe.com/flex/spark"

                       xmlns:mx="library://ns.adobe.com/flex/halo"

                       minWidth="1024" minHeight="768">

                     

                     

                    </s:Application>

                     

                    The projects default library setup is

                    Picture 1.png

                     

                    I found that if I move framework.swc directly below playerglobal.swc or on top then I do not get this error.

                     

                    If it matters I am using a MacBook Pro with OS X 10.5.8, however I have not tried on my MacPro or in Windows yet.

                     

                    John

                    • 7. Re: Nightly SDK and Flash Builder Beta
                      jdesko Level 2

                      Hello Peter;

                       

                      I filed a Bug Report, Key: FB-22934; I hope I did this properly.

                       

                      John

                      • 8. Re: Nightly SDK and Flash Builder Beta
                        jdesko Level 2

                        Peter;

                         

                        Below is a discussion about the IVisualElement problem; also in this discussion I just added a regular problem that I have when updating the nightly SDK, in which my last used SDK seems to be referenced under bin-debug.  I'm not liking the troubleshooting time when using new nightly's but I definitely understand.

                         

                        AuthorSubjectViewsRepliesLast Post
                        MikisM87MikisM87Flash Builder and Flex4 SDK 9731+ issue19583 minutes agoby jdesko