Bug 31803 - openshot-qt crashed when entering Preferences menu
Summary: openshot-qt crashed when entering Preferences menu
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2023-04-17 14:02 CEST by Olivier FAURAX
Modified: 2023-05-06 20:20 CEST (History)
6 users (show)

See Also:
Source RPM: openshot-qt-2.5.1-3.mga8.src.rpm
CVE:
Status comment:


Attachments
The log in terminal when crashing (15.17 KB, text/plain)
2023-04-17 14:03 CEST, Olivier FAURAX
Details

Description Olivier FAURAX 2023-04-17 14:02:55 CEST
Description of problem:
openshot-qt crashes

Version-Release number of selected component (if applicable):
         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.98-desktop-1.mga8-x86_64-with-glibc2.2.5
         app:INFO processor: x86_64
         app:INFO machine: x86_64
         app:INFO python version: 3.8.14
         app:INFO qt5 version: 5.15.2
         app:INFO pyqt5 version: 5.15.2

Steps to Reproduce:
1. Launch openshot-qt
2. Go to menu Edit > Preferences
Comment 1 Olivier FAURAX 2023-04-17 14:03:32 CEST
Created attachment 13768 [details]
The log in terminal when crashing
Comment 2 Lewis Smith 2023-04-17 21:04:27 CEST
Trying on Cauldron, LxQt:
 openshot-qt-3.0.0-2.mga9
The fault does *not* happen. Off to try M8.

CC: (none) => lewyssmith

Comment 3 Lewis Smith 2023-04-17 21:31:31 CEST
Mageia 8, Xfce
 openshot-qt-2.5.1-3.mga8
The fault confirmed. Start/end of terminal O/P:

 $ openshot-qt
Loaded modules from installed directory: /usr/lib/python3.8/site-packages/openshot_qt

(python3:3844): Gtk-WARNING **: 21:19:05.956: Theme parsing error: gtk.css:3:33: Failed to import: Error opening file /home/lewis/.config/gtk-3.0/window_decorations.css: No such file or directory
         app:INFO ------------------------------------------------
         app:INFO             Mon Apr 17 21:19:06 2023            
         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.98-desktop-1.mga8-x86_64-with-glibc2.2.5
         app:INFO processor: x86_64
         app:INFO machine: x86_64
         app:INFO python version: 3.8.14
         app:INFO qt5 version: 5.15.2
         app:INFO pyqt5 version: 5.15.2
     metrics:ERROR Error determining OS version in metrics.py
...
  /lib64/libQt5Widgets.so.5      ( QApplicationPrivate::notify_helper(QObject*, QEvent*)  + 0x7f  )  [0x7fc747400b1f]
  /usr/lib64/python3.8/site-packages/PyQt5/QtWidgets.so (                                           + 0x16c542)  [0x7fc747a89542]
  /lib64/libQt5Core.so.5         ( QCoreApplication::notifyInternal2(QObject*, QEvent*)  + 0x11a )  [0x7fc74bddcd2a]
  /lib64/libQt5Gui.so.5          ( QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)  + 0x638 )  [0x7fc748231e08]
  /lib64/libQt5Gui.so.5          ( QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)  + 0xac  )  [0x7fc74820924c]
---- End of Stack Trace ----

as per the attachment.

v2.5.1 is 3 years old, v2.6.1 just 4 months. Worth updating it?
This is nursed by daviddavid, so assigning thus.

Source RPM: openshot-qt => openshot-qt-2.5.1-3.mga8.src.rpm
CC: lewyssmith => (none)
Assignee: bugsquad => geiger.david68210
Severity: critical => major

Comment 4 papoteur 2023-04-18 11:17:35 CEST
@Olivier Do you confirm that this happens in a Gnome Wayland session?

CC: (none) => yves.brungard_mageia

Comment 5 Olivier FAURAX 2023-04-18 12:05:17 CEST
(In reply to papoteur from comment #4)
> @Olivier Do you confirm that this happens in a Gnome Wayland session?

Yes. Gnome 3.38.3 with wayland
Comment 6 Lewis Smith 2023-04-18 19:39:12 CEST
Ah. But note comment 3 which shows it did not work under M8 Xfce.

CC: (none) => lewyssmith

Comment 7 papoteur 2023-04-19 10:38:42 CEST
Submitting:
lib64openshot-devel-0.3.1-1.mga8
lib64openshot24-0.3.1-1.mga8
python3-libopenshot-0.3.1-1.mga8
libopenshot-audio-0.3.1-1.mga8
libopenshot-audio-tools-0.3.1-1.mga8
lib64openshot-audio9-0.3.1-1.mga8
lib64openshot-audio-devel-0.3.1-1.mga8
libopenshot-audio-doc-0.3.1-1.mga8
openshot-qt-3.1.0-1.mga8

Sources:
libopenshot-0.3.1-1.mga8.src.rpm
libopenshot-audio-0.3.1-1.mga8.src.rpm
openshot-qt-3.1.0-1.mga8.src.rpm

Assignee: geiger.david68210 => qa-bugs

Comment 8 Lewis Smith 2023-04-19 20:24:55 CEST
Thanks for the quick work.

a) Could not see any of these in updates_testing.

b) Puzzled that all new versions are 0.3.1-1
except openshot-qt itself which is   3.1.0-1
which may well be what is intended.
Comment 9 papoteur 2023-04-20 14:11:09 CEST
Hi Lewis
(In reply to Lewis Smith from comment #8)
> Thanks for the quick work.
> 
> a) Could not see any of these in updates_testing.
It is build since 2 days, thus should be present.
> 
> b) Puzzled that all new versions are 0.3.1-1
> except openshot-qt itself which is   3.1.0-1
> which may well be what is intended.
Yes, this is expected. This is upstream choices.
Comment 10 Lewis Smith 2023-04-20 21:31:49 CEST
Found the updates tonight:
- lib64openshot-audio9-0.3.1-1.mga8.x86_64
- lib64openshot24-0.3.1-1.mga8.x86_64
- openshot-qt-3.1.0-1.mga8.noarch
- python3-libopenshot-0.3.1-1.mga8.x86_64
- python3-qt5-webenginecore-5.15.2-1.mga8.x86_64
- python3-qt5-webenginewidgets-5.15.2-1.mga8.x86_64

This *worked* (M8/Xfce): Edit Preferences, whether selected by:
- KB from the Edit menu
- Mouse from the Edit menu
- Shortcut Ctrl/Shift/P
worked, all tabs apparently functional. So good work, Yves.

@Olivier
If you can get the updates from core/updates_testing, please do try it & report back.

@QA
You can invent a simple Advisory from comment 7.

Whiteboard: (none) => MGA8-64-OK

Comment 11 Thomas Andrews 2023-04-21 16:11:18 CEST
I was going to validate now, but will wait a day or two for the reporter to check in.

CC: (none) => andrewsfarm

Comment 12 Olivier FAURAX 2023-04-21 16:27:51 CEST
I updated (urpmi openshot-qt), launched with my current user and it crashed:
$ openshot-qt 
Loaded modules from: /usr/lib/python3.8/site-packages/openshot_qt
INFO sentry: No sentry_sdk module detected (error reporting is disabled)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
INFO app: ------------------------------------------------
INFO app:             Fri Apr 21 16:21:02 2023            
INFO app:               Starting new session              
INFO app: ------------------------------------------------
INFO app:             OpenShot (version 3.1.0)            
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 3.1.0
INFO app: libopenshot version: 0.2.5
INFO app: platform: Linux-5.15.98-desktop-1.mga8-x86_64-with-glibc2.2.5
INFO app: processor: x86_64
INFO app: machine: x86_64
INFO app: python version: 3.8.14
INFO app: qt5 version: 5.15.2
INFO app: pyqt5 version: 5.15.2
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/openshot_qt/launch.py", line 195, in main
    app = OpenShotApp(argv)
  File "/usr/lib/python3.8/site-packages/openshot_qt/classes/app.py", line 131, in __init__
    self.project = project_data.ProjectDataStore()
  File "/usr/lib/python3.8/site-packages/openshot_qt/classes/project_data.py", line 66, in __init__
    self.new()
  File "/usr/lib/python3.8/site-packages/openshot_qt/classes/project_data.py", line 291, in new
    profile = self.get_profile(profile_desc=default_profile_desc)
  File "/usr/lib/python3.8/site-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 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/openshot_qt/launch.py", line 197, in main
    app.show_errors()
AttributeError: 'NoneType' object has no attribute 'show_errors'
INFO app:             OpenShot's session ended            
INFO app:             Fri Apr 21 16:21:02 2023            
INFO app: ================================================


The interesting part is:
INFO app: openshot-qt version: 3.1.0
INFO app: libopenshot version: 0.2.5

I added: urpmi python3-libopenshot
And then it has been OK.

openshot-qt should require libopenshot 0.3.1
Comment 13 David GEIGER 2023-04-21 19:11:14 CEST
Should be fixed with openshot-qt-3.1.0-1.1.mga8 which now requires python3-libopenshot >= 0.3.1

CC: (none) => geiger.david68210

Comment 14 Lewis Smith 2023-04-21 21:26:12 CEST
So I jumped the gun! [And good judgement, TJ]. I see my update included the missing python3-libopenshot-0.3.1-1.mga8.x86_64, while Olivier installed the new version.

CC: lewyssmith => (none)
Whiteboard: MGA8-64-OK => (none)

Comment 15 Herman Viaene 2023-04-24 15:50:57 CEST
MGA8-64 MATE on Acer Aspire 5253
No installation issues.
Opened openshot, could open the preferences without ptoblems, created a new project, imported an .avi file and played that one in the Video Preview window, all worked OK.

CC: (none) => herman.viaene
Whiteboard: (none) => MGA8-64-OK

Comment 16 Thomas Andrews 2023-04-25 03:55:09 CEST
Let me begin by saying I know little of what I am doing here. I normally have as little to do with Gnome as possible, but it seemed appropriate to try this time, since that is what the reporter is using.

Using a mga8-64 Gnome guest in VirtualBox which did not have openshot already installed, I ran the list of rpms from comment 7 through qarepo, with the "fuzzy version" option in effect. This resulted in these rpms:

lib64openshot-audio-devel-0.3.1-1.mga8.x86_64.rpm
lib64openshot-audio9-0.3.1-1.mga8.x86_64.rpm
lib64openshot-devel-0.3.1-1.mga8.x86_64.rpm
lib64openshot24-0.3.1-1.mga8.x86_64.rpm
libopenshot-audio-0.3.1-1.mga8.x86_64.rpm
libopenshot-audio-doc-0.3.1-1.mga8.noarch.rpm
libopenshot-audio-tools-0.3.1-1.mga8.x86_64.rpm
openshot-qt-3.1.0-1.1.mga8.noarch.rpm
python3-libopenshot-0.3.1-1.mga8.x86_64.rpm

I then went to MCC and installed openshot-qt-3.1.0-1.1 and dependencies, 68 packages in all. (Unfortunately, as it turned out, I failed to copy the list to post here.) Then I attempted to run openshot-qt from the menu, and got nothing. Running it in a terminal gets me this:

$ openshot-qt
Loaded modules from: /usr/lib/python3.8/site-packages/openshot_qt
INFO sentry: No sentry_sdk module detected (error reporting is disabled)
INFO app: ------------------------------------------------
INFO app:             Mon Apr 24 21:14:36 2023            
INFO app:               Starting new session              
INFO app: ------------------------------------------------
INFO app:             OpenShot (version 3.1.0)            
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 3.1.0
INFO app: libopenshot version: 0.3.1
INFO app: platform: Linux-5.15.106-desktop-2.mga8-x86_64-with-glibc2.2.5
INFO app: processor: x86_64
INFO app: machine: x86_64
INFO app: python version: 3.8.14
INFO app: qt5 version: 5.15.2
INFO app: pyqt5 version: 5.15.2
INFO project_data: Setting profile to HD 720p 30 fps
INFO project_data: Apply default audio playback settings: 48000, 2 channels
INFO app: checking babl_ext_path: /usr/lib/python3.8/site-packages/openshot_qt/lib/babl-ext
Screen Virtual1
   devicePixelRatio: 1.0
   logicalDotsPerInch: 96.0
   physicalDotsPerInch: 96.14779116465864
   availableSizes: PyQt5.QtCore.QSize(1920, 878)
INFO language: Qt Detected Languages: ['en-US', 'en-US', 'en']
INFO language: LANG Environment Variable: en_US.UTF-8
INFO language: LOCALE Environment Variable: 
INFO language: OpenShot Preference Language: Default
INFO app: Setting font to /usr/lib/python3.8/site-packages/openshot_qt/images/fonts/Ubuntu-R.ttf
INFO app: Setting custom dark theme
ERROR webview: Import failure loading WebKit backend
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/views/webview.py", line 165, in <module>
    from .webview_backend.webengine import TimelineWebEngineView as WebViewClass
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/views/webview_backend/webengine.py", line 38, in <module>
    from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage
ImportError: QtWebEngineWidgets must be imported before a QCoreApplication instance is created

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/views/webview.py", line 169, in <module>
    from .webview_backend.webkit import TimelineWebKitView as WebViewClass
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/views/webview_backend/webkit.py", line 36, in <module>
    from PyQt5.QtWebKitWidgets import QWebView, QWebPage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/views/webview.py", line 165, in <module>
    from .webview_backend.webengine import TimelineWebEngineView as WebViewClass
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/views/webview_backend/webengine.py", line 38, in <module>
    from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage
ImportError: QtWebEngineWidgets must be imported before a QCoreApplication instance is created

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/openshot_qt/launch.py", line 217, in main
    if app.gui():
  File "/usr/lib/python3.8/site-packages/openshot_qt/classes/app.py", line 275, in gui
    from windows.main_window import MainWindow
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/main_window.py", line 78, in <module>
    from windows.views.webview import TimelineWebView
  File "/usr/lib/python3.8/site-packages/openshot_qt/windows/views/webview.py", line 175, in <module>
    raise RuntimeError(
RuntimeError: Need PyQt5.QtWebEngine (or PyQt5.QtWebView on Win32)
INFO app:             OpenShot's session ended            
INFO app:             Mon Apr 24 21:14:36 2023            
INFO app: ================================================

Something is still missing. If someone could give me an idea of what to do now, I'd appreciate it.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Thomas Andrews 2023-04-25 03:55:23 CEST

Keywords: validated_update => (none)

Comment 17 David GEIGER 2023-04-25 06:17:31 CEST
missing dependencies should be fixed in upcoming openshot-qt-3.1.0-1.2.mga8
Comment 18 Herman Viaene 2023-04-25 09:23:46 CEST
@TJ
To me it looks like you didn't install python3-libopenshot-0.3.1-1.mga8 after all.
Just a side note: I use qarepo as wel, but once it is updated and enabled, I use MCC, but the "Install or remove", not the "Update". In that way I am sure that I select all packages involved.
Comment 19 Thomas Andrews 2023-04-25 15:07:43 CEST
@Herman
I checked for that after it failed to launch, and again just now, and I do have the correct python3-libopenshot installed. 

I will admit that I usually use qarepo in conjunction with MCC's "Update" function, so as to be sure that all needed packages automatically get updated the way it would happen for a user, but if you reread the early part of comment 16, you'll see that I didn't do that this time. 

I was attempting to simulate a user installing openshot-qt without knowledge of all packages that might be involved. Someone who just selects the one package, trusting our tools to install all dependencies needed to run it. I don't really know why I chose to do it this way this time - call it a hunch, or instinct.

I don't know why your install worked where mine didn't. A difference between MATE and Gnome, perhaps? A dependency on your system that was installed from a previous test but not removed later? Those are only two possibilities.

Since David G seems confident that he has the situation in hand, I will roll my Gnome guest back to before I did anything for this test, so I can do it again with the upcoming version. Meanwhile, I'm removing the OK until we can test again.

Whiteboard: MGA8-64-OK => (none)

Comment 20 David GEIGER 2023-04-26 17:46:31 CEST
So now you can test a complete upgrade with openshot-qt-3.1.0-1.3.mga8, which should require appropriate python3-libopenshot.
Comment 21 Thomas Andrews 2023-04-27 03:38:13 CEST
I restored the Gnome guest to the state from before the actions of comment 16, then did the same test with the updated openshot-qt. This time, asking to install openshot-qt through MCC wanted to install 70 packages, 2 more than in comment 16. (I can provide the list, if requested)

There were no installation issues. I then ran "openshot-qt" from the command line, and the gui popped up. I cycled through the "tutorial" and quit the program. 

It looks good now here. OKing again, and validating.

Whiteboard: (none) => MGA8-64-OK
Keywords: (none) => validated_update

Comment 22 Dave Hodgins 2023-05-06 18:44:27 CEST
Advisory added to svn as ...
type: bugfix
subject: Updated openshot-qt packages fix Import failure
src:
  8:
   core:
     - libopenshot-0.3.1-1.mga8
     - libopenshot-audio-0.3.1-1.mga8
     - openshot-qt-3.1.0-1.3.mga8
description: |
  Fixes Error determining OS version in metrics.py.
  Adds requires for correct version of python3-libopenshot.
references:
 - https://bugs.mageia.org/show_bug.cgi?id=31803

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 23 Mageia Robot 2023-05-06 20:20:23 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2023-0037.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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