Bug 2218093

Summary: [abrt] python3-pdfminer: write_text(): converter.py:315:write_text:BrokenPipeError: [Errno 32] Broken pipe
Product: [Fedora] Fedora Reporter: Mihai Lazarescu <mihai>
Component: python-pdfminerAssignee: Ben Beasley <code>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: code, mihai, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/5757342ba5428ce35c78e6e6f0416a42a6e933a
Whiteboard: abrt_hash:6b1fe0811900873b083cf6c92c6e6363b40785ef;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-28 13:25:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo
none
File: environ none

Description Mihai Lazarescu 2023-06-28 06:45:03 UTC
Version-Release number of selected component:
python3-pdfminer-20221105-2.fc38

Additional info:
reporter:       libreport-2.17.10
kernel:         6.2.15-300.fc38.x86_64
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/vte-spawn-1ffc8a32-aef3-47ac-adaf-41fadaf8baa4.scope
uid:            1000
reason:         converter.py:315:write_text:BrokenPipeError: [Errno 32] Broken pipe
executable:     /usr/bin/pdf2txt
type:           Python3
package:        python3-pdfminer-20221105-2.fc38
runlevel:       N 5
exception_type: BrokenPipeError
crash_function: write_text
interpreter:    python3-3.11.3-2.fc38.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/pdf2txt /home/user/latex/didactica/cursuri/elettronica-applicata/mtl-ttpu/exams/20230627/reports/graded/U09077_1640686.pdf

Truncated backtrace:
converter.py:315:write_text:BrokenPipeError: [Errno 32] Broken pipe

Traceback (most recent call last):
  File "/usr/bin/pdf2txt", line 317, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/bin/pdf2txt", line 311, in main
    outfp = extract_text(**vars(parsed_args))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/pdf2txt", line 62, in extract_text
    pdfminer.high_level.extract_text_to_fp(fp, **locals())
  File "/usr/lib/python3.11/site-packages/pdfminer/high_level.py", line 132, in extract_text_to_fp
    interpreter.process_page(page)
  File "/usr/lib/python3.11/site-packages/pdfminer/pdfinterp.py", line 998, in process_page
    self.device.end_page(page)
  File "/usr/lib/python3.11/site-packages/pdfminer/converter.py", line 81, in end_page
    self.receive_layout(self.cur_item)
  File "/usr/lib/python3.11/site-packages/pdfminer/converter.py", line 332, in receive_layout
    render(ltpage)
  File "/usr/lib/python3.11/site-packages/pdfminer/converter.py", line 321, in render
    render(child)
  File "/usr/lib/python3.11/site-packages/pdfminer/converter.py", line 321, in render
    render(child)
  File "/usr/lib/python3.11/site-packages/pdfminer/converter.py", line 321, in render
    render(child)
  File "/usr/lib/python3.11/site-packages/pdfminer/converter.py", line 323, in render
    self.write_text(item.get_text())
  File "/usr/lib/python3.11/site-packages/pdfminer/converter.py", line 315, in write_text
    cast(TextIO, self.outfp).write(text)
BrokenPipeError: [Errno 32] Broken pipe

Local variables in innermost frame:
self: <PDFDevice>
text: 'o'

Potential duplicate: bug 2186554

Comment 1 Mihai Lazarescu 2023-06-28 06:45:06 UTC
Created attachment 1972951 [details]
File: os_info

Comment 2 Mihai Lazarescu 2023-06-28 06:45:08 UTC
Created attachment 1972952 [details]
File: mountinfo

Comment 3 Mihai Lazarescu 2023-06-28 06:45:09 UTC
Created attachment 1972953 [details]
File: open_fds

Comment 4 Mihai Lazarescu 2023-06-28 06:45:10 UTC
Created attachment 1972954 [details]
File: namespaces

Comment 5 Mihai Lazarescu 2023-06-28 06:45:12 UTC
Created attachment 1972955 [details]
File: backtrace

Comment 6 Mihai Lazarescu 2023-06-28 06:45:13 UTC
Created attachment 1972956 [details]
File: cpuinfo

Comment 7 Mihai Lazarescu 2023-06-28 06:45:15 UTC
Created attachment 1972957 [details]
File: environ

Comment 8 Ben Beasley 2023-06-28 13:25:07 UTC

*** This bug has been marked as a duplicate of bug 2215894 ***