sailfishos/sailfish-browser

Browser crashes very often since upgrading to 2.1.0.9

schmittlauch opened this issue · 3 comments

Since updating to SFOS 2.1.0.9, the browser crashes at least 1 out of 3 times it is opened. Unlike #555 this isn't specific to certain websites but happens to a wide range of websites.
It mostly happens when the browser isn't already opened and needs to be launched, but sometimes the browser also crashes when it's already running.
When the browser has crashed, re-launching it (via tapping the greyed-out cover on home screen) it often crashes again. This happens multiple times in a row.
Most times it happened I had other apps running in background, but I doubt it's the fault of the OOM killer. That felt different.

How to reproduce:
There are no clear ways to reproduce this bug as it happens to multiple pages. But a quite reliable way for me to reproduce it if you try it multiple times is:

  1. open Sailfish Browser
  2. switch to Private Browsing Mode
  3. close browser
  4. open browser again and wait for it to load the home page (for me it's https://jolla.com/)
  5. if browser didn't crash, close and re-open it again until it has crashed.

Here are some journalctl logs of exactly this procedure.

Note: A quite interesting observation is that the browser rarely crashes when journalctl -f. So mostly I grabbed the logs from journalctl after the browser has crashed.

Here are some further logs of crashes on ultiple other sites like Twitter I came across. maybe it helps.

If this issue isn't limited to my phone I deem very important as it makes using the browser really annoying and painful.
If you need further information I'm glad to help.

close and restart are not installed on my phone.
The directory /home/nemo/.mozilla/mozembed/startupCache didn't exist on my phone.

But removing the whole .mozilla directory helped so far, I didn't encounter any crashes since.

I'm using sailfish-browser-1.15.9-10.5.1.jolla

Do you consider this issue as resolved if removing the .mozilla directory fixes the problem or do you still want to find out what files inside .mozilla caused the crashes?

@rainemak
Apparently deleting the whole ~/.mozilla directory didn't help, I got my first crash after 2 days: https://gist.github.com/schmittlauch/3b56d49ee769dd51aad4223c8971304d

Take care, the log seems to include at least 2 crashes.

As far as I remember the visited websites didn't include any media content, so this can't be explained with #555 , can it?

You can verify if media content is loaded from media decoder logs. So run sailfish browser like:

NSPR_LOG_MODULES="MediaDecoder:5" sailfish-browser