s-news
[Top] [All Lists]

Re: Apparent address problem with a script

To: Virginia L McGuire <vlmcguir@usgs.gov>
Subject: Re: Apparent address problem with a script
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Sat, 26 Feb 2005 09:29:35 +0000 (GMT)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <OFFC74B051.BE51887D-ON86256FB4.00331DEE-86256FB4.003355EC@usgs.gov>
References: <OFFC74B051.BE51887D-ON86256FB4.00331DEE-86256FB4.003355EC@usgs.gov>
That's an internal problem with S-PLUS. As you don't appear to be using any compiled code of your own, a bug report to Insightful would be appropriate. It may be fixed in 6.2 (or its update) but they will be able to tell you.

On Sat, 26 Feb 2005, Virginia L McGuire wrote:

Hello,

I am using Splus 6.1 on a pc with Windows XP Operating system. I
have 2 gig of RAM on the pc

I am trying to write a script to generate 4 graphs on 2 pages for a number
of entities ("nests"). The script is as follows:

nests <-
  
c("S01","S02","S03","A01","A02","A03","V01","V02","V03","EC1","EC2","BA1","BA2",

  
"BA3","BC1","BC2","BC3","T01","T02","T03","W01","W02","W03","H01","H02","H03","ZZZ")
i <- 1
while (i < 2) {
DATASET <- paste("X331.all.out.wnames.",nests[i],sep="")
GRAPHSHEETa <- paste(nests[i],"a",sep="")
GRAPHSHEETb <- paste(nests[i],"b",sep="")
SAVEDGRAPHa <-
  
paste("Z:\\Luey\\00331_and_00327.papio_monitoring\\FY04\\analysis331\\4annual_rpt\\",nests[i],"a.sgr",sep=""
)
SAVEDGRAPHb <-
  
paste("Z:\\Luey\\00331_and_00327.papio_monitoring\\FY04\\analysis331\\4annual_rpt\\",nests[i],"b.sgr",sep=""
)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P00010",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P00095",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P00300",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P00400",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P00613",GraphSheet=GRAPHSHEETb)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P00631",GraphSheet=GRAPHSHEETb)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P00915",GraphSheet=GRAPHSHEETb)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
  "DATES,P01046",GraphSheet=GRAPHSHEETb)
i <- i + 1
}



The script is currently is set up to runs for only one "nest" -- S01.
1) Sometimes, when I run the script after I first sign into Splus (after
  doing a restart on my pc and
after deleting my .Prefs directory), I get the first page of graphs
  (GRAPHSHEETa) , but the
second page(GRAPHSHEETb)is blank--and I have gotten the following error
  messages:

Problem in apply(charmat, 2, "paste", collapse = ""): Internal error: data
  for ref. count didn't point to a valid arena (0x9fa6a50)
Use traceback() to see the call stack
Problem: Internal error: data for decrementing ref. count didn't point to a
  valid arena (0x9f1ec50)
Use traceback() to see the call stack
Problem: Internal error: data for decrementing ref. count didn't point to a
  valid arena (0x7efb090)
Use traceback() to see the call stack
Problem: internal error: recursive object doesn't have a recursive arena
Use traceback() to see the call stack

If I try to rerun the script (after deleting the two graphsheets previously
  generated), the system generates
the first grahsheet (GRAPHSHEETa) and hangs on the second.(GRAPHSHEETb). I
  cannot see the
error messages, if any, because the graph covers them.

2) Othertimes, when I run the script after I first sign into Splus (after
  doing a restart on my pc and
after deleting my .Prefs directory) the system hangs on the first or second
  page of graphs (GRAPHSHEETa\
GRAPHSHEETb).

If you can give me an idea of how to correct this problem, I would
  appreciate it.

Thanks.

Virginia (Ginny) L. McGuire

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news



--
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

<Prev in Thread] Current Thread [Next in Thread>