Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer too small in PasteTerm? #402

Closed
magv opened this issue Dec 14, 2021 · 4 comments
Closed

Buffer too small in PasteTerm? #402

magv opened this issue Dec 14, 2021 · 4 comments
Labels
question Question about FORM

Comments

@magv
Copy link
Contributor

magv commented Dec 14, 2021

Hi, folks. I'm getting this error from the latest tform:

[...]
Buffer too small in PasteTerm

   18  241  5  0  4294967280  357  1  4  89  1  6  5  1771  82003  0  1  2  3

Called from Generator

   18  241  5  0  4294967280  357  1  4  58  82003  6  5  1730  1  0  1  1  3

Called from Generator

   26  241  5  0  4294967280  357  6  13  2  1  0  5  4  3494967100  
   3494967103  5  4  3494967101  3494967102  1  4  58  82003  1  1  3
Called from Generator

   14  241  5  1  4294967280  357  6  5  357  1  2  1  1  3
Called from Generator
Called from ExtraSymFun

   14  241  5  1  4294967280  357  91  5  1  4294967280  357  1  1  3
Called from Generator

   9  6  5  1  1  0  1  1  3
Called from Generator
Error in processing one term in thread 1 in module 59
Program terminating in thread 1 at sort Line 2 --> 

Could you tell me which buffer is too small? What option should I increase?

@vermaseren
Copy link
Owner

vermaseren commented Dec 14, 2021 via email

@magv
Copy link
Contributor Author

magv commented Dec 14, 2021

It seems this happens even if no binomial expansion is done. This is the minimal example:

S x;
L ex = x^12345;
id x = 1;
.end

Fails with:

FORM 4.2.1 (Oct 21 2021, v4.2.1-32-g07d135f-dirty) 64-bits  Run: Tue Dec 14 13:57:36 2021
    S x;
    L ex = x^12345;
    id x = 1;
    .end
Buffer too small in PasteTerm
Program terminating at x.frm Line 3 --> 
  0.09 sec out of 0.09 sec

This is unexpected, but I can change my code not to use these large exponents. (I used them for tagging terms; I thought that TAG^123 is more efficiently stored than TAG(123)).

@vermaseren
Copy link
Owner

vermaseren commented Dec 14, 2021 via email

@magv
Copy link
Contributor Author

magv commented Dec 14, 2021

You're right, thanks; I'll use id x^n? = 1;, which solves the problem in my code.

I guess the "Buffer too small in PasteTerm" error message could still use an improvement.

@magv magv closed this as completed Dec 14, 2021
@tueda tueda added the question Question about FORM label Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about FORM
Projects
None yet
Development

No branches or pull requests

3 participants