chromium-vim icon indicating copy to clipboard operation
chromium-vim copied to clipboard

Unchecked runtime.lastError: The message port closed before a response was received.

Open thynctank opened this issue 6 years ago • 7 comments

I just changed machines at work, and suddenly I'm getting errors in console, regardless of page visited or anything else I have noticed, and I narrowed down that it's coming from cVim. Unfortunately, the console error will not jump to the source, instead insisting that the error came from the root page, loading the HTML of the page visited in the source browser instead.

It doesn't appear to cause any usability errors, but as we're in the middle of a release I thought it was a newly-introduced bug in our own code when I saw it. I've never seen it before and hadn't seen this bug anywhere else. A quick googling brought up https://github.com/mozilla/webextension-polyfill/issues/130 and lydell's associated bug reproduction repo on GitHub.

I'm more than happy to contribute a few minutes here and there to cVim. But I'm new to the project and have barely touched extension code before at all. If someone can point me in the right direction I'll happily fork/correct/make PR and continue running my locally-built extension until the next official release gets picked up with a fix. I failed to locate any specific strings relating to this bug, but wondered if it might be coming from messenger.js...

Thanks!

thynctank avatar Dec 19 '18 22:12 thynctank

Hello @thynctank,

I'm not related to working on the chronium stuffs at all, and am currently working on my own private browser extension. While developing it, I have noticed the same error and the same behavior you had described is happening on my end. From what I can tell, this seems to be a general issue, because I have seen other users on other Chrome extensions filing issues on Github for the same problem in January 2019.

I would like to ask if you have more updates on this issue.

tommai78101 avatar Jan 11 '19 13:01 tommai78101

Hey, @tommai78101.

I haven't had sufficient time/energy/attention span to look into this further yet. Of the 20+ extensions I use, cVim is the only one suffering the issue right now. I am inclined to believe it's something in more recent builds of Chrome itself because before my from-scratch installation on the new machine I never saw this.

I would suggest downgrading Chrome and disabling auto-update, or running a more recent Canary or Chrome build - if they've managed to patch it already - if this is significantly affecting you. Eventually, newer Chrome builds should push out to everyone and the issue will evaporate.

thynctank avatar Jan 15 '19 18:01 thynctank

may be this page will give you some help:

https://support.google.com/chrome/thread/2047906?hl=en

hotleave avatar Apr 15 '19 09:04 hotleave

Yeah it is definitely used several times in cVim.

wtho avatar Apr 24 '19 20:04 wtho

Issue still unsolved :( Cent Browser latest.

grandsilence avatar Jan 30 '20 05:01 grandsilence

Following solved the above error for me: In chrome, i) Go to settings ii) Click on Extensions iii) Check for "Meddle Monkey" extension. if it is turned on, then turn it off, and remove this extension iv) Refresh your chrome browser v) Inspect element and check for the Error "The message port closed before a response was received". vi) You will find that now the error is not displayed, it is resolved

Thanks, Radhe

radheshyamkori avatar Mar 17 '20 11:03 radheshyamkori

Any news?

grandsilence avatar Apr 16 '21 19:04 grandsilence