"Native port disconnected" when attempting download from YouTube

2,670 views
Skip to first unread message

jiw2

unread,
Jan 30, 2018, 11:42:29 PM1/30/18
to Video DownloadHelper Q&A
Operating system: OSX 10.11.6

Firefox version: 58.0.1

VDH version: 7.1.3a4

When attempting to download an ADP video from YouTube, the dowload proceeds to 99%, then fails with the message "Native port disconnected."

Clicking on "details" for the error message returns this string:

moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1
value@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:188911
value/</<@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:187919

Nothing ever appears in the download folder.

As a former programmer (now retired), I appreciate all the hard work you guys put into this product, as well as all the headaches of keeping it concurrent with Firefox releases. Many thanks.

mig

unread,
Jan 31, 2018, 3:34:58 AM1/31/18
to Video DownloadHelper Q&A
This typically happens if the coapp is restarted by Firefox while performing an operation, for instance if the settings get opened and perform a license check.
Is it a problem you just saw once or is it every time ?

jiw2

unread,
Jan 31, 2018, 11:50:38 AM1/31/18
to Video DownloadHelper Q&A
I saw it for the first time yesterday, and it's still happening as of this morning.  The download reaches 99%, the aggregation begins, and it all fails.

One peculiar effect that I only noticed this morning is that this seems only to happen with ADP/MP4 conversions.  When I choose ADP/MKV, the download proceeds normally.  But of course, not all YouTube videos offer the choice of MKV or MP4.

mig

unread,
Jan 31, 2018, 12:04:53 PM1/31/18
to Video DownloadHelper Q&A
What might happen is that for some reason the coapp crashes when aggregating this particular video. This would explain the "Native port disconnected" error. But it would the first report of this kind of issue for the coapp and it has been installed ~5 millions times and probably downloaded hundreds of millions youtube mkv videos.

Can you share the link to the youtube video ?

jiw2

unread,
Jan 31, 2018, 1:43:53 PM1/31/18
to Video DownloadHelper Q&A
But it would the first report of this kind of issue for the coapp and it has been installed ~5 millions times and probably downloaded hundreds of millions youtube mkv videos.

I don't doubt it.  But it's not happening with MKV videos.  It's happening with ADP/MP4 videos.


Can you share the link to the youtube video ?

It's more than one.  Here are a couple:

https://www.youtube.com/watch?v=9tXi5W16nXw

https://www.youtube.com/watch?v=LfevrCvX7l4


On the second one, just for a bit of variety, the error message was:

Boston & Maine T1 Berkshires In The Yard and On The High Iron
Invalid string length(Details)

Invalid string length

moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1
value@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:6054
value/</<@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:187814

Here is a third example:

https://www.youtube.com/watch?v=MzPe1Qb0fOI

Error message is:

Southern Pacific Steam Power in the Shop and on the Road: November 26, 1929
Native port disconnected(Details)

Native port disconnected

moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1
value@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:188911
value/</<@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:187919


PLEASE NOTE that this only happens when I'm downloading/aggregating an MP4 file.  So far, I have encountered no problems with downloading/aggregating MKV files from YouTube.







hyper...@gmail.com

unread,
Jan 31, 2018, 6:30:52 PM1/31/18
to Video DownloadHelper Q&A
I was able to download MP4 ADP https://www.youtube.com/watch?v=9tXi5W16nXw
Using the companion is always slow compared to the browser.

Xubuntu 16.04 x64

jiw2

unread,
Jan 31, 2018, 6:52:28 PM1/31/18
to Video DownloadHelper Q&A
I was able to download MP4 ADP https://www.youtube.com/watch?v=9tXi5W16nXw

Good.  But I cannot.


Using the companion is always slow compared to the browser.

It's not "slow" for me.  It fails.  Nothing at all is ever downloaded, and an error message results.

I tried it again, a few minutes ago (using the above URL), and this was the result:

New York Central Streamlined Hudson COMMODORE VANDERBILT: Press Preview, December 14 1934
Native port disconnected(Details)

Native port disconnected

moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1
value@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:188911
value/</<@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:18791
9
 

Xubuntu 16.04 x64


I am using OSX 10.11.6

mig

unread,
Jan 31, 2018, 6:54:01 PM1/31/18
to Video DownloadHelper Q&A


On Wednesday, January 31, 2018 at 7:43:53 PM UTC+1, jiw2 wrote:
But it's not happening with MKV videos.  It's happening with ADP/MP4 videos.

Yes sorry, i meant ADP/MP4 as well.
 

 
On the second one, just for a bit of variety, the error message was:

Boston & Maine T1 Berkshires In The Yard and On The High Iron
Invalid string length(Details)

Invalid string length

moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1
value@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:6054
value/</<@moz-extension://06ef94fe-423a-b54b-881f-13b10cfb269f/background/main.js:1:187814


Fantastic ! i have been able to reproduce the problem reliably on the second video. I get the same error, only with the ADP/MP4 1080p variant and only on Mac (it works fine for me on Linux). From what i see, this could potentially explain the problem on the first video (coapp crashing).

I'll come back to this thread hopefully with a fix.

Many thanks for reporting the issue effectively !

 

jiw2

unread,
Jan 31, 2018, 7:10:40 PM1/31/18
to Video DownloadHelper Q&A
Fantastic ! i have been able to reproduce the problem reliably on the second video. I get the same error, only with the ADP/MP4 1080p variant and only on Mac (it works fine for me on Linux). From what i see, this could potentially explain the problem on the first video (coapp crashing).

Thank you, mig.  I do appreciate your efforts and those of all the VDH developers.

I must apologize for not having included the information that I was trying to get the 1080p videos with ADP/MP4.  It might have made your job a bit easier.

Glad to know it's working under Linux, since I hope to replace my Mac with an Ubuntu machine sometime in the spring.

Again, thank you.

mig

unread,
Jan 31, 2018, 7:24:51 PM1/31/18
to Video DownloadHelper Q&A

Glad to know it's working under Linux, since I hope to replace my Mac with an Ubuntu machine sometime in the spring.

What i meant is that it works on MY linux machine which turns out to be very powerful but that kind of bug is likely to be present potentially on any  OS, it's just a matter of timing that makes the symptoms to show up or not. So we aim to fix the issue once for all, Mac, Linux and Windows.

mig

unread,
Jan 31, 2018, 9:09:13 PM1/31/18
to Video DownloadHelper Q&A
I pushed a new version of the coapp: 1.1.3

For now, i only built the Mac pkg installer for you to try: https://github.com/mi-g/vdhcoapp/releases/tag/v1.1.3

Could you retry both videos with this coapp version (make sure you are running 1.1.3 by checking the VDH settings) ?

In my case, it solves the second case (Invalid string length) but since i was not able to reproduce the first error case (Native port disconnected) i cannot tell for sure this is a fix for that as well. Can't wait for your feedback.

jiw2

unread,
Jan 31, 2018, 10:47:58 PM1/31/18
to Video DownloadHelper Q&A
I installed the 1.1.3 helper and forced a Recheck to load the new binary.  I then downloaded the YouTube sample videos.
The results are below:


Using external helper application 1.1.3

***

Video source: https://www.youtube.com/watch?v=9tXi5W16nXw

Downloaded 1920x1080 MP4 video, ADP.  111.2M.

Aggregation proceeded normally and successfully.

***

Video source: https://www.youtube.com/watch?v=LfevrCvX7l4

Downloaded 1920x1080 MP4 video MP4.  205.8M.

Aggregation proceeded normally and successfully.

***

After downloading, I viewed both MP4 files.  As far as I can see and hear, both video and audio
are exactly as they should be.

So far, so good.  Thank you.


jiw2

unread,
Jan 31, 2018, 11:00:39 PM1/31/18
to Video DownloadHelper Q&A
Forgot to mention that I viewed the MP4 files with VLC 2.2.8.

mig

unread,
Feb 1, 2018, 5:26:50 AM2/1/18
to Video DownloadHelper Q&A

After downloading, I viewed both MP4 files.  As far as I can see and hear, both video and audio
are exactly as they should be.

Many thanks for your help on this issue.

mig

unread,
Feb 1, 2018, 7:49:26 AM2/1/18
to Video DownloadHelper Q&A
CoApp version 1.1.3 is now available for all platforms from https://github.com/mi-g/vdhcoapp/releases/tag/v1.1.3

Reply all
Reply to author
Forward
0 new messages