Fails to start (TypeError: setInterval(self, int): argument 1 has unexpected type 'float')

Bug #1966998 reported by Hans Joachim Desserud
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
openshot-qt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Fails to start on Ubuntu Jammy with the following error message:
$ openshot-qt
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
         app:INFO ------------------------------------------------
         app:INFO Tue Mar 29 21:24:14 2022
         app:INFO Starting new session
         app:INFO ------------------------------------------------
         app:INFO OpenShot (version 2.5.1)
         app:INFO ------------------------------------------------
         app:INFO openshot-qt version: 2.5.1
         app:INFO libopenshot version: 0.2.5
         app:INFO platform: Linux-5.15.0-23-generic-x86_64-with-glibc2.35
         app:INFO processor: x86_64
         app:INFO machine: x86_64
         app:INFO python version: 3.10.3
         app:INFO qt5 version: 5.15.2
         app:INFO pyqt5 version: 5.15.6
     metrics:ERROR Error determining OS version in metrics.py
    language:INFO Qt Detected Languages: ['en-US']
    language:INFO LANG Environment Variable: en_US.UTF-8
    language:INFO LOCALE Environment Variable:
    language:INFO OpenShot Preference Language: Default
project_data:INFO Setting default profile to HD 720p 30 fps
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting font to Cantarell
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting custom dark theme
logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
QMainWindow::addDockWidget: invalid 'area' argument
     ui_util:INFO Initializing UI for MainWindow
  exceptions:ERROR Unhandled Exception
Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 33, in <module>
    sys.exit(load_entry_point('openshot-qt==2.5.1', 'gui_scripts', 'openshot-qt')())
  File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 97, in main
    app = OpenShotApp(argv)
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/app.py", line 219, in __init__
    self.window = MainWindow(mode)
  File "/usr/lib/python3/dist-packages/openshot_qt/windows/main_window.py", line 2521, in __init__
    self.timeline = TimelineWebView(self)
  File "/usr/lib/python3/dist-packages/openshot_qt/windows/views/timeline_webview.py", line 3000, in __init__
    self.cache_renderer.setInterval(0.5 * 1000)
TypeError: setInterval(self, int): argument 1 has unexpected type 'float'
     version:INFO Found current version: {"error_rate_stable": 0.16, "trans_rate_unstable": 0.001, "trans_rate_stable": 0.01, "openshot_version": "2.6.1", "error_rate_unstable": 0.05}

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: openshot-qt 2.5.1+dfsg1-2
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 29 21:24:22 2022
InstallationDate: Installed on 2022-03-20 (9 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220319)
PackageArchitecture: all
SourcePackage: openshot-qt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openshot-qt (Ubuntu):
status: New → Confirmed
Revision history for this message
Jim Richards (grumpy) wrote :

This is a duplicate of https://bugs.launchpad.net/ubuntu/+source/openshot-qt/+bug/1971094, the onlt difference is the error
```
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
```
which happens when another OpenShit process is running.

Revision history for this message
S. Edelburg (sedelburg) wrote :

To get it running do a few type casts from float to integer. Patch attached. No deep analysis too few time. Please review yourself before you integrate.

Also, the license file of openshot-qt is missing[1]. It is usually displayed within in program's help dialog.

[1]: https://raw.githubusercontent.com/OpenShot/openshot-qt/v2.5.1/src/resources/license.txt

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix missing float to int casts" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for the suggested patch.

>Also, the license file of openshot-qt is missing[1]. It is usually displayed within in program's help dialog.

Yes, this is tracked in bug 1791261 , though I don't know why the file is missing.

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.