← Back to team overview

linux-traipu team mailing list archive

[Bug 1971094] Re: [SRU] openshot doesn't start Ubuntu 22.04 fresh install

 

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 removed: verification-needed verification-needed-jammy
** Tags added: verification-done verification-done-jammy

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/1971094

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

Status in OpenShot Video Editor:
  Fix Released
Status in openshot-qt package in Ubuntu:
  Fix Released
Status in openshot-qt source package in Jammy:
  Fix Committed

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openshot/+bug/1971094/+subscriptions