DrewNaylor / DrewWebBrowser

A lightweight web browser I'm working on based on the VB.Net Windows Forms WebBrowser control. Not in development until further notice as of January 1, 2018.
GNU General Public License v3.0
4 stars 3 forks source link

Bug: Drew's Web Browser crashes if if has too many tabs open. #10

Open DrewNaylor opened 7 years ago

DrewNaylor commented 7 years ago

I opened enough tabs to make my web browser take up roughly 640 MB of RAM and I got a bunch of "Message from webpage: Out of memory at line 1" messageboxes or something like that. I then made two more tabs. The first tab was Bing without a background and wouldn't resize when I tried resizing the corner of the window. The second tab just made all the other tabs turn white. It then stopped responding and Windows asked me if I wanted to close it or wait for it to start responding.

In the meantime, I should count how many times I click the "New Tab" button. This shouldn't be a problem if I dispose of the WebBrowser control before the tab itself is removed.

DrewNaylor commented 7 years ago

Note the amount of "New Tab" clicks in the screenshots below. On my computer, roughly 123 tabs could be opened at once before major problems occurred.

Here's the "Out of memory" error:

out of memory

Here's the blank page that actually still had HTML elements but I couldn't see them:

final crash number

DrewNaylor commented 7 years ago

Shortly after the blank page showed up, Windows told me that it wasn't responding.

DrewNaylor commented 7 years ago

Important: All these tabs were using Bing.com as the homepage.