bksubhuti / tipitaka-pali-reader

A Pali Reading app made in Flutter
21 stars 5 forks source link

Can not launch flatpak application #232

Closed Devamitta closed 4 weeks ago

Devamitta commented 7 months ago

Describe the bug I installed TPR using Flatpak on Linux, but I am unable to launch it. Could it be because I am missing some dependencies?

To Reproduce Steps to reproduce the behavior:

  1. opened terminal
  2. flatpak install org.americanmonk.TipitakaPaliReader
  3. Open start menu
  4. Click Tipitaka Pali Reader
  5. I briefly saw a new window, but it disappeared.

Desktop (please complete the following information):

bksubhuti commented 7 months ago

I am on 21.2 mint as well. and it works fine on my machine as well as other mint users. One monk said he launched it a second time and it worked.. try..

bksubhuti commented 7 months ago

If it does not work .. you can try installing sudo apt install libsqlite3-dev

If that does not work.. Please do step by step so I know..

Try installing these app.. sudo apt-get install libgtk-3-0 libblkid1 liblzma5

and if that does not work.. try the developer apps.. . sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev

let me know why which step helped. Sounds like sqlite will fix it.. but it should be included in the flatpak framework.. but maybe they don't have the dev version..

References... https://docs.flutter.dev/platform-integration/linux/building https://docs.flutter.dev/platform-integration/desktop

Devamitta commented 7 months ago

Thank you Bhante for your attention.

One monk said he launched it a second time and it worked.. try.

tried many times

If it does not work .. you can try installing sudo apt install libsqlite3-dev

libsqlite3-dev is already the newest version (3.37.2-2ubuntu0.1).

sudo apt-get install libgtk-3-0 libblkid1 liblzma5

libblkid1 is already the newest version (2.37.2-4ubuntu3). liblzma5 is already the newest version (5.2.5-2ubuntu1). libgtk-3-0 is already the newest version (3.24.33-1ubuntu2).

sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev

liblzma-dev is already the newest version (5.2.5-2ubuntu1). pkg-config is already the newest version (0.29.2-1ubuntu3). clang is already the newest version (1:14.0-55~exp2). ninja-build is already the newest version (1.10.1-1). cmake is already the newest version (3.22.1-1ubuntu1.22.04.1). git is already the newest version (1:2.34.1-1ubuntu1.10). libgtk-3-dev is already the newest version (3.24.33-1ubuntu2). libstdc++-12-dev is already the newest version (12.3.0-1ubuntu1~22.04).


even after rebooting the same issue - app tries to open, I see window for a sec and then it is disappeared


when I try to lunch it is the terminal, the result is:

Gtk-Message: 09:59:20.838: Failed to load module "xapp-gtk3-module" (tipitaka_pali_reader:2): Gdk-CRITICAL **: 09:59:20.864: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

when I try to install xapp

❯sudo apt-get install xapp

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following packages have unmet dependencies: xapp : Depends: libxapp1 (= 2.2.8-1) but 2.6.1+victoria is to be installed E: Unable to correct problems, you have held broken packages.

maybe it is possible to run this app with the latest dependencies?

bksubhuti commented 7 months ago

So did it work ? I didn't understand your response.

Devamitta commented 7 months ago

No Bhante, the error is:

Gtk-Message: 11:45:37.674: Failed to load module "xapp-gtk3-module"

(tipitaka_pali_reader:2): Gdk-CRITICAL **: 11:45:37.700: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

and the window is appearing for a sec

bksubhuti commented 7 months ago

You might want to look at the directory .var/app/org.americanmonk/TipitakaPaliReader/data/tipitaka_pali_reader try deleting that directory.. or delete with the flatpak command to remove all data. https://forums.linuxmint.com/viewtopic.php?t=395080#:~:text=flatpak%20uninstall%20%2D%2Dunused%20%2D%2D,%22%20with%20actual%20package%20IDs).

image

bksubhuti commented 7 months ago

a new version of flatpak will be released soon. Perhaps there was something corrupted in the db. We can try again.

Devamitta commented 7 months ago

on another Linux Mint PC error is a bit different:

Gtk-Message: 21:04:38.924: Failed to load module "xapp-gtk3-module" (tipitaka_pali_reader:2): Gdk-CRITICAL **: 21:04:39.279: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed malloc(): unsorted double linked list corrupted

bksubhuti commented 7 months ago

These errors are normal and don't matter.

We will make another release .. maybe this weekend.. then need to get approved. Perhaps there was something wrong with the build.

bksubhuti commented 1 month ago

Did you ever get it to work? We have an appimage that works (I forgot to tell you). I will be hopefully making a new flatpak this weekend. We are now "verified". That just means our website that we registered with is actually our website and now has a key for them.

bksubhuti commented 1 month ago

flatpak has been very disappointing. It seems to not work on my machine too using 24.04 ubuntu. I have a message out to a person who helped me build it. I recommend using an appimage and then making a desktop for now.

Devamitta commented 1 month ago

Yes the AppImage is working well.

bksubhuti commented 1 month ago

okay.. we will see soon enough.. I might have to downgrade to mint 22.04 this weekend because of trouble.

bksubhuti commented 1 month ago

if you want , you can try the new flatpak.. also have appimage released.

Devamitta commented 4 weeks ago

Yes , working well. I think we can close the issue, Bhante.

bksubhuti commented 4 weeks ago

Great! We are also verified publishers. So that will help with the new mint. I had trouble with 24.04 so I won't be upgrading for a while. There really is no need anyway.