Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 868255

Summary: net-misc/anydesk: does NOT work without x11-libs/gtkglext
Product: Gentoo Linux Reporter: Richard H. <chain>
Component: Current packagesAssignee: Jaco Kroon <jaco>
Status: CONFIRMED ---    
Severity: normal CC: ceamac, darkcircle.0426, jaco, matthew, mgorny, proxy-maint, treecleaner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=705154
https://bugs.gentoo.org/show_bug.cgi?id=889378
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 698950    
Attachments: emerge --info

Description Richard H. 2022-09-03 10:30:29 UTC
Since x11-libs/gtkglext got removed from my system, net-misc/anydesk does not work anymore. The service starts, the tray starts, but the interface doesn't come up. 

Reproducible: Always

Steps to Reproduce:
1. install net-misc/anydesk
2. run anydesk
3. try to open gui
Actual Results:  
double free or corruption (fasttop)

Expected Results:  
gui should pop up, as expected

reinstalling x11-libs/gtkglext restores function
Comment 1 Richard H. 2022-09-03 10:31:18 UTC
Created attachment 803059 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2022-09-03 10:49:25 UTC
Just to be sure: You are talking about net-misc/anydesk-6.2.0?
Comment 3 Richard H. 2022-09-03 11:55:08 UTC
(In reply to Andreas Sturmlechner from comment #2)
> Just to be sure: You are talking about net-misc/anydesk-6.2.0?

Yes, sorry.
Comment 4 Richard H. 2022-09-03 15:36:38 UTC
On another machine, I tried 6.1.1 and 6.2.0 both.

Although they don't seem to link to gtkglext directly, AnyDesk seems to be a GTK+ 2.0 application in full and therefore maybe the requirement. I can't find any support for GTK 3 in it.
Comment 5 Richard H. 2022-09-03 15:40:54 UTC
The README file in the downloaded distfile also explicitely states gtkglext as a dependency.
Comment 6 Jaco Kroon 2022-09-05 07:44:47 UTC
plastiekpoot [09:39:25] ~ # for p in $(pidof anydesk); do grep [.]so /proc/$p/smaps; done | awk '{ print $NF }' | sort -u | grep -E 'libgdkglext-x11|libgtkglext-x11'
/usr/lib64/libgdkglext-x11-1.0.so.0.0.0
/usr/lib64/libgtkglext-x11-1.0.so.0.0.0


Unfortunately I can confirm.  Trying to engage upstream.

If I explicitly uninstall gtkglext and try to run anydesk I get this:

[1] jkroon@plastiekpoot ~ $ anydesk 
Gtk-Message: 09:43:29.130: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:43:29.202: Failed to load module "canberra-gtk-module"
[1] jkroon@plastiekpoot ~ $ double free or corruption (fasttop)
Gtk-Message: 09:43:41.148: Failed to load module "canberra-gtk-module"


anydesk --tray does run in the background, but it's absolute no-go on functionality.
Comment 7 Jaco Kroon 2022-09-05 08:33:21 UTC
Obviously I cannot re-add a dependency on a masked package.

Suggestions?  upstream is most likely not going to be helpful here.
Comment 8 Joonas Niilola gentoo-dev 2022-09-05 10:26:04 UTC
There seems to be a bump available, from 6 to 7 which looks pretty major judging from the number. Would that hold an update that helps us?

We'll either going to have to unmask gtkglext or mask anydesk along with it.
Comment 9 Jaco Kroon 2022-09-05 11:02:19 UTC
https://anydesk.com/en/downloads/linux#linux-downloads

That still lists 6.2.0 - I only see a v7 for Windows and IOS.

Would really appreciate if we don't end up masking anydesk.
Comment 10 Seong-ho Cho 2022-09-05 11:15:29 UTC
Thank you Richard H., and sorry to late replying.

I solved canberra-related problem by recompiling media-libs/libcanberra with gtk2 use flag.
I still did not find any dependency related on peripheral(?) libraries which are needed to run anydesk.

I guess that anydesk seem to have "direct dependency" to x11-libs/gtkglext,
I doubt whether there is way to ask Anydesk Software GmbH to rewrite Anydesk code based on the gtk3, gtk4 or not.
Comment 11 Jaco Kroon 2022-09-05 11:50:49 UTC
(In reply to Seong-ho Cho from comment #10)
> I solved canberra-related problem by recompiling media-libs/libcanberra with
> gtk2 use flag.

I can trivially add this as a dependency, it affects audio only as far as I've read up this morning (so I'm guessing USE=sound => libcaberra[gtk2]).  It's moot though if we can't solve gtkglext.  There is also mention of libpulse in the README.

> I still did not find any dependency related on peripheral(?) libraries which
> are needed to run anydesk.

I'm not sure what you're trying to say here.  But the one big issue currently is gtkglext.


> I guess that anydesk seem to have "direct dependency" to x11-libs/gtkglext,
> I doubt whether there is way to ask Anydesk Software GmbH to rewrite Anydesk
> code based on the gtk3, gtk4 or not.

If someone has access to the support channels yes we can ask.  So far I've not been able to log a query.
Comment 12 Richard H. 2022-09-05 14:07:26 UTC
This is the only open form I could find. All other channels seem to be for subscribers only. Maybe someone who has a subscription can chime in?

https://anydesk.com/en/contact/support
Comment 13 Jaco Kroon 2022-09-05 14:19:47 UTC
(In reply to Richard H. from comment #12)
> This is the only open form I could find. All other channels seem to be for
> subscribers only. Maybe someone who has a subscription can chime in?
> 
> https://anydesk.com/en/contact/support

Even that link requires a customer id.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-06 05:55:52 UTC
(In reply to Jaco Kroon from comment #7)
> Obviously I cannot re-add a dependency on a masked package.
> 
> Suggestions?  upstream is most likely not going to be helpful here.

We'll unmask it if required, even if unfortunate.
Comment 15 Matthew Smith gentoo-dev 2022-09-06 11:37:18 UTC
Sorry for getting a bit carried away - I just checked with lddtree and did not double check with the readme or to see if it was loaded at runtime.

I will unmask gtkglext and re-add gtkglext as a dep.
Comment 16 Larry the Git Cow gentoo-dev 2022-09-06 11:38:41 UTC
The bug has been closed via the following commit(s):

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

commit c747d2445e290fac87eb89a4ff6ee914e299d943
Author:     Matthew Smith <matthew@gentoo.org>
AuthorDate: 2022-09-06 11:37:11 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2022-09-06 11:38:13 +0000

    net-misc/anydesk: re-add gtkglext dep
    
    Closes: https://bugs.gentoo.org/868255
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 net-misc/anydesk/{anydesk-6.2.0.ebuild => anydesk-6.2.0-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7de7c7112894b77e08d5cbad7f364472b8fbcf55

commit 7de7c7112894b77e08d5cbad7f364472b8fbcf55
Author:     Matthew Smith <matthew@gentoo.org>
AuthorDate: 2022-09-06 11:33:09 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2022-09-06 11:36:38 +0000

    Revert "profiles: mask x11-libs/gtkglext for removal"
    
    This reverts commit 6dc592ed11d486955377c839c86855185667a75e.
    
    It is still a dependency of net-misc/anydesk.
    
    Bug: https://bugs.gentoo.org/698950
    Bug: https://bugs.gentoo.org/868255
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 profiles/package.mask | 5 -----
 1 file changed, 5 deletions(-)
Comment 17 Viorel Munteanu gentoo-dev 2023-01-02 14:51:46 UTC
Let's keep this open to block the tracker for x11-libs/gtkglext.
Comment 18 Viorel Munteanu gentoo-dev 2023-01-02 14:52:11 UTC
*** Bug 889378 has been marked as a duplicate of this bug. ***
Comment 19 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-05-25 08:00:19 UTC
Is anything happening here?
Comment 20 Jaco Kroon 2024-05-25 12:06:59 UTC
I queried upstream, but no, nothing has been forthcoming.