-
Notifications
You must be signed in to change notification settings - Fork 1
/
mupdf_mujstest_script.failure-notes.txt
12089 lines (10663 loc) · 722 KB
/
mupdf_mujstest_script.failure-notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
`mupdf` memory issue:
```
muconvert INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf
```
stdout / stderr:
```
'% PDF: INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf'
'% dir: INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4'
'% name: 458B1F6296CFA32442F7CC47752231F74B89E54D.pdf'
'% base: 458B1F6296CFA32442F7CC47752231F74B89E54D'
'CD F:/Qiqqa/evil-base'
'MUTOOL mudraw -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.ocr.html" -s mtf5 -r 150 -x preserve-ligatures,preserve-whitespace,dehyphenate -y l "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"'
Layer configs:
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 1 grayscaleError opening data file W:\Projects\sites\library.visyond.gov\80\lib\CS\MuPDF\platform\win32\Debug-64/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
error: Tesseract initialisation failed
warning: dropping unclosed device
error: cannot draw 'INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf': Tesseract initialisation failed
Allocations total=1807
error executing MUTOOL command: mudraw -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.ocr.html" -s mtf5 -r 150 -x preserve-ligatures,preserve-whitespace,dehyphenate -y l "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"
'MUTOOL muconvert -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.convert.pdf" -W 1200 -H 1800 "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"'
OK: MUTOOL command: muconvert -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.convert.pdf" -W 1200 -H 1800 "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 1warning: found duplicate fz_icc_link in the store
19ms (interpretation) 467ms (rendering) 486ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 2 32ms (interpretation) 306ms (rendering) 338ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 3
```
**CRASH**
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-71120B277417F57C6496F63EE705197262F7AA.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 1warning: found duplicate fz_icc_link in the store
21ms (interpretation) 311ms (rendering) 332ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 2 8ms (interpretation) 35ms (rendering) 43ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 3 18ms (interpretation) 138ms (rendering) 156ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 4 15ms (interpretation) 143ms (rendering) 158ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 5 15ms (interpretation) 147ms (rendering) 162ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 6
```
**CRASH**
```
OK: MUTOOL command: muconvert -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.convert.pdf" -W 1200 -H 1800 "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.pdf"
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.pdf 1 13ms (interpretation) 230ms (rendering) 243ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.pdf 2
```
**CRASH**
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-7E70426EE6C56414553F313EE285F64734EBBF.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 1 1ms (interpretation) 182ms (rendering) 183ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 2 23ms (interpretation) 115ms (rendering) 138ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 3 29ms (interpretation) 84ms (rendering) 113ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 4 15ms (interpretation) 104ms (rendering) 119ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 5 7ms (interpretation) 91ms (rendering) 98ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 6 5ms (interpretation) 31ms (rendering) 36ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 7
```
**CRASH**
```
Glyph Cache Size: 1048431
Glyph Cache Evictions: 144013 (71527649 bytes)
page Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/PDF32000_2008.pdf 756 6ms (interpretation) 103ms (rendering) 109ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 144015 (71528593 bytes)
total 132018ms / 756 pages for an average of 174ms
fastest page 654: 36ms
slowest page 403: 7727ms
warning: ... repeated 2 times...
Memory use total=5508642498 peak=42052316 current=0
```
---NO CRASH, just huge memory usage and slow rendering!---
```
'MUTOOL trace -o "__mujstest/Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/%04d-pdfmark_reference.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/pdfmark_reference.pdf"'
OK: MUTOOL command: trace -o "__mujstest/Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/%04d-pdfmark_reference.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/pdfmark_reference.pdf"
T:1964ms D:94.662s OK MUTOOL trace -o "__mujstest/Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/%04d-pdfmark_reference.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/pdfmark_reference.pdf"
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/pdfmark_reference.pdf" "__mujstest/Sample-PDFs-for-format-testing/PDF.js-issue-PDFs/%04d-pdfmark_reference.clean.pdf"'
warning: deduplication cost pathological at O(75104768)?
```
--slow clean without the timeout patch--
```
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/PDFIO-format-corpus/govdocs1-error-pdfs/error_set_1/499039.pdf" "__mujstest/Sample-PDFs-for-format-testing/PDFIO-format-corpus/govdocs1-error-pdfs/error_set_1/%04d-499039.clean.pdf"'
```
warning: deduplication cost pathological at O(588485124)?
```
warning: cannot render glyph
warning: FT_Load_Glyph(ICKPOC+HelveticaNeue-Condensed,71,FT_LOAD_NO_HINTING): broken file
warning: FT_Load_Glyph(ICKPOC+HelveticaNeue-Condensed,71,FT_LOAD_NO_SCALE|FT_LOAD_IGNORE_TRANSFORM): broken file
warning: cannot render glyph
warning: FT_Load_Glyph(ICKPOC+HelveticaNeue-Condensed,68,FT_LOAD_NO_HINTING): broken file
warning: FT_Load_Glyph(ICKPOC+HelveticaNeue-Condensed,68,FT_LOAD_NO_SCALE|FT_LOAD_IGNORE_TRANSFORM): broken file
warning: cannot render glyph
13ms (interpretation) 8538ms (rendering) 8551ms (total)
Glyph Cache Size: 1048520
Glyph Cache Evictions: 5101 (2140987 bytes)
page Sample-PDFs-for-format-testing/PDFIO-format-corpus/govdocs1-error-pdfs/error_set_2/178360.pdf 11error: zlib error: invalid distance too far back
warning: read error; treating as end of file
error: zlib error: invalid distance too far back
```
-- no crash, but LOTS of failures --
```
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/PDFIO-format-corpus/govdocs1-error-pdfs/error_set_2/219789.pdf" "__mujstest/Sample-PDFs-for-format-testing/PDFIO-format-corpus/govdocs1-error-pdfs/error_set_2/%04d-219789.clean.pdf"'
```
-- causes infinite loop in the code: hits the 'else if (rune == 32)' branch inside 'static void walk_string(fz_context *ctx, int uni, int remove, editable_str *str)' and loops indefinitely at the same spot as str->pos is not updated.
```
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/PEP20-01-01-006-508.pdf" "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-PEP20-01-01-006-508.clean.pdf"'
```
-- and another one for that infinite loop --
```
OK: MUTOOL command: muconvert -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.convert.pdf" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"
T:122284ms D:4911.867s OK MUTOOL muconvert -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.convert.pdf" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"
```
-- no errors but takes 120 seconds to complete --
```
page Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf 2286 13ms (interpretation) 1122ms (rendering) 1135ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 63808 (33888924 bytes)
total 531963ms / 2286 pages for an average of 232ms
fastest page 2: 26ms
slowest page 545: 31173ms
warning: ... repeated 9 times...
Memory use total=17710823054 peak=395591797 current=0
OK: MUTOOL command: muraster -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.raster.ppm" -s mt -r 150 -P "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"
```
-- 395MB: that's some HUGE memory consumption! --
```
page Sample-PDFs-for-format-testing/testset European Unicode extract & OCR/AH_26-2018-2.pdf 310 34ms (interpretation) 37ms (rendering) 71ms (total)
Glyph Cache Size: 1048369
Glyph Cache Evictions: 40373 (18540939 bytes)
page Sample-PDFs-for-format-testing/testset European Unicode extract & OCR/AH_26-2018-2.pdf 311 3ms (interpretation) 66ms (rendering) 69ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 40374 (18541369 bytes)
total 71802ms / 311 pages for an average of 230ms
fastest page 7: 22ms
slowest page 239: 30350ms
Memory use total=1709316691 peak=94789515 current=0
OK: MUTOOL command: muraster -o "__mujstest/Sample-PDFs-for-format-testing/testset European Unicode extract & OCR/%04d-AH_26-2018-2.raster.ppm" -s mt -r 150 -P "Sample-PDFs-for-format-testing/testset European Unicode extract & OCR/AH_26-2018-2.pdf"
```
-- page 239 takes about half the total render time of the entire PDF --
!!!BAD-1DC618F32245B5B4F143197B5249DCF83A68.extract.image-0004-0001.jpg ...
-- that PDF produced over 7000 jpg files on extract; apparently the pages are constructed from a zillion tiny images --
```
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/9780735626690 (links in TOC seem b0rked in Acrobat DC at least).pdf" "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-9780735626690 (links in TOC seem b0rked in Acrobat DC at least).clean.pdf"'
warning: undefined link destination
warning: ... repeated 359 times...
warning: object out of range (0 0 R); xref size 21798
warning: undefined link destination
warning: deduplication cost pathological at O(237620000)?
```
-- another slow cleaner --
```
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/Engineering-Data-Release_LandingGear.pdf" "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-Engineering-Data-Release_LandingGear.clean.pdf"'
error: cannot create appearance stream for 3D annotations
warning: cannot create appearance stream
warning: deduplication cost pathological at O(85844304)?
OK: MUTOOL command: clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/Engineering-Data-Release_LandingGear.pdf" "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-Engineering-Data-Release_LandingGear.clean.pdf"
T:21172ms D:1469.051s OK MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/Engineering-Data-Release_LandingGear.pdf" "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-Engineering-Data-Release_LandingGear.clean.pdf"
```
-- another slow cleaner, which is restricted by the new 15s time duration hack in the de-dup code --
```
page Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf 2286 12ms (interpretation) 1382ms (rendering) 1394ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 63823 (33897130 bytes)
total 594473ms / 2286 pages for an average of 260ms
fastest page 1633: 22ms
slowest page 1806: 7878ms
warning: ... repeated 7 times...
warning: ... repeated 2 times...
Memory use total=17710831059 peak=395591764 current=0
OK: MUTOOL command: muraster -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.raster.ppm" -s mt -r 150 -P "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"
T:526693ms D:3100.355s OK MUTOOL muraster -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.raster.ppm" -s mt -r 150 -P "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"
'MUTOOL trace -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"'
OK: MUTOOL command: trace -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"
T:128212ms D:3228.570s OK MUTOOL trace -o "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf"
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/TE2000_TC3_HMI_EN.pdf" "__mujstest/Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/%04d-TE2000_TC3_HMI_EN.clean.pdf"'
warning: deduplication cost pathological at O(4069102472)?
```
-- slow going --
```
OK: MUTOOL command: trace -o "__mujstest/Sample-PDFs-for-format-testing/testset misc 2/global/%04d-1f5dd128c3757420a881a155f2f8ace3.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/testset misc 2/global/1f5dd128c3757420a881a155f2f8ace3.pdf"
T:13695ms D:28397.400s OK MUTOOL trace -o "__mujstest/Sample-PDFs-for-format-testing/testset misc 2/global/%04d-1f5dd128c3757420a881a155f2f8ace3.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/testset misc 2/global/1f5dd128c3757420a881a155f2f8ace3.pdf"
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/testset misc 2/global/1f5dd128c3757420a881a155f2f8ace3.pdf" "__mujstest/Sample-PDFs-for-format-testing/testset misc 2/global/%04d-1f5dd128c3757420a881a155f2f8ace3.clean.pdf"'
warning: undefined link destination
```
warning: deduplication cost pathological at O(204606220)?
```
T:29060ms D:30885.487s OK MUTOOL trace -o "__mujstest/Sample-PDFs-for-format-testing/testset misc 2/global/%04d-ec00d5825f47b9d0faa953b1709163c3.trace.txt" -W 1200 -H 1800 "Sample-PDFs-for-format-testing/testset misc 2/global/ec00d5825f47b9d0faa953b1709163c3.pdf"
'MUTOOL clean -gggg -D -c -s -AA "Sample-PDFs-for-format-testing/testset misc 2/global/ec00d5825f47b9d0faa953b1709163c3.pdf" "__mujstest/Sample-PDFs-for-format-testing/testset misc 2/global/%04d-ec00d5825f47b9d0faa953b1709163c3.clean.pdf"'
warning: PDF stream Length incorrect
```
warning: deduplication cost pathological at O(200100012)?
```
'MUTOOL clean -gggg -D -c -s -AA "INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.pdf" "__mujstest/INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/%04d-2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.clean.pdf"'
error: cannot find startxref
warning: trying to repair broken xref after encountering error: cannot find startxref
warning: repairing PDF document
warning: object missing 'endobj' token
warning: deduplication cost pathological at O(53809938)?
OK: MUTOOL command: clean -gggg -D -c -s -AA "INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.pdf" "__mujstest/INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/%04d-2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.clean.pdf"
T:68374ms D:595.226s OK MUTOOL clean -gggg -D -c -s -AA "INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.pdf" "__mujstest/INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/%04d-2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.clean.pdf"
'MUTOOL extract -o "__mujstest/INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/%04d-2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.extract." -r "INTRANET-EVIL-PDF-SAMPLES-FOR-QIQQA/documents/2/2F7BEB491AD6C6E3539C95FB78E6CCF5E4BF772.pdf"'
error: cannot find startxref
warning: trying to repair broken xref after encountering error: cannot find startxref
warning: repairing PDF document
warning: object missing 'endobj' token
```
-- another 'pathological' ... --
```
6568483517080AD2E1EAB5DE0A9AEDD72B0F3AA.pdf"
'MUTOOL mudraw -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/1/%04d-16568483517080AD2E1EAB5DE0A9AEDD72B0F3AA.png" -s mtf5 -r 150 "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/1/16568483517080AD2E1EAB5DE0A9AEDD72B0F3AA.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/1/16568483517080AD2E1EAB5DE0A9AEDD72B0F3AA.pdf 1 color a79b579f2de8e4bd40145b5d7f83db11 776ms
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/1/16568483517080AD2E1EAB5DE0A9AEDD72B0F3AA.pdf 2 color 515b07f9f07ca9fcae9720cd0b1fa9f0 416ms
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
```
-- zero glyphs??? (no errors, just wondering what's going on in there...) ---
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 1 15ms (interpretation) 408ms (rendering) 423ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 2 32ms (interpretation) 293ms (rendering) 325ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 3 37ms (interpretation) 279ms (rendering) 316ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 4
```
**CRASH** (double free???)
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/6/%04d-6581B97C8F4A6CF712F84D81D0BA3155FFB5491.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/6/6581B97C8F4A6CF712F84D81D0BA3155FFB5491.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/6/6581B97C8F4A6CF712F84D81D0BA3155FFB5491.pdf 1warning: found duplicate fz_icc_link in the store
13ms (interpretation) 232ms (rendering) 245ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/6/6581B97C8F4A6CF712F84D81D0BA3155FFB5491.pdf 2 4ms (interpretation) 298ms (rendering) 302ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/6/6581B97C8F4A6CF712F84D81D0BA3155FFB5491.pdf 3
```
**CRASH** (double free???)
-- Hmmmmm. Apparently only happens when other files have been processed previously as running this file as the first in the `mujstest` script does NOT trigger the 'double free' check! --
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-71120B277417F57C6496F63EE705197262F7AA.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 1 19ms (interpretation) 309ms (rendering) 328ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 2 10ms (interpretation) 31ms (rendering) 41ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 3 17ms (interpretation) 134ms (rendering) 151ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 4 16ms (interpretation) 821ms (rendering) 837ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 5 15ms (interpretation) 148ms (rendering) 163ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 6 55ms (interpretation) 151ms (rendering) 206ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 7 61ms (interpretation) 177ms (rendering) 238ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 8 88ms (interpretation) 276ms (rendering) 364ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 9 69ms (interpretation) 170ms (rendering) 239ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 10
```
**CRASH**
-- attempt to use freed memory; pointer is `0xdddddddc` (`dddddddd - 1` as `early=1` in the `jbig2_decode_text_region()` function where this happens --
-- And that one happens at a **different page** in the process when run as the first file in the script, though the crash is at the same spot in the code! Here it that second run: --
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-71120B277417F57C6496F63EE705197262F7AA.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 1 18ms (interpretation) 277ms (rendering) 295ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 2 10ms (interpretation) 37ms (rendering) 47ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 3 23ms (interpretation) 136ms (rendering) 159ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/71120B277417F57C6496F63EE705197262F7AA.pdf 4
```
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7C40AD1A6353764F741E9F8C56ECDDA68061BAF0.pdf 1
```
**CRASH** same error location as above, different file though.
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/%04d-7E70426EE6C56414553F313EE285F64734EBBF.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 1 1ms (interpretation) 184ms (rendering) 185ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/7/7E70426EE6C56414553F313EE285F64734EBBF.pdf 2
```
**CRASH** one more of the same...
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/%04d-808CA451AE74835B9BA0DA1DCA9DB4C2A057.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf 1warning: found duplicate fz_image in the store
warning: found duplicate fz_image in the store
84ms (interpretation) 2823ms (rendering) 2907ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf 2warning: found duplicate fz_icc_link in the store
warning: found duplicate fz_icc_link in the store
7ms (interpretation) 432ms (rendering) 439ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf 3 13ms (interpretation) 435ms (rendering) 448ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf 4 14ms (interpretation) 422ms (rendering) 436ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf 5
```
**CRASH** (double free check triggered)
Ah, never checked before now:
```
'MUTOOL mudraw -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/%04d-808CA451AE74835B9BA0DA1DCA9DB4C2A057.ocr.html" -s mtf5 -r 150 -x preserve-ligatures,preserve-whitespace,dehyphenate -y l "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf"'
Layer configs:
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf 1 colorError opening data file W:\Projects\sites\library.visyond.gov\80\lib\CS\MuPDF\platform\win32\Debug-64/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
error: Tesseract initialisation failed
warning: dropping unclosed device
error: cannot draw 'INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/808CA451AE74835B9BA0DA1DCA9DB4C2A057.pdf': Tesseract initialisation failed
Allocations total=4570
```
-- Looks like `mudraw` doesn't get a chance to crash as it's `tesseract` throwing a tantrum causing it to fail early???
```
'MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/%04d-844418D91B7D26A2EB20F0D19CE6F625F9E89BD.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf"'
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 1warning: found duplicate fz_icc_link in the store
352ms (interpretation) 142ms (rendering) 494ms (total)
Glyph Cache Size: 591342
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 2 43ms (interpretation) 74ms (rendering) 117ms (total)
Glyph Cache Size: 888632
Glyph Cache Evictions: 0 (0 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 3 44ms (interpretation) 85ms (rendering) 129ms (total)
Glyph Cache Size: 1048502
Glyph Cache Evictions: 431 (171134 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 4 27ms (interpretation) 44ms (rendering) 71ms (total)
Glyph Cache Size: 1048055
Glyph Cache Evictions: 599 (252755 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 5 35ms (interpretation) 74ms (rendering) 109ms (total)
Glyph Cache Size: 1048494
Glyph Cache Evictions: 661 (288178 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 6 23ms (interpretation) 33ms (rendering) 56ms (total)
Glyph Cache Size: 1048569
Glyph Cache Evictions: 718 (319603 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 7 52ms (interpretation) 105ms (rendering) 157ms (total)
Glyph Cache Size: 1048441
Glyph Cache Evictions: 1226 (571935 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 8 69ms (interpretation) 108ms (rendering) 177ms (total)
Glyph Cache Size: 1048542
Glyph Cache Evictions: 1991 (889107 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 9 63ms (interpretation) 96ms (rendering) 159ms (total)
Glyph Cache Size: 1048521
Glyph Cache Evictions: 2600 (1136154 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 10 70ms (interpretation) 109ms (rendering) 179ms (total)
Glyph Cache Size: 1048381
Glyph Cache Evictions: 3333 (1414130 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 11 27ms (interpretation) 58ms (rendering) 85ms (total)
Glyph Cache Size: 1048553
Glyph Cache Evictions: 3482 (1474532 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 12 68ms (interpretation) 111ms (rendering) 179ms (total)
Glyph Cache Size: 1048489
Glyph Cache Evictions: 4306 (1786230 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 13 59ms (interpretation) 109ms (rendering) 168ms (total)
Glyph Cache Size: 1048423
Glyph Cache Evictions: 4883 (2003378 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 14 66ms (interpretation) 101ms (rendering) 167ms (total)
Glyph Cache Size: 1048526
Glyph Cache Evictions: 5568 (2258130 bytes)
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 15error: expected object number
warning: repairing PDF document
error: array not closed before end of file
error: cannot parse object (508 0 R)
warning: cannot load object (508 0 R) into cache
error: cannot find object in xref (508 0 R)
warning: cannot load object (508 0 R) into cache
error: invalid page object
error: cannot find object in xref (509 0 R)
warning: cannot load object (509 0 R) into cache
error: cannot find object in xref (510 0 R)
warning: cannot load object (510 0 R) into cache
error: cannot find object in xref (511 0 R)
warning: cannot load object (511 0 R) into cache
59ms (interpretation) 76ms (rendering) 135ms (total)
Glyerror: cannot find object in xref (495 0 R)
ph Cache Size: 1048339
Glyph Cacwarning: cannot load object (495 0 R) into cache
he Evictions: 6error: cannot find object in xref (496 0 R)
090 (2457644 bytes)
warning: cannot load object (496 0 R) into cache
error: cannot find object in xref (497 0 R)
warning: cannot load object (497 0 R) into cache
error: cannot find object in xref (498 0 R)
warning: cannot load object (498 0 R) into cache
error: cannot find object in xref (499 0 R)
warning: cannot load object (499 0 R) into cache
error: cannot find object in xref (500 0 R)
warning: cannot load object (500 0 R) into cache
error: cannot find object in xref (501 0 R)
warning: cannot load object (501 0 R) into cache
error: cannot find object in xref (502 0 R)
warning: cannot load object (502 0 R) into cache
error: cannot find object in xref (503 0 R)
warning: cannot load object (503 0 R) into cache
error: cannot find object in xref (504 0 R)
warning: cannot load object (504 0 R) into cache
error: cannot find object in xref (505 0 R)
warning: cannot load object (505 0 R) into cache
error: cannot find object in xref (506 0 R)
warning: cannot load object (506 0 R) into cache
error: cannot find object in xref (507 0 R)
warning: cannot load object (507 0 R) into cache
error: cannot find object in xref (509 0 R)
warning: cannot load object (509 0 R) into cache
error: cannot find object in xref (510 0 R)
warning: cannot load object (510 0 R) into cache
error: cannot find object in xref (511 0 R)
warning: cannot load object (511 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (939 0 R)
warning: cannot load object (939 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
error: cannot find object in xref (153 0 R)
warning: cannot load object (153 0 R) into cache
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf 16error: cannot find object in xref (939 0 R)
warning: cannot load object (939 0 R) into cache
error: Page not found: 17
warning: error: Page not found: 17
error: cannot draw 'INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf'
total 2382ms / 15 pages for an average of 158ms
fastest page 6: 56ms
slowest page 1: 494ms
```
**CRASH** looks like another double free error, now discovered via `fz_drop_pixmap()`
```
L#78062: MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/%04d-844418D91B7D26A2EB20F0D19CE6F625F9E89BD.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/8/844418D91B7D26A2EB20F0D19CE6F625F9E89BD.pdf"
```
**CRASH** with the newer code at `num_workers == 1` !!! It's the workers `[idx]->pix` entry which appears to have been nuked prematurely...
---
-- added commit SHA-1: 0ae30f8b6a058c18acf8be3a793a48ebb2ed2953
* fix: *finally* got the crash mofo: turns out it always happens when shutting down `muraster` as the illegal freed memory accesses always happen past these DEBUG_THREAD lines:
```
Asking workers to shutdown, then destroy their resources
Worker 0 woken for band_start -1
Worker 0 completed band_start -1 (status=0)
Worker 0 shutting down
Worker 1 woken for band_start -1
Worker 1 completed band_start -1 (status=0)
Worker 1 shutting down
Worker 2 woken for band_start -1
Worker 2 completed band_start -1 (status=0)
Worker 2 shutting down
```
while the call stack at time of failure points to code executing in the `bgprint` thread, which was cleaned up AFTER the workers all got nuked. Thus the obvious fix is to FIRST stop the `bgprint` thread and only then shut down all workers.
**A short bulk test run (~ minutes, then aborting the `mujstest` test) DOES NOT pop up any more 'random' crashes/heap corruptions after this fix.**
---
```
L#1528: MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"
BGPrint waiting
Worker 0 waiting
Worker 1 waiting
Worker 2 waiting
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 1
BGPrint woken for pagenum 1
Using 3 Bands
Worker 0, Pre-triggering band 0
Worker 0 woken for band_start 0
Worker 1, Pre-triggering band 1
Worker 1 woken for band_start 608
Worker 2, Pre-triggering band 2
Waiting for worker 0 to complete band 0
Worker 2 woken for band_start 1216
corrupted refcount -572662305?
corrupted refcount -572662305?
corrupted refcount -572662305?
corrupted refcount -572662305?
corrupted refcount -572662304?
...
```
**CRASH** after `muraster` threads fix was done. Looks like the jbig2 corruption is still there...
```
L#1527: MUTOOL muraster -o "__mujstest/INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/%04d-458B1F6296CFA32442F7CC47752231F74B89E54D.raster.ppm" -s mt -r 150 -P "INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf"
BGPrint waiting
Worker 0 waiting
Worker 1 waiting
Worker 2 waiting
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 1
BGPrint woken for pagenum 1
Using 3 Bands
Worker 0, Pre-triggering band 0
Worker 0 woken for band_start 0
Worker 1, Pre-triggering band 1
Worker 1 woken for band_start 608
Worker 2, Pre-triggering band 2
Waiting for worker 0 to complete band 0
Worker 2 woken for band_start 1216
Worker 2 completed band_start 1216 (status=0)
Worker 2 waiting
Worker 0 completed band_start 0 (status=0)
Worker 0 waiting
Waiting for worker 1 to complete band 1
Worker 1 completed band_start 608 (status=0)
Worker 1 waiting
Waiting for worker 2 to complete band 2
18ms (interpretation) 418ms (rendering) 436ms (total)
Glyph Cache Size: 0
Glyph Cache Evictions: 0 (0 bytes)
BGPrint completed page 1
BGPrint waiting
page INTRANET_E57B9774-4712-430E-93E0-E67433F7DF07/documents/4/458B1F6296CFA32442F7CC47752231F74B89E54D.pdf 2
BGPrint woken for pagenum 2
Using 3 Bands
Worker 0, Pre-triggering band 0
Worker 0 woken for band_start 0
Worker 1, Pre-triggering band 1
Worker 1 woken for band_start 608
Worker 2, Pre-triggering band 2
Waiting for worker 0 to complete band 0
Worker 2 woken for band_start 1216
corrupted refcount -572662306?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
corrupted refcount -572662305?
corrupted refcount -572662304?
```
--------------------------------------------------------------------------------------------------------------
## New `mujstest`. New tests. (`mutool metadump`)
```
6288 "digitalcorpora.org/govdocs1/025/025454.pdf" "digitalcorpora.org/govdocs1/025" "025454.pdf" "025454" "G:/Qiqqa/evil-base"
```
^ has to recover json depth for almost(?) every page. That's unusual in `write_level_guarantee_level()``.
--> turns out this PDF has type:'UNKNOWN' annotations!
^ has unsupported `FICLblablabla` annotations, which are reported as UNKNOWN (of course)
```
13715 "digitalcorpora.org/govdocs1/999/999686.pdf" "digitalcorpora.org/govdocs1/999" "999686.pdf" "999686" "G:/Qiqqa/evil-base"
```
^ has to recover json depth for almost(?) every page. That's unusual in `write_level_guarantee_level()`.
```
14835 "openpreserve-format-corpus/pdfCabinetOfHorrors/embedded_video_avi.pdf" "openpreserve-format-corpus/pdfCabinetOfHorrors" "embedded_video_avi.pdf" "embedded_video_avi" "G:/Qiqqa/evil-base"
```
^ ditto
```
15189 "pdfium_tests/fx/FRC_8.5_part2/FRC_8.5_PC_GoToE_T_R&P&A.pdf" "pdfium_tests/fx/FRC_8.5_part2" "FRC_8.5_PC_GoToE_T_R&P&A.pdf" "FRC_8.5_PC_GoToE_T_R&P&A" "G:/Qiqqa/evil-base"
```
```
15819 "Sample-PDFs-for-format-testing/doc - html to pdf - text runs off the right edge of the pages.pdf" "Sample-PDFs-for-format-testing" "doc - html to pdf - text runs off the right edge of the pages.pdf" "doc - html to pdf - text runs off the right edge of the pages" "G:/Qiqqa/evil-base"
```
^ superslow
```
16586 "Sample-PDFs-for-format-testing/isartor-pdfa-2008-08-13/Isartor testsuite/PDFA-1b/6.1 File structure/6.1.12 Implementation Limits/isartor-6-1-12-t01-fail-a.pdf" "Sample-PDFs-for-format-testing/isartor-pdfa-2008-08-13/Isartor testsuite/PDFA-1b/6.1 File structure/6.1.12 Implementation Limits" "isartor-6-1-12-t01-fail-a.pdf" "isartor-6-1-12-t01-fail-a" "G:/Qiqqa/evil-base"
```
^ superslow
```
18260 "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/insane-authors-list/Guidelines for the use and interpretation of assays for monitoring autophagy 3rd edition.pdf" "Sample-PDFs-for-format-testing/Qiqqa Tools - test collection/insane-authors-list" "Guidelines for the use and interpretation of assays for monitoring autophagy 3rd edition.pdf" "Guidelines for the use and interpretation of assays for monitoring autophagy 3rd edition" "G:/Qiqqa/evil-base"
```
^ memory corruption? json @ 500MBytes?! (ah, happened in x86/Win32 build. `realloc` of 1GB happened just before that in `fz_putc` handler)
```
952 "W:/Sopkonijn/!OmniPage-input-dir/__store/F571F789DCFBE5FCDEE03A6695F0285719708479.pdf" "W/Sopkonijn/!OmniPage-input-dir/_store" "F571F789DCFBE5FCDEE03A6695F0285719708479.pdf" "F571F789DCFBE5FCDEE03A6695F0285719708479" "G:/Qiqqa/evil-base"
```
^ insane output size; seems like the Attachedfiles item is going completely overboard. Weirdly enough with lots of Links?!?!
```
1897 "W:/Sopkonijn/!PaperPort-base-dir/B/B01BB061FFBF8A7873E55134575AB44C633042C.pdf" "W/Sopkonijn/!PaperPort-base-dir/B" "B01BB061FFBF8A7873E55134575AB44C633042C.pdf" "B01BB061FFBF8A7873E55134575AB44C633042C" "G:/Qiqqa/evil-base"
```
^ did not output anything for the Attachedfiles object while debugging?
```
1473 "W:/Sopkonijn/!PaperPort-base-dir/1/10822C58B7CE8328698EEB29F438183AB224482.pdf" "W/Sopkonijn/!PaperPort-base-dir/1" "10822C58B7CE8328698EEB29F438183AB224482.pdf" "10822C58B7CE8328698EEB29F438183AB224482" "G:/Qiqqa/evil-base"
```
^ a bit of nastiness around an empty stream, which results in the ludicrous "cannot parse as XML" error. Well, DUH!
```
1526 "W:/Sopkonijn/!PaperPort-base-dir/2/288765F82241BB31D94F35E58F41C0BCE4A44B0.pdf" "W/Sopkonijn/!PaperPort-base-dir/2" "288765F82241BB31D94F35E58F41C0BCE4A44B0.pdf" "288765F82241BB31D94F35E58F41C0BCE4A44B0" "G:/Qiqqa/evil-base"
```
^ another run-away that's kept in check by the "restricted mode"
```
3890 "W:/Sopkonijn/!QIQQA-pdf-buffer-dir/__nontext/67A9624514511BF3C88DACAA32618EDFFC6F1.pdf" "W/Sopkonijn/!QIQQA-pdf-buffer-dir/__nontext" "67A9624514511BF3C88DACAA32618EDFFC6F1.pdf" "67A9624514511BF3C88DACAA32618EDFFC6F1" "G:/Qiqqa/evil-base"
```
^ has UNKNOWN annotations.
```
7103 "W:/Sopkonijn/!QIQQA-pdf-buffer-dir/__possibly_erroneous/EBA9C2BAC1E301AEFA99296E0BF43CEBDA4D175.pdf" "W/Sopkonijn/!QIQQA-pdf-buffer-dir/__possibly_erroneous" "EBA9C2BAC1E301AEFA99296E0BF43CEBDA4D175.pdf" "EBA9C2BAC1E301AEFA99296E0BF43CEBDA4D175" "G:/Qiqqa/evil-base"
```
^ *extremely* long running metadump. (Long stream of dots on the console too.)