[rkward-tracker] [ rkward-Bugs-3056567 ] NEEDINFO: Crashes/freezes on xmlTreeParse
SourceForge.net
noreply at sourceforge.net
Sun Sep 18 11:42:54 UTC 2011
Bugs item #3056567, was opened at 2010-08-31 09:08
Message generated for change (Comment added) made by tfry
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=3056567&group_id=50231
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: data handling
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Thomas Friedrichsmeier (tfry)
Summary: NEEDINFO: Crashes/freezes on xmlTreeParse
Initial Comment:
This works fine in a stand alone R console:
library(XML)
xmlDoc <- xmlTreeParse("http://www.unimod.org/xml/unimod_tables.xml")
rkward (fresh checkout/build from svn) crashes or freezes on it (couldn't figure out why one or the other is happening).
----------------------------------------------------------------------
>Comment By: Thomas Friedrichsmeier (tfry)
Date: 2011-09-18 13:42
Message:
To the best of my knowledge, this has never been an actual crash, but
"only" an extreme inefficiency which could make RKWard stop responding for
a long period of time, thus creating the impression of a freeze. The
underlying issue should be fixed since RKWard 0.5.6. Closing the report.
If you see this, or anything similar, again, with RKWard 0.5.6 or later,
please open a new report.
----------------------------------------------------------------------
Comment By: Thomas Friedrichsmeier (tfry)
Date: 2010-09-01 16:57
Message:
Thanks for reporting this issue.
I can reproduce the freeze (see below), but not the crash. Could you give
some more detail on this?
- How much of the time does it crash?
- Does it crash without further interaction, or only after trying
something else (e.g. quitting RKWard)?
- Do you get a "KCrash handler" window? If so, could you please attach the
backtrace from that?
Regarding the freeze: It's actually not a freeze, but it's just slooooow.
Basically the problem is that xmlDoc contains a lot of nodes, and
extracting each single node is very slow for some reason. This is only
partially the fault of RKWard: The slowness probably comes from the
XML-package code. The problem in RKWard is that it is too proactive about
gathering information about xmlDoc, and therefore triggers all those slow
operations. Roughly speaking, what RKWard does is the equivalent of
str (xmlDoc, list.len=10000)
which takes a very long time in a plain R session, too (note that the
bottleneck is not the printing of all that output, but gathering it in the
first place).
I plan on making RKWard less pro-active in gathering this information
about objects, but this is not going to be trivial, and will not happen too
soon.
For the time being, the generic advice to work around this type of problem
is to use local variables (e.g. by placing your code inside a function,
instead of at the top level).
Regards
Thomas
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=3056567&group_id=50231
More information about the rkward-tracker
mailing list