Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951339 - net-misc/nextcloud-client-3.14.4 crashes when virtual files are enabled
Summary: net-misc/nextcloud-client-3.14.4 crashes when virtual files are enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-03-14 13:18 UTC by Joshua Randall
Modified: 2025-03-30 12:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
System info (emerge--info.txt,6.58 KB, text/plain)
2025-03-14 13:18 UTC, Joshua Randall
Details
Nextcloud Logs after reproducing bug/crash (20250314_1838_nextcloud.log.1,35.90 KB, text/plain)
2025-03-14 22:43 UTC, Joshua Randall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Randall 2025-03-14 13:18:34 UTC
Created attachment 920764 [details]
System info

I unfortunately do not have specific logs from Gentoo, as I unmerged this right when I encountered the bug. However, I am 80-90% sure its the same bug as I reported here: https://gitlab.archlinux.org/archlinux/packaging/packages/nextcloud-client/-/issues/9#note_217788

Upstream bug is here: https://github.com/nextcloud/desktop/issues/7135

Description: When the user enables virtual files in their system, or tries to at any point (once showExperimentalOptions=true is enabled), nextcloud crashes.

Reproduce steps:
1. Emerge nextcloud (I did an ebuild, but I am sure it will work on bin as well)
2. Go to ~.config/Nextcloud/nextcloud.cfg and add "showExperimentalOptions=true" under general settings.
3. Attempt to enable virtual files under a folder connection

This has been reported, and has not been fixed in upstream yet. This was however fixed easily in an Arch patch, and I have not had an issue there since.
Comment 1 Joshua Randall 2025-03-14 13:22:05 UTC
One thing I did notice that could be an error on my end: Nextcloud did not have webengine enabled as a USE flag. I am currently re-emerging with webengine enabled, to see if that fixes the issue.
Comment 2 Joshua Randall 2025-03-14 22:43:15 UTC
Created attachment 920821 [details]
Nextcloud Logs after reproducing bug/crash

After merging webengine and updating to the latest nextcloud-client (3.15.2), the bug still persists. This is the log from nextcloud right after enabling virtual file support.
Comment 4 Joshua Randall 2025-03-15 12:26:04 UTC
Is there anything I should do on my end?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-15 12:51:26 UTC
(In reply to Joshua Randall from comment #4)
> Is there anything I should do on my end?

Confirm that's the patch you're thinking of? ;)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-15 12:52:31 UTC
You can also try...

MYCMAKEARGS="-DPLUGINDIR=lib64/qt6/plugins" emerge -v1 net-misc/nextcloud-client

and see if that helps.
Comment 7 Joshua Randall 2025-03-15 13:16:31 UTC
That is the patch i’m thinking of, and i’ll try that once i finish this project im working on / when i have time to compile.
Comment 8 Bernard Cafarelli gentoo-dev 2025-03-16 20:50:23 UTC
Marking confirmed per multiple reports.

This looks like similar to old PR https://github.com/gentoo/gentoo/pull/36838/ (but current code has PLUGINDIR we can set explicitely)
Comment 9 Joshua Randall 2025-03-17 06:17:18 UTC
(In reply to Sam James from comment #6)
> You can also try...
> 
> MYCMAKEARGS="-DPLUGINDIR=lib64/qt6/plugins" emerge -v1
> net-misc/nextcloud-client
> 
> and see if that helps.

Re-emerging with these args worked :)

Is there anyway you can add this to the nextcloud-client ebuild by default?

Thank you!
Comment 10 Larry the Git Cow gentoo-dev 2025-03-23 08:23:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6226964036c14e4dec1ffb732f52f68e237ba112

commit 6226964036c14e4dec1ffb732f52f68e237ba112
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2025-03-23 08:21:17 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2025-03-23 08:23:40 +0000

    net-misc/nextcloud-client: change VFS plugin install path
    
    Default path is libdir, and crashes when using the plugin with that path
    
    Bug: https://bugs.gentoo.org/951339
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 .../nextcloud-client-3.15.3-r1.ebuild              | 123 +++++++++++++++++++++
 1 file changed, 123 insertions(+)
Comment 11 Bernard Cafarelli gentoo-dev 2025-03-23 08:24:25 UTC
Can you confirm this revbump ^ does the trick?