* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 11:00 ` Taco Hoekwater
@ 2020-10-29 11:15 ` Sylvain Hubert
2020-10-29 11:19 ` Sylvain Hubert
2020-10-29 11:26 ` Sylvain Hubert
2 siblings, 0 replies; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-29 11:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1877 bytes --]
Hi Taco,
thanks for the suggestions, but as mentioned earlier, `mtxrun --script font
--list --all` triggers the same problem as `context` does.
I guess the problem might have something to do with fonts, but since
`context` aka `luametatex` is not open source yet, I can't analyse further.
Best,
Sylvain
On Thu, 29 Oct 2020 at 12:02, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 11:29, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > Hi,
> >
> > sorry if this is not the best place to file a bug but I found no working
> bug tracker for context.
>
> Should you not be looking for a bug tracker for firefox instead?
>
> It looks like firefox in safe mode is perhaps trying to do something with
> (or waiting for ?) a shell command called ‘context’, which is presumably
> not related to ‘our’ ConTeXt.
>
> You can test that by (temporarily) redirecting the ‘context’ command from
> ‘luametatex’ to ‘ls’ (but keep it at the same path), and see if the problem
> persists. If so, then it is the actual name giving problems, and then can
> you should file a firefox bug report because then it has nothing to do with
> ConText itself.
>
> But even if the above is not the actual issue, it still sounds like a
> firefox problem to me.
>
> Best wishes,
> Taco
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2805 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 11:00 ` Taco Hoekwater
2020-10-29 11:15 ` Sylvain Hubert
@ 2020-10-29 11:19 ` Sylvain Hubert
2020-10-29 11:31 ` Taco Hoekwater
2020-10-29 11:26 ` Sylvain Hubert
2 siblings, 1 reply; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-29 11:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1744 bytes --]
And using safe mode here is just to make sure that the problem is not
caused by extensions.
The annoyance started long before I bothered opening firefox with an extra
argument.
On Thu, 29 Oct 2020 at 12:02, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 11:29, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > Hi,
> >
> > sorry if this is not the best place to file a bug but I found no working
> bug tracker for context.
>
> Should you not be looking for a bug tracker for firefox instead?
>
> It looks like firefox in safe mode is perhaps trying to do something with
> (or waiting for ?) a shell command called ‘context’, which is presumably
> not related to ‘our’ ConTeXt.
>
> You can test that by (temporarily) redirecting the ‘context’ command from
> ‘luametatex’ to ‘ls’ (but keep it at the same path), and see if the problem
> persists. If so, then it is the actual name giving problems, and then can
> you should file a firefox bug report because then it has nothing to do with
> ConText itself.
>
> But even if the above is not the actual issue, it still sounds like a
> firefox problem to me.
>
> Best wishes,
> Taco
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2615 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 11:19 ` Sylvain Hubert
@ 2020-10-29 11:31 ` Taco Hoekwater
2020-10-29 11:44 ` Sylvain Hubert
0 siblings, 1 reply; 28+ messages in thread
From: Taco Hoekwater @ 2020-10-29 11:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 29 Oct 2020, at 12:19, Sylvain Hubert <champignoom@gmail.com> wrote:
>
> And using safe mode here is just to make sure that the problem is not caused by extensions.
> The annoyance started long before I bothered opening firefox with an extra argument.
I am baffled then. I do not see the connection, at all.
Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 11:31 ` Taco Hoekwater
@ 2020-10-29 11:44 ` Sylvain Hubert
2020-10-29 12:55 ` Taco Hoekwater
2020-10-30 8:34 ` ntg
0 siblings, 2 replies; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-29 11:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1335 bytes --]
I've just tried chromium which behaves a bit better but still experiences a
sudden raise of cpu usage from <10% to >70% during ~1s.
I've also noticed that, even without any browser running, each time after I
compile a file with `context`, my terminal get stuck for ~1s.
So I'm pretty sure this is a context bug, probably caused by unnecessary
excessive disk operations or something.
On Thu, 29 Oct 2020 at 12:33, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 12:19, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > And using safe mode here is just to make sure that the problem is not
> caused by extensions.
> > The annoyance started long before I bothered opening firefox with an
> extra argument.
>
> I am baffled then. I do not see the connection, at all.
>
> Best wishes,
> Taco
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2266 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 11:44 ` Sylvain Hubert
@ 2020-10-29 12:55 ` Taco Hoekwater
2020-10-29 14:14 ` Sylvain Hubert
2020-10-29 14:18 ` Sylvain Hubert
2020-10-30 8:34 ` ntg
1 sibling, 2 replies; 28+ messages in thread
From: Taco Hoekwater @ 2020-10-29 12:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 29 Oct 2020, at 12:44, Sylvain Hubert <champignoom@gmail.com> wrote:
>
> I've just tried chromium which behaves a bit better but still experiences a sudden raise of cpu usage from <10% to >70% during ~1s.
> I've also noticed that, even without any browser running, each time after I compile a file with `context`, my terminal get stuck for ~1s.
> So I'm pretty sure this is a context bug, probably caused by unnecessary excessive disk operations or something.
But it seems to be a big problem only on your machine. What hardware are you running on? Is it a Raspberry PI?
Like any TeX-related program, ConTeXt does a fair bit of disk access while starting up, but I haven’t heard of that being an actual problem since the age of single-core CPUs. And it certainly should not have an effect on the CPU usage of any other program (it could affect system responsiveness, though).
Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 12:55 ` Taco Hoekwater
@ 2020-10-29 14:14 ` Sylvain Hubert
2020-10-29 15:38 ` Taco Hoekwater
2020-10-29 14:18 ` Sylvain Hubert
1 sibling, 1 reply; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-29 14:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2182 bytes --]
> But it seems to be a big problem only on your machine
I fail to see what this implies.
> What hardware are you running on? Is it a Raspberry PI?
No, it's Core i5 + 8G ram + ssd.
> Like any TeX-related program, ConTeXt does a fair bit of disk access
while starting up.
But none of the other TeX-related programs causes such a problem here.
> And it certainly should not have an effect on the CPU usage of any other
program.
Indeed it should not have such an effect, so it failed to avoid what I
should have avoided, and that's why it's a bug to be discovered and
eliminated.
On Thu, 29 Oct 2020 at 13:56, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 12:44, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > I've just tried chromium which behaves a bit better but still
> experiences a sudden raise of cpu usage from <10% to >70% during ~1s.
> > I've also noticed that, even without any browser running, each time
> after I compile a file with `context`, my terminal get stuck for ~1s.
> > So I'm pretty sure this is a context bug, probably caused by unnecessary
> excessive disk operations or something.
>
> But it seems to be a big problem only on your machine. What hardware are
> you running on? Is it a Raspberry PI?
>
> Like any TeX-related program, ConTeXt does a fair bit of disk access while
> starting up, but I haven’t heard of that being an actual problem since the
> age of single-core CPUs. And it certainly should not have an effect on the
> CPU usage of any other program (it could affect system responsiveness,
> though).
>
> Best wishes,
> Taco
>
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3184 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 14:14 ` Sylvain Hubert
@ 2020-10-29 15:38 ` Taco Hoekwater
2020-10-29 16:44 ` Sylvain Hubert
0 siblings, 1 reply; 28+ messages in thread
From: Taco Hoekwater @ 2020-10-29 15:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 29 Oct 2020, at 15:14, Sylvain Hubert <champignoom@gmail.com> wrote:
>
> > But it seems to be a big problem only on your machine
> I fail to see what this implies.
The point is that if this was a common problem, many users would complain or at least respond to your message with a “me too”. So it seems likely that there is something special going on with exactly your computer or your context installation.
What binary are you using for luametatex ? The normal linux 64-bit one from the lmtx distribution?
Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 15:38 ` Taco Hoekwater
@ 2020-10-29 16:44 ` Sylvain Hubert
2020-10-29 17:15 ` Hans Hagen
0 siblings, 1 reply; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-29 16:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1747 bytes --]
> So it seems likely that there is something special going on with exactly
your computer or your context installation.
Still, I fail to see what this implies. In particular, I find it not the
most professional to assume a dust-proof environment for a real-world
product, and even unreasonable to assume that for something like `context
--help` given that no other commands are making a scene when printing help
messages.
What binary are you using for luametatex ? The normal linux 64-bit one from
the lmtx distribution?
Yes, it is.
On Thu, 29 Oct 2020 at 16:43, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 15:14, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > > But it seems to be a big problem only on your machine
> > I fail to see what this implies.
>
> The point is that if this was a common problem, many users would complain
> or at least respond to your message with a “me too”. So it seems likely
> that there is something special going on with exactly your computer or your
> context installation.
>
> What binary are you using for luametatex ? The normal linux 64-bit one
> from the lmtx distribution?
>
> Best wishes,
> Taco
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2684 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 16:44 ` Sylvain Hubert
@ 2020-10-29 17:15 ` Hans Hagen
0 siblings, 0 replies; 28+ messages in thread
From: Hans Hagen @ 2020-10-29 17:15 UTC (permalink / raw)
To: mailing list for ConTeXt users, Sylvain Hubert
On 10/29/2020 5:44 PM, Sylvain Hubert wrote:
>> So it seems likely that there is something special going on with exactly
> your computer or your context installation.
> Still, I fail to see what this implies. In particular, I find it not the
> most professional to assume a dust-proof environment for a real-world
> product, and even unreasonable to assume that for something like
> `context --help` given that no other commands are making a scene when
> printing help messages.
So what does context --help show?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 12:55 ` Taco Hoekwater
2020-10-29 14:14 ` Sylvain Hubert
@ 2020-10-29 14:18 ` Sylvain Hubert
2020-10-29 15:04 ` Hans Hagen
1 sibling, 1 reply; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-29 14:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1806 bytes --]
I would consider it more constructive to admit the existence of the bug and
find a way look into the source code of luametatex, since `context --help`
is obviously not a terribly complicated routine to investigate.
On Thu, 29 Oct 2020 at 13:56, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 12:44, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > I've just tried chromium which behaves a bit better but still
> experiences a sudden raise of cpu usage from <10% to >70% during ~1s.
> > I've also noticed that, even without any browser running, each time
> after I compile a file with `context`, my terminal get stuck for ~1s.
> > So I'm pretty sure this is a context bug, probably caused by unnecessary
> excessive disk operations or something.
>
> But it seems to be a big problem only on your machine. What hardware are
> you running on? Is it a Raspberry PI?
>
> Like any TeX-related program, ConTeXt does a fair bit of disk access while
> starting up, but I haven’t heard of that being an actual problem since the
> age of single-core CPUs. And it certainly should not have an effect on the
> CPU usage of any other program (it could affect system responsiveness,
> though).
>
> Best wishes,
> Taco
>
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2673 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 14:18 ` Sylvain Hubert
@ 2020-10-29 15:04 ` Hans Hagen
0 siblings, 0 replies; 28+ messages in thread
From: Hans Hagen @ 2020-10-29 15:04 UTC (permalink / raw)
To: mailing list for ConTeXt users, Sylvain Hubert
On 10/29/2020 3:18 PM, Sylvain Hubert wrote:
> I would consider it more constructive to admit the existence of the bug
> and find a way look into the source code of luametatex, since `context
> --help` is obviously not a terribly complicated routine to investigate.
As taco mentioned, it's very unlikely an engine issue esp as firefox is
somehow involved. A tex engine really does nothing special; just openign
a few files.
What is your test file?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 11:44 ` Sylvain Hubert
2020-10-29 12:55 ` Taco Hoekwater
@ 2020-10-30 8:34 ` ntg
2020-10-30 9:06 ` Taco Hoekwater
2020-10-30 18:48 ` Sylvain Hubert
1 sibling, 2 replies; 28+ messages in thread
From: ntg @ 2020-10-30 8:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Sylvain,
This bug tracker report <https://bugzilla.mozilla.org/show_bug.cgi?id=1599329> describes lagging / freezing (which are symptoms of excessive CPU usage, of course) for versions of Firefox from 70 to 74 inclusive on Manjaro. They also report Chromium seeing the same problem.
These symptoms seem to be very similar to yours. Could you please try their steps to reproduce - namely view a video in Firefox - and do so from a fresh reboot without starting or invoking ConTeXt so we can be sure that it is excluded from the equation?
If you get excessive CPU usage following their steps then it is Firefox at fault. If you don't then it might not be - unfortunately it only narrows it down to a 'might'.
Regards,
> On 29 Oct 2020, at 11:44, Sylvain Hubert <champignoom@gmail.com> wrote:
>
> I've just tried chromium which behaves a bit better but still experiences a sudden raise of cpu usage from <10% to >70% during ~1s.
> I've also noticed that, even without any browser running, each time after I compile a file with `context`, my terminal get stuck for ~1s.
> So I'm pretty sure this is a context bug, probably caused by unnecessary excessive disk operations or something.
>
> On Thu, 29 Oct 2020 at 12:33, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 12:19, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > And using safe mode here is just to make sure that the problem is not caused by extensions.
> > The annoyance started long before I bothered opening firefox with an extra argument.
>
> I am baffled then. I do not see the connection, at all.
--
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-30 8:34 ` ntg
@ 2020-10-30 9:06 ` Taco Hoekwater
2020-10-30 18:44 ` Sylvain Hubert
2020-10-30 19:14 ` Sylvain Hubert
2020-10-30 18:48 ` Sylvain Hubert
1 sibling, 2 replies; 28+ messages in thread
From: Taco Hoekwater @ 2020-10-30 9:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 30 Oct 2020, at 09:34, ntg@scorecrow.com wrote:
>
> Hi Sylvain,
>
> This bug tracker report <https://bugzilla.mozilla.org/show_bug.cgi?id=1599329> describes lagging / freezing (which are symptoms of excessive CPU usage, of course) for versions of Firefox from 70 to 74 inclusive on Manjaro. They also report Chromium seeing the same problem.
This basically says it is a bug in the video driver.
You could test that theory by switching to a text terminal for running the ‘context’ command (assuming the text-only terminal is still accessible in Manjaro) and see whether the output of ‘context —help’ causes lag there as well. Even a really, really crappy video driver should be able to handle the output stream in full-screen text mode, so if it still lags in that environment, that moves the needle toward a problem in ConTeXt (however unlikely Hans and I think that is).
Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-30 9:06 ` Taco Hoekwater
@ 2020-10-30 18:44 ` Sylvain Hubert
2020-10-30 19:14 ` Sylvain Hubert
1 sibling, 0 replies; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-30 18:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2081 bytes --]
> You could test that theory by switching to a text terminal for running
the ‘context’ command (assuming the text-only terminal is still accessible
in Manjaro) and see whether the output of ‘context —help’ causes lag there
as well.
If I understand you correctly, here's what I've tried:
1. open firefox, open no webpages, so there's only one about:blank
2. ctrl+alt+2, login, `context --help`
3. (in the text interface) `htop`, firefox cpu usage rises to 100% after
~1s.
On Fri, 30 Oct 2020 at 10:07, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 30 Oct 2020, at 09:34, ntg@scorecrow.com wrote:
> >
> > Hi Sylvain,
> >
> > This bug tracker report <
> https://bugzilla.mozilla.org/show_bug.cgi?id=1599329> describes lagging /
> freezing (which are symptoms of excessive CPU usage, of course) for
> versions of Firefox from 70 to 74 inclusive on Manjaro. They also report
> Chromium seeing the same problem.
>
> This basically says it is a bug in the video driver.
>
> You could test that theory by switching to a text terminal for running the
> ‘context’ command (assuming the text-only terminal is still accessible in
> Manjaro) and see whether the output of ‘context —help’ causes lag there as
> well. Even a really, really crappy video driver should be able to handle
> the output stream in full-screen text mode, so if it still lags in that
> environment, that moves the needle toward a problem in ConTeXt (however
> unlikely Hans and I think that is).
>
> Best wishes,
> Taco
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3106 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-30 9:06 ` Taco Hoekwater
2020-10-30 18:44 ` Sylvain Hubert
@ 2020-10-30 19:14 ` Sylvain Hubert
2020-10-30 19:26 ` Hans Hagen
1 sibling, 1 reply; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-30 19:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2026 bytes --]
A few new experiments:
1. `firefox --headless` stays quite no matter what
2. when `gimp` is running, `context --help` causes a rise of cpu usage of
gimp up to 60% for ~1s
3. when only xfce4-terminal is running, I tried `context --help` for a few
times and for each time, one of the following experiences a cpu usage rise
up to >50% for ~1s:
libwhispermenu.so
libpulseaudio.so
xfce4-appfinder
nm-applet
Thunar
xfce4-terminal
On Fri, 30 Oct 2020 at 10:07, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 30 Oct 2020, at 09:34, ntg@scorecrow.com wrote:
> >
> > Hi Sylvain,
> >
> > This bug tracker report <
> https://bugzilla.mozilla.org/show_bug.cgi?id=1599329> describes lagging /
> freezing (which are symptoms of excessive CPU usage, of course) for
> versions of Firefox from 70 to 74 inclusive on Manjaro. They also report
> Chromium seeing the same problem.
>
> This basically says it is a bug in the video driver.
>
> You could test that theory by switching to a text terminal for running the
> ‘context’ command (assuming the text-only terminal is still accessible in
> Manjaro) and see whether the output of ‘context —help’ causes lag there as
> well. Even a really, really crappy video driver should be able to handle
> the output stream in full-screen text mode, so if it still lags in that
> environment, that moves the needle toward a problem in ConTeXt (however
> unlikely Hans and I think that is).
>
> Best wishes,
> Taco
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3111 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-30 19:14 ` Sylvain Hubert
@ 2020-10-30 19:26 ` Hans Hagen
0 siblings, 0 replies; 28+ messages in thread
From: Hans Hagen @ 2020-10-30 19:26 UTC (permalink / raw)
To: mailing list for ConTeXt users, Sylvain Hubert
On 10/30/2020 8:14 PM, Sylvain Hubert wrote:
> A few new experiments:
> 1. `firefox --headless` stays quite no matter what
> 2. when `gimp` is running, `context --help` causes a rise of cpu usage
> of gimp up to 60% for ~1s
> 3. when only xfce4-terminal is running, I tried `context --help` for a
> few times and for each time, one of the following experiences a cpu
> usage rise up to >50% for ~1s:
>
> libwhispermenu.so
> libpulseaudio.so
> xfce4-appfinder
> nm-applet
> Thunar
> xfce4-terminal
so taco's analysis about the video seems right .. are there alternative
terminals?
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-30 8:34 ` ntg
2020-10-30 9:06 ` Taco Hoekwater
@ 2020-10-30 18:48 ` Sylvain Hubert
2020-10-30 19:28 ` Hans Hagen
1 sibling, 1 reply; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-30 18:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2755 bytes --]
Hi Bruce,
> Could you please try their steps to reproduce - namely view a video in
Firefox - and do so from a fresh reboot without starting or invoking
ConTeXt so we can be sure that it is excluded from the equation?
Thanks for the suggestion but firefox here has never had any issue playing
a youtube video with 6 other video pages and 20 other news pages opened at
the same time, and the bug can be reproduced here with just an about:blank
and no video opened.
On Fri, 30 Oct 2020 at 09:50, <ntg@scorecrow.com> wrote:
> Hi Sylvain,
>
> This bug tracker report <
> https://bugzilla.mozilla.org/show_bug.cgi?id=1599329> describes lagging /
> freezing (which are symptoms of excessive CPU usage, of course) for
> versions of Firefox from 70 to 74 inclusive on Manjaro. They also report
> Chromium seeing the same problem.
>
> These symptoms seem to be very similar to yours. Could you please try
> their steps to reproduce - namely view a video in Firefox - and do so from
> a fresh reboot without starting or invoking ConTeXt so we can be sure that
> it is excluded from the equation?
>
> If you get excessive CPU usage following their steps then it is Firefox at
> fault. If you don't then it might not be - unfortunately it only narrows it
> down to a 'might'.
>
> Regards,
>
> > On 29 Oct 2020, at 11:44, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > I've just tried chromium which behaves a bit better but still
> experiences a sudden raise of cpu usage from <10% to >70% during ~1s.
> > I've also noticed that, even without any browser running, each time
> after I compile a file with `context`, my terminal get stuck for ~1s.
> > So I'm pretty sure this is a context bug, probably caused by unnecessary
> excessive disk operations or something.
> >
> > On Thu, 29 Oct 2020 at 12:33, Taco Hoekwater <taco@elvenkind.com> wrote:
> >
> >
> > > On 29 Oct 2020, at 12:19, Sylvain Hubert <champignoom@gmail.com>
> wrote:
> > >
> > > And using safe mode here is just to make sure that the problem is not
> caused by extensions.
> > > The annoyance started long before I bothered opening firefox with an
> extra argument.
> >
> > I am baffled then. I do not see the connection, at all.
>
> --
> Bruce Horrocks
> Hampshire, UK
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4044 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-30 18:48 ` Sylvain Hubert
@ 2020-10-30 19:28 ` Hans Hagen
0 siblings, 0 replies; 28+ messages in thread
From: Hans Hagen @ 2020-10-30 19:28 UTC (permalink / raw)
To: mailing list for ConTeXt users, Sylvain Hubert
On 10/30/2020 7:48 PM, Sylvain Hubert wrote:
> Hi Bruce,
>
> > Could you please try their steps to reproduce - namely view a video
> in Firefox - and do so from a fresh reboot without starting or invoking
> ConTeXt so we can be sure that it is excluded from the equation?
>
> Thanks for the suggestion but firefox here has never had any issue
> playing a youtube video with 6 other video pages and 20 other news pages
> opened at the same time, and the bug can be reproduced here with just an
> about:blank and no video opened.
youtube is not a terminal app so it doesn't force some video mode switch
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Bug: context/mtxrun makes Firefox eat up cpu
2020-10-29 11:00 ` Taco Hoekwater
2020-10-29 11:15 ` Sylvain Hubert
2020-10-29 11:19 ` Sylvain Hubert
@ 2020-10-29 11:26 ` Sylvain Hubert
2 siblings, 0 replies; 28+ messages in thread
From: Sylvain Hubert @ 2020-10-29 11:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1645 bytes --]
Update: `mtxrun --script # without more arguments` triggers the same
problem.
On Thu, 29 Oct 2020 at 12:02, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> > On 29 Oct 2020, at 11:29, Sylvain Hubert <champignoom@gmail.com> wrote:
> >
> > Hi,
> >
> > sorry if this is not the best place to file a bug but I found no working
> bug tracker for context.
>
> Should you not be looking for a bug tracker for firefox instead?
>
> It looks like firefox in safe mode is perhaps trying to do something with
> (or waiting for ?) a shell command called ‘context’, which is presumably
> not related to ‘our’ ConTeXt.
>
> You can test that by (temporarily) redirecting the ‘context’ command from
> ‘luametatex’ to ‘ls’ (but keep it at the same path), and see if the problem
> persists. If so, then it is the actual name giving problems, and then can
> you should file a firefox bug report because then it has nothing to do with
> ConText itself.
>
> But even if the above is not the actual issue, it still sounds like a
> firefox problem to me.
>
> Best wishes,
> Taco
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2499 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread