texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Problem with Ghostscript


From: Michèle Garoche
Subject: Re: [Texmacs-dev] Problem with Ghostscript
Date: Sat, 3 May 2003 06:24:06 +0200

Hi Joris,

Sorry to have confused you with the name of the files.

I've just copied one file and heavily tortured it with ImageMagick, then saved it as ps file without changing the name.

In the first case, I'm working with the files as delivered by the release (I mean the files I loaded from the texmacs ftp site. Specifically I'm working with the web site tutorial and with the help files as they are. gs hangs. So I have to ctrl-C.

In the second case, I just open a new texmacs document and insert an image, which I have created on my disk (I mean a copy of a file delivered in the release, changed with ImageMagick but then resaved with a new name. gs does not hang. No ctrl-C.

I suspect that there is a problem with the way files are saved, though I cannot see differences in ImageMagick, which makes texmacs hang in the first case and not in the second case.

I've just made another test. Just open tm_gnu1.ps, with ImageMagick, resave it under a new name and given it the same owner and permissions and location as the original file. The new file loads.

And another one, if I only copy the tm_gnu1.ps under a new name, the file does not load, gs hangs.

Le vendredi, 2 mai 2003, à 22:01 Europe/Paris, Joris van der Hoeven a écrit :


Hi Michele,

Thanks for your detailed feedback.
I am a bit confused by two of your experiments.
In the first case with tm_gnu1.ps and tm_gnu2.ps,
you obtain the following:

I obtain:

501 4285 4284 0 31 0 6176 1020 - S std 0:00.26
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1016 - Ss p2 0:00.23
-tcsh (tcsh)
501 4398 4376 0 14 0 20168 8980 - R+ p2 0:05.65
texmacs.bin

texmacs is runnable again. Normal it's loading the fonts and so on.

6 - A few second later, I obtain:

UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.26
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1016 - Ss p2 0:00.23
-tcsh (tcsh)
501 4398 4376 0 26 0 20816 9328 - S+ p2 0:05.90
texmacs.bin
501 4656 4398 0 27 0 14532 3460 - S+ p2 0:00.22
  (gs)

gs have been launched by texmacs, both are sleeping and in the
foreground process group,. gs is trying to process tm_gnu1.ps. Here I
suspect that texmacs does not handle gs with signal and timer, in order
to kill gs as apparently it hangs. So I cannot say it's normal, but it
reflects the situation: texmacs is waiting for gs to terminate and gs
cannot send its terminating signal to texmacs, due possibly to a signal
that is not caught by texmacs (just my guess, I have not browsed the
code).

7 - I send a ctrl-C in xterm.

I obtain:

UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.26
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1016 - Ss p2 0:00.23
-tcsh (tcsh)
501 4398 4376 0 31 0 20816 9336 - S+ p2 0:06.04
texmacs.bin
501 4661 4398 0 31 0 14532 3460 - S+ p2 0:00.23
  (gs)

Idem as above with tm_gnu2.ps

8 - I send another ctrl-C in xterm

I obtain:

UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.26
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1016 - Ss p2 0:00.23
-tcsh (tcsh)
501 4398 4376 0 31 0 20552 9212 - R+ p2 0:06.15
texmacs.bin

Ok, gs is killed, texmacs is runnable again.

In the second case, a 3.2Mb ps file, you obtain:

(In order to check this, you may create a postscript
file which needs a long to be displayed and carefully
track what happens when opening it from TeXmacs).
I've tried it with a 3.2 Mo ps file, running from gs

I obtain:

1 - first
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.36
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1024 - Ss p2 0:00.29
-tcsh (tcsh)
501 4714 4376 0 14 0 7272 3512 - R+ p2 0:02.29
gs balloon-2.en.ps

2 - thereafter
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.37
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1024 - Ss p2 0:00.29
-tcsh (tcsh)
501 4714 4376 0 31 0 7196 3436 - S+ p2 0:02.35
gs balloon-2.en.ps

When running inside texmacs (insert an image):

1 -
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.37
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1024 - Ss p2 0:00.31
-tcsh (tcsh)
501 4719 4376 0 28 0 27088 14140 - R+ p2 0:09.92
texmacs.bin

2 -
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.39
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1024 - Ss p2 0:00.31
-tcsh (tcsh)
501 4719 4376 0 31 0 27088 14188 - S+ p2 0:15.31
texmacs.bin
501 4911 4719 0 0 0 14628 3560 - R+ p2 0:00.61
  (gs)

3-
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.39
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1024 - Ss p2 0:00.31
-tcsh (tcsh)
501 4719 4376 0 23 0 27088 14188 - R+ p2 0:15.45
texmacs.bin

4-
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME
COMMAND
501 4285 4284 0 31 0 6176 1020 - S std 0:00.42
-tcsh (tcsh)
501 4376 4375 0 31 0 6176 1024 - Ss p2 0:00.31
-tcsh (tcsh)
501 4719 4376 0 31 0 22988 10844 - S+ p2 0:16.10
texmacs.bin

Now in the last case, the gs process has automagically disappeared,
although TeXmacs did not return to R+. Is that normal,
or did you press Ctrl-C?
Here it is normal, the file loads correctly, gs does not hang.

Michèle
<http://micmacfr.homeunix.org/>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]