cross-platform / icloud-for-linux

Access all of your favourite iCloud apps from Linux
https://snapcraft.io/icloud-for-linux
GNU General Public License v3.0
381 stars 56 forks source link

Opens a blank window with libGL errors on Ubuntu 20.04.1 LTS #29

Closed jonnymaserati closed 3 years ago

jonnymaserati commented 3 years ago

I'm not able to use any of the apps. I just get a blank window like this. image With the following errors.

$ icloud-for-linux.drive
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/205/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/205/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
Qt: Session management error: None of the authentication protocols specified are supported
Sandboxing disabled by user.
[151176:151281:1118/232639.591698:ERROR:address_tracker_linux.cc(158)] Could not create NETLINK socket: Operation not permitted (1)
[151176:151287:1118/232639.607275:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.3hi1wo failed: Permission denied (13)
[151176:151176:1118/232639.628069:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.INy4Lo failed: Permission denied (13)
[151176:151297:1118/232639.630546:ERROR:zygote_host_impl_linux.cc(259)] Failed to adjust OOM score of renderer with pid 151299: Permission denied (13)
[151176:151287:1118/232639.648619:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.T7J6so failed: Permission denied (13)

I've removed the amdgpu-pro drivers and installed the latest 20.45 amdgpu drivers as well as reinstalling the libgl1-mesa-dev, but none of these have helped remedy this issue.

MarcusTomlinson commented 3 years ago

Are you using X11 or Wayland?

echo $XDG_SESSION_TYPE

MarcusTomlinson commented 3 years ago

Could you also let me know what output you get from:

snap remove icloud-for-linux
snap install icloud-for-linux --devmode
icloud-for-linux.drive
jonnymaserati commented 3 years ago

@MarcusTomlinson thanks for the prompt response!

Using x11

With --devmode then I get the log-in screen and can now successfully log in, so that's progress! image However, I still get an error:

$ icloud-for-linux.drive
/usr/share/libdrm/amdgpu.ids: No such file or directory
Qt: Session management error: None of the authentication protocols specified are supported
Sandboxing disabled by user.
js: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
MarcusTomlinson commented 3 years ago

ok, can you try:

snap remove icloud-for-linux
snap install icloud-for-linux --candidate
icloud-for-linux.drive

and share the output.

If you still get a blank screen, try:

snap connect icloud-for-linux:netlink-connector
icloud-for-linux.drive

Thanks!

jonnymaserati commented 3 years ago

Thanks @MarcusTomlinson

After following your first code block, I indeed am back to a blank window with the following errors:

$ icloud-for-linux.drive
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/211/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/211/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
Qt: Session management error: None of the authentication protocols specified are supported
Sandboxing disabled by user.
[227770:227986:1119/150714.001219:ERROR:address_tracker_linux.cc(158)] Could not create NETLINK socket: Operation not permitted (1)
[227770:227993:1119/150714.386950:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.o5Gjq7 failed: Permission denied (13)
[227770:227770:1119/150714.855709:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.ZEeBO5 failed: Permission denied (13)
[227770:228004:1119/150714.870762:ERROR:zygote_host_impl_linux.cc(259)] Failed to adjust OOM score of renderer with pid 228005: Permission denied (13)
[227770:227993:1119/150715.998274:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.ugH176 failed: Permission denied (13)

After following your second code block (the net link seemed to work okay), I still get an empty window and the following errors (they look the same as above).

$ icloud-for-linux.drive
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/211/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/211/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
Qt: Session management error: None of the authentication protocols specified are supported
Sandboxing disabled by user.
[228400:228505:1119/150950.850505:ERROR:address_tracker_linux.cc(158)] Could not create NETLINK socket: Operation not permitted (1)
[228400:228510:1119/150950.870485:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.8CAorK failed: Permission denied (13)
[228400:228400:1119/150950.888373:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.Rj127J failed: Permission denied (13)
[228400:228522:1119/150950.890856:ERROR:zygote_host_impl_linux.cc(259)] Failed to adjust OOM score of renderer with pid 228523: Permission denied (13)
[228400:228510:1119/150950.911961:ERROR:platform_shared_memory_region_posix.cc(222)] Creating shared memory in /dev/shm/.org.chromium.Chromium.rdyTPJ failed: Permission denied (13)

So your --devmode code works but not the others?

MarcusTomlinson commented 3 years ago

You sure you have the non-pro (opensource) amd drivers installed? (see: https://forum.snapcraft.io/t/problem-with-libdrm-and-amdgpu-pro/9421/14)

Very odd.

Did you get any errors from the snap connect icloud-for-linux:netlink-connector call?

jonnymaserati commented 3 years ago

Yep, I uninstalled amdgpu-pro and I just checked the /opt/amggpu-pro folder... it's there but just has empty folders.

Yes, the snap connect icloud-for-linux:netlink-connector call appears to work (there's no errors).

MarcusTomlinson commented 3 years ago

Alright, I suppose your only option at this point is --devmode (which means the app will have to run unconfined). Sorry about that. I'll let you know if I have any other ideas. Thank you for taking the time to help!

jonnymaserati commented 3 years ago

Thanks for taking the time to check it out!

MarcusTomlinson commented 3 years ago

I've just pushed another version to candidate. When you get a moment, could you please try these steps again: https://github.com/cross-platform/icloud-for-linux/issues/29#issuecomment-730362801.

jonnymaserati commented 3 years ago

Hi @MarcusTomlinson... I just tried the new --candidate but same outcome:

$ icloud-for-linux.drive
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/212/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu (search paths /snap/icloud-for-linux/212/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: amdgpu
Qt: Session management error: None of the authentication protocols specified are supported
Sandboxing disabled by user.
[8537:8745:1122/105139.636000:ERROR:address_tracker_linux.cc(153)] Could not create NETLINK socket: Operation not permitted
[8537:8537:1122/105140.270229:ERROR:shared_memory_posix.cc(283)] Creating shared memory in /dev/shm/.org.chromium.Chromium.W6MKFg failed: Permission denied
[8537:8752:1122/105140.285325:ERROR:zygote_host_impl_linux.cc(277)] Failed to adjust OOM score of renderer with pid 8762: Permission denied
js: Uncaught ReferenceError: jstProcess is not defined

--devmode continues to work though.

MarcusTomlinson commented 3 years ago

Ok thanks for the update!