bugGNU TeXmacs - Bugs: bug #50592, Typesetter crashes with this...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #50592: Typesetter crashes with this simple documemt, doc-data scheme macro may be critical to this

Submitted by:  Sam Liddicott <samjam>
Submitted on:  Mon 20 Mar 2017 12:22:57 PM UTC  
 
Category:  Typesetter Priority:  5 - Normal
Item Group:  Error Status:  Need Info
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  Release:  None
Fixed Release:  None Fixed Release: 
Keywords: 

Thu 23 Mar 2017 12:15:59 PM UTC, comment #5: 

As the definition of doc-data is an extern function:
  <assign|doc-data|<xmacro|args|<extern|doc-data|<quote-arg|args>>>>
I don't think it can easily be substituted

I have altered the summary to hint that doc-data scheme macro may be critical to this

Sam Liddicott <samjam>
Project Member
Wed 22 Mar 2017 09:06:45 PM UTC, comment #4: 

Philippe, I appreciate your attention.

I carefully resisted reducing the document to the point at which the bug no longer occurs, otherwise there would be nothing to investigate.

In your simplification I think that you have replaced the call to doc-title with the definition of doc-make-title, and this is not a valid substitution, it's not the same macro.

I backed out a similar reduction when the bug was no longer triggered.

I hinted this in my previous message where I listed necessary elements to re-produce it.

"<doc-data|<doc-title|Qui dolorem ipsum >>"

I haven't found anything to suggest that it is not a typesetter problem; I certainly don't believe that a bug in macro definitions could cause the observed behaviour.

Sam Liddicott <samjam>
Project Member
Wed 22 Mar 2017 07:34:30 PM UTC, comment #3: 

Ok, shorter is definitely better for debugging. You have not yet reached the bare minimum, though:

<doc-data|<doc-title|<no-indent><new-page*><superpose|<move|<clipped|<image|<tuple|<raw-data>|ps>|21cm|||>|||21cm|16cm>|-3cm|-8cm>|<move|<image|<tuple|<raw-data>|ps>|4.93cm|||>|10cm|-21cm>|Qui dolorem ipsum><new-page><right-flush>>>

and... the issue is gone! So it seems your issue is actually linked with using macros...!?

One should now try to figure which macro def is causing the issue. And once this is done, the bug summary should be revised.

Philippe Joyez <pjoyez>
Project Member
Tue 21 Mar 2017 09:28:18 AM UTC, comment #2: 

I haven't found any preference setting to use the new typesetter and so have not set this.

I attach a 28 line document which demonstrates the problem.

  <doc-data|<doc-title|Qui dolorem ipsum >>

is still required to make it crash, so are both graphics.

All the 3 problems still exist, including the very slow document editing

(file #40044)

Sam Liddicott <samjam>
Project Member
Mon 20 Mar 2017 09:11:19 PM UTC, comment #1: 

Thank you for reporting here, which is more convenient than the mailing list for keeping track of issues and monitoring progress.

However, I insist that this is absolutely NOT a SIMPLE document if the purpose is debugging. Could you please eliminate everything that is not necessary to manifest the bug (all macros, extra figure, superfluous text, title, whatever it takes!). If, as you suggest, it is a typesetting problem, then one should not need to define any macro to provoke the bug. Ideally the bug report should reduce to describing a few operations in a blank document that lead to the occurence of the problem.

If you think this is asking too much work from you, you should realize that it will require even more work from anyone else who has not authored that document and who'll first need to figure the logic of your macros to get rid of them.

Also you say this is maybe related to #49162. Did you try changing the preference regarding the use of the new typesetter?

Philippe Joyez <pjoyez>
Project Member
Mon 20 Mar 2017 12:22:57 PM UTC, original submission:  

Possibly duplicaye of #49162

Try this document in latest TeXmacs HEAD.

1. Try changing Document, Page, Screen Rendering to paper, and the document will be cleared from memory with a C stack trace and scheme stack trace on the launching terminal window.

The resolution seems to be to amend the logo-foot macro and change the y movement from 21cm to 1cm, so I think the error is that texmacs can't cope with a movement out of the rendering area.

2. Reload and try ctrl+P to generate PDF and the UI will freeze leaving a stack trace in the terminal window.

possibly the same bug as above

3. And otherwise editing the document is perniciously slow. That slowness can be removed by moving the preamble into a style file, but it still seems very wrong.

Sam Liddicott <samjam>
Project Member

 

Attached Files
file #40044:  crash-28.tm added by samjam (237KiB - text/x-texmacs - Much simpler file)
file #40036:  crash.tm added by samjam (251KiB - text/x-texmacs)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by samjam (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-23 samjam SummaryTypesetter crashes with this simple documemt => Typesetter crashes with this simple documemt, doc-data scheme macro may be critical to this
    2017-03-21 samjam Attached File- => Added crash-28.tm, #40044
    2017-03-20 pjoyez StatusNone => Need Info
    2017-03-20 samjam Attached File- => Added crash.tm, #40036

    Back to the top


    Powered by Savane 3.5