You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Dec 2007
    Posts
    23
    Vote Rating
    0
    kyr0 is on a distinguished road

      0  

    Default [INFOREQ] Native on iOS 4 -> App works, than shows blank screen after 0,5 sec!

    [INFOREQ] Native on iOS 4 -> App works, than shows blank screen after 0,5 sec!


    Hi all,

    I tried a lot of examples now (0.91) in iPhone simulator (iOS 4) now. They are working fine at all.
    But if I install them on my native device (3GS), iOS 4 (0.91 Sencha) the app starts, shows the UI correctly for 0.5 sec.
    Then it refreshes to blank screen.

    I already tried to catch any error - but there seems to be no javascript exception thrown.

    I use PhoneGap zu build a local app for iPhone.

    Any ideas? ;-)

    Best regards,
    Aron

  2. #2
    Sencha User
    Join Date
    Dec 2007
    Posts
    23
    Vote Rating
    0
    kyr0 is on a distinguished road

      0  

    Default


    Okay, that could be interesing for you all using PhoneGap and Sencha Touch. It seems to be a memory allocation problem. WebView loads all Sencha and program data into it's own memory space. (App memory space)

    Since Sencha seems to need a lot of memory, the debugger shows:

    mem 0x1000 0x3fffffff cache
    mem 0x40000000 0xffffffff none
    mem 0x00000000 0x0fff none
    run
    Running…
    [Switching to thread 11523]
    [Switching to thread 11523]
    sharedlibrary apply-load-rules all
    continue
    [Switching to thread 12803]
    2010-07-04 12:27:39.188 BetterNote[1075:307] Going to play default movie
    2010-07-04 12:27:39.268 BetterNote[1075:307] Can't find filename default.mov in the app bundle
    2010-07-04 12:27:40.876 BetterNote[1075:307] Device initialization: DeviceInfo = {"name":"NAME_OF_PHONE (anonymized)","uuid":"ANONYMIZED","platform":"iPhone","gap":"0.9.0","version":"4.0"};
    2010-07-04 12:27:42.293 BetterNote[1075:307] Received memory warning. Level=2
    2010-07-04 12:27:42.935 BetterNote[1075:307] Docs Path:/var/mobile/Applications/----------------ANONYMIZED---HASH-----/Documents
    2010-07-04 12:27:43.105 BetterNote[1075:307] Free space is 6910865408
    [Switching to thread 12547]

    -> So after 0.5 sec the memory limit appears for the app.

    Any suggestions to lower the memory footprint of Sencha?

    Best regards,
    Aron

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Would it be possible for us to see the source code of the app? We need to figure out what specifically is taking up the memory. Loading just the library shouldnt allocate that much memory by itself.

  4. #4
    Ext User
    Join Date
    Jun 2010
    Posts
    1
    Vote Rating
    0
    mosa is on a distinguished road

      0  

    Default


    Ouch, I really hope Sencha is working fine in phonegap !
    I have a relatively big app made with JQTouch and Phonegap, and I want to port it to Sencha Touch, but if it's not possible because of memory issues, I don't want to waste my time...

  5. #5
    Sencha User
    Join Date
    Dec 2007
    Posts
    23
    Vote Rating
    0
    kyr0 is on a distinguished road

      0  

    Default


    Re,

    for sure, here is the full source code:

    http://www.aron-homberg.de/downloads...lankscreen.zip

    It's the untouched "forms" example of the Sencha Touch.

    Debug trace:


    [Session started at 2010-07-07 13:17:26 +0200.]
    GNU gdb 6.3.50-20050815 (Apple version gdb-1470) (Thu May 27 05:54:06 UTC 2010)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys005
    Loading program into debugger…
    Program loaded.
    target remote-mobile /tmp/.XcodeGDBRemote-609-66
    Switching to remote-macosx protocol
    mem 0x1000 0x3fffffff cache
    mem 0x40000000 0xffffffff none
    mem 0x00000000 0x0fff none
    run
    Running…
    [Switching to thread 11523]
    [Switching to thread 11523]
    sharedlibrary apply-load-rules all
    continue
    [Switching to thread 12803]
    2010-07-07 13:18:53.583 BetterNote[1281:307] Going to play default movie
    2010-07-07 13:18:53.597 BetterNote[1281:307] Can't find filename default.mov in the app bundle
    2010-07-07 13:18:54.664 BetterNote[1281:307] Device initialization: DeviceInfo = {"name":"iKyroPhone","uuid":"ANONYMIZED","platform":"iPhone","gap":"0.9.0","version":"4.0"};
    [Switching to thread 13059]
    2010-07-07 13:18:56.787 BetterNote[1281:307] Docs Path:/var/mobile/Applications/ANONYMIZED/Documents
    [Switching to thread 13827]
    2010-07-07 13:18:57.025 BetterNote[1281:307] Free space is 6794833920

    ---

    There is no memory warning but it refreshes to blank screen anyway.

    I have iOS 4 on my iPhone 3GS. PhoneGap is 0.9.0. Sencha Touch is Beta 0.91.
    XCode is 3.2.3, 64 bit.


    Developer Information:

    Version: 3.2 (10M2262)
    Location: /Developer
    Applications:
    Xcode: 3.2.3 (1688)
    Interface Builder: 3.2.3 (788)
    Instruments: 2.7 (2529)
    Dashcode: 3.0.1 (330)
    SDKs:
    Mac OS X:
    10.4: (8S2167)
    10.5: (9L31a)
    10.6: (10M2262)
    iPhone OS:
    3.2: (7B367)
    4.0: (8A293)
    iPhone Simulator:
    3.2: (7W367a)
    4.0: (8A293)

    Hopefully this helps

    Best regards,
    Aron

  6. #6
    Sencha User
    Join Date
    Dec 2007
    Posts
    38
    Vote Rating
    0
    PTG is on a distinguished road

      0  

    Default


    I'm experiencing the same blank screen and it's not the body of the page.

  7. #7
    Sencha User
    Join Date
    Dec 2008
    Location
    Mainz
    Posts
    241
    Vote Rating
    1
    crp_spaeth is on a distinguished road

      0  

    Default


    Same issue here! I solved it by deferring the init function for about 400 ms... This issue seems to appear because the onready method is called before phonegap is actually ready....

  8. #8
    Sencha User
    Join Date
    Dec 2007
    Posts
    38
    Vote Rating
    0
    PTG is on a distinguished road

      0  

    Default


    Btw I'm not using phonegap, just plain sencha.

  9. #9
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,004
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    @PTG

    Please post a test case, it would be useful to compare your code with the OP.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  10. #10
    Sencha User
    Join Date
    Dec 2007
    Posts
    38
    Vote Rating
    0
    PTG is on a distinguished road

      0  

    Default


    I'm trying but failed to reproduce it so far with a simple project.

Similar Threads

  1. date format in IE - shows blank!!
    By baven in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 14 Jan 2012, 10:49 PM
  2. [INFOREQ]Fullscreen Bug with Home-Favorit Link iOS 4
    By Sany in forum Sencha Touch 1.x: Bugs
    Replies: 4
    Last Post: 8 Jul 2010, 10:20 PM
  3. Replies: 1
    Last Post: 30 Nov 2008, 9:22 PM
  4. Replies: 4
    Last Post: 9 Nov 2008, 12:02 PM

Thread Participants: 6