mkiol / dsnote

Speech Note Linux app. Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine translation.
Mozilla Public License 2.0
569 stars 20 forks source link

flatpak failed to launch #150

Open mpiko opened 4 months ago

mpiko commented 4 months ago

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

mkiol commented 4 months ago

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?

klausbu commented 3 months ago

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.

mkiol commented 3 months ago

@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

mpiko commented 3 months ago

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: @.***>

mkiol commented 3 months ago

@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!

mpiko commented 3 months ago

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: @.***>

mkiol commented 2 months ago

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 🤔

mpiko commented 2 months ago

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: @.***>

LalOpen commented 1 month ago

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 ?

MaximizeRr commented 3 weeks ago

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