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

Fontconfig warning: FcPattern object weight does not accept value [x y) #17

Closed cyakimov closed 4 years ago

cyakimov commented 4 years ago

I just installed this package in Manjaro 20 with snapd but no app will open.

I did journalctl -b | grep -E "icloud" and it seems AppArmor is denying the operation.

jul 16 10:46:44 Manjaro audit[6870]: AVC apparmor="DENIED" operation="open" profile="snap.icloud-for-linux.notes" name="/proc/6870/setgroups" pid=6870 comm="qmlscene" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000
jul 16 10:46:44 Manjaro audit[6870]: SYSCALL arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f10d16baf30 a2=1 a3=0 items=0 ppid=6763 pid=6870 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=3 comm="qmlscene" exe="/snap/icloud-for-linux/120/usr/lib/qt5/bin/qmlscene" subj==snap.icloud-for-linux.notes (enforce) key=(null)
jul 16 10:46:44 Manjaro audit[6870]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj==snap.icloud-for-linux.notes (enforce) pid=6870 comm="qmlscene" exe="/snap/icloud-for-linux/120/usr/lib/qt5/bin/qmlscene" sig=6 res=1
jul 16 10:46:44 Manjaro audit[6763]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj==snap.icloud-for-linux.notes (enforce) pid=6763 comm="qmlscene" exe="/snap/icloud-for-linux/120/usr/lib/qt5/bin/qmlscene" sig=11 res=1
MarcusTomlinson commented 4 years ago

@cyakimov could you please run icloud-for-linux.notes from the terminal and share the output here.

cyakimov commented 4 years ago

Thanks for the quick response!

This is what I get:

> icloud-for-linux.notes
"/home/cyakimov/notes" does not exist.
"/home/cyakimov/iCloud Notes" does not exist.
[7635:7635:0716/105344.905691:FATAL:credentials.cc(155)] Check failed: NamespaceUtils::DenySetgroups(). : Permission denied
#0 0x7f33aab97aee <unknown>
#1 0x7f33aabaa0e2 <unknown>
#2 0x7f33aabab45c <unknown>
#3 0x7f33ab71fb21 <unknown>
#4 0x7f33ab7202dd <unknown>
#5 0x7f33aa7b4527 <unknown>
#6 0x7f33aa45fd48 <unknown>
#7 0x7f33aa463262 <unknown>
#8 0x7f33aa251a9b <unknown>
#9 0x7f33aa252bd5 <unknown>
#10 0x7f33aa1e74f1 QtWebEngineCore::BrowserContextAdapter::defaultContext()
#11 0x7f33b4bc53b5 QQuickWebEngineProfile::defaultProfile()
#12 0x7f33b4bccdba QQuickWebEngineViewPrivate::QQuickWebEngineViewPrivate()
#13 0x7f33b4bcdc9b QQuickWebEngineView::QQuickWebEngineView()
#14 0x7f33b4e0527b <unknown>
#15 0x7f33ca6cb962 QQmlType::create()
#16 0x7f33ca73c146 QQmlObjectCreator::createInstance()
#17 0x7f33ca73e3da QQmlObjectCreator::setPropertyBinding()
#18 0x7f33ca73ee11 QQmlObjectCreator::setupBindings()
#19 0x7f33ca73bba6 QQmlObjectCreator::populateInstance()
#20 0x7f33ca73c97c QQmlObjectCreator::createInstance()
#21 0x7f33ca73fc6c QQmlObjectCreator::create()
#22 0x7f33ca6b6408 QQmlComponentPrivate::beginCreate()
#23 0x7f33ca6b474f QQmlComponent::create()
#24 0x556f5b41bc5a <unknown>
#25 0x7f33c8274b97 __libc_start_main
#26 0x556f5b41dada <unknown>

Fontconfig warning: FcPattern object weight does not accept value [40 210)
[1]    7534 segmentation fault (core dumped)  icloud-for-linux.notes
MarcusTomlinson commented 4 years ago

The AppArmor denials may be harmless, please could you try the solutions suggested on https://github.com/cross-platform/icloud-for-linux/issues/9 to clear your font cache.

cyakimov commented 4 years ago

It worked!

I'm leaving the steps here for posterity:

# Uninstall icloud-for-linux
snap remove icloud-for-linux
rm -rf ~/snap/icloud-for-linux

# Clear font cache
sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
sudo fc-cache -f -v

# Re-install icloud-for-linux
snap install icloud-for-linux

Thanks @MarcusTomlinson

slinkouswasalreadytaken commented 4 years ago

No luck. :( With that first command I'm getting something similar, but not exactly any better...

[slinkous@MacBookAir ~]$ icloud-for-linux.notes            
"/home/slinkous/notes" does not exist.
"/home/slinkous/iCloud Notes" does not exist.
[64294:64294:0716/111950.931117:FATAL:credentials.cc(155)] Check failed: NamespaceUtils::DenySetgroups(). : Permission denied
#0 0x7fd996b97aee <unknown>
#1 0x7fd996baa0e2 <unknown>
#2 0x7fd996bab45c <unknown>
#3 0x7fd99771fb21 <unknown>
#4 0x7fd9977202dd <unknown>
#5 0x7fd9967b4527 <unknown>
#6 0x7fd99645fd48 <unknown>
#7 0x7fd996463262 <unknown>
#8 0x7fd996251a9b <unknown>
#9 0x7fd996252bd5 <unknown>
#10 0x7fd9961e74f1 QtWebEngineCore::BrowserContextAdapter::defaultContext()
#11 0x7fd9a3dc43b5 QQuickWebEngineProfile::defaultProfile()
#12 0x7fd9a3dcbdba QQuickWebEngineViewPrivate::QQuickWebEngineViewPrivate()
#13 0x7fd9a3dccc9b QQuickWebEngineView::QQuickWebEngineView()
#14 0x7fd9a81ab27b <unknown>
#15 0x7fd9bf7e3962 QQmlType::create()
#16 0x7fd9bf854146 QQmlObjectCreator::createInstance()
#17 0x7fd9bf8563da QQmlObjectCreator::setPropertyBinding()
#18 0x7fd9bf856e11 QQmlObjectCreator::setupBindings()
#19 0x7fd9bf853ba6 QQmlObjectCreator::populateInstance()
#20 0x7fd9bf85497c QQmlObjectCreator::createInstance()
#21 0x7fd9bf857c6c QQmlObjectCreator::create()
#22 0x7fd9bf7ce408 QQmlComponentPrivate::beginCreate()
#23 0x7fd9bf7cc74f QQmlComponent::create()
#24 0x5597d5714c5a <unknown>
#25 0x7fd9bd38cb97 __libc_start_main
#26 0x5597d5716ada <unknown>

Fontconfig warning: FcPattern object weight does not accept value [40 210)
Segmentation fault (core dumped)
[slinkous@MacBookAir ~]$ 
MarcusTomlinson commented 4 years ago

@slinkouswasalreadytaken you tried the commands exactly as described here? : https://github.com/cross-platform/icloud-for-linux/issues/17#issuecomment-659473848

slinkouswasalreadytaken commented 4 years ago

Yes, though I had to to rm -rf for the fontconfig, as it was otherwise giving me an "is a directory error".

MarcusTomlinson commented 4 years ago

@slinkouswasalreadytaken try sudo fc-cache -r -v in place of sudo fc-cache -f -v

slinkouswasalreadytaken commented 4 years ago

Oh, I see what I did wrong... I didn't notice the asterisks. :smiley: Which would be all well and good if it worked. :grimacing: And iCloud drive just opened....?

EDIT: All the apps seem to be working well now, (perhaps it took a while to compile or something?), thanks for the help! : )