Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

android - "AndroidRuntime: Shutting down VM" with nothing else

For some reason, LogCat doesn't report any stack traces anymore on crashes. Instead, I only get the following info:

D/AndroidRuntime: Shutting down VM
W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40dd3960)

This is really weird because I've been working on the very same project for three months, and only recently (two, three days ago) the stack traces stopped showing. What could cause this? How can I get it to show stack traces again?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I experienced the same problem. After upgrading Google Analytics to version 7 (or 7.3, I do not remember), my app always closes without any logcat messages when encountering an error.

It turns out that it happens if I enable both a custom catch-all-exception handler (Thread#setUncaughtExceptionHandler) and the report crash feature in Google Analytics.

When I disable one of them, the logcat displays the stack trace again.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...