dsnote icon indicating copy to clipboard operation
dsnote copied to clipboard

flatpak failed to launch

Open mpiko opened this issue 1 year ago • 9 comments

Downloaded the flatpak via the software manager. Pressed Launch. Nothing.

PRETTY_NAME="LMDE 6 (faye)" NAME="LMDE" VERSION_ID="6" VERSION="6 (faye)" VERSION_CODENAME=faye ID=linuxmint HOME_URL="https://www.linuxmint.com/" SUPPORT_URL="https://forums.linuxmint.com/" BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/" PRIVACY_POLICY_URL="https://www.linuxmint.com/" ID_LIKE=debian DEBIAN_CODENAME=bookworm

mpiko avatar Jul 13 '24 01:07 mpiko

Hi. Thanks for the report.

Could you please start the app from terminal with --verbose option?

flatpak run net.mkiol.SpeechNote --verbose

What is the output?

mkiol avatar Jul 14 '24 10:07 mkiol

I have a similar issue on Ubuntu 22.04:

After installing the flatpak and amd GPU support, the application starts but I get immediately a message, telling me , that the application is not responding and a message in the application window telling me, that no language is installed while the language button is greyed out.

klausbu avatar Jul 25 '24 09:07 klausbu

@klausbu Thanks for reporting.

Could you please start the app from the terminal with --verbose option to see more detailed logs?

flatpak run net.mkiol.SpeechNote --verbose

There is also special option --gpu-scan-off (in v4.6 --hw-scan-off) that disables HW scanning when app starts. Most likely this "freeze" is due to some error in detecting GPU cards. You can re-enable GPU detection in Settings->Other.

To disable GPU detection when app starts:

flatpak run net.mkiol.SpeechNote --gpu-scan-off --verbose

To re-enable:

image

mkiol avatar Jul 27 '24 18:07 mkiol

Hi any luck fixing this? Here is the output again: 

@.*** ~/.local/share/flatpak/repo $ flatpak run net.mkiol.SpeechNote --verbose error: While opening repository /home/michael/.local/share/flatpak/repo: opening repo: openat(config): No such file or directory

@.*** ~/.local/share/flatpak/repo $ ls extensions objects refs state tmp

@.*** ~/.local/share/flatpak/repo $

On Sun, 2024-07-14 at 03:04 -0700, mkiol wrote:

Hi. Thanks for the report. Could you please start the app from terminal with --verbose option? flatpak run net.mkiol.SpeechNote --verbose What is the output? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mpiko avatar Aug 14 '24 05:08 mpiko

@mpiko Hi. The output is somehow corrupted or unreadable - I don't know why. Would you be able to reinstall Speech Note and repeat the test starting the app from the terminal using this commands:

flatpak uninstall net.mkiol.SpeechNote --delete-data
flatpak install net.mkiol.SpeechNote
flatpak run net.mkiol.SpeechNote --verbose

Thanks!

mkiol avatar Aug 14 '24 18:08 mkiol

Thank you very much for looking into this issue.  As indicated in a previous message,  this directory does exist: /home/michael/.local/share/flatpak/repo: opening repo: openat(config): No such file or directory  Just for the sake of it, I tried each command as a regular user before trying sudo. 

Here is the output as requested:

@.*** ~ $ flatpak uninstall net.mkiol.SpeechNote --delete-data error: While opening repository /home/michael/.local/share/flatpak/repo: opening repo: openat(config): No such file or directory @.*** ~ $ sudo flatpak uninstall net.mkiol.SpeechNote --delete- data

ID Branch Op

  1. [-] net.mkiol.SpeechNote stable r

Uninstall complete. Delete data for net.mkiol.SpeechNote? [y/n]: y @.*** ~ $ flatpak install net.mkiol.SpeechNote error: While opening repository /home/michael/.local/share/flatpak/repo: opening repo: openat(config): No such file or directory @.*** ~ $ sudo flatpak install net.mkiol.SpeechNote Looking for matches…

net.mkiol.SpeechNote permissions: ipc network fallback-x11 pulseaudio wayland x11 devices file access [1] dbus access [2]

[1] xdg-config/kdeglobals:ro, xdg-desktop, xdg-documents, xdg-download, xdg-music, xdg-videos [2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications, org.kde.KGlobalSettings, org.kde.StatusNotifierWatcher, org.kde.kconfig.notify

ID Branch Op Remote Download

  1. [✓] net.mkiol.SpeechNote stable i flathub 1.1 GB / 959.1 MB

Installation complete. @.*** ~ $ flatpak run net.mkiol.SpeechNote --verbose error: While opening repository /home/michael/.local/share/flatpak/repo: opening repo: openat(config): No such file or directory @.*** ~ $ sudo flatpak run net.mkiol.SpeechNote --verbose error: "flatpak run" is not intended to be run as sudo flatpak run. Use sudo -i or su -l instead and invoke "flatpak run" from inside the new shell. @.*** ~ $

On Wed, 2024-08-14 at 11:43 -0700, mkiol wrote:

@mpiko Hi. The output is somehow corrupted or unreadable - I don't know why. Would you be able to reinstall Speech Note and repeat the test starting the app from the terminal using this commands: flatpak uninstall net.mkiol.SpeechNote --delete-data flatpak install net.mkiol.SpeechNote flatpak run net.mkiol.SpeechNote --verbose Thanks! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

mpiko avatar Aug 14 '24 22:08 mpiko

It looks like you can't even uninstall the app. It seems like the problem is not directly related to Speech Note, but rather something is broken in Flatpak itself. Not much I can help here :/

Maybe reinstalling Flatpak completely will help 🤔

mkiol avatar Aug 17 '24 08:08 mkiol

Yeah, it did uninstalled: @.*** ~ $ sudo flatpak uninstall net.mkiol.SpeechNote --delete- data

ID Branch Op

  1. [-] net.mkiol.SpeechNote stable r

Uninstall complete. Delete data for net.mkiol.SpeechNote? [y/n]: y

On Sat, 2024-08-17 at 01:42 -0700, mkiol wrote:

It looks like you can't even uninstall the app. It seems like the problem is not directly related to Speech Note, but rather something is broken in Flatpak itself. Not much I can help here :/ Maybe reinstalling Flatpak completely will help 🤔 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

mpiko avatar Aug 17 '24 21:08 mpiko

Hey! I'm facing the same issue, but apparently for different reasons. Since this issue is still open, I won't create a new one and I post my problem here.

This is the output of the following command :

flatpak run net.mkiol.SpeechNote --gpu-scan-off --verbose
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Distro : Debian 12.7 Kernel : 6.1.0-25-amd64 DE : GNOME 43.9 CPU : 11th Gen Intel i7-1185G7 (8) @ 4.800GHz GPU : Intel TigerLake-LP GT2 [Iris Xe Graphics] on Wayland

I do have qt apps that runs perfectly well.

Do you have an idea of what I could do to launch Speech Note ?

LalOpen avatar Sep 23 '24 16:09 LalOpen

I'm facing the same problem https://github.com/mkiol/dsnote/issues/150#issuecomment-2368817641 I fixed it by launching flatpak with QT_QPA_PLATFORM=wayland env var

flatpak --env=QT_QPA_PLATFORM=wayland run net.mkiol.SpeechNote

Source: https://github.com/flatpak/flatpak/issues/5658

MaximizeRr avatar Oct 19 '24 00:10 MaximizeRr

Closing. I assume the workaround with --env=QT_QPA_PLATFORM=wayland works as expected.

It seems that the problem is not related to the Speech Note app itself.

mkiol avatar Dec 29 '24 14:12 mkiol

No it does not. I’ve given up on it. Thank you anyway. Regards,Michael. On 30 Dec 2024, at 1:34 am, mkiol @.***> wrote: Closing. I assume the workaround with --env=QT_QPA_PLATFORM=wayland works as expected. It seems that the problem is not related to the Speech Note app itself.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

mpiko avatar Dec 29 '24 17:12 mpiko