ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* images in table - luatex freezed
@ 2007-08-13 22:31 zs
  0 siblings, 0 replies; 5+ messages in thread
From: zs @ 2007-08-13 22:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

Hi

This code causes context/luatex to freeze using 100% of CPU.


\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]

\starttext

\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm]
\NC \externalfigure[img_b][height=5cm] \NC\NR \NC (a) \NC (b) \SR \NC
\use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR \NC
\use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

Any idea why?

The code worked in context/pdftex from texlive.
It has nothing to do with particular images (tried different png, jpg).
Source code and sample images are attached.

ZS




PS. Something similar to following should be produced:


\placefigure[][]{Two images}
{
\startcombination[2*1]
  {\externalfigure[img_a][height=5cm]}{(a) A very nice woman.}
  {\externalfigure[img_b][height=5cm]}{(b) An ugly man.}
\stopcombination
}

[-- Attachment #2: pokus.tex --]
[-- Type: text/x-tex, Size: 456 bytes --]



\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]


\starttext


\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm] \NC \externalfigure[img_b][height=5cm] \NC\NR
\NC (a) \NC (b) \SR
\NC \use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR
\NC \use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

[-- Attachment #3: img1.png --]
[-- Type: image/png, Size: 2367 bytes --]

[-- Attachment #4: img2.png --]
[-- Type: image/png, Size: 3041 bytes --]

[-- Attachment #5: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: images in table - luatex freezed
  2007-08-14  9:03   ` zs
@ 2007-08-14 11:11     ` Taco Hoekwater
  0 siblings, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2007-08-14 11:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

zs wrote:
>> not here.
>> In attachment my log.
>>
>>
> 
> You are right.
> After upgrade to luaTeX Version 3.141592-beta-0.10.2 problem
> disappeared.

FYI: the \use{2} was the problem, this expanded into \span, and that
was incorrectly handled in 0.10.1

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: images in table - luatex freezed
  2007-08-14  7:08 ` luigi scarso
@ 2007-08-14  9:03   ` zs
  2007-08-14 11:11     ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: zs @ 2007-08-14  9:03 UTC (permalink / raw)
  To: ntg-context

> not here.
> In attachment my log.
> 
> 

You are right.
After upgrade to luaTeX Version 3.141592-beta-0.10.2 problem
disappeared.

Thanks for interest.

ZS
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: images in table - luatex freezed
  2007-08-13 21:57 zs
@ 2007-08-14  7:08 ` luigi scarso
  2007-08-14  9:03   ` zs
  0 siblings, 1 reply; 5+ messages in thread
From: luigi scarso @ 2007-08-14  7:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

On 8/13/07, zs <stryhal@sci.ujep.cz> wrote:
> Hi
>
> This code causes context/luatex to freeze using 100% of CPU.
not here.
In attachment my log.


-- 
luigi
----------------------------------------------------------------
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pokus.log --]
[-- Type: text/x-log; name="pokus.log", Size: 5770 bytes --]

This is luaTeX, Version 3.141592-beta-0.10.2-2007081403 (Web2C 7.5.6) (format=cont-en 2007.8.14)  14 AUG 2007 09:05
**pokus.tex
(./pokus.tex

ConTeXt  ver: 2007.08.09 13:04 MKIV  fmt: 2007.8.14  int: english/english

language        : language en is active
system          : cont-new loaded
(/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/cont-new.mkiv) (/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/cont-mtx.tex))
system          : cont-old loaded
(/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys loaded
(/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/user/cont-sys.tex)
bodyfont        : 12pt rm is loaded
language        : patterns nl->default:default->1->2:3 fr->default:default->2->2:3 de->default:default->3->2:3 it->default:default->4->2:3 pt->default:default->5->2:3 hr->default:default->6->2:3 pl->default:default->7->2:3 cz->default:default->8->2:3 sk->default:default->9->2:3 sl->default:default->10->2:3 ru->default:default->12->2:3 en->default:default->13->2:3 uk->default:default->14->2:3 us->default:default->[13]->2:3 agr->default:default->15->2:3 da->default:default->16->2:3 sv->default:default->17->2:3 af->default:default->[1]->2:3 no->default:default->18->2:3 deo->default:default->19->2:3 es->default:default->20->2:3 ca->default:default->21->2:3 la->default:default->22->2:3 ro->default:default->23->2:3 tr->default:default->24->2:3 fi->default:default->26->2:3 hu->default:default->27->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : pokus.top loaded
(./pokus.top
specials        : loading definition file tpd
(/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/spec-fdf.tex (/opt/texlive/ContextMKiv/tex/texmf-local/tex/context/base/spec-fdf.mkiv))
specials        : fdf loaded
)
specials        : fdf,tpd loaded
) (./pokus.tuo) (./pokus.tuo)
systems         : begin file pokus at line 7
fonts           : resetting map file list
{/opt/texlive/ContextMKiv/tex/texmf-local/fonts/map/pdftex/context/original-empty.map}
fonts           : using map file: lm-texnansi
{/opt/texlive/ContextMKiv/tex/texmf/fonts/map/dvips/lm/lm-texnansi.map}
fonts           : using map file: original-base
{/opt/texlive/ContextMKiv/tex/texmf-local/fonts/map/pdftex/context/original-base.map}
fonts           : using map file: lm-ec
{/opt/texlive/ContextMKiv/tex/texmf/fonts/map/dvips/lm/lm-ec.map}
fonts           : using map file: lm-math
{/opt/texlive/ContextMKiv/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts           : using map file: lm-rm
{/opt/texlive/ContextMKiv/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           : using map file: original-ams-base
{/opt/texlive/ContextMKiv/tex/texmf-local/fonts/map/pdftex/context/original-ams-base.map}
fonts           : using map file: original-ams-euler
{/opt/texlive/ContextMKiv/tex/texmf-local/fonts/map/pdftex/context/original-ams-euler.map}
fonts           : using map file: original-public-lm
{/opt/texlive/ContextMKiv/tex/texmf-local/fonts/map/pdftex/context/original-public-lm.map} <./img1.png (PNG copy)>
figures         : dimensions of img1.png loaded from figurefile itself
 <./img2.png (PNG copy)>
figures         : dimensions of img2.png loaded from figurefile itself
floatblocks     : 1 placed
lua             : tfm over afm, wide fonts not yet supported
lua             : input load time - 0.040 seconds
lua             : fonts load time - 1.400 seconds
lua             : mps conversion time - 0.000 seconds
lua             : node processing time - 0.000 second
lua             : used config path - /opt/texlive/ContextMKiv/tex/texmf{-local,}/web2c
lua             : used cache path - /root/.contextMKiv/luatex-cache/context/ddb23d47a66e40f74407ab92ae8d787f
lua             : modules/dumps/instances - 67/9/1
lua             : current memory usage - 87718957 bytes
lua             : loaded fonts - lmroman10-bolditalic*default:otf lmroman10-boldoblique*default:otf lmroman10-capsregular*default:otf lmroman10-italic*default:otf lmroman10-oblique*default:otf lmroman12-bold*default:otf lmroman12-italic*default:otf lmroman12-oblique*default:otf lmroman12-regular*default:otf lmroman5-bold*default:otf lmroman5-regular*default:otf lmroman7-bold*default:otf lmroman7-regular*default:otf lmroman9-bold*default:otf lmroman9-italic*default:otf lmroman9-oblique*default:otf lmroman9-regular*default:otf
[1.1]
systems         : end file pokus at line 21
 ) 
Here is how much of TeX's memory you used:
 1000 strings out of 223291
 15864 string characters out of 1359799
 100604,552014 words of node,token memory allocated
 37556 multiletter control sequences out of 65536+100000
 50 fonts using 1369514 bytes
 366 hyphenation exceptions out of 8191
 48i,19n,52p,221b,1080s stack positions out of 10000i,500n,6000p,4000000b,50000s
</opt/texlive/ContextMKiv/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf></opt/texlive/ContextMKiv/tex/texmf/fonts/opentype/public/lm/lmroman9-regular.otf></opt/texlive/ContextMKiv/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
Output written on pokus.pdf (1 page, 13923 bytes).
PDF statistics:
 25 PDF objects out of 1000 (max. 8388607)
 17 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 13 words of extra memory for PDF output out of 10000 (max. 10000000)


[-- Attachment #3: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* images in table - luatex freezed
@ 2007-08-13 21:57 zs
  2007-08-14  7:08 ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: zs @ 2007-08-13 21:57 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

Hi

This code causes context/luatex to freeze using 100% of CPU.


\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]

\starttext

\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm]
\NC \externalfigure[img_b][height=5cm] \NC\NR \NC (a) \NC (b) \SR \NC
\use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR \NC
\use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

Any idea why?

The code worked in context/pdftex from texlive.
It has nothing to do with particular images (tried different png, jpg).
Source code and sample images are attached.

ZS




PS. Something similar to following should be produced:


\placefigure[][]{Two images}
{
\startcombination[2*1]
  {\externalfigure[img_a][height=5cm]}{(a) A very nice woman.}
  {\externalfigure[img_b][height=5cm]}{(b) An ugly man.}
\stopcombination
}

[-- Attachment #2: pokus.tex --]
[-- Type: text/x-tex, Size: 456 bytes --]



\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]


\starttext


\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm] \NC \externalfigure[img_b][height=5cm] \NC\NR
\NC (a) \NC (b) \SR
\NC \use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR
\NC \use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

[-- Attachment #3: img1.png --]
[-- Type: image/png, Size: 2367 bytes --]

[-- Attachment #4: img2.png --]
[-- Type: image/png, Size: 3041 bytes --]

[-- Attachment #5: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2007-08-14 11:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-13 22:31 images in table - luatex freezed zs
  -- strict thread matches above, loose matches on Subject: below --
2007-08-13 21:57 zs
2007-08-14  7:08 ` luigi scarso
2007-08-14  9:03   ` zs
2007-08-14 11:11     ` Taco Hoekwater

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).