Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Version 1.1.2 doesn't work on Ubuntu 20.04 #318

Closed
marc-farre opened this issue May 22, 2022 · 16 comments
Closed

Version 1.1.2 doesn't work on Ubuntu 20.04 #318

marc-farre opened this issue May 22, 2022 · 16 comments
Assignees
Labels

Comments

@marc-farre
Copy link

marc-farre commented May 22, 2022

Version 1.0.0 works well, but version 1.1.2 doesn't work on Ubuntu 20.04.

Error message:

Gtk-Message: 17:39:58.078: Failed to load module "unity-gtk-module"
Gtk-Message: 17:39:58.079: Failed to load module "unity-gtk-module"
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[261760:0522/173958.199909:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/dictionaries'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/dictionaries'
  }
]

Then, if I press CRTL + C:
image

Thanks for this great app!

@kkasra12
Copy link

I have a similar problem with version 1.1.2
the error is:

$ abricotine 
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/dictionaries'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/dictionaries'
  }
]
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/lang'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/lang'
  }
]
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/templates'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/templates'
  }
]
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/themes'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/themes'
  }
]

Here is some more results:

$ ls /opt/Abricotine/resources/app.asar.unpacked/default/themes
ls: cannot access '/opt/Abricotine/resources/app.asar.unpacked/default/themes': No such file or directory
$ ls /opt/Abricotine/resources/app.asar.unpacked/default/
ls: cannot access '/opt/Abricotine/resources/app.asar.unpacked/default/': No such file or directory
$ ls /opt/Abricotine/resources/app.asar.unpacked/
ls: cannot access '/opt/Abricotine/resources/app.asar.unpacked/': No such file or directory
$ ls /opt/Abricotine/resources
app.asar
$ ls -l /opt/Abricotine/resources
total 45912
-rw-r--r-- 1 root root 47011579 May 22 17:51 app.asar

@brrd
Copy link
Owner

brrd commented May 23, 2022

@funkycram @kkasra12 Thanks for your feedback.

Can you please try to run abricotine --reset in your terminal?

@marc-farre
Copy link
Author

Same problem, even after sudo apt remove --purge abricotine and reinstall.

$ abricotine --reset
Gtk-Message: 09:54:43.497: Failed to load module "unity-gtk-module"
Gtk-Message: 09:54:43.499: Failed to load module "unity-gtk-module"
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/dictionaries'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/dictionaries'
  }
]
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/lang'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/lang'
  }
]
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/templates'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/templates'
  }
]
[
  [Error: ENOENT: no such file or directory, lstat '/opt/Abricotine/resources/app.asar.unpacked/default/themes'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/opt/Abricotine/resources/app.asar.unpacked/default/themes'
  }
]
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[346752:0524/095443.701457:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.

When I reinstall version 1.0.0 it works well.
Thanks.

PS: je viens de voir que t'es Français, moi je suis à Toulouse ! Merci pour le débogage et surtout cet excellent éditeur markdown !

@brrd
Copy link
Owner

brrd commented May 24, 2022

OK, I will have a look at this when I have some time.

Merci ;-)

@tech189
Copy link

tech189 commented May 24, 2022

Just to let you know, I get the same error on Windows 11 with version 1.1.2, the same directories cannot be found: ...\resources\app.asar.unpacked\default\dictionaries, lang, templates, themes. The directory app.asar.unpacked doesn't exist at all. Also, the command abricotine --reset doesn't help sadly. Version 1.0.0 works fine.

@brrd
Copy link
Owner

brrd commented May 24, 2022

So it's not only happening on Linux. It's probably an issue when reading into the asar archive.
Your comment is very helpful @tech189, thank you.

@brrd brrd removed the linux label May 24, 2022
@brrd brrd closed this as completed in d3ae18e May 24, 2022
@brrd
Copy link
Owner

brrd commented May 24, 2022

I think this was fixed in version 1.1.3.

@marc-farre
Copy link
Author

marc-farre commented May 24, 2022

Thanks a lot!
Unfortunately, I still cannot make it work.
Tested:

  • sudo apt remove --purge abricotine
  • Installed v 1.1.3

I get:

$ abricotine 
Gtk-Message: 15:09:16.569: Failed to load module "unity-gtk-module"
Gtk-Message: 15:09:16.570: Failed to load module "unity-gtk-module"
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[384711:0524/150916.656234:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
Error while loading localization data: Error: EACCES: permission denied, open '/home/marc/.config/Abricotine/app/lang/en.json'

image

And I cannot do anything (e.g. loading a file).

Then, with --reset:

$ abricotine --reset
Gtk-Message: 15:10:49.884: Failed to load module "unity-gtk-module"
Gtk-Message: 15:10:49.885: Failed to load module "unity-gtk-module"
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[384861:0524/151049.976340:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[
  [Error: EACCES: permission denied, unlink '/home/marc/.config/Abricotine/app/templates/default/template.html'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'unlink',
    path: '/home/marc/.config/Abricotine/app/templates/default/template.html'
  }
]

If I press CTRL + C:
image

On of the problem seems to be here:

$ ls -lah /home/marc/.config/Abricotine/app/templates/
ls: cannot access '/home/marc/.config/Abricotine/app/templates/.': Permission denied
ls: cannot access '/home/marc/.config/Abricotine/app/templates/..': Permission denied
total 0
d????????? ? ? ? ?              ? .
d????????? ? ? ? ?              ? ..

Then, I did try this:

$ rm -rf /home/marc/.config/Abricotine/app/templates/
$ ls -lah /home/marc/.config/Abricotine/app/templates/
ls: cannot access '/home/marc/.config/Abricotine/app/templates/': No such file or directory
$ mkdir /home/marc/.config/Abricotine/app/templates/
$ ls -lah /home/marc/.config/Abricotine/app/templates/
total 8,0K
drwxrwxr-x 2 marc marc 4,0K mai   24 15:16 .
drwxrwxr-x 6 marc marc 4,0K mai   24 15:16 ..

So the folder .config/Abricotine/app/templates/ is now OK.
But if I start do again abricotine --reset then I have the same problem:

$ ls -lah /home/marc/.config/Abricotine/app/templates/
ls: cannot access '/home/marc/.config/Abricotine/app/templates/.': Permission denied
ls: cannot access '/home/marc/.config/Abricotine/app/templates/..': Permission denied
total 0
d????????? ? ? ? ?              ? .
d????????? ? ? ? ?              ? ..

If I reinstall version 1.0.0, then .config/Abricotine/app/templates is accessible:

$ ls -lah /home/marc/.config/Abricotine/app/templates/
total 16K
drwxr-xr-x 4 marc marc 4,0K mai   24 15:21 .
drwxrwxr-x 6 marc marc 4,0K mai   24 15:21 ..
drwxr-xr-x 3 marc marc 4,0K mai   24 15:21 default
drwxr-xr-x 3 marc marc 4,0K mai   24 15:21 github

@brrd
Copy link
Owner

brrd commented May 24, 2022

@funkycram I think this is another issue.

Can you please try rm -rf /home/marc/.config/Abricotine?

@brrd brrd reopened this May 24, 2022
@marc-farre
Copy link
Author

@funkycram I think this is another issue.

Can you please try rm -rf /home/marc/.config/Abricotine?

Yes, I did, same problem.

@brrd
Copy link
Owner

brrd commented May 24, 2022

OK, thank you. I need to do further investigation.

@maxtat3
Copy link

maxtat3 commented Jun 8, 2022

Exactly the same problem after install as @funkycram describes. Tested on Ubuntu 18.04 with LXDE environment.

@brrd
Copy link
Owner

brrd commented Jun 9, 2022

I'm planning to fix this bug as a priority, as soon as I find enough time to work on it. Before then you can use version 1.0.0 on Linux.

@brrd brrd self-assigned this Jun 9, 2022
brrd added a commit that referenced this issue Jun 9, 2022
@brrd
Copy link
Owner

brrd commented Jun 9, 2022

Can you please try https://github.com/brrd/abricotine/releases/tag/v1.1.4 and confirm it fixed the issue?

@marc-farre
Copy link
Author

It works fine, thanks a lot! 😊

For informations for others, I don't know if it's necessary, but I did, after installing:

rm -rf ~/.config/Abricotine
abricotine --reset

@maxtat3
Copy link

maxtat3 commented Jun 11, 2022

Tested. Also version 1.1.4 works great. Thanks a lot for the quick fix !

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

No branches or pull requests

5 participants