Bug 2177891 - eric crashes on startup, setPixelSize(self, int): argument 1 has unexpected type 'float'
Summary: eric crashes on startup, setPixelSize(self, int): argument 1 has unexpected t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: eric
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Yaakov Selkowitz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-13 19:38 UTC by Otto Liljalaakso
Modified: 2023-11-03 18:41 UTC (History)
1 user (show)

Fixed In Version: eric-23.9-1.fc39
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-03 18:41:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Otto Liljalaakso 2023-03-13 19:38:02 UTC
Description of problem:
When starting eric, the spash screen is shown for a moment, then nothing.
When started from the command line, the following log is printed:

$ eric6
QSocketNotifier: Can only be used with threads started with QThread
BackgroundService listening on: 44543
An unhandled exception occurred. Please report the problem
using the error reporting dialog or via email to <eric-bugs.org>.
A log has been written to "/home/otto/.eric6/eric6_error.log".

Error information:
--------------------------------------------------------------------------------
2023-03-13, 21:23:15
--------------------------------------------------------------------------------
<class 'TypeError'>: 
setPixelSize(self, int): argument 1 has unexpected type 'float'
--------------------------------------------------------------------------------
  File "/usr/lib/python3.11/site-packages/eric6/eric6.py", line 415, in <module>
    main()
  File "/usr/lib/python3.11/site-packages/eric6/eric6.py", line 394, in main
    mainWindow = UserInterface(app, loc, splash, pluginFile, disabledPlugins,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/eric6/UI/UserInterface.py", line 293, in __init__
    self.__createLayout(debugServer)
  File "/usr/lib/python3.11/site-packages/eric6/UI/UserInterface.py", line 791, in __createLayout
    self.__createSidebarsLayout(debugServer)
  File "/usr/lib/python3.11/site-packages/eric6/UI/UserInterface.py", line 1080, in __createSidebarsLayout
    self.pipWidget = PipPackagesWidget(self.pipInterface)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/eric6/PipInterface/PipPackagesWidget.py", line 59, in __init__
    self.setupUi(self)
  File "/usr/lib/python3.11/site-packages/eric6/PipInterface/Ui_PipPackagesWidget.py", line 30, in setupUi
    self.pipMenuButton = E5ToolButton(self.baseWidget)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/eric6/E5Gui/E5ToolButton.py", line 56, in __init__
    font.setPixelSize(self.__badgeLabel.height() / 2.5)

--------------------------------------------------------------------------------
Version Numbers:
  Python 3.11.2, 64-Bit
  Qt 5.15.8
  PyQt 5.15.6
  PyQtChart 5.15.5  PyQtWebEngine 5.15.4  QScintilla 2.13.0
  sip 6.6.2
  WebEngine 87.0.4280.144
  eric6 20.1 (rev. 7fe343f85860)

Platform: linux
3.11.2 (main, Feb  8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)]

Desktop: GNOME
--------------------------------------------------------------------------------
Distribution Info:
  (snip)

QProcess: Destroyed while process ("/usr/bin/python3") is still running.
An unhandled exception occurred. Please report the problem
using the error reporting dialog or via email to <eric-bugs.org>.
A log has been written to "/home/otto/.eric6/eric6_error.log".

Error information:
--------------------------------------------------------------------------------
2023-03-13, 21:23:15
--------------------------------------------------------------------------------
<class 'RuntimeError'>: 
wrapped C/C++ object of type BackgroundService has been deleted
--------------------------------------------------------------------------------
  File "/usr/lib/python3.11/site-packages/eric6/Utilities/BackgroundService.py", line 396, in <lambda>
    lambda x=lang: self.on_disconnectSocket(x))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/eric6/Utilities/BackgroundService.py", line 431, in on_disconnectSocket
    self.tr('Background client disconnected.'),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

--------------------------------------------------------------------------------
Version Numbers:
  (snip)

Platform: linux
3.11.2 (main, Feb  8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)]

Desktop: GNOME
--------------------------------------------------------------------------------
Distribution Info:
  (snip)

Version-Release number of selected component (if applicable):
20.1-11.fc37

How reproducible:
Always

Steps to Reproduce:
1. Run 'eric'

Actual results:
Error as given in the issue description.

Expected results:
It starts.


Additional info:
Looks like this package is lagging a couple of years of updates.
Upstream is at version 23.03.

Comment 1 Fedora Admin user for bugzilla script actions 2023-09-05 00:09:40 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin user for bugzilla script actions 2023-10-05 12:06:44 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Update System 2023-10-18 22:05:38 UTC
FEDORA-2023-af95a99daa has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-af95a99daa

Comment 4 Fedora Update System 2023-10-19 02:17:36 UTC
FEDORA-2023-af95a99daa has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-af95a99daa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-af95a99daa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-11-03 18:41:08 UTC
FEDORA-2023-af95a99daa has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.