[rkward-devel] Assertion failure when interrupting output

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon May 21 12:49:42 UTC 2007


Hi,

On Monday 21 May 2007, Michel Lang wrote:
> When interrupting the output to RKonsole I get an assertion failure in the
> RKWard-konsole. It also causes RKWard to crash completly every now and
> then.
>
> Error Message:
> Assert failed at rinterface.cpp - function cancelCommand line 249

I have removed the assertion failure, but I'm not sure, I actually fixed 
whatever caused the crash. Could you try to reproduce after an svn up?

> Hopefully reproducible example:
> > matrix(rnorm(1000000), nrow = 100)
>
> -> hit the cancel button -> assertion -> sometimes full crash...

I only tried a few times, and did not see a crash (only the assertion 
failure).

> Inside RKWard, above example took about 55 seconds to reach the default
> 99999 lines output, inside a basic R session in konsole the output required
> less than 5 seconds.
> Therefore it may also be adviseable defaulting the R option "max.print" to
> a lower value, nobody wants to wait that long due to quick typo, e.g.
> forgeting an index on a high-dimensional variable. Or maybe things can be
> sped up, perhaps disabling systax highlighting for output spanning more
> than 1000 lines?

I'm afraid we just don't have this sort of low-level control over the syntax 
highlighting. I've optimized the syntax hightlighting definition to be 
*slightly* faster on lots of output, but the effect is not too noticeable. 
The ratio is not quite as bad on my machine with roughly 20 seconds inside 
RKWard vs. roughly 4 seconds in plain R. Right now, I have no good idea on 
how to optimize any further.

I think that since the command is cancellable (and hoping the crash is fixed), 
the problem is not too grave, and I'd rather not mess with any R options just 
for this issue. Do you disagree?

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20070521/1836bae7/attachment.sig>


More information about the Rkward-devel mailing list