Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak version doesn't launch on Linux Mint #1612

Open
SpeeQz1 opened this issue Dec 10, 2024 · 9 comments
Open

Flatpak version doesn't launch on Linux Mint #1612

SpeeQz1 opened this issue Dec 10, 2024 · 9 comments

Comments

@SpeeQz1
Copy link

SpeeQz1 commented Dec 10, 2024

Flatpak Shotcut won't open when launching it on Linux Mint, surprisingly the .deb and AppImage version do work.

image

When trying to run the flatpak in terminal:

Gtk-Message: 22:21:43.196: Failed to load module "xapp-gtk3-module"
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
---
formats:
  - a64
  - ac3
  - ac4

...
# Just prints out more formats and codecs

Shotcut Version: 24.11.17 Flatpak
OS: Linux Mint 22 (Cinnamon)

@ddennedy
Copy link
Member

I installed Mint 22 Cinnamon in a virtual machine and the Shotcut flatpak, and it worked for me:
image

I too get the warnings about xapp-gtk3-module and libDeckLinkAPI.so. The DeckLink message is well known and not an error. That is an optional user-space driver for specialized video production hardware.

I guess something else installed on your system is causing a problem, but Flatpak is usually more isolated than the portable or AppImage.
🤷

@SpeeQz1
Copy link
Author

SpeeQz1 commented Dec 10, 2024

I installed Mint 22 Cinnamon in a virtual machine and the Shotcut flatpak, and it worked for me: image

I too get the warnings about xapp-gtk3-module and libDeckLinkAPI.so. The DeckLink message is well known and not an error. That is an optional user-space driver for specialized video production hardware.

I guess something else installed on your system is causing a problem, but Flatpak is usually more isolated than the portable or AppImage. 🤷

Anyways to debug this then?

@ddennedy
Copy link
Member

Of course there is a way to debug it, but I do not know from memory. Ask AI or search the web for how to debug a flatpak with gdb because that is what I would have to do and copy and paste here it for you.

@SpeeQz1
Copy link
Author

SpeeQz1 commented Dec 10, 2024

Of course there is a way to debug it, but I do not know from memory. Ask AI or search the web for how to debug a flatpak with gdb because that is what I would have to do and copy and paste here it for you.

Followed this documentation: Debugging

GNU gdb (GDB) 15.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /app/bin/shotcut...
Reading symbols from /usr/lib/debug//app/bin/shotcut.debug...
(gdb) run
Starting program: /app/bin/shotcut 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff0b756c0 (LWP 27)]
[New Thread 0x7fffebfff6c0 (LWP 28)]
Gtk-Message: 01:30:54.548: Failed to load module "xapp-gtk3-module"
[New Thread 0x7fffea86c6c0 (LWP 29)]
[New Thread 0x7fffe8b456c0 (LWP 30)]
[New Thread 0x7fffd49ff6c0 (LWP 31)]
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
[New Thread 0x7fffd41fe6c0 (LWP 32)]
---
formats:
  - a64
  - ac3

...
# Rest of codecs and formats

Thread 1 "shotcut" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, 
    no_tid=no_tid@entry=0) at pthread_kill.c:44
44	      return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;

@ddennedy
Copy link
Member

Thanks, but it is better to have all of the lines after gdb command bt because the output is not useful (Shotcut does not call pthread_kill).

@SpeeQz1
Copy link
Author

SpeeQz1 commented Dec 11, 2024

Thanks, but it is better to have all of the lines after gdb command bt because the output is not useful (Shotcut does not call pthread_kill).

gdb.txt

@ddennedy
Copy link
Member

ddennedy commented Dec 11, 2024

From this line in the debug output it looks like this version of Qt fails with the OpenGL on your computer

#12 0x00007fffd5869db1 in QXcbGlxIntegration::createPlatformOpenGLContext (this=0x5555564c9b20, context=) at /run/build-runtime/qt6-qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp:158

@SpeeQz1
Copy link
Author

SpeeQz1 commented Dec 11, 2024

From this line in the debug output it looks like this version of Qt fails with the OpenGL on your computer

#12 0x00007fffd5869db1 in QXcbGlxIntegration::createPlatformOpenGLContext (this=0x5555564c9b20, context=) at /run/build-runtime/qt6-qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp:158

Here's my version:
OpenGL version string: 4.6.0 NVIDIA 550.127.08

@SpeeQz1
Copy link
Author

SpeeQz1 commented Dec 15, 2024

@ddennedy After some more application usage I noticed this is a global issue with my system when it comes to flatpaks. For some reason some flatpaks would not run on my system when they run perfectly fine on a VM with the same version of Mint.
Any idea what could be causing this?
I am using Nvidia 550 drivers by the way and I believe it's because I am not using the Mesa version since that is what the VM uses.

Here is the error from Gwenview:

qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile)
Could not initialize GLX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants