#[SOLVED] Glitchy Electron on intel/amd macbook 2015

22 messages · Page 1 of 1 (latest)

outer vigil
#

I've installed Arch+Hyprland on an old 2015 macbook and am having trouble with electron apps. I've only tried Discord and VSCode, but, both seem to be rendering "glitchy"

What I've tried:
env = ELECTRON_OZONE_PLATFORM_HINT,wayland in my hyprland.conf
XDG_SESSION_TYPE=x11 discord
env -u WAYLAND_DISPLAY discord (Segfaults after failing to initialize Wayland platform)
DSI_PRIME=1 discord
discord --enable-feature=UseOzonePlatform --ozone-platform=wayland
discord --no-sandbox0

I'm aware that electron has some issues with Wayland, but, I'm not sure what else to try. Any advice would be helpful.

shadow escarp
#

@outer vigil try discord canary

outer vigil
#

I think I did but, I'll try again. From git, pacman, or flatpak?

outer vigil
#

I'm pretty sure I tried aur last time since I don't have the flatpak-beta remote; so I'll try flatpak this time. One moment.

#

Well, without the opt-in, canary segfaults. With it, my OS freezes.

outer vigil
#

Same glitchiness. The full OS freeze / crash seems to happen when Discord finishes installing updates.

Splash.onStateUpdate: { ..., "progress": 100 }

shadow escarp
#

or discord-canary-electron-bin

outer vigil
#

No change with either of them. I'm going to remove the env = ELECTRON_OZONE_PLATFORM_HINT,wayland from my hyprland.conf to see if anything changes.

shadow escarp
#

@outer vigil worked for me fsdeshrug

outer vigil
#

Tried in a VM or something?

#

Removing the env variable has it working now...

shadow escarp
shadow escarp
outer vigil
#

DiscordCanary seems to function without the env variable. Regular ol' Discord does not.

#

Thank you for the help by the way. I'm still not entirely sure what the problem might be, which bothers me, but, at least I'm closer.

#

I think you can see in the screenshot I posted but, my machine is intel CPU, and has an integrated intel card as well as a discrete amd gpu. I thought the issue might be related to which GPU discord was using, but, I'm not sure how to force the use of just one gpu over the other.

outer vigil
#

[SOLVED] Glitchy Electron on intel/amd macbook 2015