Displaying 20 results from an estimated 2450 matches for "traceback".
2019 Jul 13
2
Mitigating Stalls Caused by Call Deparse on Error
...(paste0, list(abs, x)))? # intentional error
??? ## Error in (function (..., collapse = NULL)? :
??? ##?? cannot coerce type 'builtin' to vector of type 'character'
??? ## Calls: system.time -> do.call -> <Anonymous>
??? ## Timing stopped at: 23.81 0.149 24.04
??? str(.Traceback)
??? ## Dotted pair list of 3
??? ##? $ : chr [1:2500488] "(function (..., collapse = NULL) " ".Internal(paste0(list(...), collapse)))(.Primitive(\"abs\"), c(0.718117154669017, " "0.494785501621664, 0.1453434410505, 0.635028422810137, 0.0353180423844606, " &q...
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-numer...
2019 Jul 14
2
[External] Mitigating Stalls Caused by Call Deparse on Error
...ernally.
It seems a shame to allow a big usability issue for `do.call`
to remain when there is a simple solution at hand, especially
since the complete deparse of large objects likely serves no
purpose in this case. Obviously, if storing the actual calls
instead of their deparsed equivalents in .Traceback causes
problems I'm not anticipating, then that's different.?
Is that the case?
Best,
Brodie.
[1]: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17580
On Sunday, July 14, 2019, 8:52:45 AM EDT, Tierney, Luke <luke-tierney at uiowa.edu> wrote:
This is probably best vie...
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 able to
get a more exhaustive output by calling `traceback(max.lines = Inf)`,
offers the best of both worlds. Understanding the st...
2005 Sep 07
1
Tracebacks with tryCatch() and withCallingHandlers()?
...etailed 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 troubleshooting; traceback()
does unfortunately not work here. From ?traceback, we have
"Errors which are caught _via_ 'try' or 'tryCatch' do not generate a
traceback, so what is printed is the call sequence for the last uncaught
error, and not necessarily the last error."
(and it seems to be...
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 &qu...
2019 Jul 14
0
[External] Mitigating Stalls Caused by Call Deparse on Error
...ntentional error
> ??? ## Error in (function (..., collapse = NULL)? :
> ??? ##?? cannot coerce type 'builtin' to vector of type 'character'
> ??? ## Calls: system.time -> do.call -> <Anonymous>
> ??? ## Timing stopped at: 23.81 0.149 24.04
>
> ??? str(.Traceback)
> ??? ## Dotted pair list of 3
> ??? ##? $ : chr [1:2500488] "(function (..., collapse = NULL) " ".Internal(paste0(list(...), collapse)))(.Primitive(\"abs\"), c(0.718117154669017, " "0.494785501621664, 0.1453434410505, 0.635028422810137, 0.0353180423844606,...
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) : Non-numeric argument to mathematical function
> > traceback()
>2: log(a)
>1: f("A")
Oops, I get the same behaviour as you now. I think I must have edited
the transcript before and c...
2019 Jul 15
0
[External] Mitigating Stalls Caused by Call Deparse on Error
...a shame to allow a big usability issue for `do.call`
> to remain when there is a simple solution at hand, especially
> since the complete deparse of large objects likely serves no
> purpose in this case. Obviously, if storing the actual calls
> instead of their deparsed equivalents in .Traceback causes
> problems I'm not anticipating, then that's different.?
> Is that the case?
>
> Best,
>
> Brodie.
>
> [1]: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17580
>
> On Sunday, July 14, 2019, 8:52:45 AM EDT, Tierney, Luke <luke-tierney at uiowa.ed...
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 me that this does not generate a
traceb...
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
##...
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...
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 tra...
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.no...
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' no...
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)) and It stills not working.
>- R was compiled without any option (only a --prefix=)
>- I use a...
2007 Apr 12
0
Problem with Xen3.0.4-1 ?
...he "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:~# /etc/init.d/xend start
Traceback (most recent call last):
File "/usr/sbin/xend", line 52, in ?
from xen.xend.server import SrvDaemon
File "/home/zwang/programs/xen-3.0.4_1-src/dist/install/usr/lib/python/xen/xend/server/SrvDaemon.py", line 20, in ?
import xen.lowlevel.xc
ImportError: libxenctrl.so.3...
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...