Closed Bug 1506017 Opened 6 years ago Closed 1 year ago

Firefox freezes after waking up from sleep

Categories

(Core :: Graphics, defect, P5)

63 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jonas.gamao, Unassigned)

References

Details

This happens after I put my computer to sleep.

Instead of the webpages responding normally after waking up from sleep, they either work for a while after I interact with them (and then freeze shortly after), or they totally freeze right after waking up.

Forcing Firefox to restart solves it.

Another note: it only seems to happen on my desktop, which runs on Kubuntu 18.10.  I have 2 laptops with KDE Plasma as the main desktop environment (one also runs on Kubuntu 18.10 and the other with Solus) and it doesn't happen to them.  The main difference, in terms of hardware, between my desktop and my 2 other laptops are that my desktop uses NVIDIA GPU, while my laptops are using the Intel integrated GPU.
Hi, thanks for submitting the bug. A couple of questions to help narrow down the problem:

- Is it only the contents of the tabs that are frozen, or does that include interacting with the main browser UI?

- if the browser UI is still responsive, can you open the about:support tab and see if you can still interact with it?

- when Firefox is not responding, can you look at a process/CPU monitor to see if Firefox is consuming 100% of the CPU or if it's hanging deadlocked (not using CPU)


- If possible, could you also test with Nightly and/or older versions to see if the problem exists on different versions from the one you're using?
Flags: needinfo?(jonty.68)
(In reply to :Felipe Gomes (needinfo me!) from comment #2)
> Hi, thanks for submitting the bug. A couple of questions to help narrow down
> the problem:
> 
> - Is it only the contents of the tabs that are frozen, or does that include
> interacting with the main browser UI?
> 
> - if the browser UI is still responsive, can you open the about:support tab
> and see if you can still interact with it?
> 
> - when Firefox is not responding, can you look at a process/CPU monitor to
> see if Firefox is consuming 100% of the CPU or if it's hanging deadlocked
> (not using CPU)
> 
> 
> - If possible, could you also test with Nightly and/or older versions to see
> if the problem exists on different versions from the one you're using?

I haven't tested with a Nightly or older version of Firefox.

Firefox itself was totally frozen and required restart.

```
$ dmesg
[ 4740.849774] ACPI: Preparing to enter system sleep state S3
[ 4740.850370] PM: Saving platform NVS memory
[ 4740.850412] Disabling non-boot CPUs ...
[ 4740.865605] IRQ 122: no longer affine to CPU1
[ 4740.866603] smpboot: CPU 1 is now offline
[ 4740.889595] IRQ 121: no longer affine to CPU2
[ 4740.890596] smpboot: CPU 2 is now offline
[ 4740.914598] smpboot: CPU 3 is now offline
[ 4740.918351] ACPI: Low-level resume complete
[ 4740.918415] PM: Restoring platform NVS memory
[ 4740.919085] Enabling non-boot CPUs ...
[ 4740.919137] x86: Booting SMP configuration:
[ 4740.919138] smpboot: Booting Node 0 Processor 1 APIC 0x2
[ 4740.919504]  cache: parent cpu1 should not be sleeping
[ 4740.919646] CPU1 is up
[ 4740.919664] smpboot: Booting Node 0 Processor 2 APIC 0x4
[ 4740.920019]  cache: parent cpu2 should not be sleeping
[ 4740.920173] CPU2 is up
[ 4740.920191] smpboot: Booting Node 0 Processor 3 APIC 0x6
[ 4740.920550]  cache: parent cpu3 should not be sleeping
[ 4740.920697] CPU3 is up
[ 4740.923141] ACPI: Waking up from system sleep state S3
[ 4741.030149] parport_pc 00:01: activated
[ 4741.031339] serial 00:02: activated
[ 4741.044058] sd 0:0:0:0: [sda] Starting disk
[ 4741.044059] sd 1:0:0:0: [sdb] Starting disk
[ 4741.044889] sd 2:0:0:0: [sdc] Starting disk
[ 4741.048094] sd 3:0:0:0: [sdd] Starting disk
[ 4741.048099] sd 4:0:0:0: [sde] Starting disk
[ 4741.324308] usb 1-11: reset full-speed USB device number 6 using xhci_hcd
[ 4741.414558] ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4741.414611] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4741.414673] ata6: SATA link down (SStatus 4 SControl 300)
[ 4741.416357] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT4._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4741.416363] No Local Variables are initialized for Method [_GTF]
[ 4741.416364] No Arguments are initialized for method [_GTF]
[ 4741.416366] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT4._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4741.416491] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT2._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4741.416495] No Local Variables are initialized for Method [_GTF]
[ 4741.416496] No Arguments are initialized for method [_GTF]
[ 4741.416496] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT2._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4741.416520] ata3.00: supports DRM functions and may not be fully accessible
[ 4741.421254] ata3.00: disabling queued TRIM support
[ 4741.426202] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT2._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4741.426206] No Local Variables are initialized for Method [_GTF]
[ 4741.426207] No Arguments are initialized for method [_GTF]
[ 4741.426208] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT2._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4741.426230] ata3.00: supports DRM functions and may not be fully accessible
[ 4741.430219] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT4._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4741.430235] No Local Variables are initialized for Method [_GTF]
[ 4741.430236] No Arguments are initialized for method [_GTF]
[ 4741.430237] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT4._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4741.430934] ata3.00: disabling queued TRIM support
[ 4741.435712] ata3.00: configured for UDMA/133
[ 4741.438521] ata5.00: configured for UDMA/133
[ 4742.944954] acpi LNXPOWER:16: Turning OFF
[ 4742.945011] acpi LNXPOWER:15: Turning OFF
[ 4742.945068] acpi LNXPOWER:14: Turning OFF
[ 4742.945125] acpi LNXPOWER:13: Turning OFF
[ 4742.945180] acpi LNXPOWER:12: Turning OFF
[ 4742.945234] acpi LNXPOWER:11: Turning OFF
[ 4742.945290] acpi LNXPOWER:10: Turning OFF
[ 4742.945345] acpi LNXPOWER:0f: Turning OFF
[ 4742.945400] acpi LNXPOWER:0e: Turning OFF
[ 4742.945455] acpi LNXPOWER:0d: Turning OFF
[ 4742.945511] acpi LNXPOWER:0c: Turning OFF
[ 4742.945566] acpi LNXPOWER:0b: Turning OFF
[ 4742.945620] acpi LNXPOWER:0a: Turning OFF
[ 4742.945675] acpi LNXPOWER:09: Turning OFF
[ 4742.945730] acpi LNXPOWER:08: Turning OFF
[ 4742.945785] acpi LNXPOWER:07: Turning OFF
[ 4742.945840] acpi LNXPOWER:06: Turning OFF
[ 4742.945895] acpi LNXPOWER:05: Turning OFF
[ 4742.945950] acpi LNXPOWER:04: Turning OFF
[ 4742.946006] acpi LNXPOWER:03: Turning OFF
[ 4742.946047] OOM killer enabled.
[ 4742.946047] Restarting tasks ... done.
[ 4742.955577] pci_bus 0000:04: Allocating resources
[ 4742.955590] pci 0000:03:00.0: bridge window [io  0x1000-0x0fff] to [bus 04] add_size 1000
[ 4742.955592] pci 0000:03:00.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 04] add_size 200000 add_align 100000
[ 4742.955594] pci 0000:03:00.0: bridge window [mem 0x00100000-0x000fffff] to [bus 04] add_size 200000 add_align 100000
[ 4742.955597] pci 0000:03:00.0: BAR 14: no space for [mem size 0x00200000]
[ 4742.955598] pci 0000:03:00.0: BAR 14: failed to assign [mem size 0x00200000]
[ 4742.955600] pci 0000:03:00.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[ 4742.955601] pci 0000:03:00.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[ 4742.955602] pci 0000:03:00.0: BAR 13: no space for [io  size 0x1000]
[ 4742.955603] pci 0000:03:00.0: BAR 13: failed to assign [io  size 0x1000]
[ 4742.955606] pci 0000:03:00.0: BAR 14: no space for [mem size 0x00200000]
[ 4742.955607] pci 0000:03:00.0: BAR 14: failed to assign [mem size 0x00200000]
[ 4742.955609] pci 0000:03:00.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[ 4742.955610] pci 0000:03:00.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[ 4742.955611] pci 0000:03:00.0: BAR 13: no space for [io  size 0x1000]
[ 4742.955612] pci 0000:03:00.0: BAR 13: failed to assign [io  size 0x1000]
[ 4742.955613] pci 0000:03:00.0: PCI bridge to [bus 04]
[ 4743.012406] PM: suspend exit
[ 4746.420196] ata2: link is slow to respond, please be patient (ready=0)
[ 4746.472200] ata4: link is slow to respond, please be patient (ready=0)
[ 4746.472204] ata1: link is slow to respond, please be patient (ready=0)
[ 4748.100197] ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4749.228364] usb 1-9: reset high-speed USB device number 4 using xhci_hcd
[ 4749.438434] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT3._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4749.438443] No Local Variables are initialized for Method [_GTF]
[ 4749.438444] No Arguments are initialized for method [_GTF]
[ 4749.438445] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT3._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4749.439669] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT3._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4749.439676] No Local Variables are initialized for Method [_GTF]
[ 4749.439677] No Arguments are initialized for method [_GTF]
[ 4749.439679] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT3._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4749.440000] ata4.00: configured for UDMA/133
[ 4750.088253] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 4750.088979] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT0._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4750.088987] No Local Variables are initialized for Method [_GTF]
[ 4750.088988] No Arguments are initialized for method [_GTF]
[ 4750.088989] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT0._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4750.094114] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT0._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4750.094121] No Local Variables are initialized for Method [_GTF]
[ 4750.094122] No Arguments are initialized for method [_GTF]
[ 4750.094123] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT0._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4750.094311] ata1.00: configured for UDMA/133
[ 4751.068226] ata2: COMRESET failed (errno=-16)
[ 4755.200317] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4755.200592] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT1._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4755.200600] No Local Variables are initialized for Method [_GTF]
[ 4755.200601] No Arguments are initialized for method [_GTF]
[ 4755.200602] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT1._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4755.570000] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.PRT1._GTF.DSSP], AE_NOT_FOUND (20180531/psargs-330)
[ 4755.570008] No Local Variables are initialized for Method [_GTF]
[ 4755.570009] No Arguments are initialized for method [_GTF]
[ 4755.570011] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.PRT1._GTF, AE_NOT_FOUND (20180531/psparse-516)
[ 4755.573493] ata2.00: configured for UDMA/133
[ 4755.834694] IPv6: ADDRCONF(NETDEV_UP): enp5s0: link is not ready
[ 4755.835097] IPv6: ADDRCONF(NETDEV_UP): enp5s0: link is not ready
[ 4755.839289] alx 0000:05:00.0 enp5s0: NIC Up: 100 Mbps Half
[ 4755.839498] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0: link becomes ready
[ 4827.341964] Chrome_~dThread[5697]: segfault at 0 ip 00007f3eea48ca4b sp 00007f3ee53aeb00 error 6 in libxul.so[7f3eea478000+3e99000]
[ 4827.341969] Code: fa 05 48 8d 15 de f0 af 04 48 89 10 c7 04 25 00 00 00 00 00 00 00 00 0f 0b 48 8b 05 07 22 fa 05 48 8d 0d 28 f1 af 04 48 89 08 <c7> 04 25 00 00 00 00 00 00 00 00 0f 0b e8 4d f4 ff ff 48 8b 05 e4 
[ 4827.387556] Chrome_~dThread[5793]: segfault at 0 ip 00007ff6a7743a4b sp 00007ff6a2665b00 error 6 in libxul.so[7ff6a772f000+3e99000]
[ 4827.387561] Code: fa 05 48 8d 15 de f0 af 04 48 89 10 c7 04 25 00 00 00 00 00 00 00 00 0f 0b 48 8b 05 07 22 fa 05 48 8d 0d 28 f1 af 04 48 89 08 <c7> 04 25 00 00 00 00 00 00 00 00 0f 0b e8 4d f4 ff ff 48 8b 05 e4 
[ 4827.387658] Chrome_~dThread[5742]: segfault at 0 ip 00007f751150ca4b sp 00007f750c42eb00 error 6 in libxul.so[7f75114f8000+3e99000]
[ 4827.387662] Code: fa 05 48 8d 15 de f0 af 04 48 89 10 c7 04 25 00 00 00 00 00 00 00 00 0f 0b 48 8b 05 07 22 fa 05 48 8d 0d 28 f1 af 04 48 89 08 <c7> 04 25 00 00 00 00 00 00 00 00 0f 0b e8 4d f4 ff ff 48 8b 05 e4 
[ 4827.387752] Chrome_~dThread[7494]: segfault at 0 ip 00007f7334a9ba4b sp 00007f732f9bdb00 error 6 in libxul.so[7f7334a87000+3e99000]
[ 4827.387755] Code: fa 05 48 8d 15 de f0 af 04 48 89 10 c7 04 25 00 00 00 00 00 00 00 00 0f 0b 48 8b 05 07 22 fa 05 48 8d 0d 28 f1 af 04 48 89 08 <c7> 04 25 00 00 00 00 00 00 00 00 0f 0b e8 4d f4 ff ff 48 8b 05 e4 
[ 4827.387832] Chrome_~dThread[6224]: segfault at 0 ip 00007f9c6ad4ca4b sp 00007f9c65c6eb00 error 6 in libxul.so[7f9c6ad38000+3e99000]
[ 4827.387836] Code: fa 05 48 8d 15 de f0 af 04 48 89 10 c7 04 25 00 00 00 00 00 00 00 00 0f 
[ 4827.387844] Chrome_~dThread[7972]: segfault at 0 ip 00007f749c621a4b sp 00007f7497543b00 error 6
[ 4827.387845] 0b 
[ 4827.387845]  in libxul.so[7f749c60d000+3e99000]
[ 4827.387846] 48 8b 05 
[ 4827.387848] Code: 
[ 4827.387849] 07 
[ 4827.387849] fa 
[ 4827.387850] 22 
[ 4827.387850] 05 48 
[ 4827.387851] fa 
[ 4827.387852] 8d 15 
[ 4827.387852] 05 
[ 4827.387853] de 
[ 4827.387853] 48 8d 
[ 4827.387854] f0 af 04 
[ 4827.387856] 0d 28 
[ 4827.387856] 48 
[ 4827.387857] f1 
[ 4827.387858] 89 
[ 4827.387858] af 
[ 4827.387859] 10 
[ 4827.387859] 04 
[ 4827.387860] c7 04 25 
[ 4827.387861] 48 
[ 4827.387861] 00 
[ 4827.387862] 89 08 <c7> 
[ 4827.387863] 00 00 
[ 4827.387864] 04 
[ 4827.387865] 00 
[ 4827.387865] 25 00 
[ 4827.387866] 00 
[ 4827.387867] 00 
[ 4827.387867] 00 00 00 
[ 4827.387868] 00 
[ 4827.387869] 0f 
[ 4827.387869] 00 
[ 4827.387870] 0b 
[ 4827.387870] 00 00 
[ 4827.387871] 48 8b 
[ 4827.387872] 00 00 
[ 4827.387873] 05 
[ 4827.387874] 0f 0b 
[ 4827.387875] 07 22 
[ 4827.387876] e8 
[ 4827.387876] fa 05 
[ 4827.387877] 4d 
[ 4827.387878] 48 
[ 4827.387878] f4 ff 
[ 4827.387879] 8d 0d 
[ 4827.387880] ff 48 
[ 4827.387881] 28 f1 
[ 4827.387882] 8b 
[ 4827.387882] af 
[ 4827.387883] 05 e4 
[ 4827.387884] 04 48 
[ 4827.387885] 89 08 <c7> 04 25 00 00 00 00 00 00 00 00 0f 0b e8 4d f4 ff ff 48 8b 05 e4 
```
Flags: needinfo?(jonty.68)
(In reply to jonty.68 from comment #0)
>   The main difference, in terms of hardware, between my
> desktop and my 2 other laptops are that my desktop uses NVIDIA GPU, while my
> laptops are using the Intel integrated GPU.

Based on this, and the difference between comment 4 and comment 1:

(In reply to jonty.68 from comment #4)
> Features
> Compositing: Basic

> Diagnostics
> AzureCanvasAccelerated: 0
> AzureCanvasBackend: skia
> AzureContentBackend: skia
> AzureFallbackCanvasBackend: none
> CairoUseXRender: 0
> Decision Log
> HW_COMPOSITING:
> blocked by default: Acceleration blocked by platform
> OPENGL_COMPOSITING:
> unavailable by default: Hardware compositing is disabled
> WEBRENDER:
> opt-in by default: WebRender is an opt-in feature
> unavailable by runtime: Hardware compositing is disabled
> WEBRENDER_QUALIFIED:
> blocked by env: No qualified hardware


vs.

(In reply to jonty.68 from comment #1)
> Features
> Compositing: OpenGL

> Diagnostics
> AzureCanvasAccelerated: 0
> AzureCanvasBackend: skia
> AzureContentBackend: skia
> AzureFallbackCanvasBackend: none
> CairoUseXRender: 0
> Decision Log
> HW_COMPOSITING:
> blocked by default: Acceleration blocked by platform
> force_enabled by user: Force-enabled by pref
> OPENGL_COMPOSITING:
> force_enabled by user: Force-enabled by pref
> WEBRENDER:
> opt-in by default: WebRender is an opt-in feature
> WEBRENDER_QUALIFIED:
> blocked by env: No qualified hardware

This seems like a gfx issue.
Component: General → Graphics
Product: Firefox → Core
Priority: -- → P5
See Also: → 1506556

For me firefox works fine after resume. But the moment I try to play a video the UI freezes while audio keeps playing in the background.

See Also: 1506556

Same with WebRender: bug 1515253

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1515253

Happens on Fedora 32 with FF 78.0.1 (64 bit) and FF Developer 79.0b3 (64-bit).

Nvidia 440.100 proprietary driver.
Force composition pipeline is turned off.

After resuming from suspend, FF window becomes transparent and hangs when doing some very specific actions e.g. opening a Youtube video or opening the Messages dropdown menu in Facebook.

Only happens if layers.acceleration.force-enabled=true. After disabling that setting, it works as normal.

See Also: → 1679573
See Also: 1679573
Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 4 duplicates.
:bhood, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bhood)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

Flags: needinfo?(bhood)

jonty, does this still happen for you?
With layers.acceleration.force-enabled=true or false?

Flags: needinfo?(jonty.68)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:bhood, since the bug has recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jonty.68) → needinfo?(bhood)
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(bhood)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.