Something very weird is going on with profiles on my machine(s): I figured if the problem really is the number of tabs and windows then maybe I can clean that up. I managed to start my original and Dev profiles (WAYLAND disabled) and delete various windows and tabs (worst offender: 161 tabs, but there were other similar ones) then save the state. That didn’t fix the problem. Either I can only start with MOZ_ENABLE_WAYLAND=0 firefox or I get the profile dialog with the empty Test profile I just created when starting firefox normally (no env variable) and in which the default profile still crashes if I try to start it.
When started with the WAYLAND env var, I have access to my Dev profile. However, if I try to switch to that having started in the default profile, I get a whole new invocation of firefox without the original closing and some unfamiliar diagnostic output in the terminal:
$ MOZ_ENABLE_WAYLAND=0 firefox
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib64/dri-nonfree/iHD_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/iHD_drv_video.so
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_23
libva info: va_openDriver() returns 0
In ps, I see, e.g., the original firefox process:
19955 pts/1 Sl+ 5:15 /usr/lib64/firefox/firefox
and then this one, e.g., when I try to switch to my Dev profile:
22196 pts/1 Rl+ 0:47 /usr/lib64/firefox/firefox --profile /home/user/.mozilla/firefox/profileid.Profile 1 --profiles-activate
where profileid is the firefox-generated profile id.
Summary: if I start firefox normally, with my default and Dev profiles, firefox crashes, even having closed many tabs and windows and saving the new state. If I start firefox with MOZ_ENABLE_WAYLAND=0 firefox firefox doesn’t crash, but if I try to switch profiles a new firefox process is started with the new profile loaded and the previous firefox process with the previous profile stays intact (new or different processes on switching profiles may be standard behavior, I’ve never checked before, but I tend to doubt that). It appears to me that there are different profiles or identities depending on whether I’m running under the normal Wayland configuration, or with Wayland disabled for firefox (presumably it’s using the X11 bridge?)
I think the best thing to do is export my bookmarks, uninstall, delete any state, then reinstall firefox from scratch, import the bookmarks and carry on with what’s left of my life and sacrifice all my session state to posterity. Or, just keep running with MOZ_ENABLE_WAYLAND=0 firefox.
PS: before running these latest tests I did update to the latest available binaries, just in case. I went from 7.1.9-200.fc44.x86_64 to 7.1.10-200.fc44.x86_64 kernel.