Package Details: discord_arch_electron 0.0.51-1

Git Clone URL: https://aur.archlinux.org/discord_arch_electron.git (read-only, click to copy)
Package Base: discord_arch_electron
Description: Discord (popular voice + video app) using the system provided electron for increased security and performance
Upstream URL: https://discord.com
Keywords: chat discord discord-stable discordapp electron video voice
Licenses: custom
Conflicts: discord
Provides: discord
Submitter: johnnyapol
Maintainer: Zoddo (Thaodan)
Last Packager: Zoddo
Votes: 189
Popularity: 5.50
First Submitted: 2020-05-19 23:51 (UTC)
Last Updated: 2024-04-23 16:07 (UTC)

Dependencies (5)

Required by (21)

Sources (4)

Pinned Comments

Zoddo commented on 2022-09-15 17:54 (UTC) (edited on 2023-03-31 17:24 (UTC) by Zoddo)

Starting with 0.0.26-1 (2023-03-31):
  • Switched back to the main electron package (electron22)
  • Watching cameras and streams is working again
Starting with 0.0.20-1 (2022-09-15):
  • Bumped electron16 to electron19 (I still have blocking issues with electron20)
  • Added support for $XDG_CONFIG_HOME/discord-flags.conf: this works like electron-flags.conf, you can set in this file the command line flags you want to pass to electron when running Discord (there are some useful flags in the wiki, especially if you are experiencing lag in the Discord UI).
FAQ

Discord requires an update, but this package isn't yet updated
Check the wiki.

The Discord UI is lagging
Try to add the flags recommended in the wiki in $XDG_CONFIG_HOME/discord-flags.conf.

Krisp not working
This is an issue that will likely never be fixed for this package. The Krisp module checks if Discord binaries are signed by Discord, which is not the case with this package.
See this comment and this GitHub issue for more details and possibles workarounds.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 35 Next › Last »

ibrokemypie commented on 2023-04-04 07:19 (UTC) (edited on 2023-04-04 07:19 (UTC) by ibrokemypie)

Getting a similar problem on intel with onlt --ozone-platfrom-hint=auto

Core was generated by `/usr/lib/electron/electron --ozone-platform-hint=auto /usr/lib/discord/app.asar'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:538
538     VMOVU   (VEC_SIZE * 0)(%rsi), %VMM(4)                                                                                                                                                                                                                                                                                                                        
[Current thread is 1 (Thread 0x7f16cff231c0 (LWP 2043892))]
(gdb) bt
#0  __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:538
#1  0x000056477c2b78f3 in content::StoragePartitionConfig::StoragePartitionConfig(content::StoragePartitionConfig const&) ()
#2  0x000056477ba0131d in content::BrowserContext::GetStoragePartition(content::SiteInstance*, bool) ()
#3  0x000056477bbddc1b in content::HostZoomMap::GetZoomLevel(content::WebContents*) ()
#4  0x000056477c00da10 in content::WebContentsImpl::GetPendingPageZoomLevel() ()
#5  0x000056477becb097 in content::RenderWidgetHostImpl::GetVisualProperties() ()
#6  0x000056477becb7c8 in content::RenderWidgetHostImpl::SynchronizeVisualProperties(bool, bool) ()
#7  0x000056477bee1e29 in content::RenderWidgetHostViewAura::SynchronizeVisualProperties(cc::DeadlinePolicy const&, absl::optional<viz::LocalSurfaceId> const&) ()
#8  0x000056477bee1803 in content::RenderWidgetHostViewAura::SetSize(gfx::Size const&) ()
#9  0x000056477bee5154 in content::RenderWidgetHostViewAura::OnBoundsChanged(gfx::Rect const&, gfx::Rect const&) ()
#10 0x000056477dbcf17c in aura::Window::OnLayerBoundsChanged(gfx::Rect const&, ui::PropertyChangeReason) ()
#11 0x000056477dce51c2 in ui::Layer::SetBoundsFromAnimation(gfx::Rect const&, ui::PropertyChangeReason) ()
#12 0x000056477dcf7a6e in ui::LayerAnimator::SetBounds(gfx::Rect const&) ()
#13 0x000056477dbcb8e9 in aura::Window::SetBounds(gfx::Rect const&) ()
#14 0x000056477bee17c8 in content::RenderWidgetHostViewAura::SetSize(gfx::Size const&) ()
#15 0x000056477c0210bf in content::WebContentsViewAura::OnBoundsChanged(gfx::Rect const&, gfx::Rect const&) ()
#16 0x000056477dbcf17c in aura::Window::OnLayerBoundsChanged(gfx::Rect const&, ui::PropertyChangeReason) ()
#17 0x000056477dce51c2 in ui::Layer::SetBoundsFromAnimation(gfx::Rect const&, ui::PropertyChangeReason) ()
#18 0x000056477dcf7a6e in ui::LayerAnimator::SetBounds(gfx::Rect const&) ()
#19 0x000056477dbcb8e9 in aura::Window::SetBounds(gfx::Rect const&) ()
#20 0x000056478053c25e in views::NativeViewHostAura::ShowWidget(int, int, int, int, int, int) ()
#21 0x000056478053ad8e in views::NativeViewHost::Layout() ()
#22 0x00005647804bd3c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#23 0x0000564780539929 in views::WebView::OnBoundsChanged(gfx::Rect const&) ()
#24 0x00005647804bd32a in views::View::SetBoundsRect(gfx::Rect const&) ()
#25 0x00005647799b4578 in electron::InspectableWebContentsViewViews::Layout() ()
#26 0x00005647804bd3c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#27 0x00005647799b9c27 in electron::RootView::Layout() ()
#28 0x00005647804bd3c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#29 0x00005647804b7280 in views::LayoutManagerBase::ApplyLayout(views::ProposedLayout const&) ()
#30 0x00005647804b7121 in views::LayoutManagerBase::LayoutImpl() ()
#31 0x00005647804b6e88 in views::LayoutManagerBase::Layout(views::View*) ()
#32 0x00005647804c0756 in views::View::Layout() ()
#33 0x00005647804bd3c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#34 0x00005647804efa21 in views::NonClientFrameView::Layout() ()
#35 0x00005647804bd3c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#36 0x00005647804f091c in views::NonClientView::Layout() ()
#37 0x00005647804bd3c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#38 0x00005647804c9bb0 in views::View::DefaultFillLayout::Layout(views::View*) ()
#39 0x00005647804c0756 in views::View::Layout() ()
#40 0x00005647804bd3c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#41 0x00005647804be0c2 in views::View::SetSize(gfx::Size const&) ()
#42 0x00005647804da7c5 in views::Widget::OnNativeWidgetSizeChanged(gfx::Size const&) ()
#43 0x000056478050c045 in non-virtual thunk to views::DesktopNativeWidgetAura::OnHostResized(aura::WindowTreeHost*) ()
#44 0x000056477dbf7ee8 in aura::WindowTreeHost::OnHostResizedInPixels(gfx::Size const&) ()
#45 0x000056477dcd4237 in aura::WindowTreeHostPlatform::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ()
#46 0x000056477999eacf in electron::ElectronDesktopWindowTreeHostLinux::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ()
#47 0x000056477a0e6f7c in ui::WaylandWindow::UpdateBoundsInDIP(gfx::Rect const&) ()
#48 0x000056477a0e9027 in ui::WaylandWindow::ProcessPendingBoundsDip(unsigned int) ()
#49 0x000056477a0e450f in ui::WaylandToplevelWindow::HandleSurfaceConfigure(unsigned int) ()
#50 0x000056477a0f62c5 in ui::ZXDGSurfaceV6WrapperImpl::Configure(void*, zxdg_surface_v6*, unsigned int) ()
#51 0x00007f16df4484f6 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#52 0x00007f16df444f5e in ffi_call_int (cif=cif@entry=0x7ffcb1584970, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#53 0x00007f16df447b73 in ffi_call (cif=cif@entry=0x7ffcb1584970, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffcb1584a40) at ../src/x86/ffi64.c:710
#54 0x00007f16d089b645 in wl_closure_invoke (closure=closure@entry=0x59802c9e060, target=<optimized out>, target@entry=0x59802c4caf0, opcode=opcode@entry=0, data=<optimized out>, flags=1) at ../wayland-1.21.0/src/connection.c:1025
#55 0x00007f16d089be03 in dispatch_event (display=0x59800344f00, queue=<optimized out>) at ../wayland-1.21.0/src/wayland-client.c:1595
#56 0x00007f16d089bffc in dispatch_queue (queue=0x59800ea5560, display=0x59800344f00) at ../wayland-1.21.0/src/wayland-client.c:1741
#57 wl_display_dispatch_queue_pending (display=0x59800344f00, queue=0x59800ea5560) at ../wayland-1.21.0/src/wayland-client.c:1983
#58 0x000056477a0ce647 in ui::WaylandEventWatcher::WlDisplayDispatchPendingQueue() ()
#59 0x000056477a10307e in ui::(anonymous namespace)::WatchSourceDispatch(_GSource*, int (*)(void*), void*) ()
#60 0x00007f16e395f53b in g_main_dispatch (context=0x5980024d140) at ../glib/glib/gmain.c:3460
#61 g_main_context_dispatch (context=0x5980024d140) at ../glib/glib/gmain.c:4200
#62 0x00007f16e39bc219 in g_main_context_iterate.constprop.0 (context=0x5980024d140, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#63 0x00007f16e395e1a2 in g_main_context_iteration (context=0x5980024d140, may_block=1) at ../glib/glib/gmain.c:4343
#64 0x000056477ca28a0c in base::MessagePumpGlib::Run(base::MessagePump::Delegate*) ()
#65 0x000056477ca7ec3e in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) ()
#66 0x000056477ca45e9a in base::RunLoop::Run(base::Location const&) ()
#67 0x000056477ba1b42e in content::BrowserMainLoop::RunMainMessageLoop() ()
#68 0x000056477ba1d5c3 in content::BrowserMainRunnerImpl::Run() ()
#69 0x000056477ba1884e in content::BrowserMain(content::MainFunctionParams) ()
#70 0x0000564779ad0813 in content::RunBrowserProcessMain(content::MainFunctionParams, content::ContentMainDelegate*) ()
#71 0x0000564779ad1cda in content::ContentMainRunnerImpl::RunBrowser(content::MainFunctionParams, bool) ()
#72 0x0000564779ad1a8a in content::ContentMainRunnerImpl::Run() ()
#73 0x0000564779ace742 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) ()
#74 0x0000564779acee95 in content::ContentMain(content::ContentMainParams) ()
#75 0x00005647797f5983 in main ()

bbaovanc commented on 2023-04-03 21:09 (UTC) (edited on 2023-04-03 21:10 (UTC) by bbaovanc)

Just got back home, and it looks like the issue I was having isn't just Nvidia exclusive. I'm getting the same issue and what looks to be a similar backtrace (though way shorter for some reason) on my AMDGPU computer.

#0  __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:538
#1  0x00005561ec8528f3 in content::StoragePartitionConfig::StoragePartitionConfig(content::StoragePartitionConfig const&) ()
#2  0x00005561ebf9c31d in content::BrowserContext::GetStoragePartition(content::SiteInstance*, bool) ()
#3  0x00005561ec178c1b in content::HostZoomMap::GetZoomLevel(content::WebContents*) ()
#4  0x00005561ec5a8a10 in content::WebContentsImpl::GetPendingPageZoomLevel() ()
#5  0x00005561ec466097 in content::RenderWidgetHostImpl::GetVisualProperties() ()
#6  0x00005561ec4667c8 in content::RenderWidgetHostImpl::SynchronizeVisualProperties(bool, bool) ()
#7  0x00005561ec58329e in content::WebContentsImpl::UpdateZoom() ()
#8  0x00005561ec17abb7 in content::HostZoomMapImpl::SetTemporaryZoomLevel(int, int, double) ()
#9  0x00005561e9ed31f3 in electron::WebContentsZoomController::SetTemporaryZoomLevel(double) ()
#10 0x00005561ecd3a3ed in electron::mojom::ElectronWebContentsUtilityStubDispatch::Accept(electron::mojom::ElectronWebContentsUtility*, mojo::Message*) ()
#11 0x00005561ed1bd1bb in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) ()
#12 0x00005561ed1c38be in mojo::MessageDispatcher::Accept(mojo::Message*) ()
#13 0x00005561ed1befed in mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) ()
#14 0x00005561ed50e28c in base::internal::Invoker<base::internal::BindState<void (IPC::(anonymous namespace)::ChannelAssociatedGroupController::*)(mojo::Message), scoped_refptr<IPC::(anonymous namespace)::ChannelAssociatedGroupController>, mojo::Message>, void ()>::RunOnce(base::internal::BindStateBase*) ()
#15 0x00005561ecffc62b in base::TaskAnnotator::RunTaskImpl(base::PendingTask&) ()
#16 0x00005561ed018c49 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*) ()
#17 0x00005561ed0194b2 in non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() ()
#18 0x00005561ecfc3a27 in base::MessagePumpGlib::Run(base::MessagePump::Delegate*) ()
#19 0x00005561ed019c3e in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) ()
#20 0x00005561ecfe0e9a in base::RunLoop::Run(base::Location const&) ()
#21 0x00005561ebfb642e in content::BrowserMainLoop::RunMainMessageLoop() ()
#22 0x00005561ebfb85c3 in content::BrowserMainRunnerImpl::Run() ()
#23 0x00005561ebfb384e in content::BrowserMain(content::MainFunctionParams) ()
#24 0x00005561ea06b813 in content::RunBrowserProcessMain(content::MainFunctionParams, content::ContentMainDelegate*) ()
#25 0x00005561ea06ccda in content::ContentMainRunnerImpl::RunBrowser(content::MainFunctionParams, bool) ()
#26 0x00005561ea06ca8a in content::ContentMainRunnerImpl::Run() ()
#27 0x00005561ea069742 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) ()
#28 0x00005561ea069e95 in content::ContentMain(content::ContentMainParams) ()
#29 0x00005561e9d90983 in main ()

W47MPUSv commented on 2023-04-02 15:59 (UTC) (edited on 2023-04-02 16:11 (UTC) by W47MPUSv)

nvm, electron 22.2 fixed this.

~~Hi, it seems that with electron22, the discord tray icon does not show up.~~

bbaovanc commented on 2023-04-01 20:17 (UTC)

#0  __memcpy_sse2_unaligned_erms ()
    at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:537
#1  0x000055d062b028f3 in content::StoragePartitionConfig::StoragePartitionConfig(content::StoragePartitionConfig const&) ()
#2  0x000055d06224c31d in content::BrowserContext::GetStoragePartition(content::SiteInstance*, bool) ()
#3  0x000055d062428c1b in content::HostZoomMap::GetZoomLevel(content::WebContents*) ()
#4  0x000055d062858a10 in content::WebContentsImpl::GetPendingPageZoomLevel() ()
#5  0x000055d062716097 in content::RenderWidgetHostImpl::GetVisualProperties() ()
#6  0x000055d0627167c8 in content::RenderWidgetHostImpl::SynchronizeVisualProperties(bool, bool)
    ()
#7  0x000055d06272ce29 in content::RenderWidgetHostViewAura::SynchronizeVisualProperties(cc::DeadlinePolicy const&, absl::optional<viz::LocalSurfaceId> const&) ()
#8  0x000055d06272c803 in content::RenderWidgetHostViewAura::SetSize(gfx::Size const&) ()
#9  0x000055d062730154 in content::RenderWidgetHostViewAura::OnBoundsChanged(gfx::Rect const&, gfx::Rect const&) ()
#10 0x000055d06441a17c in aura::Window::OnLayerBoundsChanged(gfx::Rect const&, ui::PropertyChangeReason) ()
#11 0x000055d0645301c2 in ui::Layer::SetBoundsFromAnimation(gfx::Rect const&, ui::PropertyChangeReason) ()
#12 0x000055d064542a6e in ui::LayerAnimator::SetBounds(gfx::Rect const&) ()
#13 0x000055d0644168e9 in aura::Window::SetBounds(gfx::Rect const&) ()
#14 0x000055d06272c7c8 in content::RenderWidgetHostViewAura::SetSize(gfx::Size const&) ()
#15 0x000055d06286c0bf in content::WebContentsViewAura::OnBoundsChanged(gfx::Rect const&, gfx::Rect const&) ()
#16 0x000055d06441a17c in aura::Window::OnLayerBoundsChanged(gfx::Rect const&, ui::PropertyChangeReason) ()
#17 0x000055d0645301c2 in ui::Layer::SetBoundsFromAnimation(gfx::Rect const&, ui::PropertyChangeReason) ()
#18 0x000055d064542a6e in ui::LayerAnimator::SetBounds(gfx::Rect const&) ()
#19 0x000055d0644168e9 in aura::Window::SetBounds(gfx::Rect const&) ()
#20 0x000055d066d8725e in views::NativeViewHostAura::ShowWidget(int, int, int, int, int, int) ()
#21 0x000055d066d85d8e in views::NativeViewHost::Layout() ()
#22 0x000055d066d083c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#23 0x000055d066d84929 in views::WebView::OnBoundsChanged(gfx::Rect const&) ()
#24 0x000055d066d0832a in views::View::SetBoundsRect(gfx::Rect const&) ()
#25 0x000055d0601ff578 in electron::InspectableWebContentsViewViews::Layout() ()
#26 0x000055d066d083c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#27 0x000055d060204c27 in electron::RootView::Layout() ()
#28 0x000055d066d083c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#29 0x000055d066d02280 in views::LayoutManagerBase::ApplyLayout(views::ProposedLayout const&) ()
#30 0x000055d066d02121 in views::LayoutManagerBase::LayoutImpl() ()
#31 0x000055d066d01e88 in views::LayoutManagerBase::Layout(views::View*) ()
#32 0x000055d066d0b756 in views::View::Layout() ()
#33 0x000055d066d083c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#34 0x000055d066d3aa21 in views::NonClientFrameView::Layout() ()
#35 0x000055d066d083c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#36 0x000055d066d3b91c in views::NonClientView::Layout() ()
#37 0x000055d066d083c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#38 0x000055d066d14bb0 in views::View::DefaultFillLayout::Layout(views::View*) ()
#39 0x000055d066d0b756 in views::View::Layout() ()
#40 0x000055d066d083c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
#41 0x000055d066d090c2 in views::View::SetSize(gfx::Size const&) ()
#42 0x000055d066d257c5 in views::Widget::OnNativeWidgetSizeChanged(gfx::Size const&) ()
#43 0x000055d066d57045 in non-virtual thunk to views::DesktopNativeWidgetAura::OnHostResized(aura::WindowTreeHost*) ()
#44 0x000055d064442ee8 in aura::WindowTreeHost::OnHostResizedInPixels(gfx::Size const&) ()
#45 0x000055d06451f237 in aura::WindowTreeHostPlatform::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ()
#46 0x000055d0601e9acf in electron::ElectronDesktopWindowTreeHostLinux::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ()
#47 0x000055d060931f7c in ui::WaylandWindow::UpdateBoundsInDIP(gfx::Rect const&) ()
#48 0x000055d060934027 in ui::WaylandWindow::ProcessPendingBoundsDip(unsigned int) ()
#49 0x000055d06092f50f in ui::WaylandToplevelWindow::HandleSurfaceConfigure(unsigned int) ()
#50 0x000055d0609412c5 in ui::ZXDGSurfaceV6WrapperImpl::Configure(void*, zxdg_surface_v6*, unsigned int) ()
#51 0x00007f1c9f53c4f6 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#52 0x00007f1c9f538f5e in ffi_call_int
    (cif=cif@entry=0x7ffdecf452a0, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#53 0x00007f1c9f53bb73 in ffi_call
    (cif=cif@entry=0x7ffdecf452a0, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffdecf45370) at ../src/x86/ffi64.c:710
#54 0x00007f1c90a4e645 in wl_closure_invoke
    (closure=closure@entry=0x279001b40380, target=<optimized out>, 
    target@entry=0x2790022eab20, opcode=opcode@entry=0, data=<optimized out>, flags=1)
    at ../wayland-1.21.0/src/connection.c:1025
#55 0x00007f1c90a4ee03 in dispatch_event (display=0x27900034cf00, queue=<optimized out>)
    at ../wayland-1.21.0/src/wayland-client.c:1595
#56 0x00007f1c90a4effc in dispatch_queue (queue=0x279000ddf740, display=0x27900034cf00)
    at ../wayland-1.21.0/src/wayland-client.c:1741
#57 wl_display_dispatch_queue_pending (display=0x27900034cf00, queue=0x279000ddf740)
    at ../wayland-1.21.0/src/wayland-client.c:1983
#58 0x000055d060919647 in ui::WaylandEventWatcher::WlDisplayDispatchPendingQueue() ()
#59 0x000055d06094e07e in ui::(anonymous namespace)::WatchSourceDispatch(_GSource*, int (*)(void*), void*) ()
#60 0x00007f1ca3b0453b in g_main_dispatch (context=0x279000249080) at ../glib/glib/gmain.c:3460
#61 g_main_context_dispatch (context=0x279000249080) at ../glib/glib/gmain.c:4200
#62 0x00007f1ca3b61219 in g_main_context_iterate.constprop.0
    (context=0x279000249080, block=0, dispatch=1, self=<optimized out>)
    at ../glib/glib/gmain.c:4276
#63 0x00007f1ca3b031a2 in g_main_context_iteration (context=0x279000249080, may_block=0)
    at ../glib/glib/gmain.c:4343
#64 0x000055d063273a0c in base::MessagePumpGlib::Run(base::MessagePump::Delegate*) ()
#65 0x000055d0632c9c3e in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) ()
#66 0x000055d063290e9a in base::RunLoop::Run(base::Location const&) ()
#67 0x000055d06226642e in content::BrowserMainLoop::RunMainMessageLoop() ()
#68 0x000055d0622685c3 in content::BrowserMainRunnerImpl::Run() ()
#69 0x000055d06226384e in content::BrowserMain(content::MainFunctionParams) ()
#70 0x000055d06031b813 in content::RunBrowserProcessMain(content::MainFunctionParams, content::ContentMainDelegate*) ()
#71 0x000055d06031ccda in content::ContentMainRunnerImpl::RunBrowser(content::MainFunctionParams, bool) ()
#72 0x000055d06031ca8a in content::ContentMainRunnerImpl::Run() ()
#73 0x000055d060319742 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) ()
#74 0x000055d060319e95 in content::ContentMain(content::ContentMainParams) ()
#75 0x000055d060040983 in main ()

Zoddo commented on 2023-04-01 19:39 (UTC) (edited on 2023-04-01 19:40 (UTC) by Zoddo)

If you are still using the --ozone-platform=wayland, it looks like this should be replaced by --ozone-platform-hint=auto with electron20+.

If this doesn't fix the segfault, could you get a coredump (in most case, systemd will store one for you, check coredumpctl list), open it with gdb and print the backtrace (bt command)?
This should at least tell us if the segfault is coming from electron itself, or from a Discord's native module (last time I checked, Discord modules included some symbols).

bbaovanc commented on 2023-04-01 19:07 (UTC) (edited on 2023-04-01 19:23 (UTC) by bbaovanc)

@Zoddo This package does start after removing the Wayland flags, but only because it then uses X11 (via Xwayland) instead of Wayland, and Xwayland apps are completely unusable with graphical bugs on Nvidia.

I just realized that the official discord package was ignoring my electron flags. Not sure how to fix that, but using the exact same flags to run discord manually from a terminal works fine. It's running in native Wayland too. It does have those mesa errors too though, so I guess ignore them.

So there's still some difference between this and the official discord package.

Zoddo commented on 2023-04-01 11:04 (UTC)

@bbaovanc afaik, these mesa warnings are "normal" on Nvidia.

For Wayland, I won't be able to help much because I'm not using it myself. Could you still try to remove Wayland flags as suggested by mattj and check if it starts without them?

The official package and this one use almost the same electron version (Discord bundle 22.3.2, and the latest electron in official repos is currently 22.3.3), so the only difference is likely the flags you've set with this package.

bbaovanc commented on 2023-04-01 00:18 (UTC) (edited on 2023-04-01 00:24 (UTC) by bbaovanc)

Can we figure out what the cause of the segfault is? It doesn't happen on the latest Discord package (the one in community), yet latest Discord's packaged Electron is 22.

I get these errors when starting it, they might be the culprit?

MESA-LOADER: failed to open nvidia-drm: /usr/lib/gbm/nvidia-drm_gbm.so: cannot open shared object file: Permission denied (search paths /usr/lib/gbm, suffix _gbm)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /usr/lib/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)

And removing the Wayland flags from my config isn't really an option because Xwayland is almost unusable on Nvidia.

tsweet64 commented on 2023-03-31 23:32 (UTC)

I had to change it back to electron19 to prevent segfault on start

mattj commented on 2023-03-31 21:26 (UTC)

If anybody else gets segfaults with the latest version (0.0.26-1) and version 22 of the electron package: I found removing my (previously required) Wayland flags from the .conf solved it.