Questions tagged [stack-trace]

A report of the active stack frames at a certain point in time during the execution of a program.

A stack trace is a report of the active stack frames at a certain point in time during the execution of a program and is often referred to as a stack backtrace.

A stack trace is commonly used during interactive and post-mortem debugging. It typically lists all the functions awaiting return values on the stack at the time of the error. By examining what is on the stack and comparing it to what you expect, you can often determine how the error occurred. By inspecting the function containing the error, you may be able to edit and correct the problem.

A stack trace allows to track the sequence of nested functions called up to the point where the stack trace is generated. In a post-mortem scenario this is up to function where the failure occurred (but not necessarily is caused there). Sibling function calls are not visible in a stack trace.

Before you start

Please browse the list of frequently asked questions to see if your question is similar to one that has already been answered.

The tag should be used to mark questions related to generating, interpreting, debugging, or otherwise understanding stack traces.

2320 questions
1
vote
1 answer

cannot retrieve stack trace from logcat on android studio

When I'm debugging an app today, I constantly get W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x40cf2390) from the logcat when the app crashes, without any further info. The logcat filter is the app, but even if I filter in…
J Freebird
  • 3,664
  • 7
  • 46
  • 81
1
vote
2 answers

Stack trace how to find out which method is causing an exception

I have a basic error: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.\r\nThe statement has been terminated. I have this thing in multiple places, but when stack trace throws an exception I…
sensei
  • 7,044
  • 10
  • 57
  • 125
1
vote
1 answer

Why is my stack trace being truncated?

I have a partial-trust AppDomain within which I run a full-trust debugging window. Using PermissionSetAttribute to get permissions I can create the window and do plenty of things with it, but sometimes a SecurityException will be thrown during data…
Artfunkel
  • 1,832
  • 17
  • 23
1
vote
3 answers

RunTime Class not found Exception

I got a stacktrace error while running the code. MainActivity.java: package com.example.android.effectivenavigation; import android.app.ActionBar; import android.app.FragmentTransaction; import android.content.Intent; import…
Stephen
  • 9,899
  • 16
  • 90
  • 137
1
vote
0 answers

backtrace() replacement for uClibc i386

I'm compiling a statically linked i386 binary for Linux, using uClibc. The backtrace library function to generate a stack trace of addresses is not available. I need a replacement. Both…
pts
  • 80,836
  • 20
  • 110
  • 183
1
vote
1 answer

Error is not caught by jquery start() function

[Update. I need to be more precise, I see...] See the following example in javascript: