Bug 1903583

Summary: [abrt] calibre: flush(): logging.py:53:flush:BrokenPipeError: [Errno 32] Datenübergabe unterbrochen (broken pipe)
Product: [Fedora] Fedora Reporter: Moritz Halbritter <spamthemoe>
Component: calibreAssignee: Kevin Fenzi <kevin>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: chkr, helio, kevin, nushio, zbyszek
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f15d50933853166d04f56c49f54e3e4792579765
Whiteboard: abrt_hash:98a7073c749497f19e0dfd53b43f1748e7e32017;VARIANT_ID=cinnamon;
Fixed In Version: calibre-5.29.0-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 18:38:19 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: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Moritz Halbritter 2020-12-02 12:40:24 UTC
Version-Release number of selected component:
calibre-4.23.0-2.fc33

Additional info:
reporter:       libreport-2.14.0
cmdline:        /usr/bin/python3 /usr/bin/ebook-convert /tmp/ArticleConverterImpl-16710124191404583748.html /tmp/ArticleConverterImpl-11179420350563618140.mobi --pubdate 2020-11-29T12:36:24.027171Z --title 'Your articles for 2020-11-29' --input-encoding utf-8 --max-levels 0 --max-toc-links 0 --use-auto-toc --mobi-toc-at-start --toc-title 'Your articles for 2020-11-29' --level1-toc '//h:h1[@class=\"toc-c82bb567-1248-4a7d-8b6e-52785b449076\"]' --level2-toc / --level3-toc / --chapter '//h:h1[@class=\"toc-c82bb567-1248-4a7d-8b6e-52785b449076\"]' --chapter-mark both --authors website2kindle --book-producer website2kindle --publisher website2kindle
crash_function: flush
exception_type: BrokenPipeError
executable:     /usr/bin/ebook-convert
interpreter:    python3-3.9.0-1.fc33.x86_64
kernel:         5.9.10-200.fc33.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
logging.py:53:flush:BrokenPipeError: [Errno 32] Datenübergabe unterbrochen (broken pipe)

Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 20, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 401, in main
    plumber.run()
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 1135, in run
    pr(0., _('Running transforms on e-book...'))
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 67, in __call__
    self.global_reporter(global_frac, msg)
  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 288, in __call__
    self.log('%d%% %s'%(percent, msg))
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 179, in __call__
    self.info(*args, **kwargs)
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 171, in print_with_flush
    self.flush()
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 191, in flush
    o.flush()
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 53, in flush
    self.stream.flush()
BrokenPipeError: [Errno 32] Datenübergabe unterbrochen (broken pipe)

Local variables in innermost frame:
self: <calibre.utils.logging.ANSIStream object at 0x7f09d4ac8f70>

Comment 1 Moritz Halbritter 2020-12-02 12:40:27 UTC
Created attachment 1735602 [details]
File: backtrace

Comment 2 Moritz Halbritter 2020-12-02 12:40:29 UTC
Created attachment 1735603 [details]
File: cgroup

Comment 3 Moritz Halbritter 2020-12-02 12:40:30 UTC
Created attachment 1735604 [details]
File: cpuinfo

Comment 4 Moritz Halbritter 2020-12-02 12:40:31 UTC
Created attachment 1735605 [details]
File: environ

Comment 5 Moritz Halbritter 2020-12-02 12:40:33 UTC
Created attachment 1735606 [details]
File: mountinfo

Comment 6 Moritz Halbritter 2020-12-02 12:40:34 UTC
Created attachment 1735607 [details]
File: namespaces

Comment 7 Moritz Halbritter 2020-12-02 12:40:35 UTC
Created attachment 1735608 [details]
File: open_fds

Comment 8 Zbigniew Jędrzejewski-Szmek 2021-09-30 07:12:33 UTC
https://github.com/kovidgoyal/calibre/pull/1488

Comment 9 Zbigniew Jędrzejewski-Szmek 2021-10-02 12:38:01 UTC
The patch has been accepted upstream. But I will not backport the patch to F<35 because this
is mostly a cosmetic issue. The fix will appear in F>=35 when upstream makes a release.

Comment 10 Zbigniew Jędrzejewski-Szmek 2021-10-18 18:38:19 UTC
The patch does not apply cleanly in F34… It's fixed in F35+ though.