Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Firefox cannot open display: :0
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Khilseith
n00b
n00b


Joined: 22 Oct 2022
Posts: 2

PostPosted: Sat Oct 22, 2022 5:08 am    Post subject: [Solved] Firefox cannot open display: :0 Reply with quote

Whenever I attempt to run firefox it will not load, claims to not be able to open display, both compiled and firefox-bin behave this way.

Error from firefox-bin:
Code:

[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.988: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.988: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.989: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.989: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.989: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.989: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.989: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 12009, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-WARNING **: 20:36:19.989: invalid (NULL) pointer instance
[Parent 12009, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(firefox:12009): GLib-GObject-CRITICAL **: 20:36:19.989: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[GFX1-]: glxtest: Could not connect to wayland socket

(firefox:12009): Gtk-WARNING **: 20:36:19.992: cannot open display: :0
ExceptionHandler::GenerateDump cloned child 12045
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...


Error from firefox:
Code:

Error: cannot open display: :0


Wayland, Sway wm, 6.0.2-gentoo kernel, elogind. Not sure what else is relevant data.


Last edited by Khilseith on Sat Oct 22, 2022 5:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 493

PostPosted: Sat Oct 22, 2022 11:32 am    Post subject: Reply with quote

Is the "wayland" USE flag set on firefox-bin?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sat Oct 22, 2022 11:52 am    Post subject: Reply with quote

Sway is a Wayland compositor, not an X11 server.

If you want to run Firefox under Sway, you must either start XWayland (which is an X11 server) or you must compile Firefox with Wayland support and run it in Wayland mode.

Please post the output of
Code:
emerge --info
Back to top
View user's profile Send private message
Khilseith
n00b
n00b


Joined: 22 Oct 2022
Posts: 2

PostPosted: Sat Oct 22, 2022 5:32 pm    Post subject: Reply with quote

sMueggli wrote:
Is the "wayland" USE flag set on firefox-bin?


I'm embarrassed to say this very obvious fix worked. Thanks, even if it should've been obvious to me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum