RhinoCan
Well-Known Member
How do you figure out why your app crashed if no stacktrace was written to LogCat?
I've seen the claim that all crashes of apps cause a stacktrace to be written to LogCat but I'm here to tell you that this is NOT always true. I've experienced this several times now and it's getting really annoying. I'll run my app and then get a message that the app has crashed; it advises me to click on the message and it will restart. I go to LogCat and look through it carefully - and find NOTHING. Sometimes the LogCat hasn't had anything written to it for a few minutes. I check to see if there are other threads and I just happen to be on the wrong one but usually there is just the one; even if there is another, clicking on it, doesn't change what I see: it's the exact same information for both threads.
I'm new with Android so there's a lot I don't know yet. Is this working correctly as I've described it? If it is, how is it possible to figure out my problem without a stacktrace? Are there other logs or places to check for diagnostics?
Usually I find that if I just run the app again (sometimes two or three times), it eventually starts and finally shows a stacktrace but why should that be necessary? It's just a waste of time.
I prefer to run the app without debug first to see which parts of the major functionality are working and which parts have bugs, then I can zoom in on the parts with bugs via debug.
I've seen the claim that all crashes of apps cause a stacktrace to be written to LogCat but I'm here to tell you that this is NOT always true. I've experienced this several times now and it's getting really annoying. I'll run my app and then get a message that the app has crashed; it advises me to click on the message and it will restart. I go to LogCat and look through it carefully - and find NOTHING. Sometimes the LogCat hasn't had anything written to it for a few minutes. I check to see if there are other threads and I just happen to be on the wrong one but usually there is just the one; even if there is another, clicking on it, doesn't change what I see: it's the exact same information for both threads.
I'm new with Android so there's a lot I don't know yet. Is this working correctly as I've described it? If it is, how is it possible to figure out my problem without a stacktrace? Are there other logs or places to check for diagnostics?
Usually I find that if I just run the app again (sometimes two or three times), it eventually starts and finally shows a stacktrace but why should that be necessary? It's just a waste of time.
I prefer to run the app without debug first to see which parts of the major functionality are working and which parts have bugs, then I can zoom in on the parts with bugs via debug.