ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] error with \sc
@ 2024-04-02 19:12 Peter Münster
  2024-04-02 19:23 ` [NTG-context] " Mikael Sundqvist
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2024-04-02 19:12 UTC (permalink / raw)
  To: ConTeXt users

Hi,

With ConTeXt version 2024.04.01, the \sc command produces an error:

fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern rm 12pt' is loaded
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 1, order 3, name './test.tex'
backend         > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
mtx-context     | fatal error: return code: 1

Test file:
  \starttext
  \sc test
  \stoptext

Is this a bug, or some misconfiguration of my installation?

TIA for any hints,
-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [NTG-context] Re: error with \sc
  2024-04-02 19:12 [NTG-context] error with \sc Peter Münster
@ 2024-04-02 19:23 ` Mikael Sundqvist
  2024-04-02 20:04   ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Sundqvist @ 2024-04-02 19:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Tue, Apr 2, 2024 at 9:16 PM Peter Münster <pm@a16n.net> wrote:
>
> Hi,
>
> With ConTeXt version 2024.04.01, the \sc command produces an error:
>
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern rm 12pt' is loaded
> pages           > flushing realpage 1, userpage 1, subpage 1
> close source    > level 1, order 3, name './test.tex'
> backend         > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> mtx-context     | fatal error: return code: 1
>
> Test file:
>   \starttext
>   \sc test
>   \stoptext
>
> Is this a bug, or some misconfiguration of my installation?
>
> TIA for any hints,

Hans wrote in his email:
-- If you have troubles (crash) you need to wipe the cache due to a
change in lua bytecode storage (no easy way to catch it).

Did you do that? (One way is to remove tex/texmf-cache/*)

Your file works here.

/Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [NTG-context] Re: error with \sc
  2024-04-02 19:23 ` [NTG-context] " Mikael Sundqvist
@ 2024-04-02 20:04   ` Pablo Rodriguez via ntg-context
  2024-04-02 20:34     ` Peter Münster
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-04-02 20:04 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 4/2/24 21:23, Mikael Sundqvist wrote:
> On Tue, Apr 2, 2024 at 9:16 PM Peter Münster <pm@a16n.net> wrote:
>> [...]
>> TIA for any hints,
>
> Hans wrote in his email:
> -- If you have troubles (crash) you need to wipe the cache due to a
> change in lua bytecode storage (no easy way to catch it).
>
> Did you do that? (One way is to remove tex/texmf-cache/*)

Another way is to run (since your test works fine on my laptop):

  mtxrun --script cache --erase && mtxrun --generate

The format file will be generated in the next compilation, so it will
take a bit longer.

Just in case it might help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [NTG-context] Re: error with \sc
  2024-04-02 20:04   ` Pablo Rodriguez via ntg-context
@ 2024-04-02 20:34     ` Peter Münster
  2024-04-02 21:10       ` Andres Conrado Montoya
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2024-04-02 20:34 UTC (permalink / raw)
  To: ntg-context

On Tue, Apr 02 2024, Pablo Rodriguez via ntg-context wrote:

>   mtxrun --script cache --erase && mtxrun --generate

Thanks. It did not work after doing it as root, but then I saw, that
there is also a cache in the user home-directory, so I’ve done it as the
user too, and now it works.

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [NTG-context] Re: error with \sc
  2024-04-02 20:34     ` Peter Münster
@ 2024-04-02 21:10       ` Andres Conrado Montoya
  2024-04-03  5:16         ` Peter Münster
  0 siblings, 1 reply; 7+ messages in thread
From: Andres Conrado Montoya @ 2024-04-02 21:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1876 bytes --]

You shouldn't run context as root in any case. But glad it worked.

El mar, 2 abr 2024 a las 15:34, Peter Münster (<pm@a16n.net>) escribió:

> On Tue, Apr 02 2024, Pablo Rodriguez via ntg-context wrote:
>
> >   mtxrun --script cache --erase && mtxrun --generate
>
> Thanks. It did not work after doing it as root, but then I saw, that
> there is also a cache in the user home-directory, so I’ve done it as the
> user too, and now it works.
>
> --
>            Peter
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell

[-- Attachment #1.2: Type: text/html, Size: 3119 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [NTG-context] Re: error with \sc
  2024-04-02 21:10       ` Andres Conrado Montoya
@ 2024-04-03  5:16         ` Peter Münster
  2024-04-04 15:13           ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2024-04-03  5:16 UTC (permalink / raw)
  To: ntg-context

On Tue, Apr 02 2024, Andres Conrado Montoya wrote:

> You shouldn't run context as root in any case.

I don’t run context as root. But I need to erase the cache in
/opt/context/tex/texmf-cache as root, because the user doesn’t have the
permission to do that.

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [NTG-context] Re: error with \sc
  2024-04-03  5:16         ` Peter Münster
@ 2024-04-04 15:13           ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 7+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-04-04 15:13 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 4/3/24 07:16, Peter Münster wrote:
> On Tue, Apr 02 2024, Andres Conrado Montoya wrote:
>
>> You shouldn't run context as root in any case.
>
> I don’t run context as root. But I need to erase the cache in
> /opt/context/tex/texmf-cache as root, because the user doesn’t have the
> permission to do that.

Sorry, Peter, but I have a suspicion from what you wrote.

>>   mtxrun --script cache --erase && mtxrun --generate
>
> Thanks. It did not work after doing it as root, but then I saw, that
> there is also a cache in the user home-directory, so I’ve done it as the
> user too, and now it works.

In principle, cache is only written to tex/texmf-cache.

But I guess, when that directory cannot be written by the user, cache is
written to $HOME/texmf.

This may be why you get two cache directories (instead of only
tex/texmf-cache).

Cheers,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-04-04 15:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 19:12 [NTG-context] error with \sc Peter Münster
2024-04-02 19:23 ` [NTG-context] " Mikael Sundqvist
2024-04-02 20:04   ` Pablo Rodriguez via ntg-context
2024-04-02 20:34     ` Peter Münster
2024-04-02 21:10       ` Andres Conrado Montoya
2024-04-03  5:16         ` Peter Münster
2024-04-04 15:13           ` Pablo Rodriguez via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).