[kepler-users] R actor output failing on linux

Chad Sebranek csebranek at gmail.com
Thu Feb 20 15:36:06 PST 2014


>From what I can tell, in RExpression.java-- Kepler doesn't seem to want to
output long strings. The operation works fine for short strings in linux,
but not long strings. Long strings work in Windows as I don't get this
error. Here's the log output:


      [run] 2111 ms. Memory: 501760K Free: 402889K (80%)
      [run] Command failed.
      [run] java.lang.StringIndexOutOfBoundsException: String index out of
range: -2470
      [run]     at java.lang.String.substring(String.java:1911)
      [run]     at
org.ecoinformatics.seek.R.RExpression._getOutput(RExpression.java:1031)
      [run]     at
org.ecoinformatics.seek.R.RExpression.fire(RExpression.java:960)
      [run]     at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:465)
      [run]     at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:208)
      [run]     at
ptolemy.domains.sdf.kernel.SDFDirector.fire(SDFDirector.java:492)
      [run]     at
ptolemy.actor.CompositeActor.fire(CompositeActor.java:450)
      [run]     at ptolemy.actor.Manager.iterate(Manager.java:776)
      [run]     at ptolemy.actor.Manager.execute(Manager.java:352)
      [run]     at ptolemy.actor.Manager.run(Manager.java:1191)
      [run]     at
ptolemy.actor.Manager$PtolemyRunThread.run(Manager.java:1734)


It's almost as if the R actor stops constructing the string and doesn't
terminate it with a newline character, and so when it's trying to set the
output token, it can't find the newline in the string. Any ideas?

I actually found the bug here:
https://projects.ecoinformatics.org/ecoinfo/issues/5612

But why would it fail only on linux?

-Chad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20140220/4e5fdf31/attachment.html>


More information about the Kepler-users mailing list