[elementary OS] Save PDF from Firefox 85.0.1 on Linux Crashes Browser
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: bugzilla, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Open Firefox 85.0.1 on Linux (elementary OS 5.1/Ubuntu 18.04LTS)
Navigate to a website.
Select a downloadable PDF from the website (confirmed bug on any PDF)
Select OPEN PDF (using elementary Document Viewer based on Evince)
PDF opens successfully.
Select SAVE AS....
Immediate crash occurs closing Firefox and PDF viewer.
Tried just saving the file from Firefox without viewing and this works. But opening in a PDF viewer results in the immediate crash.
Actual results:
When trying to SAVE AS, the SAVE AS file dialogue opens but selecting SAVE results in immediate Firefox crash. Oddly, in Firefox, HELP...Troubleshooting Information shows no crash--Crash Reports for Last Three Days in empty. Firefox restarts.
Expected results:
Save PDF file. without crashing.
Comment 1•5 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::File Handling' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•5 years ago
|
||
Sorry, we're missing some details here, could you clarify?
(In reply to Nemo from comment #0)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Open Firefox 85.0.1 on Linux (elementary OS 5.1/Ubuntu 18.04LTS)
Navigate to a website.
Select a downloadable PDF from the website (confirmed bug on any PDF)
Select OPEN PDF (using elementary Document Viewer based on Evince)
PDF opens successfully.
OK, so this opens in an external application, outside Firefox, right? And if you close Firefox, the pdf viewer stays open?
Select SAVE AS....
Is this still in evince / document viewer, not inside Firefox?
Thank you.
First, I tried this today and tentatively see that Firefox 86.0 (x64) may have addressed this bug in 85.
Yes. the bug occurs if you open the PDF and select the external application (here evince). The external application does stay open if you close Firefox 85.
The SAVE AS was from evince when evince was launched from Firefox. But, this caused an immediate crash/closure of BOTH Firefox and evince (but no other running apps). Nothing appeared in the Firefox logs, however. The crash was immediate--blip, Firefox and evince gone/closed.
I tried this again this morning with the Firefox 86.0 x64 and I was NOT able to replicate the prior bug in 86.0 so far.
THANK YOU for looking into this.
Comment 4•5 years ago
|
||
Thanks for the update on this issue Nemo!
Closing this as resolved:worksfome based on Comment 3. If you encounter it again please feel free and do re-open this issue for further needed investigations.
PROBLEM RECURRING
Firefox 86.0 x64 immediately crashes when attempting to SAVE a PDF.
I thought that this was resolved but it recurs.
Firefox 86.0 x64 on elementary OS 5.1.7 (Ubuntu 18.04LTS base)
What happens:
- Go to a website with a PDF.
- Select the PDF in Firefox.
- Firefox opens the What should Firefox do with this file? dialogue window.
- Any attempt to SAVE the file (directly saving from this dialogue or opening in Firefox or Document Viewer/evince) results in an IMMEDIATE complete crash of Firefox. All Firefox windows and instances immediately disappear and the crash notice window appears offering to restart Firefox.
I also tried launching Firefox in safe mode from a Terminal. firefox -safe-mode.
Even in safe mode, when you view the PDf in Firefox and try to save, immediate crash of all Firefox instances.
Comment 7•5 years ago
|
||
(In reply to Nemo from comment #5)
Firefox 86.0 x64 on elementary OS 5.1.7 (Ubuntu 18.04LTS base)
Is this your distro's Firefox? If so, can you try an official mozilla.org build?
If not, can you link to the relevant crash report by going to about:crashes and clicking "view" next to the one that corresponds to a crash like this (or first "submit" if necessary), then copy-pasting the link here?
Thank you!
Firefox was installed as a standard distro package via apt. The Firefox about says:
86.0 (64-bit) Mozilla Firefox for Ubuntu canonical - 1.0
Crash Reports from about:crashes
https://crash-stats.mozilla.org/report/index/56dc5836-dd9c-42e9-8ef2-5d8a70210316
https://crash-stats.mozilla.org/report/index/fb55f820-97bb-449c-8761-56d6b0210316
Thank you for looking at this!
Comment 9•5 years ago
|
||
Thanks for the quick response. This looks like it's the same root cause (in terms of crashes) as bug 1696373, but I suspect the steps to reproduce may be useful, and/or that our GTK folks might have more questions about your environment. :stransky ?
Comment 10•5 years ago
|
||
Can you please run Firefox on terminal and attach the log you see? I expect there may be some Gtk critical messages or so.
Thanks.
| Reporter | ||
Comment 11•5 years ago
|
||
Thank you.
I ran Firefox 86.0 x64 from terminal using:
firefox
and
firefox & > /home/nemo/ff2.txt
I did not see any error messages to terminal and the ff2.txt file is blank. (I did this several times with incrementing text file names.) COPIED FROM BELOW FOR EASIER READING--
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
ODDITY
Now the odd part. I thought that I was imagining this error despite the concrete crash logs. My original report of this issue was about three weeks ago. I also reported, see above, that 86.0 initially seemed to fix the issue. I was not imagining things. The incidence of this error is sometimes erratic. Yesterday, all attempts to SAVE resulted in a crash.
This morning, in response to your email, I ran Firefox and ran through some of the files that I tried to download yesterday. Same exact files, same exact websites (so I rule out a corrupted file or url or something). Firefox worked fine both normal launch and from terminal. I was able to SAVE.
Then, I closed all the Firefox instances. I continued to test and suddenly ...
https://crash-stats.mozilla.org/report/index/c8b76c02-f95c-4597-9f85-874440210317
Another crash. Attempt to SAVE AS resulted in an immediate crash. See report.
I confirm that I had five successful downloads prior to this. Then suddenly a crash.
I also verified that I am not trying to save to a network drive or anything--all saves are to my main, mounted, SSD and to the /home directory (ext4 file system).
I then closed and re-ran Firefox from terminal a few more times. FINALLY, I tried a PDF download (same as before, same site, same file). Terminal showed the following errors (but no immediate crash) when SAVING the PDF:
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PLayerTransaction::Msg_ReleaseLayer Processing error: message was deserialized, but the handler returned false (indicating failure)
Is this what you are looking for?
(If anyone else is following my testing, the firefox & > /home/nemo/ff4.txt remains blank. The errors go to terminal, not the file.)
I want to submit this quickly before any more testing as any crash closes. If you need more, just let me know.
Comment 12•5 years ago
|
||
A similar report seems to be here: https://github.com/tkashkin/GameHub/issues/76
It states that Elementary OS uses custom File dialog which causes such issue. Can you please report that at https://bugs.launchpad.net/elementary ?
Updated•5 years ago
|
| Reporter | ||
Comment 13•5 years ago
|
||
Thank you. I filed an amended report to elementary OS https://elementaryos.stackexchange.com/questions/26683/save-operations-result-in-immediate-application-crashes-hera-5-1-7-march-2021 .
I did research into the elementary OS custom file dialogue. It is not clear whether this still exists (reports were from an older version of elementary OS from three years ago).
Thank all of you for looking at this.
| Reporter | ||
Comment 14•5 years ago
|
||
Following Up:
If anyone else encounters this issue with attempts to SAVE files causing an immediate application crash in elementary OS 5.1 Hera (c. March 2021), the unconfirmed resolution (I confirm that the solution works but no other confirmations) appears to be removing the elementary OS 5.1 pantheon special file chooser extensions. See GitHub https://github.com/elementary/files/issues/1636 .
The instructions on the Git elementary/files issues log suggest moving the pantheon-filechooser-module.sh out of /etc/profile.d (e.g., sudo mv /etc/profile.d/pantheon-filechooser-module.sh /home/{yourusername}/ ). Reboot after confirming that the move occurred.
For me, moving pantheon-filechooser-module.sh resolved this bug/issue. The issue affected all Mozilla products, and other applications like Chrome and LibreOffice. Attempts to SAVE with the default elementary OS 5.1 file chooser extensions resulted in an immediate application crash. (If LibreOffice, this created an endless loop of crash-recovery attempts.)
The fantastic elementary OS team confirmed that the pantheon-filechooser-module.sh will not be used in the forthcoming elementary OS 6.0.
Comment 15•3 years ago
|
||
Resolving invalid based on the last comment explaining that this is a broken OS customization.
Description
•