Closed Bug 1666096 Opened 6 years ago Closed 5 years ago

can't open a local file

Categories

(Firefox :: File Handling, defect)

80 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: alexis.martial16, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Steps to reproduce:

i tried to open the following url :
file:///home/echo/test.txt
i tried to use file - open file too

Actual results:

infinite loading of the file, nothing visible

Expected results:

i should have seen an error page or the text in the file

i don't have the problem on my other computer on version 79 (not updated because i need it to work)
it does not load ".html" local files too

if i remove .mozzila it works now...
but i lost all the firefox datas so i restored it :/

i cleared the cache and it works, still don't know why it bugged every local files ...

and it came back ...
cache clear does not work this time

Does the problem still happen if you start Firefox in Safe Mode? (Safe Mode disables add-ons, extensions and themes, hardware acceleration and some JavaScript stuff in order to exclude some possible reasons for problems.) See https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode

And does this also happen with a new and empty profile? See https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile

Flags: needinfo?(alexis.martial16)

yeh, it append in safe mode too.

i created a new profile and started a new windows with this one, no changes, the problem still happens

Flags: needinfo?(alexis.martial16)

Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Component: Untriaged → File Handling

Are you using a distro build? And/or a "snap" or other package? Can you try with an official, "traditional" (not snap, just the tar + zip archive) mozilla.org distributed build?

Are there any errors in the browser console when opening the file fails? (not the standard devtools one, the browser one - ctrl-shift-j to open)

Flags: needinfo?(alexis.martial16)

We unfortunately cannot make progress here without more information.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE

sorry i did not see the your previous awnser...

I'm using the os build.

I can't access the console, it's like the tab is broken after i try opening a local file. i can change the url to a new one (a website url) but the tab does not work (others works well)

i tried to dowload a version from mozilla.org but i have the same problem

Flags: needinfo?(alexis.martial16)

(In reply to alexis.martial16 from comment #10)

sorry i did not see the your previous awnser...

I'm using the os build.

I can't access the console, it's like the tab is broken after i try opening a local file. i can change the url to a new one (a website url) but the tab does not work (others works well)

The browser console is not the "normal" console and is not in the tab, it is separate - ctrl-shift-j will open it. You can try opening it before opening the file, and see if errors appear there.

Flags: needinfo?(alexis.martial16)
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INCOMPLETE → ---

not while i try to open a local file

the console is empty

Flags: needinfo?(alexis.martial16)

After a really really long time the tab stop loading and propose me to send a bug report.
I did it i wrote this bug number in the message part (i wrote something like "Bug 1666096" if i remember well)

Other thing i saw :
If i try to open a file that does not exist, the tab does not seem to load infinity. It's still impossible to load an webpage after.

(In reply to alexis.martial16 from comment #13)

After a really really long time the tab stop loading and propose me to send a bug report.
I did it i wrote this bug number in the message part (i wrote something like "Bug 1666096" if i remember well)

Other thing i saw :
If i try to open a file that does not exist, the tab does not seem to load infinity. It's still impossible to load an webpage after.

Gabriele, I do not have access to crash stats' comments search. Can you find this crash report?

Bob, is it possible this is a file: sandboxing issue? How would we check?

Flags: needinfo?(gsvelto)
Flags: needinfo?(bobowencode)

(In reply to :Gijs (he/him) from comment #14)

(In reply to alexis.martial16 from comment #13)

After a really really long time the tab stop loading and propose me to send a bug report.
I did it i wrote this bug number in the message part (i wrote something like "Bug 1666096" if i remember well)

Other thing i saw :
If i try to open a file that does not exist, the tab does not seem to load infinity. It's still impossible to load an webpage after.

Gabriele, I do not have access to crash stats' comments search. Can you find this crash report?

https://crash-stats.mozilla.org/report/index/9712141d-d949-47d3-a808-e09e50201105

Bob, is it possible this is a file: sandboxing issue? How would we check?

Pretty, sure setting environment variable MOZ_DISABLE_CONTENT_SANDBOX=1 disables for all platforms.
It could be that there is some other (outside of Firefox) process sandbox being used, I guess.

I tend to use the following if I can to avoid setting it permanently:
MOZ_DISABLE_CONTENT_SANDBOX=1 firefox

(Not sure if this works in all/most Linux shells.)

Flags: needinfo?(gsvelto)
Flags: needinfo?(bobowencode)

TBH, I'm pretty lost here at this point. AIUI:

  1. a clean profile and safe mode don't make any difference (comment #6)
  2. using a mozilla.org build doesn't help (comment #10) (the crash report is from a manjaro build, AFAICT? The build ID is unknown in buildhub.)
  3. the crash report is the content process running out of memory (OOM) - but the OOM allocation size is 33,218,887,680 bytes (33.22 GB) according to crash-stats. That seems... wrong? And unless the file in question is actually that big, which seems unlikely...
  4. at some point in the past, emptying all the profile information did fix the problem ?

This combination of things doesn't make a lot of sense. Is test.txt really big? Do other files work? Are you sure when creating a new profile, that you're running with that new profile, not just open more windows in the instance of Firefox that is already open? (You can check by using about:support in the new Firefox instance and confirming it doesn't link to an existing profile)

If you run with mozregression, does the same thing happen (e.g. running mozregression --launch 82) ?

Flags: needinfo?(alexis.martial16)

This looks like a genuine OOM crash. Unfortunately I can't symbolicate it because the package for that version is not available on Manjaro's servers anymore and I cannot find the debug information either. It would be very interesting to know how large the text file is.

I see that the URL is file:///home/echo/dev/cv/index.html

Can you tell us how large is that file and what it contains?

Without more information we unfortunately can't do much more here.

Status: REOPENED → RESOLVED
Closed: 6 years ago → 5 years ago
Resolution: --- → INCOMPLETE

Clearing the needinfo request since this bug has been closed as INCOMPLETE for 5 years, 10 months and 21 days.

For more information, please visit BugBot documentation.

Flags: needinfo?(alexis.martial16)
You need to log in before you can comment on or make changes to this bug.