PHP Classes

Chrome losing open tabs on restart

Recommend this page to a friend!

      PHP Classes blog  >  Google Chrome vs Fire...  >  All threads  >  Chrome losing open tabs on restart  >  (Un) Subscribe thread alerts  
Subject:Chrome losing open tabs on restart
Summary:On a restart Chrome sometimes fails to re-open the tabs
Messages:9
Author:Colin R. Fraser
Date:2012-07-27 08:25:14
Update:2012-08-07 16:10:51
 

  1. Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Colin R. Fraser Colin R. Fraser - 2012-07-27 10:09:00
I found this happening to me regularly and eventually found the culprit. It happens when another Chrome window is opened (clicking a link on an email?) and not closed before shutting down/logging out.

Because this window uses the same profile as the main Chrome instance it will overwrite any record of the open tabs from that instance.

Basically the settings remembered are those of the last Chrome instance to be closed.


  2. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-07-27 10:11:25 - In reply to message 1 from Colin R. Fraser
It just happened to me again today but I did not have any other Chrome window opened.

I wonder if is that new feature of saving your opened tabs to a Google account so it can be shared between the different machines you use Chrome.

  3. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Colin R. Fraser Colin R. Fraser - 2012-07-29 00:20:00 - In reply to message 2 from Manuel Lemos
I'm not sure what to suggest in that case. I've played around with my chrome settings a bit to try to duplicate the problem, without success. What do you have selected in settings -> On-startup?

  4. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-07-29 00:33:00 - In reply to message 3 from Colin R. Fraser
I just realized that Chrome was filling its disk space with cached data.

I have Chrome configuration in a 400MB TrueCrypt file system to easily move it around between machines. When that file system is full, it is not able to write tab information. That explains the problem.

I just emptyed the cache and lots of space were freed.

There seems to be now way to limit the cache disk space in Chrome like there is in Firefox.

  5. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Colin R. Fraser Colin R. Fraser - 2012-07-29 13:33:40 - In reply to message 4 from Manuel Lemos
I just did a quick google search and came up with this thread.

productforums.google.com/forum/#!ca ...

Basically you can specify the cache directory and max size by the command line switches: disk-cache-dir, disk-cache-size and media-cache-size.

(I haven't tried this myself but it's probably worth a go)

  6. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-08-05 21:15:06 - In reply to message 5 from Colin R. Fraser
Thanks but this is not exactly the ideal solution. It would be better an option on the settings page, so we do not have to start Chrome manually with command line switches.

  7. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Colin R. Fraser Colin R. Fraser - 2012-08-06 10:42:43 - In reply to message 6 from Manuel Lemos
I agree with you point, Manuel, but why not just modify your shortcut properties to include the options in the meantime?

  8. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-08-06 10:46:14 - In reply to message 7 from Colin R. Fraser
I am not sure if I could do that. I am using Linux. I guess it depends on the desktop environment from where I start Chrome.

  9. Re: Chrome losing open tabs on restart   Reply   Report abuse  
Picture of Colin R. Fraser Colin R. Fraser - 2012-08-07 16:10:51 - In reply to message 8 from Manuel Lemos
Manuel, it's simple. If you're starting Chrome by clicking on a desktop icon just right-click on it and select 'properties'. One of the tabs will have a command field with something like 'opt/google/chrome/google-chrome %U' in it. Just edit this to include the command line switches. It's similar if you're starting it from a taskbar launcher icon.
It gets only slightly more complicated if you're starting it from the menu. Somewhere among all the menu items you'll find one like 'main menu' (the menu editor) in this applciation just find the chrome entry and edit it as above.

Good Luck