Page 1 of 2 12 LastLast
Results 1 to 10 of 15
Like Tree8Likes

Thread: [Troubleshooting] How to get information helpful for debugging problems

777
  1. [translate]    #1
    Senior Member
    Join Date
    Dec 2010
    Location
    Poland
    Posts
    217

    Default [Troubleshooting] How to get information helpful for debugging problems

    EDIT: As there are many questions in this matter:

    One more thing related to logs (both logcats and dmesg) is that they are volatile, so they are lost after a reboot and there is no point in capturing logs after rebooting the phone. Also it's really important to get the logs as soon as possible after the issue happens, because there are many actions going on in the system constantly and capacities of log buffers are limited, so after some time the important parts might get overwritten.


    ----

    Hello. Some of you are testing Nightly CM7 for Spica by tom3q and you have some problems.

    If you want to help tom3q to fix it fast (or at all), please, help us by describing your problem and share with us some logs from your phone.

    I want to show you how to do this. It's not very complicated and will help tom3q a lot.

    Ok, so let's start:

    First step: describing problem

    Describe your problem, as precisely as you can. If you can, write how to reproduce this problem (list of actions to perform to trigger it).

    Second step: share your system logcat and radio logcat

    If you have installed Android SDK on your computer, you can do it like this:
    a) open Start menu, select Run
    b) type "cmd" and press ENTER
    c.a) in new window, type "adb logcat -d *:V > Desktoplogcat.txt"
    c.b) in the same way, type "adb logcat -b radio -d *:V > Desktoplogcat_radio.txt"
    d) go to desktop, find logcat.txt and logcat_radio.txt
    e) add these files to attachments of your post

    If you don't have Android SDK, you can do it like this:
    a) run Terminal Emulator on your phone (if you don't have it, download it for free from Market)
    b) type "su" and confirm
    c.a) then type "logcat -d *:V > /sdcard/logcat.txt"
    c.b) then type "logcat -b radio -d *:V > /sdcard/logcat_radio.txt"
    c) copy logcat.txt and logcat_radio.txt files from your SDcard to PC
    d) add these files to attachments of your post

    Third step: share your dmesg

    If you have installed Android SDK on your computer, you can do it like this:
    a) open Start menu, select Run
    b) type "cmd" and press ENTER
    c) in new window, type "adb shell dmesg > Desktopdmesg.txt"
    d) go to desktop, find dmesg.txt
    e) add this file to attachments of your post

    If you don't have Android SDK, you can do it like this:
    a) run Terminal Emulator on your phone (if you don't have it, download it for free from Market)
    b) type "su", confirm, then type "dmesg > /sdcard/dmesg.txt"
    c) copy dmesg.txt file from your SDcard to PC
    d) add this file to attachments of your post

    For debugging reboots - dump of kernel oops partition (please also include all the standard logs)

    If you have installed Android SDK on your computer, you can do it like this:
    a) open Start menu, select Run
    b) type "cmd" and press ENTER
    c) in new window, type:
    adb shell
    cat /dev/mtd/mtd7 > /sdcard/oops.bin
    exit
    adb pull /sdcard/oops.bin
    d) go to desktop, find oops.bin
    e) compress it (for example with zip)
    f) add the resulting archive to attachments of your post

    If you don't have Android SDK, you can do it like this:
    a) run Terminal Emulator on your phone (if you don't have it, download it for free from Market)
    b) type "su", confirm, then type "cat /dev/mtd/mtd7 > /sdcard/oops.bin"
    c) copy oops.bin file from your SDcard to PC
    e) compress it (for example with zip)
    f) add the resulting archive to attachments of your post

    For debugging battery drains (please also include all the standard logs)

    Launch Spare Parts application, go into Battery history and post contents of "Other usage", "CPU usage" and "Partial wake usage" lists. Also post a screenshot of your battery usage graph (preferably after the battery almost completely discharges).

    If you have installed Android SDK on your computer, you can do it like this:
    a) open Start menu, select Run
    b) type "cmd" and press ENTER
    c) in new window, type:
    adb shell
    cat /proc/wakelocks > /sdcard/wakelocks.txt
    exit
    adb pull /sdcard/wakelocks.txt
    d) go to desktop, find wakelocks.txt
    e) add this file to attachments of your post

    If you don't have Android SDK, you can do it like this:
    a) run Terminal Emulator on your phone (if you don't have it, download it for free from Market)
    b) type "su", confirm, then type "cat /proc/wakelocks > /sdcard/wakelocks.txt"
    c) copy wakelocks.txt file from your SDcard to PC
    d) add this file to attachments of your post

    Thank you

    USB drivers:
    http://forum.samdroid.net/f63/discus...tml#post173983
    How to install:
    http://forum.samdroid.net/f63/discus...tml#post173702
    Last edited by tom3q; 04-23-2012 at 11:15 PM. Reason: Improved post formatting
    LeshaK, jipo, bogeyman and 5 others like this.

  2. [translate]    #2
    Member
    Join Date
    Jun 2010
    Location
    Poland
    Posts
    40

    Default

    Spica can't find SIM card and can't connect with WiFi

    Wklejka #595510 | Wklej.org

    Wklejka #595514 | Wklej.org
    Last edited by tomo_git; 09-17-2011 at 11:13 PM.

  3. [translate]    #3
    Junior Member
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    13

    Default

    hey but there is a bugtracker

    Login Required - Samdroid.Net

  4. [translate]    #4
    Senior Member
    Join Date
    Sep 2010
    Location
    Wellingborough, UK
    Posts
    104

    Default

    Is there an app that would create these logs for us with a single click form a home screen? If not yet maybe it would not be too complicated to create one? Then just include it in the next build and I can pretty much guaranty you will be receiving logcats for every single little glitch. Just a thought.
    stock + z4root = fast and stable rooted ROM

  5. [translate]    #5
    Senior Member
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    622

    Default

    Try alogcat or any other from market.

    Sent from my GT-I5700 using Tapatalk
    Deviant MyColorScreen<= my homescreens etc.
    SGM v2.1 | yonip .32 final | all2ext2 |

    Quote Originally Posted by Kalén View Post
    just stop creating this atmosphere aand lets wait all toghether the new kernel in peace just being happy and walking throu the rainbows and you know, singing with animals etc

  6. [translate]    #6
    Senior Member
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    153

    Default

    Quote Originally Posted by andriusst View Post
    Is there an app that would create these logs for us with a single click form a home screen? If not yet maybe it would not be too complicated to create one? Then just include it in the next build and I can pretty much guaranty you will be receiving logcats for every single little glitch. Just a thought.
    perhaps you will be interested in this stuff:
    Logcat No More Thanks to Log This | xda-developers

  7. [translate]    #7
    Senior Member
    Join Date
    Nov 2010
    Location
    Qingdao china
    Posts
    139

    Default

    thanks for your sharing , and it sis useful!

  8. [translate]    #8
    Member
    Join Date
    Sep 2010
    Location
    Mangalore, India
    Posts
    63

    Default

    Quote Originally Posted by hayes View Post
    perhaps you will be interested in this stuff:
    Logcat No More Thanks to Log This | xda-developers
    Wow. This one's even better than Log Collector
    Currently on:
    i570EXXJD1 / 2.3.7 GingerBread @ CyanogenMod-7.2.0-RC0-build7.4-spica-UNOFFICIAL ||
    3.0.8+ / tom3q@Flatron #1016 || Build GWK74


    Previous ROM:
    i570EXXJD1 / 2.2.2 Froyo @ SpicagenMod-BETA2.1-NextGeneration_5.2 ||
    YONIP Kernel V.22A 24Bpp / 2.6.32.9 banjo@banjo-VirtualBox #38 ||
    8GB Transcend MicroSDHC (2GB partition for Apps)
    ||

  9. [translate]    #9
    Senior Member
    Join Date
    Aug 2010
    Location
    Barakaldo, Spain
    Posts
    1,204

    Default

    Maybe this question is stupid but here it goes

    When i run the above commands

    "logcat -d > sdcard/logcat.txt"
    "logcat -b radio -d > sdcard/logcat_radio.txt"
    "adb shell dmesg > Desktop\dmesg.txt"

    I only get a dump file and i get back to the prompt. What i mean: I was used to play around with the command adb logcat and see lots of lines being otputed to the shell, but now, just what seems to be a dump and that's all.... is this a normal behaviour? Would it help if i upload these logs even if i did not have errors? (Maybe just to check that everything is working as it should?)

    Thanks!

    EDIT: LogThis seems to be really useful for collecting logs without going through all the procedure of installing android sdk, drivers etc... i think someone should explain how to use it.... in two clicks you can get anyone's logs!!!!! I tried to use it but it complains about some "logtags"... and i don't know how to use this......
    Last edited by Xi0N; 10-11-2011 at 09:19 AM.
    CyanogenMod-7.2-NIGHTLY-Spica-alpha7 + OC'd kernel

  10. [translate]    #10
    Moderator
    Join Date
    Jun 2010
    Location
    Warsaw, Poland
    Posts
    2,828

    Default

    Added dumping of kernel oops partition. Useful for debugging reboots, starting from CM7.1 alpha 6, where it got enabled.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •