Android phone not dumping stack trace

dag roger stokland rui

I have a problem with my phone not printing uncaught exceptions in logcat.

To show the problem i have this piece of code:

ArrayList list = null;
list.add("something");

The only thing logcat shows is:

W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x4160ac80)

The weird thing is that i have another phone which prints the correct null pointer exception. Furthermore, printing messages with Log.e(TAG,"error") works perfectly. Anyone know why this might happen?

dag roger stokland rui

This worked if anyone has the same problem:

Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
            @Override
            public void uncaughtException(Thread thread, Throwable ex) {
                ex.printStackTrace();
            }
        });

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android phone not dumping stack trace

From Dev

Dumping only stack trace in linux core dumps

From Dev

Dumping a stack trace from C++ (Windows) - fails to find symbols

From Dev

Android Studio Stack Trace Error

From Dev

cygwin_exception::open_stackdumpfile: Dumping stack trace to cscope.exe.stackdump

From Dev

Unable to find android NDK stack-trace

From Dev

Application crashed on setContentView android with no stack trace

From Dev

Xamarin.Android no stack trace in async method

From Dev

Android Device Monitor not showing stack trace

From Dev

Where do I see printed stack trace in Android Studio?

From Dev

How to print stack trace (with symbolic function names) on Android?

From Dev

Why does android logcat not show the stack trace for a runtime exception?

From Dev

How to print stack trace (with symbolic function names) on Android?

From Dev

Reading .Net Stack Trace

From Dev

NullPointerException with no stack trace

From Dev

Inconceivable stack trace

From Dev

Mysterious line in stack trace

From Dev

how to trace this stack and pointer

From Dev

Code is not printing stack trace

From Dev

Stack Trace in Goto Statements

From Dev

SQLException stack trace

From Dev

Guice stack trace was not complete

From Dev

NullPointerException with no stack trace

From Dev

Print Stack Trace with SuperDevMode is obfusated

From Dev

Cleaning up Protractor stack trace

From Dev

put stack trace to string variable

From Dev

Mockito swallows up stack trace?

From Dev

Exception Stack Trace Missing Items

From Dev

QML stack trace during crash