openshot-qt icon indicating copy to clipboard operation
openshot-qt copied to clipboard

Crash when opening 'Preferences' menu

Open sjmcallister opened this issue 4 years ago • 26 comments

Describe the bug Crash when opening Preferences menu.

Steps to reproduce the behavior:

  1. Go to 'Edit' menu
  2. Click on 'Preferences'
  3. Crash to desktop

Expected behavior Preferences menu opens.

System Details

  • OpenShot Version: 2.5.1-dev2
  • libopenshot Version: 0.2.5-dev2
  • Platform: Windows-10-10.0.18362
  • Processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
  • Machine: AMD64
  • Python version: 3.7.4
  • Qt5 version: 5.12.4
  • PyQt5 version: 5.12.3
  • Qt Detected Languages: ['en-US']
  • LANG Environment Variable:
  • LOCALE Environment Variable:
  • Daily Build Installed: http://github.com/OpenShot/openshot-qt/releases/download/OpenShot-v2.5.1-dev2-1583226668-f1e5c9c8-0d8d639e-x86_64.exe

Log Files

  • http://logs.openshot.org/7a6y0ypfcn6rvofxjhywke2g0oltct9h/openshot-qt.zip
  • http://logs.openshot.org/7a6y0ypfcn6rvofxjhywke2g0oltct9h/libopenshot.zip

Exception / Stacktrace No stacktrace found in log files

Screenshots (Optional) If applicable, add screenshots to help explain your problem. You can include screenshots by copy/pasting them on GitHub or dragging-and-dropping into the GitHub page. All images are public, so please don't post screenshots containing personal information.

sjmcallister avatar Mar 04 '20 02:03 sjmcallister

What Intel's video driver version you are using?

Try to assign openshot to Intel's GPU (to run by). The program crashed during Intel's Quick Sync acceleration checks.

Same to the https://github.com/OpenShot/openshot-qt/issues/3221 Some useful info in: https://github.com/OpenShot/openshot-qt/issues/3224

Developers aware of the problem: https://github.com/OpenShot/openshot-qt/issues/3210

SuslikV avatar Mar 04 '20 06:03 SuslikV

@SuslikV I have version 10.18.10.5069 installed for my Intel HD 4000.

sjmcallister avatar Mar 04 '20 16:03 sjmcallister

Just try to assign openshot to run by other GPU

SuslikV avatar Mar 04 '20 18:03 SuslikV

Just try to assign openshot to run by other GPU

@SuslikV sorry, I don't know how to do what you are saying. Are there instructions somewhere on how to do that?

sjmcallister avatar Mar 04 '20 18:03 sjmcallister

https://www.howtogeek.com/351522/how-to-choose-which-gpu-a-game-uses-on-windows-10/ if it helps, of course

SuslikV avatar Mar 04 '20 19:03 SuslikV

@SuslikV I've configured OpenShot to use the power-saving option and am still unable to view the preferences due to a crash to desktop.

sjmcallister avatar Mar 04 '20 21:03 sjmcallister

Try other software. Fix isn't available yet and it is unknown when it will https://github.com/OpenShot/openshot-qt/issues/3210

As quick work around, you can remove the Quick Sync test from the tested list (anyway it crashes for you). For this purpose, use notepad++ application (minimalist version is enough for your needs) open in it next .py file (from your OpenShot program folder): C:\Program Files\OpenShot Video Editor\windows\preferences.py

find the string:

elif os_platform == "Windows" and v not in ("0", "3", "4", "7"):

and remove the , "7" part of it, like:

elif os_platform == "Windows" and v not in ("0", "3", "4"):

Save the file changes.

The list of acceleration test/devices numbers in OpenShot: https://github.com/OpenShot/libopenshot/blob/f1e5c9c8a2acfd738406c869d1d4bc512ca41e04/include/Settings.h#L80-L91

Start the application and try to open the Preferences again (startup will take some time, it's normal after edit of the source code). Any changes?

SuslikV avatar Mar 05 '20 06:03 SuslikV

@SuslikV editing the preferences.py file worked. I was able to view Preferences from the application.

sjmcallister avatar Mar 05 '20 18:03 sjmcallister

Just noting I encountered the same problem today. Some specs:

  • OpenShot 2.5.1-dev2
  • Ubuntu 20.04 LTS
  • Linux 5.4.0-40-generic
  • OpenShot installed using snap   CORRECTION: installed using openshot.developers PPA

Hardware and relevant specs:

  • Lenovo ThinkPad P53s i7-8565U + 16GB RAM, 500GB SSD
  • processor: Intel core i7 4.60GHz
  • graphics card: NVIDIA Quadro P520 2GB GDDR5 64-bit

I launch OpenShot from the command-line, hit Ctrl-Shift-P and the crash was immediate.

Some terminal output that may be of relevance:

ui_util:INFO Initializing UI for dlgPreferences
Hardware decoding device number: 0
Hardware decoding device number: 0
[h264 @ 0x3f946c0] Invalid setup for format vdpau: does not match the type of the provided device context.
[h264 @ 0x3f946c0] Invalid setup for format cuda: does not match the type of the provided device context.
[AVHWFramesContext @ 0x7f2a700011c0] Failed to read image from surface 0x1b: -1 (unknown libva error).

I logged out and in and repeated the procedure but was able to exit cleanly that time. So not entirely repeatable.

I hope this information is of some use. Good luck to the devs. Robbie.

robbiemorrison avatar Jul 14 '20 17:07 robbiemorrison

Here is the stack trace from the previous comment:

  • logfile : ~/.openshot_qt/libopenshot.log
---- Unhandled Exception: Stack Trace ----
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so                                          0x1736d4  [0x7f562ee676d4]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so                                          0x155cea  [0x7f562ee49cea]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so                                          0x37ad83  [0x7f562f06ed83]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so                                          0x37e727  [0x7f562f072727]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so                                          0x37e9aa  [0x7f562f0729aa]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so                                          0x34b752  [0x7f562f03f752]
  /lib/x86_64-linux-gnu/libva.so.2 vaGetImage                               0x5c  [0x7f56f10781fc]
  /lib/x86_64-linux-gnu/libavutil.so.56                                          0x3503d  [0x7f56fccd303d]
  /lib/x86_64-linux-gnu/libavutil.so.56                                          0x355c1  [0x7f56fccd35c1]
  /lib/x86_64-linux-gnu/libavutil.so.56 av_hwframe_transfer_data                 0x57  [0x7f56fccca1e7]
  /lib/x86_64-linux-gnu/libavutil.so.56 av_hwframe_transfer_data                 0x111  [0x7f56fccca2a1]
  /lib/x86_64-linux-gnu/libopenshot.so.19 openshot::FFmpegReader::GetAVFrame()     0x493  [0x7f56fe849933]
  /lib/x86_64-linux-gnu/libopenshot.so.19                                          0x8ce1c  [0x7f56fe856e1c]
  /lib/x86_64-linux-gnu/libgomp.so.1                                          0x1a77e  [0x7f56fc7c377e]
  /lib/x86_64-linux-gnu/libpthread.so.0                                          0x9609  [0x7f570d660609]
  /lib/x86_64-linux-gnu/libc.so.6 clone                                    0x43  [0x7f570d79c103]
---- End of Stack Trace ----
---- Unhandled Exception: Stack Trace ----

robbiemorrison avatar Jul 15 '20 05:07 robbiemorrison

I am having the same issue with OpenShot crashing when opening Preferences, but even removing value "7" from the Py file does not resolve the issue. In the libopenshot.log it shows the following:

---- Unhandled Exception: Stack Trace ---- _C_specific_handler 7ff869997fb0
_chkstk 7ff869f81080
RtlRaiseException 7ff869f49e90
KiUserExceptionDispatcher 7ff869f7fde0
---- End of Stack Trace ----

OgreMHDW avatar Aug 17 '20 22:08 OgreMHDW

Same issue...crashes when attempting to open preferences.
My system: Intel Core i7-9700 CPU @ 3 GHz 32 GB installed RAM 64 bit OS NVidia GeForce GTX 1660 Super

captkj avatar Sep 30 '20 16:09 captkj

The same.

      Time of this report: 10/9/2020, 12:50:07
         Operating System: Windows 10 Pro 64-bit (10.0, Build 18362) (18362.19h1_release.190318-1202)
                 Language: Polish (Regional Setting: Polish)
      System Manufacturer: Notebook                        
             System Model: P17SM                          
                     BIOS: BIOS Date: 08/06/13 18:00:25 Ver: 04.06.05 (type: BIOS)
                Processor: Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz (8 CPUs), ~2.7GHz
                     Name: NVIDIA GeForce GTX 780M
                   Memory: 16384MB RAM
      Available OS Memory: 16304MB RAM
                Page File: 14581MB used, 10426MB available
              Windows Dir: C:\WINDOWS
          DirectX Version: DirectX 12
      DX Setup Parameters: Not found
         User DPI Setting: 96 DPI (100 percent)
       System DPI Setting: 96 DPI (100 percent)
          DWM DPI Scaling: Disabled
                 Miracast: Available, with HDCP
Microsoft Graphics Hybrid: Supported
 DirectX Database Version: 1.1.6
           DxDiag Version: 10.00.18362.0387 64bit Unicode

The problem appeared after I changed NVidia Panel settings to run OpenShot with the dedicated graphic card but the problem also appears after setting the option in the following way: https://www.howtogeek.com/351522/how-to-choose-which-gpu-a-game-uses-on-windows-10/

chrismaliszewski avatar Oct 08 '20 23:10 chrismaliszewski

Same issue :(

Problem signature: Problem Event Name: APPCRASH Application Name: openshot-qt.exe Application Version: 2.5.1.0 Application Timestamp: 00000000 Fault Module Name: StackHash_1f27 Fault Module Version: 6.1.7601.24545 Fault Module Timestamp: 5e0eb67f Exception Code: c0000374 Exception Offset: 00000000000bf262 OS Version: 6.1.7601.2.1.0.256.1

HHalftone avatar Oct 14 '20 14:10 HHalftone

Same problem, on Ubuntu 20.10

deepin-screen-recorder_Select area_20201025152037

Logs: libopenshot.log openshot-qt.log

OpenShot info: image

System info:

                          ./+o+-       maxjf1@maxjf1-G3-3579
                  yyyyy- -yyyyyy+      OS: Ubuntu 20.10 groovy
               ://+//////-yyyyyyo      Kernel: x86_64 Linux 5.8.0-25-generic
           .++ .:/++++++/-.+sss/`      Uptime: 1h 8m
         .:++o:  /++++++++/:--:/-      Packages: 2172
        o:+o+:++.`..```.-/oo+++++/     Shell: zsh 5.8
       .:+o:+o/.          `+sssoo+/    Resolution: 1920x1080
  .++/+:+oo+o:`             /sssooo.   DE: GNOME 3.38.1
 /+++//+:`oo+o               /::--:.   WM: Mutter
 \+/+o+++`o++o               ++////.   WM Theme: Adwaita
  .++.o+++oo+:`             /dddhhh.   GTK Theme: Yaru-dark [GTK2/3]
       .+.o+oo:.          `oddhhhh+    Icon Theme: WhiteSur-dark
        \+.++o+o``-````.:ohdhhhhh+     Font: Garuda 11
         `:o+++ `ohhhhhhhhyo++os:      Disk: 53G / 69G (81%)
           .o:`.syhhhhhhh/.oo++o`      CPU: Intel Core i5-8300H @ 8x 4GHz [40.0°C]
               /osyyyyyyo++ooo+++/     GPU: GeForce GTX 1050
                   ````` +oo+++o\:     RAM: 5540MiB / 15854MiB
                          `oo++.      

maxjf1 avatar Oct 25 '20 18:10 maxjf1

Hi, same for me. Sometimes it crashes, sometimes not. My system: Ubuntu 20.04, openshot-qt version: 2.5.1-dev2 libopenshot version: 0.2.5-dev2

I am attaching the whole log. The relevant info is probably:

[h264 @ 0x3e2f780] Invalid setup for format vdpau: does not match the type of the provided device context. 
[h264 @ 0x3e2f780] Invalid setup for format cuda: does not match the type of the provided device context. 
[AVHWFramesContext @ 0x7f43a40015c0] Failed to read image from surface 0x17: -1 (unknown libva error).
[AVHWFramesContext @ 0x7f43a40015c0] Failed to read image from surface 0x16: -1 (unknown libva error).
Caught signal 11 (SIGSEGV)

openshot.log

nixie avatar Nov 05 '20 21:11 nixie

Hi, same for me. Opening up the preferences menu always results in a crash:

DEBUG preferences: Preparing to test hardware decoding: [{'value': '0', 'name': 'No acceleration'}, {'value': '1', 'name': 'Linux VA-API'}, {'value': '2', 'name': 'Nvidia NVDEC'}, {'value': '6', 'name': 'Linux VDPAU'}]
DEBUG preferences: Current hardware decoder: Linux VA-API (1-0)
DEBUG preferences: Testing hardware decoder: Linux VA-API (1-0)
Hardware decoding device number: 0
Hardware decoding device number: 0
Caught signal 11 (SIGSEGV)
---- Unhandled Exception: Stack Trace ----
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x1736d4)  [0x7f2aa621d6d4]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x155cea)  [0x7f2aa61ffcea]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x37ad83)  [0x7f2aa6424d83]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x37e727)  [0x7f2aa6428727]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x37e9aa)  [0x7f2aa64289aa]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x34b752)  [0x7f2aa63f5752]
  /usr/lib/x86_64-linux-gnu/libva.so.2 ( vaGetImage                                + 0x5c  )  [0x7f2bc33d91fc]
  /usr/lib/x86_64-linux-gnu/libavutil.so.56 (                                           + 0x3504d)  [0x7f2bc789b04d]
  /usr/lib/x86_64-linux-gnu/libavutil.so.56 (                                           + 0x355d1)  [0x7f2bc789b5d1]
  /usr/lib/x86_64-linux-gnu/libavutil.so.56 ( av_hwframe_transfer_data                  + 0x57  )  [0x7f2bc78921f7]
  /usr/lib/x86_64-linux-gnu/libavutil.so.56 ( av_hwframe_transfer_data                  + 0x111 )  [0x7f2bc78922b1]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.19 ( openshot::FFmpegReader::GetAVFrame()      + 0x493 )  [0x7f2bb27342b3]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.19 (                                           + 0x955dc)  [0x7f2bb27415dc]
  /usr/lib/x86_64-linux-gnu/libgomp.so.1 (                                           + 0x1a77e)  [0x7f2bc1fed77e]
  /lib/x86_64-linux-gnu/libpthread.so.0 (                                           + 0x9609)  [0x7f2bd6e42609]
  /lib/x86_64-linux-gnu/libc.so.6 ( clone                                     + 0x43  )  [0x7f2bd6f7e293]
---- End of Stack Trace ----

I built OpenShot from sources and debugged it. It seems that the following line is the problem: https://github.com/OpenShot/libopenshot/blob/6009a26e4c7c58032d15b03284e512d7d1d9de31/src/FFmpegReader.cpp#L1125

Once I remove the desired format AV_PIX_FMT_YUV420P for the software output frame in line https://github.com/OpenShot/libopenshot/blob/6009a26e4c7c58032d15b03284e512d7d1d9de31/src/FFmpegReader.cpp#L1124 the preferences menu shows but no hardware acceleration is available. The reason of course is that due to the changed format the pixel color check in https://github.com/OpenShot/openshot-qt/blob/2463d0ee137bfe3cbb097319173898849e26a2ba/src/windows/preferences.py#L612 fails.

For fun I simply out-commented this. Then the hardware acceleration via VAAPI is available and it seems to take off load from the CPU. But of course the video is not playing properly (messed up colors and not smooth). But maybe this findings help to track down the reason for the error.

Hardware decoding works perfectly on my machine when I use ffmpeg on the command line or mpv.

wittmeis avatar Jan 09 '21 09:01 wittmeis

Same problem here: Linux, Ubuntu 20.10 openshot-qt.log

gyuris avatar Mar 03 '21 16:03 gyuris

Win10 x64, stable build has the same problem, daily build does not. However, it still lags hard on daily build when trying to open preferences for the first time in a session; opening it for the second time is much faster.

User670 avatar Jun 22 '21 05:06 User670

OpenShot (version 2.6.1-dev), Ubuntu 20.04, same stack trace (at the end)

Open preferences.py and comment the lines (in my case as the stacktrace shows vdpau) corresponding to Linux VDPAU:

elif k == "Linux VDPAU" or i == 6:
    icon = QIcon(":/hw/hw-accel-vdpau.svg")

But that is ultra-hackish, the issue actually happens on reader.GetFrame(0) when using the decoder.

INFO webview: Qt Ready
INFO webview: Angular Ready
INFO ui_util: Initializing UI for dlgPreferences
Hardware decoding device number: 0
Hardware decoding device number: 0
[h264 @ 0x50f4d40] Invalid setup for format vdpau: does not match the type of the provided device context.
[h264 @ 0x50f4d40] Invalid setup for format cuda: does not match the type of the provided device context.
Caught signal 11 (SIGSEGV)
---- Unhandled Exception: Stack Trace ----
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x1736d4)  [0x7f6a9753a6d4]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x155cea)  [0x7f6a9751ccea]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x37ad83)  [0x7f6a97741d83]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x37e727)  [0x7f6a97745727]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x37e9aa)  [0x7f6a977459aa]
  /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so (                                           + 0x34b752)  [0x7f6a97712752]
  /lib/x86_64-linux-gnu/libva.so.2 ( vaGetImage                                + 0x5c  )  [0x7f6b16f5d1fc]
  /lib/x86_64-linux-gnu/libavutil.so.56 (                                           + 0x3504d)  [0x7f6b302d204d]
  /lib/x86_64-linux-gnu/libavutil.so.56 (                                           + 0x355d1)  [0x7f6b302d25d1]
  /lib/x86_64-linux-gnu/libavutil.so.56 ( av_hwframe_transfer_data                  + 0x57  )  [0x7f6b302c91f7]
  /lib/x86_64-linux-gnu/libavutil.so.56 ( av_hwframe_transfer_data                  + 0x111 )  [0x7f6b302c92b1]
  /home/eduardo/Projects/libopenshot/build/src/libopenshot.so.21 ( openshot::FFmpegReader::GetAVFrame()      + 0x495 )  [0x7f6b31eba845]
  /home/eduardo/Projects/libopenshot/build/src/libopenshot.so.21 ( openshot::FFmpegReader::ReadStream(long)  + 0xd47 )  [0x7f6b31ec9197]
  /home/eduardo/Projects/libopenshot/build/src/libopenshot.so.21 ( openshot::FFmpegReader::GetFrame(long)    + 0x846 )  [0x7f6b31ec9ca6]
  /home/eduardo/Projects/libopenshot/build/bindings/python/_openshot.so (                                           + 0x119c6f)  [0x7f6b325ebc6f]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( PyCFunction_Call                          + 0xfa  )  [0x5f5e5a]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalFrameDefault                  + 0x687e)  [0x571f3e]
  /home/eduardo/.cache/JetBrains/PyCharmCE2021.2/cythonExtensions/_pydevd_frame_eval_ext/pydevd_frame_evaluator.cpython-38-x86_64-linux-gnu.so (                                           + 0x7916)  [0x7f6b699fa916]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalCodeWithName                  + 0x26a )  [0x56a0ba]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyFunction_Vectorcall                    + 0x393 )  [0x5f6343]
  /home/eduardo/Projects/openshot-qt/venv/bin/python (                                                   )  [0x5755b8]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalFrameDefault                  + 0x90fe)  [0x5747be]
  /home/eduardo/.cache/JetBrains/PyCharmCE2021.2/cythonExtensions/_pydevd_frame_eval_ext/pydevd_frame_evaluator.cpython-38-x86_64-linux-gnu.so (                                           + 0x7916)  [0x7f6b699fa916]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalCodeWithName                  + 0x26a )  [0x56a0ba]
  /home/eduardo/Projects/openshot-qt/venv/bin/python (                                                   )  [0x50adf0]
  /home/eduardo/Projects/openshot-qt/venv/bin/python (                                                   )  [0x5755b8]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalFrameDefault                  + 0x83c9)  [0x573a89]
  /home/eduardo/.cache/JetBrains/PyCharmCE2021.2/cythonExtensions/_pydevd_frame_eval_ext/pydevd_frame_evaluator.cpython-38-x86_64-linux-gnu.so (                                           + 0x7916)  [0x7f6b699fa916]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalCodeWithName                  + 0x26a )  [0x56a0ba]
  /home/eduardo/Projects/openshot-qt/venv/bin/python (                                                   )  [0x50adf0]
  /home/eduardo/Projects/openshot-qt/venv/bin/python (                                                   )  [0x5755b8]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalFrameDefault                  + 0x83c9)  [0x573a89]
  /home/eduardo/.cache/JetBrains/PyCharmCE2021.2/cythonExtensions/_pydevd_frame_eval_ext/pydevd_frame_evaluator.cpython-38-x86_64-linux-gnu.so (                                           + 0x7916)  [0x7f6b699fa916]
  /home/eduardo/Projects/openshot-qt/venv/bin/python (                                                   )  [0x59cdfb]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyObject_MakeTpCall                      + 0x1ff )  [0x5f68ef]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalFrameDefault                  + 0x869d)  [0x573d5d]
  /home/eduardo/.cache/JetBrains/PyCharmCE2021.2/cythonExtensions/_pydevd_frame_eval_ext/pydevd_frame_evaluator.cpython-38-x86_64-linux-gnu.so (                                           + 0x7916)  [0x7f6b699fa916]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyEval_EvalCodeWithName                  + 0x26a )  [0x56a0ba]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( _PyFunction_Vectorcall                    + 0x393 )  [0x5f6343]
  /home/eduardo/Projects/openshot-qt/venv/bin/python (                                                   )  [0x50ad7c]
  /home/eduardo/Projects/openshot-qt/venv/bin/python ( PyObject_Call                             + 0x1f7 )  [0x5f56c7]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so (                                           + 0x231210)  [0x7f6b687ec210]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so (                                           + 0x2316b8)  [0x7f6b687ec6b8]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so (                                           + 0x2319ae)  [0x7f6b687ec9ae]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so (                                           + 0x232477)  [0x7f6b687ed477]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Core.so.5 (                                           + 0x2d5f97)  [0x7f6b6809af97]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QAction::triggered(bool)                  + 0x32  )  [0x7f6b57378672]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QAction::activate(QAction::ActionEvent)   + 0x9e  )  [0x7f6b5737aa9e]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 (                                           + 0x2cf53a)  [0x7f6b574ea53a]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 (                                           + 0x2d6666)  [0x7f6b574f1666]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QMenu::mouseReleaseEvent(QMouseEvent*)    + 0x1b0 )  [0x7f6b574f27c0]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so (                                           + 0x381feb)  [0x7f6b57dfefeb]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QWidget::event(QEvent*)                   + 0x1f0 )  [0x7f6b573bc740]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QMenu::event(QEvent*)                     + 0x8b  )  [0x7f6b574f4cdb]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so (                                           + 0x3819bb)  [0x7f6b57dfe9bb]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QApplicationPrivate::notify_helper(QObject*, QEvent*)  + 0x9c  )  [0x7f6b5737e43c]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QApplication::notify(QObject*, QEvent*)   + 0x4b8 )  [0x7f6b573851f8]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so (                                           + 0x3f00d6)  [0x7f6b57e6d0d6]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Core.so.5 ( QCoreApplication::notifyInternal2(QObject*, QEvent*)  + 0x108 )  [0x7f6b68062808]
  /home/eduardo/Projects/openshot-qt/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5 ( QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)  + 0x1fa )  [0x7f6b5738453a]
---- End of Stack Trace ----

edumucelli avatar Oct 21 '21 09:10 edumucelli

Thank you so much for submitting an issue to help improve OpenShot Video Editor. We are sorry about this, but this particular issue has gone unnoticed for quite some time. To help keep the OpenShot GitHub Issue Tracker organized and focused, we must ensure that every issue is correctly labelled and triaged, to get the proper attention.

This issue will be closed, as it meets the following criteria:

  • No activity in the past 180 days
  • No one is assigned to this issue

We'd like to ask you to help us out and determine whether this issue should be reopened.

  • If this issue is reporting a bug, please can you attempt to reproduce on the latest daily build to help us to understand whether the bug still needs our attention.
  • If this issue is proposing a new feature, please can you verify whether the feature proposal is still relevant.

Thanks again for your help!

stale[bot] avatar Apr 19 '22 10:04 stale[bot]

I am no longer able to reproduce this issue. My setup has changed since I created this issue and I now have an AMD CPU instead on an old Intel CPU.

sjmcallister avatar Apr 21 '22 11:04 sjmcallister

Sorry for necroposting, btw.

I have a Nvidia GT625M. Yes I know it's a rubbish GPU but I was wondering if I could use it to speed up encoding in Openshot? Thanks :)

Pythonic456 avatar Jun 10 '22 09:06 Pythonic456

@Pythonic456 If you're running on Linux, we do support Nvidia acceleration. However, I'm not positive whether all Nvidia cards are supported. You can find the option in preferences, under the Performance tab. Let me know if you have any issues with that.

JacksonRG avatar Jun 11 '22 03:06 JacksonRG

Since I am running Windows 10, and do have Ubuntu 20.04 WSL, how can I make that work, if at all? Thanks :)

Pythonic456 avatar Jun 11 '22 10:06 Pythonic456

Same problem here when opening preferences. Ubuntu 22.04 LTS

Mesa Intel® Xe Graphics (TGL GT2)

Dell XPS 9310

16:29:33 INFO app: ------------------------------------------------ 16:29:33 INFO app: Fri Jun 24 16:29:33 2022 16:29:33 INFO app: Starting new session 16:29:33 INFO app: ------------------------------------------------ 16:29:33 INFO app: OpenShot (version 2.6.1-dev) 16:29:33 INFO app: ------------------------------------------------ 16:29:33 INFO app: openshot-qt version: 2.6.1-dev 16:29:33 INFO app: libopenshot version: 0.2.7-dev 16:29:33 INFO app: platform: Linux-5.14.0-1032-oem-x86_64-with-glibc2.35 16:29:33 INFO app: processor: x86_64 16:29:33 INFO app: machine: x86_64 16:29:33 INFO app: python version: 3.10.4 16:29:33 INFO app: qt5 version: 5.15.3 16:29:33 INFO app: pyqt5 version: 5.15.6 16:29:33 INFO project_data: Setting default profile to HD 720p 30 fps 16:29:33 INFO project_data: Apply default audio playback settings: 44100, 2 channels 16:29:33 INFO language: Qt Detected Languages: ['en-US'] 16:29:33 INFO language: LANG Environment Variable: en_US.UTF-8 16:29:33 INFO language: LOCALE Environment Variable: 16:29:33 INFO language: OpenShot Preference Language: Default 16:29:34 INFO app: Setting font to /usr/lib/python3/dist-packages/openshot_qt/images/fonts/Ubuntu-R.ttf 16:29:34 INFO logger_libopenshot: Connecting to libopenshot with debug port: 5556 16:29:34 INFO app: Setting custom dark theme 16:29:34 INFO ui_util: Initializing UI for MainWindow 16:29:34 INFO webengine: WebEngine backend initializing 16:29:34 INFO thumbnail: Starting thumbnail server listening on port 38027 16:29:34 INFO transition_model: updating transitions model. 16:29:34 INFO version: Found current version: {'trans_rate_unstable': 0.001, 'trans_rate_stable': 0.01, 'error_rate_stable': 0.16> 16:29:34 INFO effects_model: updating effects model. 16:29:34 INFO emoji_model: updating emoji model. 16:29:34 INFO main_window: InitCacheSettings 16:29:34 INFO main_window: cache-mode: CacheMemory 16:29:34 INFO main_window: cache-limit-mb: 250 16:29:34 INFO main_window: Creating CacheMemory object with 262144000 byte limit 16:29:34 INFO preview_thread: QThread Start Method Invoked 16:29:34 ERROR main_window: Unhandled crash detected: linux-/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so 0x326c59 [0x7f7053b81c> 16:29:34 INFO main_window: updateStatusChanged 16:29:34 INFO main_window: recover_backup

thomasmoss avatar Jun 24 '22 22:06 thomasmoss

openshot-qt 2.6.1 on openSUSE 15.3, Nvidia 470.129.06 (RTX 3060) Opening "Preferences Menu" segfaults:

Hardware decoding device number: 0
Caught signal 11 (SIGSEGV)
---- Unhandled Exception: Stack Trace ----
  /usr/lib64/dri/vdpau_drv_video.so ( __vaDriverInit_1_10                       + 0x55  )  [0x7fd5242a1225]
  /usr/lib64/libva.so.2          (                                           + 0x3981)  [0x7fd566e9c981]
  /usr/lib64/libva.so.2          ( vaInitialize                              + 0x11d )  [0x7fd566e9da4d]
  /usr/lib64/libavutil.so.56.70  (                                           + 0x2a67a)  [0x7fd56c4ee67a]
  /usr/lib64/libavutil.so.56.70  (                                           + 0x2a9c9)  [0x7fd56c4ee9c9]
  /usr/lib64/libavutil.so.56.70  ( av_hwdevice_ctx_create                    + 0x63  )  [0x7fd56c4e9cc3]
  /usr/lib64/libopenshot.so.21   ( openshot::FFmpegReader::Open()            + 0x371 )  [0x7fd54dd87251]
  /usr/lib64/libopenshot.so.21   ( openshot::FFmpegReader::FFmpegReader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)  + 0x4a8 )  [0x7fd54dd89e38]
  /usr/lib64/libopenshot.so.21   ( openshot::Clip::Clip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)  + 0x5cd )  [0x7fd54dd69a4d]
  /usr/lib64/python3.6/site-packages/_openshot.so (                                           + 0xa306f)  [0x7fd54e0e506f]

If I remove libva-vdpau-driver, I don't have the problem, but no hw acceleration.

vdpauinfo 
display: :0   screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library  470.129.06  Thu May 12 22:41:13 UTC 2022

Video surface:

name   width height types
-------------------------------------------
420     8192  8192  NV12 YV12 
422     8192  8192  UYVY YUYV 
444     8192  8192  



Kieltux avatar Sep 25 '22 20:09 Kieltux

Same problem here, Ububtu 22 LTS

---- Unhandled Exception: Stack Trace ---- /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so ( + 0x326c59) [0x7ff6e5876c59] /lib/x86_64-linux-gnu/libva.so.2 ( vaGetImage + 0x5c ) [0x7ff78e5a03ec] /lib/x86_64-linux-gnu/libavutil.so.56 ( + 0x38673) [0x7ff792b8f673] /lib/x86_64-linux-gnu/libavutil.so.56 ( + 0x38bcf) [0x7ff792b8fbcf] /lib/x86_64-linux-gnu/libavutil.so.56 ( av_hwframe_transfer_data + 0xdf ) [0x7ff792b8403f] /lib/x86_64-linux-gnu/libavutil.so.56 ( av_hwframe_transfer_data + 0x166 ) [0x7ff792b840c6] /lib/x86_64-linux-gnu/libopenshot.so.22 ( openshot::FFmpegReader::GetAVFrame() + 0x594 ) [0x7ff77c160994] /lib/x86_64-linux-gnu/libopenshot.so.22 ( openshot::FFmpegReader::ProcessVideoPacket(long) + 0x32 ) [0x7ff77c166272] /lib/x86_64-linux-gnu/libopenshot.so.22 ( openshot::FFmpegReader::ReadStream(long) + 0x6ff ) [0x7ff77c16b9ff] /lib/x86_64-linux-gnu/libopenshot.so.22 ( openshot::FFmpegReader::GetFrame(long) + 0x7a6 ) [0x7ff77c16cb96] /usr/lib/python3/dist-packages/_openshot.cpython-310-x86_64-linux-gnu.so ( + 0x13de23) [0x7ff7881fde23] /usr/bin/python3 ( + 0x15c908) [0x556e9cd29908] /usr/bin/python3 ( PyObject_Call + 0xbb ) [0x556e9cd3875b] /usr/bin/python3 ( _PyEval_EvalFrameDefault + 0x2955) [0x556e9cd14b25] /usr/bin/python3 ( _PyFunction_Vectorcall + 0x7c ) [0x556e9cd2a12c] /usr/bin/python3 ( _PyEval_EvalFrameDefault + 0x816 ) [0x556e9cd129e6] /usr/bin/python3 ( + 0x16ab11) [0x556e9cd37b11] /usr/bin/python3 ( _PyEval_EvalFrameDefault + 0x6422) [0x556e9cd185f2] /usr/bin/python3 ( + 0x16ab11) [0x556e9cd37b11] /usr/bin/python3 ( _PyEval_EvalFrameDefault + 0x6422) [0x556e9cd185f2] /usr/bin/python3 ( _PyObject_FastCallDictTstate + 0xc4 ) [0x556e9cd1f554] /usr/bin/python3 ( + 0x166d74) [0x556e9cd33d74] /usr/bin/python3 ( _PyObject_MakeTpCall + 0x1fc ) [0x556e9cd2035c] /usr/bin/python3 ( _PyEval_EvalFrameDefault + 0x67d5) [0x556e9cd189a5] /usr/bin/python3 ( + 0x16ac5e) [0x556e9cd37c5e] /usr/lib/python3/dist-packages/PyQt5/QtCore.abi3.so ( + 0x217ba0) [0x7ff7a1ffcba0] /usr/lib/python3/dist-packages/PyQt5/QtCore.abi3.so ( + 0x21b5ae) [0x7ff7a20005ae] /lib/x86_64-linux-gnu/libQt5Core.so.5 ( + 0x2f14e5) [0x7ff7a1b774e5] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( QAction::triggered(bool) + 0x46 ) [0x7ff79e6f0be6] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( QAction::activate(QAction::ActionEvent) + 0xac ) [0x7ff79e6f38fc] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( + 0x2f3142) [0x7ff79e87e142] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( + 0x2fad39) [0x7ff79e885d39] /usr/lib/python3/dist-packages/PyQt5/QtWidgets.abi3.so ( + 0x24f3c3) [0x7ff79ee9b3c3] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( QWidget::event(QEvent*) + 0x20e ) [0x7ff79e73a4ee] /usr/lib/python3/dist-packages/PyQt5/QtWidgets.abi3.so ( + 0x24e6cb) [0x7ff79ee9a6cb] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( QApplicationPrivate::notify_helper(QObject*, QEvent*) + 0x83 ) [0x7ff79e6f7713] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( QApplication::notify(QObject*, QEvent*) + 0xa84 ) [0x7ff79e6ff364] /usr/lib/python3/dist-packages/PyQt5/QtWidgets.abi3.so ( + 0x3a0f16) [0x7ff79efecf16] /lib/x86_64-linux-gnu/libQt5Core.so.5 ( QCoreApplication::notifyInternal2(QObject*, QEvent*) + 0x13a ) [0x7ff7a1b3fe3a] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 0x1b7 ) [0x7ff79e6fde47] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( + 0x1c9843) [0x7ff79e754843] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( + 0x1cbfd5) [0x7ff79e756fd5] /lib/x86_64-linux-gnu/libQt5Widgets.so.5 ( QApplicationPrivate::notify_helper(QObject*, QEvent*) + 0x83 ) [0x7ff79e6f7713] /usr/lib/python3/dist-packages/PyQt5/QtWidgets.abi3.so ( + 0x3a0f16) [0x7ff79efecf16] /lib/x86_64-linux-gnu/libQt5Core.so.5 ( QCoreApplication::notifyInternal2(QObject*, QEvent*) + 0x13a ) [0x7ff7a1b3fe3a] /lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 0x697 ) [0x7ff79dfee307] /lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) + 0xac ) [0x7ff79dfc3a2c] /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 ( + 0x73d6e) [0x7ff78c2c5d6e] /lib/x86_64-linux-gnu/libglib-2.0.so.0 ( g_main_context_dispatch + 0x26b ) [0x7ff7a0edfd1b] /lib/x86_64-linux-gnu/libglib-2.0.so.0 ( + 0xaa6f8) [0x7ff7a0f346f8] /lib/x86_64-linux-gnu/libglib-2.0.so.0 ( g_main_context_iteration + 0x33 ) [0x7ff7a0edd3c3] /lib/x86_64-linux-gnu/libQt5Core.so.5 ( QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 0x68 ) [0x7ff7a1b990b8] /lib/x86_64-linux-gnu/libQt5Core.so.5 ( QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 0x12b ) [0x7ff7a1b3e75b] /lib/x86_64-linux-gnu/libQt5Core.so.5 ( QCoreApplication::exec() + 0x94 ) [0x7ff7a1b46cf4] /usr/lib/python3/dist-packages/PyQt5/QtWidgets.abi3.so ( + 0x39b9ee) [0x7ff79efe79ee] /usr/bin/python3 ( + 0x15c908) [0x556e9cd29908] /usr/bin/python3 ( _PyObject_MakeTpCall + 0x25b ) [0x556e9cd203bb] /usr/bin/python3 ( _PyEval_EvalFrameDefault + 0x6d89) [0x556e9cd18f59] /usr/bin/python3 ( _PyFunction_Vectorcall + 0x7c ) [0x556e9cd2a12c] /usr/bin/python3 ( _PyEval_EvalFrameDefault + 0x6d1 ) [0x556e9cd128a1] ---- End of Stack Trace ----

marcofloriano avatar Oct 17 '22 13:10 marcofloriano

This has been fixed.

Colorjet3 avatar Jan 24 '23 02:01 Colorjet3