Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 845219 - net-im/discord-bin: taking excessive time to load
Summary: net-im/discord-bin: taking excessive time to load
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-05-17 21:41 UTC by Randall
Modified: 2022-05-19 02:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randall 2022-05-17 21:41:11 UTC
Discord is getting stuck on the loading screen with the spinning Discord logo upon loading. Eventually, it loads, though, but sometimes it takes over 20m. That said, the logs don't reflect any errors.

I was able to fix it by applying some of the standard permissions used for some of my other Electron application ebuilds.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-17 22:07:39 UTC
(In reply to Randall from comment #0)
> Discord is getting stuck on the loading screen with the spinning Discord
> logo upon loading. Eventually, it loads, though, but sometimes it takes over
> 20m. That said, the logs don't reflect any errors.
> 
> I was able to fix it by applying some of the standard permissions used for
> some of my other Electron application ebuilds.
> 
> Reproducible: Always

You'll have to be more specific on what those fixes were?
Comment 2 Randall 2022-05-17 22:41:52 UTC
> You'll have to be more specific on what those fixes were?

Sorry, Sam, I figured the diff between them was enough.

The main problem seemed rooted in `chrome-sandbox` not having the right permissions.

Ref: https://github.com/electron/electron/issues/17972#issuecomment-487373313

However, I fixed some other minor things, like the icons were bugging out, and the .desktop file needed an update. Just general cleanup.

Maybe it helps some of the other problems?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-17 23:14:10 UTC
Oh, I hadn't seen the PR at the time -- now I get it :)
Comment 4 Larry the Git Cow gentoo-dev 2022-05-19 02:03:53 UTC
The bug has been closed via the following commit(s):

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

commit a310b92544e1e20dfd9b66626fa796c4d522c788
Author:     Randall T. Vasquez <ran.dall@icloud.com>
AuthorDate: 2022-05-17 22:59:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-19 01:58:53 +0000

    net-im/discord-bin: refactor the Discord ebuild
    
    This is a general refactor of the Discord ebuild. It cleans up several things and fixes permissions, mostly. It seems to improve performance greatly.
    
    Closes: https://bugs.gentoo.org/845219
    Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com>
    Closes: https://github.com/gentoo/gentoo/pull/25542
    Signed-off-by: Sam James <sam@gentoo.org>

 net-im/discord-bin/Manifest                     |   1 +
 net-im/discord-bin/discord-bin-0.0.17-r1.ebuild | 145 ++++++++++++++++++++++++
 2 files changed, 146 insertions(+)