This message probably comes from the following fragment within
$PTOLEMY/src/kernel/Display.cc:
for (int i = 0; i < ng; i++) {
tmpFileNames[i] = tempFileName();
count[i] = 0;
// open and make sure the file is writable
if ((strm[i] = fopen(tmpFileNames[i], PT_FOPEN_WRITE_BINARY))
== NULL) {
StringList msg = "Can't open temporary file for writing: ";
msg << tmpFileNames[i];
Error::abortRun(*blockIamIn, msg);
}
}
The error is occurring because fopen() is failing to open the file.
You might want to have a look at the fopen() man page for possible
reasons. Perhaps your /tmp is full.
Perhaps you need to increase the number of open files you can have
See the limit command man page for more info
cxh@carson 15% limit
cputime unlimited
filesize unlimited
datasize 2097148 kbytes
stacksize 8192 kbytes
coredumpsize 0 kbytes
descriptors 64
memorysize unlimited
cxh@carson 16% limit descriptors 128
cxh@carson 17% limit
cputime unlimited
filesize unlimited
datasize 2097148 kbytes
stacksize 8192 kbytes
coredumpsize 0 kbytes
descriptors 128
memorysize unlimited
cxh@carson 18%
I modified the Display.cc sources so that it will print the reason why
fopen() failed
ptolemy@julian 5% diff -c ~ptdesign/src/kernel/Display.cc .
*** /users/ptdesign/src/kernel/Display.cc Tue Feb 23 08:54:07 1999
--- ./Display.cc Mon Feb 8 18:19:45 1999
***************
*** 1,7 ****
static const char file_id[] = "Display.cc";
/**************************************************************************
Version identification:
! @(#)Display.cc 1.49 02/23/99
Copyright (c) 1990-1999 The Regents of the University of California.
All rights reserved.
--- 1,7 ----
static const char file_id[] = "Display.cc";
/**************************************************************************
Version identification:
! @(#)Display.cc 1.48 02/08/99
Copyright (c) 1990-1999 The Regents of the University of California.
All rights reserved.
***************
*** 77,84 ****
#include <fcntl.h>
#include <unistd.h> // unlink()
#include <stdlib.h> // system()
! #include <errno.h>
! #include "compat.h" // PT_FOPEN_WRITE_BINARY, sys_errlist[]
#ifdef PT_NT4VC
#include <process.h>
--- 77,83 ----
#include <fcntl.h>
#include <unistd.h> // unlink()
#include <stdlib.h> // system()
! #include "compat.h" // PT_FOPEN_WRITE_BINARY
#ifdef PT_NT4VC
#include <process.h>
***************
*** 150,159 ****
if ((strm[i] = fopen(tmpFileNames[i], PT_FOPEN_WRITE_BINARY))
== NULL) {
StringList msg = "Can't open temporary file for writing: ";
! const char * reason = "Unknown error";
! if (errno >= 0 && errno < sys_nerr)
! reason = sys_errlist[errno];
! msg << reason << ": " << tmpFileNames[i];
Error::abortRun(*blockIamIn, msg);
}
}
--- 149,155 ----
if ((strm[i] = fopen(tmpFileNames[i], PT_FOPEN_WRITE_BINARY))
== NULL) {
StringList msg = "Can't open temporary file for writing: ";
! msg << tmpFileNames[i];
Error::abortRun(*blockIamIn, msg);
}
}
ptolemy@julian 6%
-Christopher
--------
I have a large simulation with a lot of xmgraph stars.
When I try to run my simulation, I have an error message :
Error: XMgraph.input=12 : Can't open temporary file for writing :
/tmp/pt01d9.1234
What does it mean please ?
Does It mean that I have too many xmgraphs in my simulation ?
Thank's for your help.
--
Eric Laeuffer
[EMAIL PROTECTED]
---------------------------------------------------------------------------
-
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]
--------
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]