[
https://issues.apache.org/jira/browse/PDFBOX-4601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16890959#comment-16890959
]
Andreas Lehmkühler edited comment on PDFBOX-4601 at 10/27/19 9:34 PM:
----------------------------------------------------------------------
below is debug log after new build is applied, and it looks like new fix is
working fine.
{code:java}
[2019-07-23 12:35:10.210] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp
[2019-07-23 12:35:10.211] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.211] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0
[2019-07-23 12:35:10.211] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.234] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp
[2019-07-23 12:35:10.234] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.234] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.234] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.253] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp
[2019-07-23 12:35:10.253] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.253] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 196608, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.253] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 196608, raf length: 196608, file length: 196608
[2019-07-23 12:35:10.290] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp
[2019-07-23 12:35:10.290] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 196608, raf length: 196608, file length: 196608
[2019-07-23 12:35:10.290] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 262144, raf length: 196608, file length: 196608
[2019-07-23 12:35:10.290] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 262144, raf length: 262144, file length: 262144
[2019-07-23 12:35:10.291] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp
[2019-07-23 12:35:10.291] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 262144, raf length: 262144, file length: 262144
[2019-07-23 12:35:10.291] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 327680, raf length: 262144, file length: 262144
[2019-07-23 12:35:10.291] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 327680, raf length: 327680, file length: 327680
[2019-07-23 12:35:10.294] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp
[2019-07-23 12:35:10.294] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 327680, raf length: 327680, file length: 327680
[2019-07-23 12:35:10.294] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 393216, raf length: 327680, file length: 327680
[2019-07-23 12:35:10.295] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 393216, raf length: 393216, file length: 393216
[2019-07-23 12:35:10.308] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp
[2019-07-23 12:35:10.308] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.308] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0
[2019-07-23 12:35:10.308] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.309] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp
[2019-07-23 12:35:10.309] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.309] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.309] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.310] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp
[2019-07-23 12:35:10.310] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.310] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 196608, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.310] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 196608, raf length: 196608, file length: 196608
[2019-07-23 12:35:10.314] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox8465819793836754914.tmp
[2019-07-23 12:35:10.314] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.314] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0
[2019-07-23 12:35:10.314] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.321] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox8465819793836754914.tmp
[2019-07-23 12:35:10.321] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.322] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.322] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.329] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox8465819793836754914.tmp
[2019-07-23 12:35:10.329] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.329] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 196608, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.329] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 196608, raf length: 196608, file length: 196608
[2019-07-23 12:35:10.331] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp
[2019-07-23 12:35:10.332] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 196608, raf length: 196608, file length: 196608
[2019-07-23 12:35:10.332] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 262144, raf length: 196608, file length: 196608
[2019-07-23 12:35:10.332] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 262144, raf length: 262144, file length: 262144
[2019-07-23 12:35:10.332] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp
[2019-07-23 12:35:10.333] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 262144, raf length: 262144, file length: 262144
[2019-07-23 12:35:10.333] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 327680, raf length: 262144, file length: 262144
[2019-07-23 12:35:10.333] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 327680, raf length: 327680, file length: 327680
[2019-07-23 12:35:10.335] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox608053563473784115.tmp
[2019-07-23 12:35:10.335] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.335] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0
[2019-07-23 12:35:10.335] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.355] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox608053563473784115.tmp
[2019-07-23 12:35:10.355] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.355] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.355] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.357] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox794718634076747867.tmp
[2019-07-23 12:35:10.357] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.357] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0
[2019-07-23 12:35:10.357] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.370] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox794718634076747867.tmp
[2019-07-23 12:35:10.370] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 65536, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.370] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536
[2019-07-23 12:35:10.370] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 131072, raf length: 131072, file length: 131072
[2019-07-23 12:35:10.371] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp
[2019-07-23 12:35:10.371] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
before: 327680, raf length: 327680, file length: 327680
[2019-07-23 12:35:10.371] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 393216, raf length: 327680, file length: 327680
[2019-07-23 12:35:10.371] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 393216, raf length: 393216, file length: 393216
{code}
was (Author: debnath):
below is debug log after new build is applied, and it looks like new fix is
working fine.
{code:java}
[2019-07-23 12:35:10.210] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp [2019-07-23 12:35:10.211] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.211] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0 [2019-07-23 12:35:10.211] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.234] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp [2019-07-23 12:35:10.234] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.234] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536 [2019-07-23 12:35:10.234]
o1nbcuni [[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.253] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp [2019-07-23 12:35:10.253] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.253] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 196608, raf length: 131072, file length: 131072 [2019-07-23
12:35:10.253] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 196608, raf length: 196608, file length: 196608 [2019-07-23
12:35:10.290] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp [2019-07-23 12:35:10.290] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 196608, raf length: 196608, file length:
196608 [2019-07-23 12:35:10.290] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 262144, raf length: 196608, file length: 196608 [2019-07-23
12:35:10.290] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 262144, raf length: 262144, file length: 262144 [2019-07-23
12:35:10.291] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp [2019-07-23 12:35:10.291] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 262144, raf length: 262144, file length:
262144 [2019-07-23 12:35:10.291] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 327680, raf length: 262144, file length: 262144 [2019-07-23
12:35:10.291] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 327680, raf length: 327680, file length: 327680 [2019-07-23
12:35:10.294] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox7398881165555970646.tmp [2019-07-23 12:35:10.294] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 327680, raf length: 327680, file length:
327680 [2019-07-23 12:35:10.294] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 393216, raf length: 327680, file length: 327680 [2019-07-23
12:35:10.295] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 393216, raf length: 393216, file length: 393216 [2019-07-23
12:35:10.308] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp [2019-07-23 12:35:10.308] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.308] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0 [2019-07-23 12:35:10.308] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.309] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp [2019-07-23 12:35:10.309] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.309] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536 [2019-07-23 12:35:10.309]
o1nbcuni [[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.310] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp [2019-07-23 12:35:10.310] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.310] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 196608, raf length: 131072, file length: 131072 [2019-07-23
12:35:10.310] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 196608, raf length: 196608, file length: 196608 [2019-07-23
12:35:10.314] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox8465819793836754914.tmp [2019-07-23 12:35:10.314] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.314] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0 [2019-07-23 12:35:10.314] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.321] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox8465819793836754914.tmp [2019-07-23 12:35:10.321] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.322] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536 [2019-07-23 12:35:10.322]
o1nbcuni [[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.329] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox8465819793836754914.tmp [2019-07-23 12:35:10.329] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.329] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 196608, raf length: 131072, file length: 131072 [2019-07-23
12:35:10.329] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 196608, raf length: 196608, file length: 196608 [2019-07-23
12:35:10.331] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp [2019-07-23 12:35:10.332] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 196608, raf length: 196608, file length:
196608 [2019-07-23 12:35:10.332] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 262144, raf length: 196608, file length: 196608 [2019-07-23
12:35:10.332] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 262144, raf length: 262144, file length: 262144 [2019-07-23
12:35:10.332] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp [2019-07-23 12:35:10.333] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 262144, raf length: 262144, file length:
262144 [2019-07-23 12:35:10.333] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 327680, raf length: 262144, file length: 262144 [2019-07-23
12:35:10.333] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 327680, raf length: 327680, file length: 327680 [2019-07-23
12:35:10.335] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox608053563473784115.tmp [2019-07-23 12:35:10.335] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.335] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0 [2019-07-23 12:35:10.335] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.355] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox608053563473784115.tmp [2019-07-23 12:35:10.355] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.355] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536 [2019-07-23 12:35:10.355]
o1nbcuni [[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.357] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox794718634076747867.tmp [2019-07-23 12:35:10.357] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 0, raf length: 0, file length: 0
[2019-07-23 12:35:10.357] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 65536, raf length: 0, file length: 0 [2019-07-23 12:35:10.357] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.370] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox794718634076747867.tmp [2019-07-23 12:35:10.370] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 65536, raf length: 65536, file length:
65536 [2019-07-23 12:35:10.370] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 131072, raf length: 65536, file length: 65536 [2019-07-23 12:35:10.370]
o1nbcuni [[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen after2: 131072, raf length: 131072, file length:
131072 [2019-07-23 12:35:10.371] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - file:
/tmp/PDFBox307065635342147085.tmp [2019-07-23 12:35:10.371] o1nbcuni
[[email protected]] 3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG
o.a.p.i.ScratchFile - fileLen before: 327680, raf length: 327680, file length:
327680 [2019-07-23 12:35:10.371] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after1: 393216, raf length: 327680, file length: 327680 [2019-07-23
12:35:10.371] o1nbcuni [[email protected]]
3228e8a1-1c97-423a-a49c-3b82e529c1c5 DEBUG o.a.p.i.ScratchFile - fileLen
after2: 393216, raf length: 393216, file length: 393216
{code}
> in AWS lambda pdf merge giving error as Error in pdf consolidation: Expected
> scratch file size of 196608 but found 192512
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-4601
> URL: https://issues.apache.org/jira/browse/PDFBOX-4601
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.12, 2.0.16
> Environment: AWS Lambda
> Reporter: biswajit
> Priority: Major
> Fix For: 2.0.18
>
>
> in AWS lambda pdf merge giving error as
> {{Error in pdf consolidation: Expected scratch file size of 196608 but found
> 192512.}}
> *Code:*
> {code}
> PDFMergerUtility pdfMerger = new PDFMergerUtility();
> pdfMerger.addSources(sources);
> pdfMerger.setDestinationStream(mergedPDFOutputStream);
> pdfMerger.mergeDocuments(MemoryUsageSetting.setupTempFileOnly());
> {code}
> both InputStream and OutputStream are ByteArrayInputStream and
> ByteArrayOutputStream. AWS Lambda environment has 512MB space available only
> for /tmp partition. This could be an issue or not I am not sure. And AWS
> lambda do not permit other directory than /tmp partition to create files.
> And while reading into the code I found below piece of code which I think
> always be true. Because if you add some constant amount to an integer that
> will always be constant amount greater than its original value
> in ScratchFile.java => enlarge() method:
> {code}
> if (pageCount + ENLARGE_PAGE_COUNT > pageCount)
> {
> fileLen += ENLARGE_PAGE_COUNT * PAGE_SIZE;
> raf.setLength(fileLen);
> freePages.set(pageCount, pageCount + ENLARGE_PAGE_COUNT);
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]