4 Replies Latest reply on Jun 17, 2010 7:30 PM by alamo_andy

    HELP:air HTML component very very slow  in ubuntu V8 and moblin V1.0 &2.1

    alamo_andy

      Hi,

         When  I create a very simple air(V1.5 & V2.0B) project with a simple test code to try opening a website.

       

         in moblin & ubtuntu:

            It takes about 20'' to open it and in this time the  CPU at 90%~100%.I can not do anything.

         in windows xp:

           it works well.

       

      This is my code:

         <mx:HTML id="htmlObject" location="http://www.yahoo.com/"  width="100%" height="100%" />

       

        Nothing else in the file, just that.

       

      I would be glad if someone has an explanation and/or a solution!

        • 1. Re: HELP:air HTML component very very slow  in ubuntu V8 and moblin V1.0 &2.1
          Catalin Anastasoaie Adobe Employee

          Hi Andy,

           

          Can you gives more details regarding the machine running the Ubuntu operating system? (RAM, Processor, etc) and also the exact version of AIR that you are using - (run ./adt -version in your terminal from the AIR_SDK/bin folder).

           

          I've tried to reproduce your problem on Ubuntu 7.04 and 9.04 but didn't encountered it. The time needed for the http://yahoo.com page to load was ~4 seconds (with a maximum of 7 secs and a minimum of 3 secs). indeed I didn't tried it on 8.04 but wanted to find out more information about your configuration before trying it on 8.04 too.

           

          Here is my test application:

           

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

          <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="600%" height="400%" creationComplete="addEventListeners()">

          <mx:Script>

          <![CDATA[

           

          import mx.managers.CursorManager;

          import mx.controls.Alert;

           

           

          private var startTime:Date;

          private var endTime:Date;

          private var loadTime:int;

           

           

          public function addEventListeners():void {

          loader.addEventListener(Event.LOCATION_CHANGE, onLocationChangeEventHandler);

          loader.addEventListener(Event.COMPLETE, onEventCompleteHandler);

          }

           

           

          private function onLocationChangeEventHandler(event:Event):void {

          startTime = new Date();

          CursorManager.setBusyCursor();

          }

           

           

          private function onEventCompleteHandler(event:Event):void {

          CursorManager.removeBusyCursor();

          Alert.show("Page loaded\n\nloadTime: " + returnLoadTime() + " milliseconds");

          }

           

           

          private function returnLoadTime():int {

          endTime = new Date();

          loadTime = endTime.time - startTime.time;

          return loadTime;

          }

           

          ]]>

          </mx:Script>

          <mx:VBox height="100%" width="100%">

          <mx:HBox width="100%">

          <mx:TextInput id="urlTxt" width="100%" text="http://www.yahoo.com" />

          <mx:Button label="Load URL" click="{loader.location = urlTxt.text}" />

          </mx:HBox>

          <mx:HTML id="loader" location="http://www.yahoo.com" width="100%" height="100%" />

          </mx:VBox>

          </mx:WindowedApplication>

           

          Thanks,

          -Catalin

          • 2. Re: HELP:air HTML component very very slow  in ubuntu V8 and moblin V1.0 &2.1
            alamo_andy Level 1

            hi,

            Thanks for reply!

             

            AIR: V1.5.3.9130

            Ubuntu: V8.0.4

                RAM:2G

                Processor: inter dual core processor(Inter core 2 duo cpu 2.66Ghz)

             

            I'm sorry to report the http://yahoo.com page, it works well on ubuntu.

            If you try visiting the http://www.china.com/zh_cn/ page,you will reproduce the problem.

            Please look at the cpu usage.

            Thanks.

            • 3. Re: HELP:air HTML component very very slow  in ubuntu V8 and moblin V1.0 &2.1
              Catalin Anastasoaie Adobe Employee

              Hi Andy,

               

              I've done some more tests using the link you provided in the last post and indeed the webpage is loading slower than http://www.yahoo.com but from what I've seen the same behavior appears when you try to load the same page in your browser.

               

              The AIR runtime uses the Webkit engine to render HTML content and installing Chrome, which uses the same rendering engine, and then loading the same page (http://www.china.com/zh_cn) with it we get similar results.

               

              Regards,

              -Catalin

              • 4. Re: HELP:air HTML component very very slow  in ubuntu V8 and moblin V1.0 &2.1
                alamo_andy Level 1

                Hi Catalin,

                   In my opinion loading the same page(http://www.china.com/zh_cn),the Chrome faster than Air Html component.

                   The time caused the 100% cpu:

                    Air:  about 20 seconds.

                   Chrome: about 10 seconds.

                   I encountered another problem:

                   After playing video 4~5 hours  the video became very slow. However,these problems is not  problems on windows.

                 

                 

                 

                   Here is a problem on MID( mobile Internet device)

                   RAM:1G

                   Processor: 1.1GHZ

                   The Video Player Air provided play video(420P) caused cpu 90%~97% and  we can not embed other Video Player (supper for  hardware rendering)

                 

                    Thanks!