-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error #3
Comments
I also see this crash, I think it is a proper bug. Still looking into what's going |
OK so this is a race condition. The stream gets initialized on line 49 of function genny () {
var push = null;
var next = null;
var fn = (hpush, hnext) => {
console.log(`GENNY INITIALIZED`);
push = hpush;
next = hnext;
};
return {
stream : H(fn),
push : x => {
if (push) {
push(null, x); next();
} else {
console.error(`ERROR: NO PUSH YET`);
}
},
end : () => { push(null, H.nil); }
};
} I've also added a message "CREATING GENNY" right before the call to Then run a test, you'll get:
After this, I get a crash, but this probably has more to do with my testing insertions than anything else. |
Hi,
Looks like a very interested library... Unfortunately, I was't able to demux the ts file (tried few of them).
I used your sample, providing the ts file
var tesladon = require('tesladon');
var H = require('highland');
var fs = require('fs');
I'm getting this error.
If I'm commenting out the readPMTs function call, it works.
var tesladon = require('tesladon');
var H = require('highland');
var fs = require('fs');
It is mentioned that
But, if you capture TS stream, this cannot be guaranteed. Anyhow, is that the reason it fails?
Thanks,
Alex
The text was updated successfully, but these errors were encountered: