#13713: view generates a LaTex (memory?) error on a graph of size 24
-------------------------------------+--------------------------------------
       Reporter:  slabbe             |         Owner:  tbd     
           Type:  defect             |        Status:  new     
       Priority:  major              |     Milestone:  sage-5.5
      Component:  optional packages  |    Resolution:          
       Keywords:  dot2tex            |   Work issues:          
Report Upstream:  N/A                |     Reviewers:          
        Authors:                     |     Merged in:          
   Dependencies:                     |      Stopgaps:          
-------------------------------------+--------------------------------------

Comment (by slabbe):

 > If you run `view(G, debug=True)`, you should get more information about
 the error.

 In a working example, relevant part of the log is below. So if I
 understand correctly, the command view is first trying the path tex -> dvi
 -> png, if some error occurs, then tries dvi -> ps -> pdf. And now I
 understand why it is so slow when it works::

 {{{
 sage: sage: G.set_latex_options(format='dot2tex', prog='neato')
 sage: view(G, debug=True)
 \documentclass{article}
 ...
 \begin{document}
 ...
 \end{document}
 ['sage-native-execute', 'latex', '\\nonstopmode', '\\input{sage.tex}']
 ['sage-native-execute', 'dvipng', '--picky', '-q', '-T', 'tight', '-D',
 '150', 'sage.dvi', '-o', 'sage.png']
 This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
 entering extended mode
 LaTeX2e <2009/09/24>
 Babel ...
 ...
 Output written on sage.dvi (1 page, 32420 bytes).
 Transcript written on sage.log.
 This is dvipng 1.12 Copyright 2002-2008 Jan-Ake Larsson
 GPL Ghostscript 8.70: Unrecoverable error, exit code 1
 ...
 GPL Ghostscript 8.70: Unrecoverable error, exit code 1
 bad dvi file; running dvips and ps2pdf instead...
 ['sage-native-execute', 'dvips', 'sage.dvi']
 ['sage-native-execute', 'ps2pdf', 'sage.ps']
 This is dvips(k) 5.98 Copyright 2009 Radical Eye Software
 (www.radicaleye.com)
 ' TeX output 2012.11.16:0002' -> sage.ps
 ...
 viewer: "sage-open"
 sage:
 }}}

 And, now the log of the non working example is below. There are some
 Overfull vbox and hbox during the latex -> dvi phase so that the next dvi
 -> png ends with an error and thus does not try "running dvips and ps2pdf
 instead..." as above :

 {{{
 sage: sage: G.set_latex_options(format='dot2tex', prog='dot')
 sage: view(G, debug=True)
 \documentclass{article}
 ...
 \begin{document}
 ...
 \end{document}
 ['sage-native-execute', 'latex', '\\nonstopmode', '\\input{sage.tex}']
 ['sage-native-execute', 'dvipng', '--picky', '-q', '-T', 'tight', '-D',
 '150', 'sage.dvi', '-o', 'sage.png']
 This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
 entering extended mode
 LaTeX2e <2009/09/24>
 Babel ...
 ...
 Overfull \hbox (138.51622pt too wide) detected at line 119
 []
 [1]
 Overfull \vbox (677.07953pt too high) has occurred while \output is active
 [2] (./sage.aux) )
 (see the transcript file for additional information)
 Output written on sage.dvi (2 pages, 35212 bytes).
 Transcript written on sage.log.
 This is dvipng 1.12 Copyright 2002-2008 Jan-Ake Larsson
 GPL Ghostscript 8.70: Unrecoverable error, exit code 1
 ...
 GPL Ghostscript 8.70: Unrecoverable error, exit code 1
 An error occurred.
 This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=latex
 2011.4.19)  15 NOV 2012 23:59
 entering extended mode
 ...
 ...
 ...
 ...
 ...
 Overfull \hbox (138.51622pt too wide) detected at line 119 [] []
 [1] Overfull \vbox (677.07953pt too high) has occurred while \output is
 active []
 ...
 ...
 Output written on sage.dvi (2 pages, 35212 bytes).

 Latex error
 sage:
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13713#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to