lrfviewer crashes due to unexpected keyword argument 'parent'

Bug #2016369 reported by Thomas Piekarski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

The application lrfviewer is crashing on latest Edubuntu Lunar (20230414.1).
Discovered during ISO Testing of
http://cdimage.ubuntu.com/edubuntu/daily-live/20230414.1/lunar-desktop-amd64.iso

Steps to reproduce:

1. Start lrfviewer via menu or via command line without any arguments

Error Message:

QApplication: invalid style override 'Adwaita' passed, ignoring it.
 Available styles: Windows, Fusion
Traceback (most recent call last):
  File "/usr/bin/lrfviewer", line 21, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/calibre/calibre/gui2/lrf_renderer/main.py", line 313, in main
    main = file_renderer(stream, opts, logger=logger)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/gui2/lrf_renderer/main.py", line 264, in file_renderer
    m = Main(logger, opts, parent=parent)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/gui2/lrf_renderer/main.py", line 73, in __init__
    self.setupUi(self)
  File "/usr/lib/calibre/calibre/gui2/lrf_renderer/main_ui.py", line 35, in setupUi
    self.graphics_view = BookView(parent=self.viewer_page)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BookView.__init__() got an unexpected keyword argument 'parent'
---
ProblemType: Bug
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 23.04
InstallationDate: Installed on 2023-04-15 (0 days ago)
InstallationMedia: Edubuntu 23.04 "Lunar Lobster" - Release amd64 Binary-1 (20230414.1)
PackageArchitecture: all
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
Tags: lunar wayland-session
Uname: Linux 6.2.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo users
_MarkForUpload: True

Revision history for this message
Kovid Goyal (kovid) wrote :

I do not provide support for people using distro provided packages. If you are using a distro provided package, uninstall it and install the official calibre binary from https://calibre-ebook.com/download_linux and if you can reproduce the bug with that, re-open the ticket. Of course, if you are already using the official binary, apologies and feel free to re-open the ticket immediately :)

Changed in calibre:
status: New → Invalid
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/2016369

tags: added: iso-testing
Revision history for this message
Thomas Piekarski (t-piekarski) wrote :

Thanks for taking a look anyway. I checked and the official binary works.
I'll file this bug with edubuntu and keep that in mind while testing.

affects: calibre → edubuntu
Revision history for this message
Steve Langasek (vorlon) wrote :

Bugs should be filed against Ubuntu packages, not against upstream projects.

affects: edubuntu → calibre (Ubuntu)
Changed in calibre (Ubuntu):
status: Invalid → New
affects: calibre (Ubuntu) → edubuntu
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 2016369

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Thomas Piekarski (t-piekarski) wrote (last edit ):

I filed it already against Ubuntu packages and the official package does work. So the bug is with Edubuntu and not upstream.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Thomas, that's also incorrect, you need to file it against the Ubuntu package since Edubuntu is not a separate distribution from Ubuntu. Please read the wiki link I posted above.

affects: edubuntu → calibre (Ubuntu)
Changed in calibre (Ubuntu):
status: New → Incomplete
Revision history for this message
Thomas Piekarski (t-piekarski) wrote : Dependencies.txt

apport information

tags: added: apport-collected lunar wayland-session
description: updated
Revision history for this message
Thomas Piekarski (t-piekarski) wrote : Package.txt

apport information

Revision history for this message
Thomas Piekarski (t-piekarski) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Thomas Piekarski (t-piekarski) wrote : ProcEnviron.txt

apport information

Revision history for this message
Thomas Piekarski (t-piekarski) wrote : Re: lrfviewer crashes on Edubuntu Lunar due to unexpected keyword argument 'parent'

> Thomas, that's also incorrect, you need to file it against the Ubuntu package since Edubuntu is not a separate distribution from Ubuntu. Please read the wiki link I posted above.

Okay, sorry for the inconvenience.

Changed in calibre (Ubuntu):
status: Incomplete → New
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

This might be resolved with a late sync/FFe from Debian. Investigating.

Changed in calibre (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote (last edit ):

Sadly, upgrading to 6.15.1 from Debian did not fix this bug, which means there's a problem with the Debian patches or a dependency. Sadly, I don't think I'm going to be able to fix this.

The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the upstream distributor by following the instructions at https://wiki.ubuntu.com/Debian/Bugs. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in calibre (Ubuntu):
importance: Critical → Medium
summary: - lrfviewer crashes on Edubuntu Lunar due to unexpected keyword argument
- 'parent'
+ lrfviewer crashes due to unexpected keyword argument 'parent'
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.