brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.73k stars 2.31k forks source link

"Unchecked runtime.lastError: Unknown error.", source: chrome://newtab/ (0) when launching Tor tab #1194

Open srirambv opened 6 years ago

srirambv commented 6 years ago

Description

"Unchecked runtime.lastError: Unknown error.", source: chrome://newtab/ (0) when launching Tor tab

Steps to Reproduce

  1. Build from master
  2. Open a new Tor tab from profiles button
  3. Console shows "Unchecked runtime.lastError: Unknown error.", source: chrome://newtab/ (0) error

Actual result:

$ npm run start -- Release

> brave@0.55.2 start C:\brave-browser
> node ./scripts/commands.js start "Release"

C:\brave-browser\src\out\Release\brave.exe --enable-logging --v=0 --disable-brave-update
[19368:15884:0919/092514.873:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Unknown error.", source: chrome://newtab/ (0)
[19368:15884:0919/092514.874:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Unknown error.", source: chrome://newtab/ (0)
[19368:15884:0919/092514.874:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Unknown error.", source: chrome://newtab/ (0)

Expected result:

Should not show errors

Reproduces how often:

Easy

Brave version (chrome://version info)

Brave 0.55.2 Chromium: 70.0.3538.16 (Official Build) (64-bit)
Revision 16ed95b41bb05e565b11fb66ac33c660b721f778-refs/branch-heads/3538@{#306}
OS Windows

Reproducible on current release:

No

Website problems only:

Additional Information

tildelowengrimm commented 5 years ago

Anthony was unable to repro. Please update if it's still happening, with STR.

srirambv commented 5 years ago

This happens on release build as well. As mentioned in original issue STR is just to launch from console and launch a Tor/Private tab and console logs the error. I see the errors on Windows and Linux

https://www.youtube.com/watch?v=45QAADrmYe0

mbacchi commented 5 years ago

I just noticed this on Fedora Linux, Brave Browser Version 0.66.99 Chromium: 75.0.3770.100 (Official Build) (64-bit). The system seemed to hang for a few seconds (entire system not just Brave) and then when I looked in journalctl I saw many entries similar to:

Jul 16 22:12:26 euthynnus brave-browser.desktop[1896]: [2845:2845:0716/221226.154273:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The URL "null" is invalid.", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/_generated_background_page.html (0)
Jul 16 22:12:26 euthynnus brave-browser.desktop[1896]: [2845:2845:0716/221226.154333:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The URL "null" is invalid.", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/_generated_background_page.html (0)
Jul 16 22:12:26 euthynnus brave-browser.desktop[1896]: [2845:2845:0716/221226.155565:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The URL "null" is invalid.", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/_generated_background_page.html (0)

I had already upgraded to v0.66.100 earlier in the day, but had not yet restarted the browser. The brave://settings/help page showed the upgraded version oddly though. Will watch to see if this issue returns.

fmarier commented 4 years ago

I see the following when I open a new Tor window in 1.11.69: Screenshot from 2020-06-24 11-58-03

which is very similar to #10447 .