sonnyp / Tangram

Browser for your pinned tabs
https://apps.gnome.org/app/re.sonny.Tangram/
GNU General Public License v3.0
907 stars 38 forks source link

Unable to get tangram flatpak to work at all #189

Closed dupr0n closed 2 years ago

dupr0n commented 2 years ago

Ever since my first install of Tangram about 2 weeks ago, I've been unable to open it. Here's what I get when running it from the terminal.

 ~  flatpak install flathub re.sonny.Tangram             Mon 18 Apr 2022 11:15:53 AM IST
Looking for matches…

re.sonny.Tangram permissions:
    ipc            network        fallback-x11        pulseaudio
    wayland        x11            dri                 system dbus access [1]

    [1] org.freedesktop.GeoClue2

        ID                     Branch       Op       Remote        Download
 1. [|] re.sonny.Tangram       stable       i        flathub       92.1 kB / 53.7 kB

Installing… ████████████████████ 100%  92.1 kB/s
 ~  flatpak run re.sonny.Tangram                   13s  Mon 18 Apr 2022 11:16:12 AM IST
Gjs-Message: 11:18:02.501: JS LOG: gjs 1.72.0
Gjs-Message: 11:18:02.501: JS LOG: WebKitGTK 2.36.0
Gjs-Message: 11:18:02.501: JS LOG: libsoup 2.74.2
Gjs-Message: 11:18:02.501: JS LOG: env: flatpak
Gjs-Message: 11:18:02.501: JS LOG: data_dir: /home/dr0hith/.var/app/re.sonny.Tangram/data/Tangram
Gjs-Message: 11:18:02.501: JS LOG: cache_dir: /home/dr0hith/.var/app/re.sonny.Tangram/cache/Tangram
Gjs-Message: 11:18:02.501: JS LOG: config_dir: /home/dr0hith/.var/app/re.sonny.Tangram/config/Tangram
Gjs-Message: 11:18:02.501: JS LOG: applications_dir: /home/dr0hith/.local/share/applications
Gjs-Message: 11:18:02.501: JS LOG: keyfile_settings_path: 
Gjs-Message: 11:18:02.507: JS LOG: programInvocationName: /app/bin/re.sonny.Tangram
Gjs-Message: 11:18:02.507: JS LOG: _: null
Gjs-Message: 11:18:02.508: JS LOG: argv /app/bin/re.sonny.Tangram
Gtk-Message: 11:18:02.533: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:18:02.533: Failed to load module "pk-gtk-module"
Gtk-Message: 11:18:02.534: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:18:02.534: Failed to load module "pk-gtk-module"

(re.sonny.Tangram:2): Gjs-CRITICAL **: 11:18:02.549: JS ERROR: Gio.IOErrorEnum: Error creating directory /home/dr0hith/.var/app/re.sonny.Tangram/data/Tangram/1a5d545db7ed4be297c9a40f7fc3fab7: No such file or directory
ensureDirectory@file:///app/share/Tangram/util.js:107:33
create@file:///app/share/Tangram/instances.js:70:18
onNewTab@file:///app/share/Tangram/window.js:226:36
Window/<@file:///app/share/Tangram/window.js:254:7
observeSetting@file:///app/share/Tangram/util.js:71:9
Window@file:///app/share/Tangram/window.js:251:17
getWindow@file:///app/share/Tangram/application.js:24:14
@file:///app/share/Tangram/application.js:35:3
main@file:///app/share/Tangram/main.js:59:22
@file:///app/bin/re.sonny.Tangram:18:5

However, when I run the same command again from another terminal while this is still open, I finally get a window that opens up, and this terminal output.

 ~  flatpak run re.sonny.Tangram                                                                                                                                                                     1527ms  Mon 18 Apr 2022 11:51:24 AM IST
Gjs-Message: 11:51:29.157: JS LOG: gjs 1.72.0
Gjs-Message: 11:51:29.157: JS LOG: WebKitGTK 2.36.0
Gjs-Message: 11:51:29.157: JS LOG: libsoup 2.74.2
Gjs-Message: 11:51:29.158: JS LOG: env: flatpak
Gjs-Message: 11:51:29.158: JS LOG: data_dir: /home/dr0hith/.var/app/re.sonny.Tangram/data/Tangram
Gjs-Message: 11:51:29.158: JS LOG: cache_dir: /home/dr0hith/.var/app/re.sonny.Tangram/cache/Tangram
Gjs-Message: 11:51:29.158: JS LOG: config_dir: /home/dr0hith/.var/app/re.sonny.Tangram/config/Tangram
Gjs-Message: 11:51:29.158: JS LOG: applications_dir: /home/dr0hith/.local/share/applications
Gjs-Message: 11:51:29.158: JS LOG: keyfile_settings_path: 
Gjs-Message: 11:51:29.164: JS LOG: programInvocationName: /app/bin/re.sonny.Tangram
Gjs-Message: 11:51:29.164: JS LOG: _: null
Gjs-Message: 11:51:29.164: JS LOG: argv /app/bin/re.sonny.Tangram
 ~                                                                                                                                                                                                    159ms  Mon 18 Apr 2022 11:51:29 AM IST

Here's the window I get. image

Nothing happens when I click the add button, but I do get a log from the first terminal everytime I click it.

(re.sonny.Tangram:2): Gjs-CRITICAL **: 11:54:38.429: JS ERROR: Gio.IOErrorEnum: Error creating directory /home/dr0hith/.var/app/re.sonny.Tangram/data/Tangram/638d877b822a4927a1bdb8ef51fc7522: No such file or directory
ensureDirectory@file:///app/share/Tangram/util.js:107:33
create@file:///app/share/Tangram/instances.js:70:18
onNewTab@file:///app/share/Tangram/window.js:226:36
Header/<@file:///app/share/Tangram/Header.js:161:41
main@file:///app/share/Tangram/main.js:59:22
@file:///app/bin/re.sonny.Tangram:18:5

When I click the reload button, I get this.

(re.sonny.Tangram:2): Gjs-CRITICAL **: 12:00:36.278: JS ERROR: TypeError: webview is undefined
Header/<@file:///app/share/Tangram/Header.js:96:9
main@file:///app/share/Tangram/main.js:59:22
@file:///app/bin/re.sonny.Tangram:18:5

Some of the things I've tried, but was unsuccessful:

Output for the last thing I tried.

 ~/Applications  git clone https://github.com/sonnyp/Tangram.git
Cloning into 'Tangram'...
remote: Enumerating objects: 2385, done.
remote: Counting objects: 100% (669/669), done.
remote: Compressing objects: 100% (413/413), done.
remote: Total 2385 (delta 435), reused 431 (delta 236), pack-reused 1716
Receiving objects: 100% (2385/2385), 4.50 MiB | 4.57 MiB/s, done.
Resolving deltas: 100% (1515/1515), done.
 ~/Applications  cd Tangram                     2735ms  Mon 18 Apr 2022 12:02:19 PM IST
                  git submodule init
                  git submodule update
                  npm install
Submodule 'troll' (https://github.com/sonnyp/troll) registered for path 'src/troll'
Cloning into '/home/dr0hith/Applications/Tangram/src/troll'...
Submodule path 'src/troll': checked out 'be6f9d985bce58c1cfd861ba9d39a2e9162caed4'

> prepare
> husky install

husky - Git hooks installed

added 290 packages, and audited 291 packages in 2s

66 packages are looking for funding
  run `npm fund` for details

1 critical severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
 ~/A/Tangram    ./run.sh                      3774ms  Mon 18 Apr 2022 12:02:41 PM IST

(gjs:65056): Gjs-CRITICAL **: 12:02:48.866: JS ERROR: Error: Requiring WebKit2, version 5.0: Typelib file for namespace 'WebKit2', version '5.0' not found
require@resource:///org/gnome/gjs/modules/esm//gi.js:14:24
@gi://WebKit2?version=5.0:3:25

(gjs:65056): Gjs-CRITICAL **: 12:02:48.867: Module file:///home/dr0hith/Applications/Tangram/re.sonny.Tangram threw an exception
 !  ~/A/Tangram                                       Mon 18 Apr 2022 12:02:48 PM IST

Tangram version

1.4.1

Linux distribution

Fedora 35 (Workstation)

Flatpak version

Flatpak 1.12.7

Desktop environment

GNOME 41.5 in X11

diego-treitos commented 2 years ago

I found a similar problem right after installation. In my case this looks like a bug in the app not creating a couple of needed directories:

mkdir ~/.var/app/re.sonny.Tangram/data/Tangram/
mkdir ~/.var/app/re.sonny.Tangram/cache/Tangram/

After that, the application started but the window only shows an address bar and a Done button.

Anyway I don't think I can use this for now.

dupr0n commented 2 years ago

I found a similar problem right after installation. In my case this looks like a bug in the app not creating a couple of needed directories:

mkdir ~/.var/app/re.sonny.Tangram/data/Tangram/
mkdir ~/.var/app/re.sonny.Tangram/cache/Tangram/

After that, the application started but the window only shows an address bar and a Done button.

Anyway I don't think I can use this for now.

I just tried this and it works now. Thanks!

For you're situation, I'd suggest maybe trying . flatpak repair re.sonny.Tangram

Or worst case scenario, just install another browser and use that instead. That's what I did till your suggestion. Once again. Thanks!

joaopfonseca commented 2 years ago

I'm on Fedora 35 as well, had the same issue. In my case it seems like I already had the ~/.var/app/re.sonny.Tangram/cache/Tangram/ directory after installation already, I just needed to create the ~/.var/app/re.sonny.Tangram/data/Tangram/ and it works now. Thanks!

dupr0n commented 2 years ago

Alright then. The issue has been resolved for me, so I'm closing this issue