sienori / Tab-Session-Manager

WebExtensions for restoring and saving window / tab states
https://tab-session-manager.sienori.com/
Mozilla Public License 2.0
1.87k stars 182 forks source link

Opera GX - Crashing/Closing Browser on Startup. #1333

Open Jirodyne opened 4 months ago

Jirodyne commented 4 months ago

Log.txt

Short description

When I click on the browser icon to start up Opera GX, the browser opens for a second, then closes the session to open the Tab Session Manager's "Last Session", only to immediately close/crash instead.

Steps to reproduce

  1. Start browser
  2. Turn on the setting: Behavior when starting the browser - Open previous session
  3. Close Browser
  4. Start Browser and watch it close/crash before fully loading up

Expected result

To load up the Session I closed the browser with.

Actual result

It loads up the default browser, but when it closes it to load the session from before, it closes/crashes the browser.

I will edit/post the Error Log after posting this. didn't think to get it before righting this and don't want to cause the crash again and lose all of this

Platform information

Additional context

I can get around the issue, by either Removing Tab sessions Manage (Don't want to do that.). Open a Private Tab first by right clicking the browser and then manually loading the session saved (That's a hassle and don't want to be forced to do that every time), or turning off the "Behavior when starting the browser - Open previous session" to "Do Nothing" option, which I have used right now, switching my browser's settings to save the session and not start with an empty page.

This was never an issue before today. I don't know what change, there was no open on Opera GX, no windows update, as far as I know no Tab Session Manage Update last night while I was sleeping and PC off. No idea what changed to cause this.


Edit, adding the Debug Log, I think. I think I am doing this right. I have no idea what I am doing lol but I think this log is correct.

I want to add, the bug seems to change now, when I turned on Debug mode, things got very Wonky. A folder appeared on the Desktop that didn't exist before for Tab Session Manage, and now it will sometimes NOT close immediate. But instead, when it loads the default 'last session', it will duplicate all the tabs. So if I have tabs 1,2,3,4 it will now open with 1,2,3,4,1,2,3,4 instead. But when I go and check the Extension and the sessions to load, it shows in it 1,2,3,4 and I can click and open that one fine.

It's only when fully closed, and opening the browser that, when it loads, if it doesn't crash it duplicates it for unknown reasoning now. It didn't do that before, until I turned on "Enable debug mode"

cocoonkid commented 4 months ago

Same Issue here on Linux. in google-chrome-stable (125.x.x) latest.

image

I can confirm this happens as soon as you select thet option to reopen last sessions tabs OR the option to save them to the Downloads folder.

I can also confirm this does not happen on macOS chrome-stable so far.

clijiac commented 3 months ago

windows10, edge 126.0.2592.24, same issue

slovia commented 3 months ago

Exact same problem here in Floorp on Linux. To me it looks like it started with the latest update...

modball commented 3 months ago

Running into the same issue with Waterfox G6.0.15 (64-bit) after the recent update. Reverting to 6.12.2 resolves the problem.

eylenburg commented 3 months ago

Same here on Firefox 126

TheJRC commented 3 months ago

Got the same issue on Firefox 126.0.1, although I'm unsure if Tab Session Manager had been updated yet when the error occurred. Due to the behavior, I assumed it was the problem, opened my browser in Safe Mode, and updated extensions. Tab Session Manager is in my "Recent Updates" list but I'm unsure when it actually updated. After a bit more weirdness and one more crash, it seems to be working again now, though I don't wish to close my browser again to test it out.

modball commented 3 months ago

it seems to be working again now, though I don't wish to close my browser again to test it out.

I was able to get my browser to launch successfully with v7 by repeatedly retrying. 5 or 6 attempts would usually do it.

For now probably best to revert to 6.12.2 and turn off auto updates temporarily.

TheJRC commented 3 months ago

For now probably best to revert to 6.12.2 and turn off auto updates temporarily.

I am unsure how to revert. I was thinking of setting startup behavior to "Do Nothing" and seeing if manually loading session will work, but if not, then yeah, reverting would work.

modball commented 3 months ago

I am unsure how to revert.

You can delete Tab-Session-Manager@sienori.xpi from the extensions folder in your user profile folder. Something similar to:

C:\Users\%your-user-name%\AppData\Roaming\Mozilla\Firefox\Profiles\%random-characters%.default\extensions\

Then download/install version 6.12.2 from here: https://addons.mozilla.org/en-CA/firefox/addon/tab-session-manager/versions/

Then open Tools, Add-ons and Themes, use the small ... menu for Tab Session Manager to choose Manage and then turn off auto updating.

TheJRC commented 3 months ago

Oh, didn't realize there's a Versions page. Wouldn't just uninstalling it normally work? Is hunting down the XPI and manually deleting it necessary?

modball commented 3 months ago

Wouldn't just uninstalling it normally work?

Yes that would work if you are able to get your browser to launch successfully. Mine was crashing on load about 95% of the time.

Best to back up your session(s) just in case.

tkhyn commented 3 months ago

Same issue here on Firefox 126.0.1, on multiple machines and OSes (Windows 11, Linux Mint). Reverting to 6.* and disabling auto-updates fixes the problem.

Before downgrading, right click + 'New private window' was the workaround I used, although it duplicated all my tabs in the main window

sienori commented 3 months ago

Thank you for the report! I have discovered an issue where the window may close before the session opens if the startup behavior is set to 'Open previous session.' This issue will be fixed in version 7.0.1.

Please note that we do not support operation on browsers other than Firefox, Chrome, and Edge, or if the browser version is outdated.

dkangel666 commented 3 months ago

Can someone explain to me how to update to version 7.0.1 in Firefox from the zip file ?

A big thank you

nerdCopter commented 3 months ago

same behavior, and confirming i have Open previous session enabled. but this is with Firefox ESR.

andrhua commented 3 months ago

to disable extension for the time being, run firefox in a safemode (firefox --safe-mode) and disable tsm from there