Solved Infinite spawn of windows on startup
-
Lately when I start Vivaldi on LInux, it starts spawning an infinite seeming number of new windows.
It's not restoring tabs, these all have a blank start page. I'm not sure what triggered this starting to happen or how to debug it.
-
@mib2berlin After starting with
--disable-extensions
, the issue disappeared, implicating some extension.When I started
vivaldi
via CLI, I saw some extension IDs. By toggling "Developer Mode" on the Vivaldi extensions page, I could see that one of the IDs belonged to the Raindrop.io extension.https://chromewebstore.google.com/detail/raindropio/ldgfbffkinooeloadekpmfoklnobpien
I disabled the extension and trying starting Vivaldi again, and the infinite spawn issue immediately disappeared.
-
Hi, @markstos and welcome to our community!
Try this:
- Focus the window that has all your open tabs.
- Save all your tabs as a new session. Make sure to check "Save Only Tabs In Current Window".
- Go to Settings > General > Startup with and choose "Start Page".
- Open the Vivaldi menu, click "Exit" and launch the browser again or go to this address:
vivaldi://restart
. - Restore your tabs from the saved session.
- Change the setting from step 3 back to "Last Session".
- Try restarting the browser and see if the issue is gone.
-
@pafflick Thanks for the reply!
I started a longer answer to this, but lost it when I attempted to open a new window, lol.
I have updated my settings to use Start Page, instead of "restore session", but still get the issue, even after a vivaldi://restart.
I use the "New Window, New Tab" extension. I use the Sway tiling window manager and use that to manage tabs instead of Vivaldi.
I use two different profiles for work and personal and the issue started affecting both about the same time. It doesn't seem to happen every time.
It seems like sometimes I can recovery by closing all the last window, but other times it seems like the windows just keep spawning. It's strange. I've never seem a browser issue like this.
My start page is a nearly-blank HTML page I created with no JavaScript, nothing strange there.
I suppose I could try a new/empty profile and see if it still happens there.
-
@markstos
Hi, start Vivaldi with--disable-extensions
, they don't load then instead of disabling them.
This would not be the first time extensions cause strange issues after a Vivaldi update.
You can rename the folder vivaldi in .config, Vivaldi create a new clean one.Cheers, mib
-
@mib2berlin After starting with
--disable-extensions
, the issue disappeared, implicating some extension.When I started
vivaldi
via CLI, I saw some extension IDs. By toggling "Developer Mode" on the Vivaldi extensions page, I could see that one of the IDs belonged to the Raindrop.io extension.https://chromewebstore.google.com/detail/raindropio/ldgfbffkinooeloadekpmfoklnobpien
I disabled the extension and trying starting Vivaldi again, and the infinite spawn issue immediately disappeared.
-
LOL, I thought maybe the uninstall / re-install of the extension might fix the issue as it's not currently happening in a second profile, but as soon as I installed the extension in the problematic profile again, a seemingly infinite spawn of windows started again. Well, it's definitely that extension at fault, not Vivaldi!
-
-
-
I heard back from the Raindrop author.
He considers the issue a Vivaldi problem and doesn't plan to fix it on his side:
Hello! Unfortunately Vivaldi in my experience very unstable and unpredictable.
Right now I can't even open a Vivaldi settings screen, just not responding.
And what's even worse there no way to debug internals of Vivaldi to figure out why some Vivaldi specific bug happen with our extension. I just tired of battling with it, sorry.
I'm not sure how to debug this further myself, so I guess I get to choose to between using Vivaldi and using the Raindrop extension.
-
I tried to workaround the issue by installing the bookmarklet after disabling the extension, but installing the bookmarklet also caused dozens of blank windows to be spawned, just like with the extension.
So maybe there's something weird about the raindrop site, but it's not an issue with the extension.
-
I'm not sure how to debug this further.
-
@markstos said in Infinite spawn of windows on startup:
I heard back from the Raindrop author.
He considers the issue a Vivaldi problem and doesn't plan to fix it on his sideSad, that author of extension does not want to check.
As i do not use paid raindrop,io i can not help. -
I was able to trigger the issue again, this time just by clicking on a Mastodon icon in the sidebar.
The logs to STDOUT are full of mentions of extensions, but they don't appear to ones I have installed, but perhaps internal Vivaldi extensions.
Logs like these:
[127742:127742:0404/132328.501344:ERROR:CONSOLE(1)] "WindowPortal.componentWillUnmount: Expected to find contentWindow", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js
[127742:127742:0404/132331.794592:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not find guest", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)Is there a way to try disabling this extension? It's not not seen in vivaldi://extensions.
Given that the issue has been repro'ed with the Raindrop extension disabled, it does appear to be a Vivaldi issue.
-
@markstos said in Infinite spawn of windows on startup:
mpognobbkildjkofajifpdfhcoklimli
Is the Vivaldi browser itself.
-
I believe I've isolated the issue, and it's something I would consider a bug in Vivaldi.
The issue seems to be triggered by this line of code in the "New Tab, New Window" extension:
chrome.tabs.onCreated.addListener(function(tab){
https://chromewebstore.google.com/detail/new-tab-new-window/dndlcbaomdoggooaficldplkcmkfpgff
I think the issue is only triggered when the Vivaldi sidebar is open, which I presume is implemented by the Vivaldi extension. I'll further guess that that the Vivaldi sidebar is firing the "chrome.tabs.onCreated" event when content is displayed there. Together, we have all the ingredients needed to DDoS Vivaldi with an infinite loop of window spawns:
- Vivaldi opens a new window with the sidebar open, causing an extra "tab.onCreated" event to fire.
- The New Tab, New Window event attempts to convert this tab to window by spawning a new window.
- The new window launches with the sidebar open, firing an extra "tab.onCreated" event and starting the recursion.
If this theory is correct, I think Vivaldi's internal content display should suppress the "tab.onCreated" event to avoid problems with extensions that the the event is only fired for normal tabs.
This extension has over 20,000 users because it's of interest to folks with tiling window managers that prefer to use that to tile the windows instead of in-browser tabs.
-
@markstos Please report issue to Vivaldi bug tracker.
Do not forget to add what you have done to fix it and all information you got from debugging, Vivaldi developers do not want to read thru all the thread.
Once that is done, share the bug number (beginning with VB-) you got by bug report mail. Thanks for helping us making Vivaldi better. -
@DoctorG Filed as bug VB-105536