X connection to :0 broken (explicit kill or server shutdown)

When I try starting Shotcut (AppImage) I get the error message:

$ ./shotcut-linux-x86_64-220923.AppImage 
X connection to :0 broken (explicit kill or server shutdown).

When I searched for this error message, I found the page Permanent solution for X connection to localhost:10.0 broken, where it is written that: “For local host it’s value should be set as "hostname:0.0"”.

For my system, I get the following value:

$ echo $DISPLAY
:0

Do I need to update DISPLAY, or is there something else that can be done to fix this issue?

And the one from official repositories works?

For giggles I just downloaded the latest Shotcut .AppImage from the Github link on this page. I then gave it executeable permissions:

$ chmod u+x shotcut-linux-x86_64-220923.AppImage

And was able to launch it with no obvious ill effects:

$ ./shotcut-linux-x86_64-220923.AppImage

libDeckLinkAPI.so: cannot open shared object file: No such file or directory
---
formats:
- a64
- ac3
- adts
- adx
- 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
- f4v
- ffmetadata
- fifo
- fifo_test
- filmstrip
- fits
- flac
- flv
- framecrc
- framehash
- framemd5
- g722
- g723_1
- g726
- g726le
- gif
- gsm
- gxf
- h261
- h263
- h264
- hash
- hds
- hevc
- hls
- 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
- 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
- w64
- wav
- webm
- webm_dash_manifest
- webm_chunk
- webp
- webvtt
- wsaud
- wtv
- wv
- yuv4mpegpipe
- alsa
- fbdev
- oss
- pulse
- sdl,sdl2
- sndio
- 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
...
---
video_codecs:
- a64multi
- a64multi5
- alias_pix
- amv
- apng
- asv1
- asv2
- avrp
- avui
- ayuv
- bitpacked
- bmp
- cfhd
- cinepak
- cljr
- dnxhd
- dpx
- dvvideo
- exr
- ffv1
- ffvhuff
- fits
- flashsv
- flashsv2
- flv
- gif
- h261
- h263
- h263p
- huffyuv
- jpeg2000
- jpegls
- ljpeg
- magicyuv
- mjpeg
- mpeg1video
- mpeg2video
- mpeg4
- msmpeg4v2
- msmpeg4
- 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
- wrapped_avframe
- wmv1
- wmv2
- xbm
- xface
- xwd
- y41p
- yuv4
- zlib
- zmbv
- libaom-av1
- libtheora
- libvpx
- libvpx-vp9
- libwebp_anim
- libwebp
- libx264
- libx264rgb
- libx265
- h263_v4l2m2m
- h264_nvenc
- h264_v4l2m2m
- h264_vaapi
- hevc_nvenc
- hevc_v4l2m2m
- hevc_vaapi
- mjpeg_vaapi
- mpeg2_vaapi
- mpeg4_v4l2m2m
- vp8_v4l2m2m
- vp8_vaapi
- vp9_vaapi
...

So I checked:

$ echo $DISPLAY
:0

Which leads me to think the reason is 1 of two thing:

  1. Your .AppImage is old; and/or
  2. You are overriding your $DISPLAY environment variable somewhere.

But honestly? I suspect it’s #1.

Unfortunately not. The one from the official library gives me this:

$ shotcut 
Cannot mix incompatible Qt library (5.15.5) with this library (5.15.6)
Aborted (core dumped)

Thanks!

It was the latest AppImage I was trying to execute. However, I tried restarting my system (something I seldom do), and then I could successfully execute the Shotcut AppImage. It does not loot like my $DISPLAY value had been overwritten, as I get the same result after the reboot as I did before I rebooted.

$ echo $DISPLAY
:0

Maybe this same error will happen again, after a little while. If that is the case, I will report back.

1 Like

Either you are into some partial update state with the system, or a reboot was not done after an update.

Weird. As far as I can see there is nothing to update, and I have rebooted twice after last update. I still get the same error. Is there a way to check if I am in a partial update state?

[ ~]$ sudo pacman -Syyu
[sudo] password for poq: 
:: Synchronising package databases...
 core                                   162,9 KiB   224 KiB/s 00:01 [######################################] 100%
 extra                                 1834,1 KiB  3,68 MiB/s 00:00 [######################################] 100%
 community                                7,4 MiB  7,35 MiB/s 00:01 [######################################] 100%
 multilib                               175,4 KiB  1117 KiB/s 00:00 [######################################] 100%
:: Starting full system upgrade...
 there is nothing to do
[ ~]$ shotcut 
Cannot mix incompatible Qt library (5.15.5) with this library (5.15.6)
Aborted (core dumped)

Then the only conclusion is that you are maybe using the qt5-styleplugins from AUR, hence, even tho there is no update for it, you need to rebuild it.
pamac build qt5-styleplugins

1 Like

No, it’s not weird. You have something from AUR installed that you don’t maintain.

Thank you! You were completely correct about that. After rebuilding the qt5-styleplugins the official repo Shotcut version runs as well.

I will see if I run into the same problem (X connection broken) again, with just the AppImage, or also the official version. And, I will report back.

1 Like

Now, I have ran into an issue once again.

I have made sure qt5-styleplugins is rebuilt:
$ pamac build qt5-styleplugins

Executing the community edition:

$ shotcut > out.txt
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
Aborted (core dumped)

out.txt:

---
formats:
  - a64
  - ac3
  - adts
  - adx
  - 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
  - f4v
  - ffmetadata
  - fifo
  - fifo_test
  - filmstrip
  - fits
  - flac
  - flv
  - framecrc
  - framehash
  - framemd5
  - g722
  - g723_1
  - g726
  - g726le
  - gif
  - gsm
  - gxf
  - h261
  - h263
  - h264
  - hash
  - hds
  - hevc
  - hls
  - 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
  - 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
  - w64
  - wav
  - webm
  - webm_dash_manifest
  - webm_chunk
  - webp
  - webvtt
  - wsaud
  - wtv
  - wv
  - yuv4mpegpipe
  - alsa
  - fbdev
  - opengl
  - 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
  - libgsm
  - libgsm_ms
  - libmp3lame
  - libopencore_amrnb
  - libopus
  - libspeex
  - libvorbis
  - anull
...
---
video_codecs:
  - a64multi
  - a64multi5
  - alias_pix
  - amv
  - apng
  - asv1
  - asv2
  - avrp
  - avui
  - ayuv
  - bitpacked
  - bmp
  - cfhd
  - cinepak
  - cljr
  - dnxhd
  - dpx
  - dvvideo
  - exr
  - ffv1
  - ffvhuff
  - fits
  - flashsv
  - flashsv2
  - flv
  - gif
  - h261
  - h263
  - h263p
  - huffyuv
  - jpeg2000
  - jpegls
  - ljpeg
  - magicyuv
  - mjpeg
  - mpeg1video
  - mpeg2video
  - mpeg4
  - msmpeg4v2
  - msmpeg4
  - 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
  - libjxl
  - libopenjpeg
  - librav1e
  - libsvtav1
  - libtheora
  - libvpx
  - libvpx-vp9
  - libwebp_anim
  - libwebp
  - libx264
  - libx264rgb
  - libx265
  - libxvid
  - h263_v4l2m2m
  - a

Executing the AppImage:

$ ./shotcut-linux-x86_64-221221.AppImage
XIO:  fatal IO error 0 (Success) on X server ":0"
      after 566 requests (566 known processed) with 0 events remaining.

It might be due to having updated the system. So, I will reboot (something I seldom do), and report back.

You have to reboot at least after every update, so that the updates can be applied.

And please, rather open a new Support thread necro-posting.

1 Like

Thanks for the info, and sorry about the necro-posting!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.