mltframework / shotcut

cross-platform (Qt), open-source (GPLv3) video editor
https://www.shotcut.org
GNU General Public License v3.0
11.1k stars 1.14k forks source link

Shotcut crashes at start everytime on Snap, AppImage and Portable Tar #1569

Closed raulgrangeiro closed 3 months ago

raulgrangeiro commented 3 months ago

The Shotcut version 2024.06.26 is crashing at start on the packages Snap, AppImage and Portable Tar. They all have the same output from terminal:

Terminal Output:

$ shotcut
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
---
formats:
  - a64
  - ac3
  - ac4
  - adts
  - adx
  - aea
  - aiff
  - alp
  - amr
  - amv
  - apm
  - apng
  - aptx
  - aptx_hd
  - argo_asf
  - argo_cvg
  - asf
  - ass
  - ast
  - asf_stream
  - au
  - avi
  - avif
  - avm2
  - avs2
  - avs3
  - bit
  - caf
  - cavsvideo
  - codec2
  - codec2raw
  - crc
  - dash
  - data
  - daud
  - dfpwm
  - dirac
  - dnxhd
  - dts
  - dv
  - eac3
  - evc
  - f4v
  - ffmetadata
  - fifo
  - filmstrip
  - fits
  - flac
  - flv
  - framecrc
  - framehash
  - framemd5
  - g722
  - g723_1
  - g726
  - g726le
  - gif
  - gsm
  - gxf
  - h261
  - h263
  - h264
  - hash
  - hds
  - hevc
  - hls
  - iamf
  - ico
  - ilbc
  - image2
  - image2pipe
  - ipod
  - ircam
  - ismv
  - ivf
  - jacosub
  - kvag
  - latm
  - lrc
  - m4v
  - md5
  - matroska
  - matroska
  - microdvd
  - mjpeg
  - mlp
  - mmf
  - mov
  - mp2
  - mp3
  - mp4
  - mpeg
  - vcd
  - mpeg1video
  - dvd
  - svcd
  - mpeg2video
  - vob
  - mpegts
  - mpjpeg
  - mxf
  - mxf_d10
  - mxf_opatom
  - null
  - nut
  - obu
  - oga
  - ogg
  - ogv
  - oma
  - opus
  - alaw
  - mulaw
  - vidc
  - f64be
  - f64le
  - f32be
  - f32le
  - s32be
  - s32le
  - s24be
  - s24le
  - s16be
  - s16le
  - s8
  - u32be
  - u32le
  - u24be
  - u24le
  - u16be
  - u16le
  - u8
  - psp
  - rawvideo
  - rcwt
  - rm
  - roq
  - rso
  - rtp
  - rtp_mpegts
  - rtsp
  - sap
  - sbc
  - scc
  - film_cpk
  - segment
  - stream_segment,ssegment
  - smjpeg
  - smoothstreaming
  - sox
  - spx
  - spdif
  - srt
  - streamhash
  - sup
  - swf
  - tee
  - 3g2
  - 3gp
  - mkvtimestamp_v2
  - truehd
  - tta
  - ttml
  - uncodedframecrc
  - vc1
  - vc1test
  - voc
  - vvc
  - w64
  - wav
  - webm
  - webm_dash_manifest
  - webm_chunk
  - webp
  - webvtt
  - wsaud
  - wtv
  - wv
  - yuv4mpegpipe
  - alsa
  - fbdev
  - oss
  - pulse
  - sdl,sdl2
  - video4linux2,v4l2
  - xv
...
---
audio_codecs:
  - comfortnoise
  - s302m
  - aac
  - ac3
  - ac3_fixed
  - alac
  - aptx
  - aptx_hd
  - dca
  - dfpwm
  - eac3
  - flac
  - g723_1
  - mlp
  - mp2
  - mp2fixed
  - nellymoser
  - opus
  - real_144
  - sbc
  - sonic
  - sonicls
  - truehd
  - tta
  - vorbis
  - wavpack
  - wmav1
  - wmav2
  - pcm_alaw
  - pcm_bluray
  - pcm_dvd
  - pcm_f32be
  - pcm_f32le
  - pcm_f64be
  - pcm_f64le
  - pcm_mulaw
  - pcm_s8
  - pcm_s8_planar
  - pcm_s16be
  - pcm_s16be_planar
  - pcm_s16le
  - pcm_s16le_planar
  - pcm_s24be
  - pcm_s24daud
  - pcm_s24le
  - pcm_s24le_planar
  - pcm_s32be
  - pcm_s32le
  - pcm_s32le_planar
  - pcm_s64be
  - pcm_s64le
  - pcm_u8
  - pcm_u16be
  - pcm_u16le
  - pcm_u24be
  - pcm_u24le
  - pcm_u32be
  - pcm_u32le
  - pcm_vidc
  - roq_dpcm
  - adpcm_adx
  - adpcm_argo
  - g722
  - g726
  - g726le
  - adpcm_ima_amv
  - adpcm_ima_alp
  - adpcm_ima_apm
  - adpcm_ima_qt
  - adpcm_ima_ssi
  - adpcm_ima_wav
  - adpcm_ima_ws
  - adpcm_ms
  - adpcm_swf
  - adpcm_yamaha
  - libmp3lame
  - libopus
  - libvorbis
  - anull
...
---
video_codecs:
  - a64multi
  - a64multi5
  - alias_pix
  - amv
  - apng
  - asv1
  - asv2
  - avrp
  - avui
  - bitpacked
  - bmp
  - cfhd
  - cinepak
  - cljr
  - dnxhd
  - dpx
  - dvvideo
  - dxv
  - exr
  - ffv1
  - ffvhuff
  - fits
  - flashsv
  - flashsv2
  - flv
  - gif
  - h261
  - h263
  - h263p
  - huffyuv
  - jpeg2000
  - jpegls
  - ljpeg
  - magicyuv
  - mjpeg
  - mpeg1video
  - mpeg2video
  - mpeg4
  - msmpeg4v2
  - msmpeg4
  - msrle
  - msvideo1
  - pam
  - pbm
  - pcx
  - pfm
  - pgm
  - pgmyuv
  - phm
  - png
  - ppm
  - prores
  - prores_aw
  - prores_ks
  - qoi
  - qtrle
  - r10k
  - r210
  - rawvideo
  - roqvideo
  - rpza
  - rv10
  - rv20
  - sgi
  - smc
  - snow
  - speedhq
  - sunrast
  - svq1
  - targa
  - tiff
  - utvideo
  - v210
  - v308
  - v408
  - v410
  - vbn
  - vc2
  - wbmp
  - wrapped_avframe
  - wmv1
  - wmv2
  - xbm
  - xface
  - xwd
  - y41p
  - yuv4
  - zlib
  - zmbv
  - hdr
  - libaom-av1
  - libsvtav1
  - libtheora
  - libvpx
  - libvpx-vp9
  - libwebp_anim
  - libwebp
  - libx264
  - libx264rgb
  - libx265
  - h263_v4l2m2m
  - av1_nvenc
  - h264_nvenc
  - h264_v4l2m2m
  - h264_vaapi
  - hevc_nvenc
  - hevc_v4l2m2m
  - hevc_vaapi
  - mjpeg_vaapi
  - mpeg2_vaapi
  - mpeg4_v4l2m2m
  - vp8_v4l2m2m
  - vp8_vaapi
  - vp9_vaapi
  - vnull
...
Aborted (core dumped)

I'm using Ubuntu 24.04 LTS on Gnome 46 on Wayland with the following hardware:

CPU: AMD Ryzen 7 5700U GPU: AMD Radeon RX Vega 8 RAM: 20GB DDR4 3200 MHz SSD: WD SN530 512GB M.2

Could someone help to solve this?

It only works on Flatpak, I don't know why.

ddennedy commented 3 months ago

I have tested the portable and AppImage on Ubuntu 24.04 with Wayland in a virtual machine, and it worked for me out-of-the-box. However, when I installed the package qt6-wayland it breaks. I do not know of a way to fix this that does not break these bundles on other versions of various Ubuntu and Linux.

ddennedy commented 3 months ago

I added 2 files from the Qt 6.4.3 that we bundle, and now it works: libQt6WaylandClient.so.6.4.3 -> lib/libQt6WaylandClient.so.6 and libQt6WaylandEglClientHwIntegration.so.6.4.3 -> lib/libQt6WaylandEglClientHwIntegration.so.6 Now, I see lib/libQt6WaylandClient.so.6 was removed because its addition in #1475 caused a problem in Ubuntu 22.04. However, both of those problems might be because libQt6WaylandEglClientHwIntegration.so.6 was not bundled. I will make a build that includes these 2 libs and test on different versions.

ddennedy commented 3 months ago

Here is a zip containing these 2 Qt 6.4.3 libs that can be added to the portable. libQt6WaylandClient.zip

ddennedy commented 3 months ago

I verified new portable build with these libs works on Wayland/GNOME sessions on Ubuntu 24.04, 23.10, 22.04, Fedora 39; Shotcut Snap from beta channel in Ubuntu 22.04 and 24.04

raulgrangeiro commented 3 months ago

Here is a zip containing these 2 Qt 6.4.3 libs that can be added to the portable. libQt6WaylandClient.zip

How can I add them? Are they going to be on the newer version of Shotcut?

raulgrangeiro commented 3 months ago

I have tested the portable and AppImage on Ubuntu 24.04 with Wayland in a virtual machine, and it worked for me out-of-the-box. However, when I installed the package qt6-wayland it breaks. I do not know of a way to fix this that does not break these bundles on other versions of various Ubuntu and Linux.

I checked here to see if I have this package installed and I have. That should be why it doesn't work.

raulgrangeiro commented 3 months ago

I verified new portable build with these libs works on Wayland/GNOME sessions on Ubuntu 24.04, 23.10, 22.04, Fedora 39; Shotcut Snap from beta channel in Ubuntu 22.04 and 24.04

I just installed the Snap version 24.08.16 from Beta Channel and opened perfectly! Friend, thank you so much for fixing it! God bless you!