Closed Bug 1861615 Opened 8 months ago Closed 8 months ago

Freeze at nsUserIdleService::GetIdleTime()

Categories

(Core :: Widget: Gtk, defect, P3)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox119 --- wontfix
firefox120 --- fixed
firefox121 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

Details

Attachments

(2 files)

Freeze at nsUserIdleService::GetIdleTime():

#0  0x00007f4979f071ad in poll () at /lib64/libc.so.6
#1  0x00007f4978971629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f4978912aff in g_main_loop_run () at /lib64/libglib-2.0.so.0
#3  0x00007f49787ed405 in g_dbus_connection_send_message_with_reply_sync () at /lib64/libgio-2.0.so.0
#4  0x00007f49787f2153 in g_dbus_connection_call_sync_internal () at /lib64/libgio-2.0.so.0
#5  0x00007f4978804d9f in g_dbus_proxy_call_sync_internal () at /lib64/libgio-2.0.so.0
#6  0x00007f4978804fbb in g_dbus_proxy_call_sync () at /lib64/libgio-2.0.so.0
#7  0x00007f4971c7d506 in UserIdleServiceMutter::PollIdleTime(unsigned int*) () at /usr/lib64/firefox/libxul.so
#8  0x00007f4973427391 in nsUserIdleService::GetIdleTime(unsigned int*) () at /usr/lib64/firefox/libxul.so
#9  0x00007f49734b3796 in nsUserIdleService::IdleTimerCallback() () at /usr/lib64/firefox/libxul.so
#10 0x00007f4972c5ca86 in nsTimerEvent::Run() () at /usr/lib64/firefox/libxul.so

we may try to implement it as async.

Flags: needinfo?(stransky)
Assignee: nobody → stransky
Status: NEW → ASSIGNED
Flags: needinfo?(stransky)
Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/c49f13a2dc69
[Linux] Get idle time async from DBus r=emilio
Backout by ctuns@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/ec7d4cb306bc
Backed out changeset c49f13a2dc69 for causing failures in test_bug343416.xhtml and test_ext_idle.html CLOSED TREE

Allow to switch to another idle service type if UserIdleServiceMutter::PollIdleTime() fails. We recently see that failures on Mozilla try servers as:
Failed to call GetIdletime(): GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Mutter.IdleMonitor was not provided by any .service files

Depends on D192061

Flags: needinfo?(stransky)
Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/6d76528ae6c2
[Linux] Get idle time async from DBus r=emilio
https://hg.mozilla.org/integration/autoland/rev/73d527cf7fe4
[Linux] Fallback to another idle service type from UserIdleServiceMutter::PollIdleTime() r=emilio
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch

The patch landed in nightly and beta is affected.
:stransky, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox120 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(stransky)

Comment on attachment 9360596 [details]
Bug 1861615 [Linux] Get idle time async from DBus r?emilio

Beta/Release Uplift Approval Request

  • User impact if declined: We have reported repeated Firefox freezes on Gnome/Mutter caused by DBus interface. Fedora ships downstream patch for it.
    With async DBus handling we don't freeze if there's any issue which may block Firefox.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Medium
  • Why is the change risky/not risky? (and alternatives if risky): Switches Idle service to asyc, may potentially introduce any bug here.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(stransky)
Attachment #9360596 - Flags: approval-mozilla-beta?
Attachment #9360970 - Flags: approval-mozilla-beta?

Comment on attachment 9360596 [details]
Bug 1861615 [Linux] Get idle time async from DBus r?emilio

Approved for 120.0b7

Attachment #9360596 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9360970 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: