I just installed Ubuntu 18.04 and Shotcut (in all forms: snap, AppImage, Tar) and when I detach the timeline the program crashes.
This is the command line output:
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:86:20: Unable to assign [undefined] to double
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:85:19: Unable to assign [undefined] to QString
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:84:22: Unable to assign [undefined] to int
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:83:21: Unable to assign [undefined] to int
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:87:25: Unable to assign [undefined] to QString
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:78:27: Unable to assign [undefined] to bool
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:76:22: Unable to assign [undefined] to bool
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:75:23: Unable to assign [undefined] to int
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:74:22: Unable to assign [undefined] to int
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:73:25: Unable to assign [undefined] to QString
[Warning] <> file:///opt/Shotcut/Shotcut.app/share/shotcut/qml/timeline/Track.qml:71:27: Unable to assign [undefined] to QString
Segmentation fault (core dumped)
Ok! I just used GDB with shotcut and this is what it throws when I detach the timeline and crashes:
Thread 1 “shotcut” received signal SIGSEGV, Segmentation fault.
0x00007ffff705bc74 in QSGDefaultDistanceFieldGlyphCache::~QSGDefaultDistanceFieldGlyphCache() () from /opt/Shotcut/Shotcut.app/lib/libQt5Quick.so.5
(gdb)
That is what I was suspected. It is somewhere deep in the Qt’s OpenGL scene graph. I am surprised that it did not go away when choosing software OpenGL although that I suppose that could fail depending on the Mesa llvmpipe library installed on your system since on Linux all that does is set an environment variable. To confirm, after you choose this mode, choose View > Application Log… and look for all messages related to OpenGL. You should find something like this:
I found this related unresolved bug report. It has a workaround. After the 20.02 release, I will try to apply the workaround it mentions and give you a nightly build to test.
It seems the nvidia driver does not respect the environment variable LIBGL_ALWAYS_SOFTWARE that Shotcut uses. If you try to install Mesa OpenGL through a package, it will most likely remove your nvidia driver or at least break it. You can do a web search on “linux nvidia LIBGL_ALWAYS_SOFTWARE” to read more.
Also, I am surprised to see you have this problem with the nvidia driver. For the first 5 years of Shotcut development, I primarily used Linux with the nvidia binary driver, and I did not have this issue.