deasync icon indicating copy to clipboard operation
deasync copied to clipboard

Not working for me on Linux Debian

Open Aminadav opened this issue 9 years ago • 2 comments

Sometimes it working, sometimes not.

This is the messaage I got:

  node: ../deps/uv/src/unix/async.c:136: uv__async_io: Assertion `n == sizeof(val)' failed.

Aminadav avatar Mar 10 '16 12:03 Aminadav

#34 Try and read my posts from issue #34. This can happen when you deasync from a callback of some node packages like mongoose, request etc....

tomerb15 avatar Mar 24 '16 19:03 tomerb15

Hi, I am getting the same error. I have also applied the solution mentioned in #34 . But still it doesn't work for me. My code goes like this:

    var done = false;
    MyModel.find({id:id}).exec(function(err,data){
    if(err){
        console.log('error in finding data');
    }
    else{
        console.log(data);
    }
    done = true;
});
while(!done){
    deasync.runLoopOnce();
    }

And the error is

node: ../deps/uv/src/unix/async.c:136: uv__async_io: Assertion `n == sizeof(val)' failed.

The OS is Ubuntu 14.04.2.

foramkumarparekh avatar Aug 30 '16 10:08 foramkumarparekh