Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1271094 > unrolled thread

Bug#1121061: libreoffice: undocumented limit of 249 arguments

Started byRene Engelhard <rene@debian.org>
First post2025-11-21 22:40 +0100
Last post2025-11-22 02:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.dist

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1121061: libreoffice: undocumented limit of 249 arguments Rene Engelhard <rene@debian.org> - 2025-11-21 22:40 +0100
    Bug#1121061: libreoffice: undocumented limit of 249 arguments Francesco Potortì <Potorti@isti.cnr.it> - 2025-11-22 02:40 +0100

#1271094 — Bug#1121061: libreoffice: undocumented limit of 249 arguments

FromRene Engelhard <rene@debian.org>
Date2025-11-21 22:40 +0100
SubjectBug#1121061: libreoffice: undocumented limit of 249 arguments
Message-ID<LTH1f-eIIK-7@gated-at.bofh.it>
Hi again,

Am 21.11.25 um 22:27 schrieb Rene Engelhard:
> Am 20.11.25 um 13:20 schrieb Francesco Potortì:
>> When libreoffice is called from the command line for batch processing with --convert-to it apparently forces a limit on the number of arguments without telling.
>>
>> In my case, when giving the names of 371 files on the command line, it starts working and printing two lines for each processed file until 249 files are processed, then it hangs.
>>
>> If I give it 249 file arguments, it works without problems.  The command line is:
>>
>> /usr/lib/libreoffice/program/oosplash --convert-to csv:Text - txt - csv (StarCalc):44,,,,,,,,,,,3 --outdir ./tmp.GYzB1YV6z1 [ 42-char file names]
> 
> I can't even reproduce this
> 
> - created 250 files, each with 42char file names
> 
> - ran --convert-to pdf
> 
> Works:
> 
> rene@frodo:~/test$ echo -n "000000000000000000000000000000000000000001" | wc -c && for i in `seq -w 0000000000000000000000000000000000000000001 0000000000000000000000000000000000000000251`; do touch echo $i > $i; done && ls -1 0* | wc -l; libreoffice --convert-to pdf * && ls -1 *.pdf | wc -l

forgot to remove the touch here after initial experiments, but even with correct echo $i > $i (-> with a non-empty file..) etc it works.

Regards,
  
Rene

[toc] | [next] | [standalone]


#1271110

FromFrancesco Potortì <Potorti@isti.cnr.it>
Date2025-11-22 02:40 +0100
Message-ID<LTKLv-eL8C-1@gated-at.bofh.it>
In reply to#1271094
>> I can't even reproduce this
>> - created 250 files, each with 42char file names
>> - ran --convert-to pdf

It works becase you have just hit the limit at 251, as I explain in my previous email.

If you just retry your experiment with more than 251 files you'll see that it processes 251 files and that's all.  The line length does not matter, it's the number of arguments.

-- 
Francesco Potortì (ricercatore)        Mobile: +39.348.8283.107	     
ISTI - Area della ricerca CNR          Teams:  wnlabisti	     
via G. Moruzzi 1, I-56124 Pisa         Web:    http://fly.isti.cnr.it
(gate 20, 1st floor, room C71)         ISPIN:  https://ieee-jispin.org/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web