Closed Bug 1659040 Opened 5 years ago Closed 3 years ago

firefox dev edition not able to access internet intermittently

Categories

(Core :: Networking, defect)

80 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: ketu.bhalerao, Unassigned)

Details

Attachments

(6 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0

Steps to reproduce:

download firefox dev edition.
install firefox dev edition
launch firefox dev ed, and browse internet.
after a while the spinners just spins, pages do not get loaded.
verified this with other browsers and other devices in my house and internet connection works fine.

Actual results:

the loader on tabs just shows loading. no page gets loaded.
this issue is now appearing very frequently for me.
I can be even in middle of the youtube video and the page goes in the loading state.
half the time when I start firefox I have to wait a good 5-10 mins before its usable (internet is not accessible)

Expected results:

when firefox is started I should be able to access the internet right away.
internet connectivity should not be lost if my internet connection is doing well.
there should not be an initial load time for the browser.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Networking
Product: Firefox → Core

Hi Reporter,

Could you try to get the http log when you see this happens?

Thanks.

Flags: needinfo?(ketu.bhalerao)

http log file as requested.

Flags: needinfo?(ketu.bhalerao)

(In reply to ketu.bhalerao from comment #3)

Created attachment 9170020 [details]
log.txt-main.14880.moz_log

http log file as requested.

Thanks for the log.
It looks like someone suspend the http request but never resume it. This could be caused by some extension.
Could you try to disable all extensions and see if you can reproduce this?

If this issue still existed after disabling all extensions, could you add nsChannelClassifier:5 in MOZ_LOG env and capture the log again?

Flags: needinfo?(ketu.bhalerao)

I disabled all the logs and tried to access however the issue is still there.

Flags: needinfo?(ketu.bhalerao)

here is the required logs as requested.
i have disabled all the extensions.
Firefox is now going in hang state.

(In reply to ketu.bhalerao from comment #6)

Created attachment 9170343 [details]
log.txt-main.15396.moz_log

here is the required logs as requested.
i have disabled all the extensions.
Firefox is now going in hang state.

Unfortunately, we still can't tell what's wrong from the log.
May I ask you to also get the logs of child processes? To do this, you probably need to disable sandboxing first.
I assume that you are using windows. Here are the steps.

  1. Open windows command line tool.
  2. Go to firefox's folder. In my case it's: C:\Program Files\Firefox Nightly.
  3. Type set MOZ_DISABLE_CONTENT_SANDBOX=1
  4. Run firefox.exe.
  5. Capture the log when the issue happens. When you click stop logging, you should be able to see logs created by child processes. The file name is like log.txt-child.xxxxx.moz_log. Please upload logs from main and child processes.

Thank you.

Flags: needinfo?(ketu.bhalerao)

sure,
just to be clear, setting the flag and running the firefox.exe will be done from the same command prompt rt?
if i start firefox from my regular icon/app sandbox will be to its default state (i assume enabled)

Flags: needinfo?(ketu.bhalerao)

(In reply to ketu.bhalerao from comment #8)

sure,
just to be clear, setting the flag and running the firefox.exe will be done from the same command prompt rt?
if i start firefox from my regular icon/app sandbox will be to its default state (i assume enabled)

Right, in the same command prompt.

Attached file 23 august.zip

child logs are attached

The severity field is not set for this bug.
:valentin, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(valentin.gosu)

I see a the channel bein cancelled from a YT script:

2020-08-23 05:07:25.645000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::Cancel [this=00000289409D2000, status=804b0002]
2020-08-23 05:07:25.645000 UTC - [Child 11368: Main Thread]: V/nsHttp 00000289409D2000 called from script: https://www.youtube.com/s/player/530216c1/player_ias.vflset/en_US/base.js:6107:41

but also:

2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::OnStartRequest [this=00000289409D2000]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpBaseChannel::SetApplyConversion [this=00000289409D2030 value=1]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::DoOnStartRequest [this=00000289409D2000]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::Cancel [this=00000289409D2000, status=805303f4]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::Cancel [this=00000289409D2000, status=805303f4]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::OnStopRequest [this=00000289409D2000 status=804b0002]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::DoPreOnStopRequest [this=00000289409D2000 status=804b0002]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::DoOnStopRequest [this=00000289409D2000]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: D/nsHttp nsHttpHandler::NotifyObservers [chan=00000289409D2070 event="http-on-stop-request"]
2020-08-23 05:07:25.653000 UTC - [Child 11368: Main Thread]: V/nsHttp HttpChannelChild::CleanupBackgroundChannel [this=00000289409D2000 bgChild=00000289368801F0]

805303f4 is NS_ERROR_DOM_BAD_URI which we only return from here in HttpChannelChild, but could also come from somewhere else maybe.

Kershaw, do you have any ideas?

Flags: needinfo?(valentin.gosu) → needinfo?(kershaw)

This is weird. I have no idea why channels are cancelled. Even cancelling by YT script is not reasonable to me.

So, I'd like to ask for more information.

  1. Does this issue only happen on dev? Have you tried to use nightly or release?
  2. Any steps to reproduce this issue?
  3. I see SockJS running locally and the request is also cancelled. Maybe this is related?
2020-08-23 05:07:37.618000 UTC - [Child 18540: Main Thread]: V/nsHttp HttpChannelChild::Cancel [this=0000012C3063D000, status=804b0002]
2020-08-23 05:07:37.618000 UTC - [Child 18540: Main Thread]: V/nsHttp 0000012C3063D000 called from script: http://localhost:4200/polyfills.js:2866:35
  1. When this happens again, could you try to access some simple website, such as www.example.com, and also capture the logs?

Thank you!

Flags: needinfo?(kershaw) → needinfo?(ketu.bhalerao)

Sorry for the delayed response.
as suggested I have uninstalled all extensions, and here is the log file
I have used google.co.in, fast.com, golang.org website after things stopped working.
since yesterday firefox dev edition and the stable release have started giving a lot of issues. for me all day long it's stuck in not responding state. if I kill it using the task manager and try to start it again it won't start. every time I click firefox a process gets started but the browser does not come up. if after an hour or so it comes up it will straight away go into a not responding state and will not come out of it.
I need to restart my laptop in order to get firefox to work again. and even after a restart, it will only work for 5-10 minutes and then the same thing happens again.
this is really frustrating. I am using firefox dev edition for a couple of years and firefox for more than 6-8 years this is the first time I am so frustrated that I have started using Chrome as my main browser.
hope this gets resolved soon and I can go back to using firefox.

Flags: needinfo?(ketu.bhalerao)

updated child file with nsChannelClassifier:5 and set MOZ_DISABLE_CONTENT_SANDBOX=1

the child file had no content, bugzilla not allowing to attach empty file

Thanks for the log.

Unfortunately, I can't find the root cause from the log. I can only tell it seems there is something wrong with your network environment. For example, the http request to google.co.in is failed because of timeout.
The http request is created at 2020-10-20 07:32:16.

2020-10-20 07:32:16.335000 UTC - [Parent 2288: Main Thread]: D/nsHttp Creating nsHttpChannel [this=00000237941A8000]
2020-10-20 07:32:16.335000 UTC - [Parent 2288: Main Thread]: E/nsHttp HttpBaseChannel::Init [this=00000237941A8000]
2020-10-20 07:32:16.335000 UTC - [Parent 2288: Main Thread]: E/nsHttp uri=https://www.google.co.in/
2020-10-20 07:32:16.335000 UTC - [Parent 2288: Main Thread]: E/nsHttp nsHttpChannel::Init [this=00000237941A8000]

After about 30s, the request is failed because of timeout.

2020-10-20 07:32:46.704000 UTC - [Parent 2288: Socket Thread]: V/nsHttp nsHttpConnection::Close [this=0000023794350800 reason=804b000e]
2020-10-20 07:32:46.704000 UTC - [Parent 2288: Main Thread]: D/nsHttp nsHttpChannel::OnStartRequest [this=00000237941A8000 request=000002378E281700 status=804b000e]

Dragana, since you are on triage this week, could you also take a look at the log? Just in case I missed something.
Thanks.

Flags: needinfo?(dd.mozilla)

the issue is with firefox (stable and developer editions). even on the same laptop other apps/browsers works as expected. other devices in the same network do not show these issues.

I uninstalled the firefox developer edition thinking maybe the installer was corrupted this is a new issue I am facing.

Hi,

i got a resolution for the installation issue I was facing (https://bugzilla.mozilla.org/show_bug.cgi?id=1672442)
i installed a freshly downloaded firefox version: Firefox Setup 83.0b5
as per the prompt, I ignored all the import previous settings to keep the firefox installation clean.
also refreshed the firefox as well after installation (there was a prompt for that as well)

now it's a clean freshly installed firefox dev edition with no extension, no account (since i can't connect to the internet), no settings changes.
the issue of not able to connect to the internet is still there.

Hello, could you test again with the latest firefox and see if you can still reproduce this?
Thanks.

Flags: needinfo?(dd.mozilla) → needinfo?(ketu.bhalerao)

Close because we don't have enough information.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(ketu.bhalerao)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: