1. #1
    Ext JS Premium Member
    Join Date
    Dec 2009
    Posts
    14
    Vote Rating
    0
    mediamacros is on a distinguished road

      0  

    Default Phonegap debug.log Blows up my Sencha Touch UI

    Phonegap debug.log Blows up my Sencha Touch UI


    I have a very odd one I found today. I built a Sencha based app and it runs fine on all iPhones tested except iPhone 3G and OS 4. All other setups appear to work fine. Note that in a browser it works fine on the phone, just not as an app.

    So I decided to use the console to find out how far it gets. I have a main panel with about 10 cards inside it for interface. I added some debug.log() statements (phonegap) and ran the simulator. It all stopped working on the main screen just like the 3G was doing. Upon MUCH more testing it seems that any calls to debug.log() will log the line but also seems to destroy my UI. It just goes blank. Anyone seen anything like this before?

    Thanks.

    -Chuck

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,166
    Vote Rating
    674
    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


    Haven't seen that before, don't know what might be causing it.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext JS Premium Member
    Join Date
    Dec 2009
    Posts
    14
    Vote Rating
    0
    mediamacros is on a distinguished road

      0  

    Default


    I removed anything in the phonegap script I was not using and it seems to work again. The log statements still break it if it triggers a log or error. I do get a brief flash of the UI so it does load but something about the log was causing it to clear out the visuals. I'll keep investigating. I do wonder if naming my script/object 'application' might have something to do with it as well. Thanks for the reply anyway.

  4. #4
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    773
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Have you tried using console.log which logs stuff in the xcode console? (in simulator mode, but also might work when testing on device.)

  5. #5
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    773
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Ooops, old thread already. Didn't see that.

Similar Threads

  1. Sencha + Phonegap orientation problem
    By oonox in forum Sencha Touch 1.x: Discussion
    Replies: 41
    Last Post: 8 Feb 2012, 9:10 AM
  2. phonegap with sencha samples on iPad
    By iowastate89 in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 20 Jan 2011, 5:59 AM
  3. sencha + phonegap on Android
    By emm in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 13 Aug 2010, 7:31 AM

Thread Participants: 2