Closed Bug 1617866 Opened 4 years ago Closed 4 years ago

[Wayland] MPRIS crash at start

Categories

(Core :: Widget: Gtk, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stransky, Unassigned)

References

Details

I've got this crash after start in debug mode after start:

Thread 1 "firefox" received signal SIGSEGV, Segmentation fault.
0x00007fffeb7e11e0 in mozilla::widget::MPRISServiceHandler::Identity (this=0x7fffb9595d40) at /home/komat/src-wayland/widget/gtk/MPRISServiceHandler.cpp:493
493 MOZ_ASSERT(mInitialized);
(gdb) bt
#0 0x00007fffeb7e11e0 in mozilla::widget::MPRISServiceHandler::Identity() const (this=0x7fffb9595d40) at /home/komat/src-wayland/widget/gtk/MPRISServiceHandler.cpp:493
#1 0x00007fffeb7efa61 in mozilla::widget::HandleGetProperty(_GDBusConnection*, char const*, char const*, char const*, char const*, _GError**, void*)
(aConnection=0x7ffff78ab400, aSender=0x7fffc1a66268 ":1.16", aObjectPath=0x7fffaf86c6e0 "/org/mpris/MediaPlayer2", aInterfaceName=0x7fffc4709dc0 "org.mpris.MediaPlayer2", aPropertyName=0x7fffc4bf7f00 "Identity", aError=0x0, aUserData=0x7fffb9595d40) at /home/komat/src-wayland/widget/gtk/MPRISServiceHandler.cpp:228
#2 0x00007ffff5dce006 in invoke_get_all_properties_in_idle_cb () at /lib64/libgio-2.0.so.0
#3 0x00007ffff5b23e3b in g_idle_dispatch () at /lib64/libglib-2.0.so.0
#4 0x00007ffff5b27520 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#5 0x00007ffff5b278b0 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#6 0x00007ffff5b27953 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#7 0x00007fffeb81312d in nsAppShell::ProcessNextNativeEvent(bool) (this=0x7fffd5d78190, mayWait=false) at /home/komat/src-wayland/widget/gtk/nsAppShell.cpp:274
#8 0x00007fffeb7769ee in nsBaseAppShell::DoProcessNextNativeEvent(bool) (this=0x7fffd5d78190, mayWait=false) at /home/komat/src-wayland/widget/nsBaseAppShell.cpp:120
#9 0x00007fffeb776ee1 in nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (this=0x7fffd5d78190, thr=0x7fffd5d83680, mayWait=false)
at /home/komat/src-wayland/widget/nsBaseAppShell.cpp:248
#10 0x00007fffe5e05f28 in nsThread::ProcessNextEvent(bool, bool*) (this=0x7fffd5d83680, aMayWait=false, aResult=0x7fffffffb797) at /home/komat/src-wayland/xpcom/threads/nsThread.cpp:1124
#11 0x00007fffe5e0e277 in NS_ProcessNextEvent(nsIThread*, bool) (aThread=0x7fffd5d83680, aMayWait=false) at /home/komat/src-wayland/xpcom/threads/nsThreadUtils.cpp:481
#12 0x00007fffe69c5388 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (this=0x7fffd5d8aa00, aDelegate=0x7fffd5d5d5c0) at /home/komat/src-wayland/ipc/glue/MessagePump.cpp:87
#13 0x00007fffe69140c7 in MessageLoop::RunInternal() (this=0x7fffd5d5d5c0) at /home/komat/src-wayland/ipc/chromium/src/base/message_loop.cc:315
#14 0x00007fffe6914045 in MessageLoop::RunHandler() (this=0x7fffd5d5d5c0) at /home/komat/src-wayland/ipc/chromium/src/base/message_loop.cc:308
#15 0x00007fffe6914003 in MessageLoop::Run() (this=0x7fffd5d5d5c0) at /home/komat/src-wayland/ipc/chromium/src/base/message_loop.cc:290
#16 0x00007fffeb776ab1 in nsBaseAppShell::Run() (this=0x7fffd5d78190) at /home/komat/src-wayland/widget/nsBaseAppShell.cpp:137
#17 0x00007fffedfc7ba3 in nsAppStartup::Run() (this=0x7fffd5d7e510) at /home/komat/src-wayland/toolkit/components/startup/nsAppStartup.cpp:271
#18 0x00007fffee164c6d in XREMain::XRE_mainRun() (this=0x7fffffffc230) at /home/komat/src-wayland/toolkit/xre/nsAppRunner.cpp:4566
#19 0x00007fffee165dd0 in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) (this=0x7fffffffc230, argc=4, argv=0x7fffffffd598, aConfig=...)
at /home/komat/src-wayland/toolkit/xre/nsAppRunner.cpp:4701
#20 0x00007fffee1666b9 in XRE_main(int, char**, mozilla::BootstrapConfig const&) (argc=4, argv=0x7fffffffd598, aConfig=...) at /home/komat/src-wayland/toolkit/xre/nsAppRunner.cpp:4752
#21 0x00007fffee17a5b7 in mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) (this=0x7ffff78026e0, argc=4, argv=0x7fffffffd598, aConfig=...)
at /home/komat/src-wayland/toolkit/xre/Bootstrap.cpp:45
#22 0x000055555556db2d in do_main(int, char**, char**) (argc=4, argv=0x7fffffffd598, envp=0x7fffffffd5c0) at /home/komat/src-wayland/browser/app/nsBrowserApp.cpp:217
#23 0x000055555556d325 in main(int, char**, char**) (argc=4, argv=0x7fffffffd598, envp=0x7fffffffd5c0) at /home/komat/src-wayland/browser/app/nsBrowserApp.cpp:331

Started firefox as MOZ_ENABLE_WAYLAND=1 MOZ_FORCE_DISABLE_E10S=1 ./firefox

So the Assert is https://searchfox.org/mozilla-central/source/widget/gtk/MPRISServiceHandler.cpp#493
which basically means we failed at initializing, using MOZ_LOG=MediaControl:5 might tell why.

What distro did you test it on, so I can try to reproduce it?
Also it's really strange, because someone seems to query the Property, so we should've successfully attached to the bus.

Thanks for reporting!

No longer reproducible, Thanks.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.