Re: Permanence of strange .tex file

2021-08-28 Thread Rich Shepard

On Sat, 28 Aug 2021, Stephan Witt wrote:


Ok, I mentioned it because you said you’ve killed LyX. If you’ve quit LyX
regularly then the temporary files are removed and you cannot find them anymore.
The running process has this open and therefore you can see it. It’s on disk
present until you kill the background process and then the disk space is freed.


LyX is always exited with Ctrl-Q. The .tex processes that remained and
consumed 100% of the CPUs (according to top) were killed by root with the
command
kill -9 

FWIW I've run only linux since 1997 and am quite familiar with it.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-28 Thread Stephan Witt
Am 28.08.2021 um 14:36 schrieb Rich Shepard :
> 
> On Sat, 28 Aug 2021, Stephan Witt wrote:
> 
>> on quit LyX removes it’s temporary files and directories. This doesn’t
>> happen on sudden death of LyX. The question now is: is /tmp the location
>> for temporary files and directories?
>> 
>> On MacOS it’s not /tmp if you don’t set the path explicitly to /tmp.
> 
> Stephan,
> 
> Yes, LyX has always stored temporary files in /tmp (appropriately enough)
> which is a default directory in linux. And I've not had LyX crash in
> decades; it's closed properly.

Ok, I mentioned it because you said you’ve killed LyX. If you’ve quit LyX
regularly then the temporary files are removed and you cannot find them anymore.
The running process has this open and therefore you can see it. It’s on disk
present until you kill the background process and then the disk space is freed.

BR, Stephan
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-28 Thread Rich Shepard

On Sat, 28 Aug 2021, Stephan Witt wrote:


on quit LyX removes it’s temporary files and directories. This doesn’t
happen on sudden death of LyX. The question now is: is /tmp the location
for temporary files and directories?

On MacOS it’s not /tmp if you don’t set the path explicitly to /tmp.


Stephan,

Yes, LyX has always stored temporary files in /tmp (appropriately enough)
which is a default directory in linux. And I've not had LyX crash in
decades; it's closed properly.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Stephan Witt
Am 27.08.2021 um 22:51 schrieb Rich Shepard :
> 
> On Fri, 27 Aug 2021, Paul A. Rubin wrote:
> 
>> Do you by any chance have instant preview turned on in Tools > Preferences > 
>> Look & Feel > Display.
> 
> Paul,
> 
> Huh! It was turned on, but I've no recollection of ever doing this. And, as
> I wrote, it's never before been an issue. So I turned it off.
> 
>> The presence of "preview" in the file name suggests to me that LyX might
>> have been compiling something for instant preview.
> 
> Could be. I opened LyX, looked in preferences (but not Display), exited,
> then found Display and turned off instant preview. There were to *.tex files
> using the CPUs after I exited the second time. Killed both processes.
> 
>> As far as the undead process, if LyX spawns a latex / pdflatex / whatever
>> process to compile something and then you kill LyX, the child process does
>> not get killed automatically (at least in my experience). You have to nuke
>> it manually. I would expect the lyxpreviewN17596.tex file to be stashed in
>> the LyX temporary directory for the parent document.
> 
> If yesterday's files were in /tmp find should have found them. It didn’t.

Hi Rich,

on quit LyX removes it’s temporary files and directories. This doesn’t happen 
on sudden death of LyX. The question now is: is /tmp the location for temporary 
files and directories?

On MacOS it’s not /tmp if you don’t set the path explicitly to /tmp.

Stephan

> 
> Anyway, however the instant preview became active it's now off. Must be
> pandemic related, eh? :-)
> 
> Stay well,
> 
> Rich
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Paul A. Rubin

On 8/27/21 4:51 PM, Rich Shepard wrote:

On Fri, 27 Aug 2021, Paul A. Rubin wrote:

Do you by any chance have instant preview turned on in Tools > 
Preferences > Look & Feel > Display.


Paul,

Huh! It was turned on, but I've no recollection of ever doing this. 
And, as

I wrote, it's never before been an issue. So I turned it off.


The presence of "preview" in the file name suggests to me that LyX might
have been compiling something for instant preview.


Could be. I opened LyX, looked in preferences (but not Display), exited,
then found Display and turned off instant preview. There were to *.tex 
files

using the CPUs after I exited the second time. Killed both processes.

As far as the undead process, if LyX spawns a latex / pdflatex / 
whatever
process to compile something and then you kill LyX, the child process 
does
not get killed automatically (at least in my experience). You have to 
nuke
it manually. I would expect the lyxpreviewN17596.tex file to be 
stashed in

the LyX temporary directory for the parent document.


If yesterday's files were in /tmp find should have found them. It didn't.

Anyway, however the instant preview became active it's now off. Must be
pandemic related, eh? :-)

Stay well,

Rich

Rich,

The seldom benevolent digital deities have been on a bit of a rampage 
lately, based on personal experience. I don't know if it's caused by the 
pandemic, global warming, a surfeit of politicians (note that I'm 
listing disasters in ascending order of severity) or just random timing.


Anyway, hopefully the issue is fixed. The (presumed) fact that instant 
preview produced LaTeX processes that spun their digital wheels 
indefinitely might, however, indicate that you have something (math 
inset? other sort of inset?) that is indigestible to LaTeX, in which 
case the same problem may arise if and when you actually do compile the 
parent document.


Or maybe not. I've given up predicting the outcome of anything digital.

Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Rich Shepard

On Fri, 27 Aug 2021, Paul A. Rubin wrote:

Do you by any chance have instant preview turned on in Tools > Preferences > 
Look & Feel > Display.


Paul,

Huh! It was turned on, but I've no recollection of ever doing this. And, as
I wrote, it's never before been an issue. So I turned it off.


The presence of "preview" in the file name suggests to me that LyX might
have been compiling something for instant preview.


Could be. I opened LyX, looked in preferences (but not Display), exited,
then found Display and turned off instant preview. There were to *.tex files
using the CPUs after I exited the second time. Killed both processes.


As far as the undead process, if LyX spawns a latex / pdflatex / whatever
process to compile something and then you kill LyX, the child process does
not get killed automatically (at least in my experience). You have to nuke
it manually. I would expect the lyxpreviewN17596.tex file to be stashed in
the LyX temporary directory for the parent document.


If yesterday's files were in /tmp find should have found them. It didn't.

Anyway, however the instant preview became active it's now off. Must be
pandemic related, eh? :-)

Stay well,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Paul A. Rubin

On 8/26/21 3:27 PM, Rich Shepard wrote:

Here's another new experience for me. When I kill the lyx process there
remains a file, for example lyxpreviewN17596.tex, which shows up in the
process list as 'latex lyxpreviewN17596.tex' and consumes 100% of the 
CPUs

most of the time.

Root cannot find this file anywhere, and it persists after I close 
lyx, even

when I did not open the compiled PDF or look at a preview within lyx.

I kill the process but haven't seen this before and would like to 
understand

what might be behind this behavior.

Regards,

Rich
Do you by any chance have instant preview turned on in Tools > 
Preferences > Look & Feel > Display. The presence of "preview" in the 
file name suggests to me that LyX might have been compiling something 
for instant preview. As far as the undead process, if LyX spawns a latex 
/ pdflatex / whatever process to compile something and then you kill 
LyX, the child process does not get killed automatically (at least in my 
experience). You have to nuke it manually. I would expect the 
lyxpreviewN17596.tex file to be stashed in the LyX temporary directory 
for the parent document.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users