[SRU] openshot doesn't start Ubuntu 22.04 fresh install

Bug #1971094 reported by yusuf75
202
This bug affects 40 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Fix Released
Undecided
Unassigned
openshot-qt (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
High
Unassigned

Bug Description

[ Impact ]

openshot is completely unusable as it will fail to start with the following error:

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.25, "trans_rate_stable": 0.01, "error_rate_unstable": 0.05, "openshot_version": "3.1.1", "trans_rate_unstable": 0.001}

[ Test Plan ]

Simple test:
* Execute openshot-qt, which will fail to start if its not fixed.
* With the fixed package, openshot-qt will start and the tutorial will show.

Detailed test:
* Import few videos or images
* right click on the thumbnail
* Click on "Add to timeline"
* the image or the video should now be added to the timeline
* add few such images and videos
* Try playing the timeline

[ Where problems could occur ]

The problem was caused because float is used as some of the arguments where int is now expected. There can be some more such parts in the code which I might have missed during my testing. And if any such code is executed with a float argument then the application might again crash.

[ Other Info ]

 * As mentioned in the patch, part of the patch is from upstream. Similar changes have been done in few more places which I found during testing.

[ Original Bug Description ]

openshot doesn't start on Ubuntu 22.04 ( after fresh Ubuntu install )

This is message in Terminal:
openshot-qt
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
         app:INFO ------------------------------------------------
         app:INFO Sun May 1 19:44:47 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-27-generic-x86_64-with-glibc2.35
         app:INFO processor: x86_64
         app:INFO machine: x86_64
         app:INFO python version: 3.10.4
         app:INFO qt5 version: 5.15.3
         app:INFO pyqt5 version: 5.15.6
     metrics:ERROR Error determining OS version in metrics.py
    language:INFO Qt Detected Languages: ['de-DE']
    language:INFO LANG Environment Variable: de_DE.UTF-8
    language:INFO LOCALE Environment Variable:
    language:INFO OpenShot Preference Language: Default
project_data:INFO Setting default profile to HD 720p 30 fps
         app:INFO Setting font to Cantarell
logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
         app:INFO Setting custom dark theme
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: {"trans_rate_stable": 0.01, "error_rate_stable": 0.16, "openshot_version": "2.6.1", "trans_rate_unstable": 0.001, "error_rate_unstable": 0.05}

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: openshot-qt 2.5.1+dfsg1-2
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun May 1 19:41:59 2022
InstallationDate: Installed on 2022-05-01 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: openshot-qt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
yusuf75 (yusuf-uzunyilmaz-googlemail) 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
Holbok István (holbi88) wrote :
Download full text (4.5 KiB)

This is not a fresh install, this Ubuntu 22.04 was upgraded from 21.10. Before upgrade, the Openshot run without error.

The terminal message at me:
$ openshot-qt
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
         app:INFO ------------------------------------------------
         app:INFO Thu May 5 10:06:08 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-27-generic-x86_64-with-glibc2.35
         app:INFO processor: x86_64
         app:INFO machine: x86_64
         app:INFO python version: 3.10.4
         app:INFO qt5 version: 5.15.3
         app:INFO pyqt5 version: 5.15.6
     metrics:ERROR Error determining OS version in metrics.py
    language:INFO Qt Detected Languages: ['hu-HU']
    language:INFO LANG Environment Variable: hu_HU.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.
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting font to Cantarell
logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
         app:INFO Setting custom dark theme
QMainWindow::addDockWidget: invalid 'area' argument
     metrics:INFO Track metric: [200] http://www.google-analytics.com/collect?cid=4596e90e-2b2c-41f6-b44b-e6a1cf43e1b4&v=1&tid=UA-4381101-5&an=OpenShot+Video+Editor&aip=1&aid=org.openshot.openshot-qt&av=2.5.1&ul=en-us&ua=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F37.0.2062.120+Safari%2F537.36&cd1=0.2.5&cd2=3.10.4&cd3=5.15.3&cd4=5.15.6&cd5=None&t=screenview&sc=start&cd=launch-app | (35 bytes)
     ui_util:INFO Initializing UI for MainWindow
     metrics:INFO Track metric: [200] http://www.google-analytics.com/collect?cid=4596e90e-2b2c-41f6-b44b-e6a1cf43e1b4&v=1&tid=UA-4381101-5&an=OpenShot+Video+Editor&aip=1&aid=org.openshot.openshot-qt&av=2.5.1&ul=en-us&ua=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F37.0.2062.120+Safari%2F537.36&cd1=0.2.5&cd2=3.10.4&cd3=5.15.3&cd4=5.15.6&cd5=None&t=screenview&sc=start&cd=launch-app | (35 bytes)
  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...

Read more...

Revision history for this message
Holbok István (holbi88) wrote :

Important note:

After removing the broken 2.5.1 version (shipped with snap), I had installed the development version of Openshot following the instructions at:

https://github.com/OpenShot/libopenshot/wiki/Linux-Build-Instructions

Both dependencies and the openshot-qt itself installed without any error, and running well on the Ubunut 22.04.

Revision history for this message
Jay (jay-7) wrote :

Confirmed same issue with Ubuntu 22.04 upgraded from 21.10. Appears to be an issue where OpenShot is sending floating point arguments to QT, which is expecting only integers.

Revision history for this message
Marco De Felicis (piciomdf) wrote :

Installed Daily PPA (highly experimental and unstable, but contains daily updates available to testers) and now start.
https://www.openshot.org/it/ppa/

libopenshot 0.2.7+dfsg2+1120+202205132116+daily~ubuntu22.04.1 OpenShot Code (2022-05-13)

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

Same error after upgrading from 20.04 to 22.04 using update-manager.

Revision history for this message
Pablo (pjferra) wrote :

Same error on a fresh ubuntu 22.04 install. I've tried with version 2.5.1 from ubuntu-jammy-universe and from openshot.developers/ppa. I don't want to install the daily version.
As a workaround, 2.6.1 Appimage version works fine.

Revision history for this message
Pablo (pjferra) wrote :

It would be nice to have a 2.6.1 ppa

Revision history for this message
Colin Hemming (b-ubuntuone14) wrote :

I am having the same fault with Pop OS 22.04.

The program is not crashing, just hanging, so remains stuck in the background and needs to be killed.

Revision history for this message
Nonya Binness (alabamatoy) wrote (last edit ):

Encountering same issue, new fresh 22.04 install, installed openshot, no errors, then it just wont run.

log output:

Aug 14 14:19:08 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: language:INFO OpenShot Preference Language: Default
Aug 14 14:19:08 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: project_data:INFO Setting default profile to HD 720p 30 fps
Aug 14 14:19:08 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: app:INFO Setting font to Cantarell
Aug 14 14:19:08 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
Aug 14 14:19:08 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: app:INFO Setting custom dark theme
Aug 14 14:19:08 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: QMainWindow::addDockWidget: invalid 'area' argument
Aug 14 14:19:08 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: ui_util:INFO Initializing UI for MainWindow
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: exceptions:ERROR Unhandled Exception
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: Traceback (most recent call last):
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: File "/usr/bin/openshot-qt", line 33, in <module>
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: sys.exit(load_entry_point('openshot-qt==2.5.1', 'gui_scripts', 'openshot-qt')())
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 97, in main
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: app = OpenShotApp(argv)
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: File "/usr/lib/python3/dist-packages/openshot_qt/classes/app.py", line 219, in __init__
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: self.window = MainWindow(mode)
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: File "/usr/lib/python3/dist-packages/openshot_qt/windows/main_window.py", line 2521, in __init__
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: self.timeline = TimelineWebView(self)
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: File "/usr/lib/python3/dist-packages/openshot_qt/windows/views/timeline_webview.py", line 3000, in __init__
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: self.cache_renderer.setInterval(0.5 * 1000)
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: TypeError: setInterval(self, int): argument 1 has unexpected type 'float'
Aug 14 14:19:09 hreNewLaptopHP org.openshot.OpenShot.desktop[11290]: version:INFO Found current version: {"error_rate_unstable": 0.05, "trans_rate_stable": 0.01, "error_rate_stable": 0.16, "trans_rate_unstable": 0.001, "openshot_version": "2.6.1"}

Revision history for this message
gonetil (gonetil-gmail) wrote :

Same error here. Ubuntu 22.04, fresh install, openshot 2.6.1 installed with apt (see log below). After installing from ppa:openshot.developers it seems to work (I haven't testing too much, but at least I can see the main window)

(log for OpenShot-QT 2.6.1 installed via APT in Ubuntu 22.04 fresh install)

openshot-qt
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
         app:INFO ------------------------------------------------
         app:INFO Wed Aug 24 08:07:00 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-46-generic-x86_64-with-glibc2.35
         app:INFO processor: x86_64
         app:INFO machine: x86_64
         app:INFO python version: 3.10.4
         app:INFO qt5 version: 5.15.3
         app:INFO pyqt5 version: 5.15.6
     metrics:ERROR Error determining OS version in metrics.py
    language:INFO Qt Detected Languages: ['es-AR', 'es']
    language:INFO LANG Environment Variable: es_AR.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.
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting font to Cantarell
logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
         app:INFO Setting custom dark theme
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_unstable": 0.05, "error_rate_stable": 0.16, "trans_rate_stable": 0.01, "openshot_version": "2.6.1", "trans_rate_unstable": 0.001}

Revision history for this message
flow tron (flowtron) wrote :

As piciomdf (https://bugs.launchpad.net/ubuntu/+source/openshot-qt/+bug/1971094/comments/6) said!
The english page is found at https://www.openshot.org/en/ppa/
The "Stable PPA" does NOT contain (at the time of writing) release files in the "jammy" folder, so we need to use the "Daily PPA" but it installed fine and some minor testing of basic usage also went fine.
If it doesn't we can at least help development of this fine project with bug reports!

Revision history for this message
Nonya Binness (alabamatoy) wrote :

@flowtron, I understand this point and have verified that the daily repo does in fact run on Jammy. So I respectfully submit that someone in a position of leadership within the Openshot dev team should address this bug, mark it as closed or whatever is the right action since its arguably been resolved, just not in the stable release yet.

Revision history for this message
Ralph Wigzell (ralphwigzell) wrote :

I'm not sure if it is pertinent here but Openshot 2.6.1 runs on 22.04 for me, but there are no tracks visible and I can't get them to show up. So I can't move anything to the timeline, but if I import a video and click on play in the preview window, the video does run, but that's all, can't do anything else. 2.5.1 does not run at all.

Revision history for this message
Erik1984 (erik1984) wrote :

@ralphwigzell I face the same problem on Kubuntu 22.04.1. The AppImage of the latest daily from September 24th (2.6.1-dev) seems to display the tracks fine, the stable 2.6.1 AppImage does not. Got that info from: https://github.com/OpenShot/openshot-qt/issues/4865 The problem seems to be fixed more than a month ago but it's just not in the stable version yet.

Revision history for this message
Manuel Sanchez (sanchezcano-manuel) wrote :

Same commentary, same problem. Cannot launch openshot after installing ubuntu 22.04.

Revision history for this message
Nelson Castillo (nelsoneci) wrote :

In the past I had luck editing the issues so that the numbers are integers. For instance:

    self.cache_renderer.setInterval(500)

With the most recent version I did two edits to the code and the program starts, but then it's frozen. I can move the window but I cannot interact with it. Until Ubuntu warns that the window is unresponsive and I kill it.

Revision history for this message
Pedro Mosqueda (plmosqueda) wrote :

Maybe we can try using the app image

Revision history for this message
Preutu Ilies (sonycs) wrote :

https://openshot.org/files/libopenshot/md_doc_INSTALL-LINUX.html

This worked for me:

sudo add-apt-repository ppa:openshot.developers/libopenshot-daily
sudo apt-get update
sudo apt-get install openshot-qt \
                     cmake \
                     libx11-dev \
                     libasound2-dev \
                     libavcodec-dev \
                     libavdevice-dev \
                     libavfilter-dev \
                     libavformat-dev \
                     libavresample-dev \
                     libavutil-dev \
                     libfdk-aac-dev \
                     libfreetype6-dev \
                     libjsoncpp-dev \
                     libmagick++-dev \
                     libopenshot-audio-dev \
                     libswscale-dev \
                     libunittest++-dev \
                     libxcursor-dev \
                     libxinerama-dev \
                     libxrandr-dev \
                     libzmq3-dev \
                     pkg-config \
                     python3-dev \
                     qtbase5-dev \
                     qtmultimedia5-dev \
                     swig

Revision history for this message
Tommy Trussell (tommy-trussell) wrote :

I too was unable to run OpenShot on Ubuntu 20.04.

On a hunch I opened Gnome Software with flatpak and snap support. It turns out OpenShot is available via flatpak, so I installed it, and got the latest version 3.0, which seems to run...

HOWEVER I could not open my old projects from older versions of OpenShot.

I tried a few different things with varying success, but this isn't a bug report about OpenShot 3.0, so here's how I was able to run OpenShot 2.6.1 and open my old OpenShot projects:

1) Install the last commit of 2.6.1 (from 2021-11-13)

$ sudo flatpak update --commit=655abaeb016337cca867fb0ddeee99854e624b0e1c1935bfeba60609dc9c912f org.openshot.OpenShot

2) Run the application with lax sandboxing (possibly not wise)

$ flatpak run --filesystem=home org.openshot.OpenShot

3) Once you decide what directories are safe use "flatpak override --user" to change the filesystem sandbox default.

YMMV

Revision history for this message
Stephen Lawrence (web-stephen) wrote :

Re https://openshot.org/files/libopenshot/md_doc_INSTALL-LINUX.html (#21)

I got

"libavresample-dev not found"

so I tried installing everything else, but no luck:

$ openshot-qt
Loaded modules from: /usr/lib/python3/dist-packages/openshot_qt
INFO app: ------------------------------------------------
INFO app: Wed Feb 22 17:33:41 2023
INFO app: Starting new session
INFO app: ------------------------------------------------
INFO app: OpenShot (version 3.0.0)
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 3.0.0
INFO app: libopenshot version: 0.2.5
INFO app: platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.35
INFO app: processor: x86_64
INFO app: machine: x86_64
INFO app: python version: 3.10.6
INFO app: qt5 version: 5.15.3
INFO app: pyqt5 version: 5.15.6
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 196, in main
    app = OpenShotApp(argv)
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/app.py", line 131, in __init__
    self.project = project_data.ProjectDataStore()
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/project_data.py", line 66, in __init__
    self.new()
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/project_data.py", line 291, in new
    profile = self.get_profile(profile_desc=default_profile_desc)
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/project_data.py", line 341, in get_profile
    if legacy_profile and legacy_profile.Key() == temp_profile.Key():
AttributeError: 'Profile' object has no attribute 'Key'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 33, in <module>
    sys.exit(load_entry_point('openshot-qt==3.0.0', 'gui_scripts', 'openshot-qt')())
  File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 198, in main
    app.show_errors()
AttributeError: 'NoneType' object has no attribute 'show_errors'
INFO app: OpenShot's session ended
INFO app: Wed Feb 22 17:33:41 2023
INFO app: ================================================
Sentry is attempting to send 1 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit

Revision history for this message
Olek Wojnar (olekw) wrote (last edit ):

Note that this bug has been fixed upstream in version 2.6.0

https://github.com/OpenShot/openshot-qt/issues/4025

Changed in openshot:
status: New → Fix Released
Revision history for this message
e-fernbach (e-fernbach) wrote (last edit ):

With a new Ubuntu 22.04 install after installing openshot-qt from ppa:openshot.developers/libopenshot-daily 3.0.0+dfsg2+1637+202303212204~ubuntu22.04.1 is installed. Whenn trying to start from the console I get
File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 198, in main
    app.show_errors()
as most recent call and
AttributeError: 'NoneType' object has no attribute 'show_errors'
INFO app: OpenShot's session ended
INFO app: Wed Mar 22 09:35:35 2023
INFO app: ================================================

after adding the
ppa:openshot.developers/ppa
and installing sudo apt install openshot-qt python3-openshot as suggested on the https://www.openshot.org/ppa/ page
the program starts

apparently there still is a problem of some kind, at least for the naive user.

Revision history for this message
Jeff Van Epps (lordbah) wrote (last edit ):

UPDATE 2: _something_ somewhere was still pointing at libopenshot.21.so but with enough cycles of remove/find any file with a name remotely like openshot and remove it/install, it's finally working.

3.0.0+dfsg2+1641+202303291735~ubuntu22.04.1 on PopOS 22.04 is still giving me the error.

raceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 196, in main
    app = OpenShotApp(argv)
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/app.py", line 131, in __init__
    self.project = project_data.ProjectDataStore()
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/project_data.py", line 66, in __init__
    self.new()
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/project_data.py", line 291, in new
    profile = self.get_profile(profile_desc=default_profile_desc)
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/project_data.py", line 341, in get_profile
    if legacy_profile and legacy_profile.Key() == temp_profile.Key():
AttributeError: 'Profile' object has no attribute 'Key'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 33, in <module>
    sys.exit(load_entry_point('openshot-qt==3.0.0', 'gui_scripts', 'openshot-qt')())
  File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 198, in main
    app.show_errors()
AttributeError: 'NoneType' object has no attribute 'show_errors'

I removed .cache/openshot and .local/share/openshot, in case the "legacy profile" it was referring to was some user-specific thing and I might have one around from version 2.x, but there was no change.

UPDATE: I looked at a little code and tried this:
/usr/lib/python3/dist-packages/openshot_qt/profiles$ sudo mv legacy legacy.hide
/usr/lib/python3/dist-packages/openshot_qt/profiles$ sudo mkdir legacy

This time it seemed to try to startup but then a dialog appeared saying it needed libopenshot 0.3.0 and I only had 0.2.7. I don't know why, because I do in fact have libopenshot 0.3.0 installed.

libopenshot23/jammy,now 0.3.0+dfsg2+1162+202303202247+daily~ubuntu22.04.1 amd64 [installed]

Revision history for this message
Facundo Quiroga (facundoq) wrote :

2023, same error, still no update.

Revision history for this message
Ali Sherief (zenulabidin) wrote :

As of now, neither the stable PPA nor the unstable testing PPA versions of openshot can open successfully.

I will have to use another video editor until this is resolved.

Revision history for this message
dusoft (dusoft-staznosti) wrote :

Still does not work and fails miserably while launching. Crap.

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, msec: int): argument 1 has unexpected type 'float'
version:INFO Found current version: {"error_rate_unstable": 0.05, "openshot_version": "3.1.1", "trans_rate_unstable": 0.001, "error_rate_stable": 0.25, "trans_rate_stable": 0.01}
sudo apt remove open ^C logger:ERROR Exception ignored in:
logger:ERROR <module 'threading' from '/usr/lib/python3.10/threading.py'>
logger:ERROR Traceback (most recent call last):
logger:ERROR File "/usr/lib/python3.10/threading.py", line 1567, in _shutdown
logger:ERROR lock.acquire()
logger:ERROR KeyboardInterrupt
logger:ERROR :
app:INFO OpenShot's session ended
app:INFO Mon Feb 5 22:35:52 2024
app:INFO ================================================

Revision history for this message
Rich Wicks (richwicks) wrote :

Solution for maintainer:
------------------------

I just ran into the same problem, and found a solution. Another poster said he compiled from source, and pointed to this location for instructions:

https://github.com/OpenShot/libopenshot/wiki/Linux-Build-Instructions

Well, my build failed (the first build with audio, but I also had to move to gcc-13 so maybe that's it..), but I installed a LOT of packages with sudo apt install. After doing the installs, it worked fine. There's missing dependencies in the package manager.

This is a completely new setup and here's my installation, this is the newest LTS Kubuntu, which is just Ubuntu but with KDE as the desktop.

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Cheers.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I have confirmed that the issue is seen on Jammy. Also tested and confirmed Focal and Mantic are not affected.

Changed in openshot-qt (Ubuntu Jammy):
status: New → Confirmed
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in openshot-qt (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
rich_wicks (rich-wicks) wrote :

I found a solution. Again, my Ubuntu was a completely new LTS install, 22.04.3 - or rather I was running Kubuntu but that's just Ubuntu with KDE as the default WM:

From here this post: https://github.com/OpenShot/libopenshot/wiki/Linux-Build-Instructions

On this page:

https://github.com/OpenShot/libopenshot/wiki/Linux-Build-Instructions under build instructions

that describes how to build from source:

These are the listed dependencies before compilation and setup:

sudo add-apt-repository ppa:openshot.developers/libopenshot-daily
sudo apt-get update
sudo apt-get install \
cmake \
pkg-config \
libopenshot-audio-dev \
libx11-dev \
libfreetype6-dev \
libasound2-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libswresample-dev \
libswscale-dev \
libpostproc-dev \
libfdk-aac-dev \
libjsoncpp-dev \
libzmq3-dev \
qtbase5-dev \
libqt5svg5-dev \
libbabl-dev \
libopencv-dev \
libprotobuf-dev \
protobuf-compiler \
python3-dev \
swig \
libmagick++-dev

I installed those, and it came right up without having to compile the source.

There's a broken dependency on the install. I don't know which was missing but if people feel like it they can figure it out.

Revision history for this message
Jay (jay-7) wrote :

I installed all of the non ppa:openshot dependencies and that didn't fix the issue for me, so it might be a different version of libopenshot from the dailies that did it for you.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff attached for Jammy.

summary: - openshot doesn't start Ubuntu 22.04 fresh install
+ [SRU] openshot doesn't start Ubuntu 22.04 fresh install
description: updated
Changed in openshot-qt (Ubuntu Jammy):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Revision history for this message
Dave Jones (waveform) wrote :

Thank you Sudip -- patch looks perfect, same for test plan in the SRU template; sponsoring.

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote (last edit ):

Hi Sudip and Dave,

Thanks for the great SRU template and contributing a patch!

I'll re-upload with minor, but relevant changes (please review), and accept for Jammy.

The modified code is either already patched or no longer exists/has changed in Mantic.

Changes:

- Setting the bug importance to High per [1].

- d/changelog: include filenames to describe the changes

- d/p/*.patch:

  - `Origin:` should be `backport` as there are changes from upstream; see DEP-3 [2]:
    ```"backport" (... upstream patch that had to be modified ...)```

  - `Author:` added, considering the above, as some changes are yours, for credit.

  - For clarity, this could be done in 2 separate patches: one from upstream and
    another one with your fixes (since upstream doesn't maintain a stable branch
    where such changes could be submitted to, apparently; and linked downstream).
    But this is preference/style, not a requirement.

  - The patch filename could use the `lpNUMBER-title.patch` format, with `title`
    either coming from the upstream patch (if there's one, like this case) or
    sometimes adding more specifics of the fix (e.g., as you did in `Description`).
    This, too, is preference/style, not a requirement, but it does help over time.

cheers,

[1] https://wiki.ubuntu.com/Bugs/Importance
[2] https://dep-team.pages.debian.net/deps/dep3/

$ diff -U0 old.debdiff new.debdiff
--- old.debdiff 2024-03-04 12:51:10.000000000 +0000
+++ new.debdiff 2024-03-04 19:39:48.150692799 +0000
@@ -7 +7 @@
-+ * Fix crash on startup. (LP: #1971094)
++ * d/p/0009-Fix-runtime.patch: Fix crash on startup. (LP: #1971094)
@@ -32,2 +32,2 @@
-+
-+Origin: upstream, https://github.com/OpenShot/openshot-qt/commit/cd69f2ad8d10c26b20eb9ae46bcc288f3c322b85
++Author: Sudip Mukherjee <email address hidden>
++Origin: backport, https://github.com/OpenShot/openshot-qt/commit/cd69f2ad8d10c26b20eb9ae46bcc288f3c322b85
@@ -35 +35 @@
-+Last-Update: 2024-02-16
++Last-Update: 2024-03-04

Changed in openshot-qt (Ubuntu Jammy):
importance: Undecided → High
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote : Please test proposed package

Hello yusuf75, or anyone else affected,

Accepted openshot-qt into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/openshot-qt/2.5.1+dfsg1-2ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that the openshot-qt package in jammy-proposed has fixed the bug for me.

Test done:
1. Install openshot-qt on a jammy installation.
2. execute "openshot-qt" from a terminal and that fails to start with a traceback.
3. Add jammy-proposed to apt sources
4. Update openshot-qt from jammy-proposed.
5. execute the command again and openshot-qt window with the tutorial is displayed.
6. imported 3 images from File -> Import Files
7. Select all the images, right click and click on "Add to timeline"
8. Click on the play button on the right pane, and the added pictues will play like a slideshow.

Test result: the errors with openshot-qt has been fixed.

Package tested:

$ apt-cache policy openshot-qt
openshot-qt:
  Installed: 2.5.1+dfsg1-2ubuntu0.1
  Candidate: 2.5.1+dfsg1-2ubuntu0.1
  Version table:
 *** 2.5.1+dfsg1-2ubuntu0.1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     2.5.1+dfsg1-2 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openshot-qt - 2.5.1+dfsg1-2ubuntu0.1

---------------
openshot-qt (2.5.1+dfsg1-2ubuntu0.1) jammy; urgency=medium

  * d/p/0009-Fix-runtime.patch: Fix crash on startup. (LP: #1971094)

 -- Sudip Mukherjee <email address hidden> Fri, 16 Feb 2024 22:31:20 +0000

Changed in openshot-qt (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for openshot-qt has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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