Page 1 of 3 123 LastLast
Results 1 to 10 of 24
Discuss [HowTo] Check why your app is crashing/not saving/freezing... and more at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; For all of you guys with Applications that crash, bug, quit to Springboard, freeze, don't ...
  1. #1
    Former Bender
    Guest

    Default

    For all of you guys with Applications that crash, bug, quit to Springboard, freeze, don't save files, etc etc...

    There is a simple solution to debug and see what's going on.

    First, turn off the Auto-Lock feature in Settings > General > Auto-Lock.

    Second, you must Install OpenSSH in your Phone (if not already installed by a Jailbreak application).
    OpenSSH requires BSD Subsystem.

    Open a SSH session from your computer to your phone.
    You can use:
    - Putty > ssh client for Windows available at putty.org
    - Terminal > for OS X, already installed in /Applications/Utilities/Terminal.

    Connect to your phone:

    ssh -l root x.x.x.x
    x.x.x.x has to be changed to your iPhone IP Address.
    To know your iPhone IP, go to Settings > Wifi > click the blue arrow where your phone is connected to.

    If you see a message like this just type yes and press ENTER

    The authenticity of host 'x.x.x.x (x.x.x.x)' can't be established.
    RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
    Are you sure you want to continue connecting (yes/no)?
    Then you'll be asked to enter a password. Simply type alpine and press ENTER

    Now you are connected in SSH.

    Since 1.1.3, all the Apps are executed as mobile user from Springboard and because we are logged as root in the SSH session, we need to switch to mobile user.
    Type this command and press ENTER.

    su mobile
    You'll notice in the SSH session window, the # will change to $.

    # = root
    $ = mobile

    To exit the mobile level simply type exit and press ENTER.
    It will go back to the root level.

    Now if you want to execute any app you must know its exact name (Case Sensitive).
    You can use the "TAB" key to auto-complete the path/name.

    For example, if you type:
    cd /A
    and press TAB. It will complete to
    cd /Applications.
    Type the following command:

    cd /Applications/X
    X must be changed to the first letter of your app name.
    All the applications name starts with a Capital Letter.

    When you press tab, if you have several apps starting with the same letter, you'll be proposed several choices. Just complete the entry by the app name you want to execute and press ENTER. (don't forget the .app/ at the end of the name)

    Now that you are in the application's package, you must execute its binary.

    type this command and press ENTER:

    ./Xxxxxxx
    Xxxxxxx must be changed to the same name of your application package name except you don't need to add .app/ at the end.

    Your app is now started and you should see several lines right after the last command you typed.

    You can copy/paste them in your thread to let people help you.

    Use CTRL + C keys to quit the application you started.

    Most of the time the report messages are obvious enough to understand the source of the problem.

    Since i'm checking every time i install/upgrade a 3rd party application, my phone never crash/freeze/hang or behave abnormally. I just don't keep apps that will report problems that can't be solved.
    Last edited by Former Bender; 06-11-2008 at 07:05 AM.



  2. #2
    Senior Professional Array spyboy's Avatar

    Join Date
    Dec 2007
    Posts
    454
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    30

    Default

    hmmm interesting
    Running apps from Mobileterminal (no ssh) will obviously do the same thing (u can skip a few steps if u got it). that's how I was able to fix customize.
    Last edited by spyboy; 06-13-2008 at 02:27 AM.

  3. #3
    Board Hero Array lordofdaflies's Avatar

    Join Date
    Dec 2007
    Location
    INDIA
    Posts
    1,134
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    76

    Default

    Quote Originally Posted by XianLi View Post
    First, turn off the Auto-Lock feature in Settings > General > Auto-Lock.
    can i use insomnia or iAwake2??
    MacBook Pro OS X SNOW Leopard
    iPhone 4 16GB iOS 4.2
    iPad WiFi 64GB iOS 4.2
    BlackBerry Curve 3G (9300)

  4. #4
    Amazingly Knowledgeable Array JSN1's Avatar

    Join Date
    Jul 2007
    Location
    localhost
    Posts
    793
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    56

    Default

    Thanks XianLi!

    Very Useful!

  5. #5
    Rookie Array

    Join Date
    Oct 2007
    Posts
    22
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default exit app???

    How do I exit the app after running it? The ssh terminal window is not longer at the command line and the iPhone home button doesn't work!


  6. #6
    Former Bender
    Guest

    Default

    you should have pressed CRTL + C before exiting the SSH session.

    SSH again in the Phone and type top to see what is your application name.

    Then CTRL + C to quit top and after you must use killall yourappname to close your app.
    Last edited by Former Bender; 06-14-2008 at 06:50 AM. Reason: typo

  7. #7
    Advanced Array MCHuertas's Avatar

    Join Date
    Feb 2008
    Posts
    34
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    In 1.1.4 iChess doesn´t save games.

    I tried this method, but doesn´t work with this app.

    When I start the app (./iChess) in putty, doesn´t appear any lines (but in the iphone the app start, and with contrl+C it stops).

    Any more ideas?

    Thanks for all

    (I always write the same: Sorry for my bad english, I´m Spanish)
    Iphone: 8gb [1.1.2. OTB]
    Firmware: 1.1.4 (full operative)
    Bootloader: 4.6
    Baseband: 04.04.05_g
    Pwned iPhone -> SOLD

    Now:
    Iphone 3g: 16gb [2.0 OTB]
    No unlock or jailbreak, using with contract

  8. #8
    Former Bender
    Guest

    Default

    You must check your app permissions/ownership

    It may try to save in /var/root/ instead of /var/mobile/

  9. #9
    Amazingly Knowledgeable Array DJ McG's Avatar

    Join Date
    Dec 2007
    Location
    United States
    Posts
    809
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    59

    Default

    I will have to try this with Customize 2.0, since it always crashes for me.


    iPhone "2G" - 3.1.3 - Jailbroken + iPhoDroid
    iPhone 4 - 4.0.2 - Not jailbroken (yet)


  10. #10
    Newbie Array

    Join Date
    Apr 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Will the above commands fix the camera not saving photos while vWallpaper is installed but disabled?


 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Kalyway Freezing/Crashing (ram issue?)
    By apoutwest in forum Installation
    Replies: 3
    Last Post: 07-23-2010, 07:01 PM
  2. Replies: 0
    Last Post: 03-03-2008, 07:53 PM
  3. 1.1.1 apps constantly freezing and crashing...
    By gangster17 in forum iPhone "2G" (Rev. 1)
    Replies: 11
    Last Post: 12-07-2007, 05:42 AM
  4. Replies: 24
    Last Post: 09-17-2007, 01:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:10 AM.
twitter, follow us!