Electron v24.0.0 from npm works with this Discord package, but it segfaults when trying to share a screen on both XWayland and Wayland
Search Criteria
Package Details: discord_arch_electron 0.0.78-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/discord_arch_electron.git (read-only, click to copy) |
---|---|
Package Base: | discord_arch_electron |
Description: | Discord using 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, SunRed) |
Last Packager: | Zoddo |
Votes: | 197 |
Popularity: | 4.19 |
First Submitted: | 2020-05-19 23:51 (UTC) |
Last Updated: | 2024-12-17 20:22 (UTC) |
Dependencies (9)
- electron
- libxss
- asar (make)
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR) (make)
- libappindicator-gtk3 (optional) – Systray indicator support
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR) (optional) – Pulseaudio support
- python-capstone (optional) – Required for Krisp patcher
- python-pyelftools (python-pyelftools-gitAUR) (optional) – Required for Krisp patcher
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR) (optional) – Open files
Required by (25)
- beautiful-discord-git (requires discord)
- cia-accesa (requires discord)
- clonehero-ptb (requires discord) (optional)
- devbook-bin (requires discord)
- discord-update-skip-git (requires discord)
- discordrpc (requires discord) (optional)
- discordupdater (requires discord)
- horizonxi-launcher-bin (requires discord) (optional)
- jfcord-appimage (requires discord) (optional)
- mbcord-appimage (requires discord) (optional)
- open-hexagon-git (requires discord) (optional)
- openasar-bin (requires discord) (optional)
- openasar-git (requires discord) (optional)
- openasar-install (requires discord)
- overlayed (requires discord) (optional)
- overlayed-bin (requires discord) (optional)
- overlayed-git (requires discord) (optional)
- plasticity-bin (requires discord) (optional)
- plasticity-bin-unstable (requires discord) (optional)
- premid (requires discord) (optional)
- premid-git (requires discord) (optional)
- premid-nightly (requires discord) (optional)
- remoteit-desktop-bin (requires discord)
- sonic3air-bin (requires discord) (optional)
- xbox-xcloud (requires discord)
Sources (3)
Latest Comments
« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 16 .. 39 Next › Last »
DodoGTA commented on 2023-04-09 09:09 (UTC)
Zoddo commented on 2023-04-04 17:36 (UTC) (edited on 2023-04-04 17:36 (UTC) by Zoddo)
At least one other package in official repos is experiencing the same issue: FS#77074.
I'd bet it's an issue with the packaging of electron
in Arch because the issue doesn't seem to be reproducible with other builds (such as electron22-bin or the electron version provided in Discord's official package).
Do you reproduce the crash when running just electron --ozone-platform-hint=auto
?
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.
Pinned Comments
SunRed commented on 2024-06-09 20:34 (UTC)
After a chat with @Zoddo and me just taking too long to come back to this, there should everything now be included that was in my old
discord-electron
package some migrated from (Krisp patcher, Wayland, autostart fix). Additionally I replaced the scrappy rizin patcher with a Python script someone from the nix community kindly made available.Instead of checking against a checksum to know whether the Krisp binary was patched the script is run on every start of the client that results in slightly longer start times but has the advantage that we don't have to update the package if Discord ever silently updates the binary between client updates over their modules api.
Cheers
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):
Starting with 0.0.20-1 (2022-09-15):
$XDG_CONFIG_HOME/discord-flags.conf
: this works likeelectron-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.