search for: tracebacks

Displaying 20 results from an estimated 2450 matches for "tracebacks".

Did you mean: traceback
2019 Jul 13
2
Mitigating Stalls Caused by Call Deparse on Error
When large calls cause errors R may stall for extended periods.? This is particularly likely to happen with `do.call`, as in this example with a 24 second stall: ??? x <- runif(1e7) ??? system.time(do.call(paste0, list(abs, x)))? # intentional error ??? ## Error in (function (..., collapse = NULL)? : ??? ##?? cannot coerce type 'builtin' to vector of type 'character' ??? ##
2004 Mar 11
2
No traceback available when using try(...)
Hello, 1. The Situation : ------------------------ The stack traceback is not available when error ouccured in a try(....) -- test.R -------------------------------- f<-function(a){ return ( log(a) ) } try(f("A")) traceback() ------------------------------------------- I get the following message : > try(f("A")) Error in log(x) : Non-numeric argument to mathematical
2019 Jul 14
2
[External] Mitigating Stalls Caused by Call Deparse on Error
Luke, thanks for considering the issue.? I would like to try to separate the problem into two parts, as I _think_ your comments address primarily part 2 below: 1. How can we avoid significant and possibly crippling ?? stalls on error with these non-standard calls. 2. What is the best way to view these non-standard calls. I agree that issue 2. requires further thought and discussion under a
2019 Jul 16
1
[External] Mitigating Stalls Caused by Call Deparse on Error
We also have a few other suggestions and wishes about backtrace storage and display on the one hand, and display of constructed calls on the other hand. Perhaps it would be better to open a different wishlist item for traceback() to keep the discussions focused? FWIW I think deparsing backtraces lazily is a great idea. Displaying 1 line per call by default in interactive sessions, while being
2005 Sep 07
1
Tracebacks with tryCatch() and withCallingHandlers()?
When batch processing analysis, I use tryCatch() for failure handling and to prevent unwanted interrupts. I write detailed progress to log file and conditions (warnings and errors) are written to the same log file immediately by using withCallingHandlers(..., condition=function(c) cat(c, file=logFile)). However, I would also like to write the call stack to the log file to further simplify
2018 Aug 08
2
[PATCH nbdkit] python: Try harder to print the full traceback on error.
The tracebacks are compressed into a single line because we're using PyObject_Str, but they are just about usable if not very readable. For example you would see an error like this: nbdkit: error: ./python-exception.py: config_complete: error: ['Traceback (most recent call last):\n', ' File &quo...
2019 Jul 14
0
[External] Mitigating Stalls Caused by Call Deparse on Error
This is probably best viewed in the context of other issue with displaying calls, such as issues arising from calls constructed in non-standard evaluation contexts. Might be good to move to a wishlist item in bugzilla. Best, luke On Sat, 13 Jul 2019, brodie gaslam via R-devel wrote: > When large calls cause errors R may stall for extended periods.? This > is particularly likely to happen
2004 Mar 12
1
Re: [R] No traceback available when using try(...) (PR#6669)
On Fri, 12 Mar 2004 11:44:14 -0500, "Roger D. Peng" <rpeng@jhsph.edu> wrote : >Funny, it works for me on R-patched > > > f <- function(a) { return(log(a)) } > > f("A") >Error in log(x) : Non-numeric argument to mathematical function > > traceback() >2: log(a) >1: f("A") > > try(f("A")) >Error in log(x) :
2019 Jul 15
0
[External] Mitigating Stalls Caused by Call Deparse on Error
Better to add this to the wishlist item. This all needs to be looked at together, and nothing is likely to happen until after vacation/conference season. It will disappear from everyone's radar if it is just in R_devel. Best, luke On Sun, 14 Jul 2019, brodie gaslam wrote: > Luke, thanks for considering the issue.? I would like to > try to separate the problem into two parts, as I
2011 Nov 25
2
options(errorfn=traceback)
Dear R experts---I may have asked this in the past, but I don't think I figured out how to do this. I would like to execute traceback() automatically if my R program dies---every R programI ever invoke. I guessed that I could have wrapped my entire R code into tryCatch( ... oodles of R code , error = function(e) traceback(), finally = cat("done") } but the traceback docs tell
2004 Jun 14
2
.Traceback
Hi! Is there a way to write the information stored in the .Traceback variable to a file? When I try it with dump() ".Traceback" <- list("dump(.Traceback, file = \"Mytraceback.R\")") Or there are other ways to write this information on the disk if an error occurs? Eryk
2018 Aug 08
0
Re: [PATCH nbdkit] python: Try harder to print the full traceback on error.
On Wed, Aug 8, 2018 at 4:07 PM Richard W.M. Jones <rjones@redhat.com> wrote: > The tracebacks are compressed into a single line because we're using > PyObject_Str, but they are just about usable if not very readable. > For example you would see an error like this: > > nbdkit: error: ./python-exception.py: config_complete: error: ['Traceback > (most recent call last):\...
2014 May 12
0
traceback does not show source line number of long calls when truncating output
Hi, in R-3.1.0 (Linux), traceback() does not show the source file line number for the truncated calls, when limiting the number of lines output for each call with argument max.lines. See sample code, output and session info below (in particular, output for call number 5). I guess this is not intended. Thank you. Bests, Renaud #################### ## File: traceback.R a <- function(...){
2019 Nov 23
1
[PATCH nbdkit] python: Print readable tracebacks
We used traceback.format_exception, returning traceback lines. Join the lines to make the tracebacks more readable. Here is an example traceback: $ ./nbdkit -f -v python tests/python-exception.py ... nbdkit: debug: python: config_complete nbdkit: error: tests/python-exception.py: config_complete: error: Traceback (most recent call last): File "tests/python-exception.py", line 51, in...
2008 Jan 16
1
Automatic traceback
I would like to have an automatic traceback printed on error. Is there a way to do this? options(error=traceback) seems to print the previous error, not the current error. I'm guessing this is because the traceback is not set until the error handler is done running. > options(error=traceback) > stop("1") Error: 1 No traceback available > stop("2") Error: 2 1:
2003 Oct 28
1
no traceback in R-patched
Has something changed with traceback's in R-patched? When I running the examples for ?traceback, I get > foo <- function(x) { print(1); bar(2) } > bar <- function(x) { x + a.variable.which.does.not.exist } > foo(2) # gives a strange error [1] 1 Error in bar(2) : Object "a.variable.which.does.not.exist" not found > traceback() No traceback available
2019 Jul 11
1
Documentation tweak for ?traceback
The addition of `.traceback` in r70207 adds one more function to the call stack when invoking `traceback()`.? This changes the output of one of the examples to include the error handler call: > options(error = function() traceback(2)) > foo(2) [1] 1 Error in bar(2) : object 'a.variable.which.does.not.exist' not found 3: (function () ?? traceback(2))() at #1 2: bar(2) at #1 1:
2004 Mar 12
1
Re: [R] No traceback available when using try(...) (PR#6667)
On Fri, 12 Mar 2004 12:28:48 +0100, Edouard DUCHESNAY <duchesnay@shfj.cea.fr> wrote : >> > 1. The Situation : >> > ------------------------ >> > The stack traceback is not available when error ouccured in a try(....) >> >> It's a bug in 1.8.1. It has been fixed. >> >> -thomas >I have patched R (Version 1.8.1 Patched (2004-03-11))
2007 Apr 12
0
Problem with Xen3.0.4-1 ?
Hello all: My Environment: Ubuntu6.06 + Xen3.0.4 My XenLinux was booted successfully. But when i starting the "xend" service, errors displayed. I searched in google, but could not get an available solution. Please help me! Thank you very much! Error log: ----------------------------------------------------------------------------------------------- root@zwang-desktop:~#
2009 Nov 24
1
ow to have R automatically print traceback upon errors
Hi, I wonder how to have R automatically print stack trace produced by traceback upon errors during interactive uses. I tried the suggestions on http://old.nabble.com/Automatically-execute-traceback-when-execution-of-script-causes-error--td22368483.html#a22368775 and used options(error = recover) options(showErrorCalls = T) It just produces an extra message like "recover called