Questions tagged [node-fibers]

A fiber is a particularly lightweight kernel thread scheduler dependent thread of execution using co-operative multitasking.

A fiber is a particularly lightweight thread of execution.

Like threads, fibers share address space. However, fibers use co-operative multitasking while threads use pre-emptive multitasking. Threads often depend on the kernel's thread scheduler to preempt a busy thread and resume another thread; fibers yield themselves to run another fiber while executing.

node-fiber introduces Fiber support for v8 and Node JS

Source: Wikipedia

114 questions
0
votes
1 answer

Can't Wait Without A Fiber

Meteor Version: 1.2.1 Using Base Framework from themeteorchef And using a package themeteorchef:seeder When I tried to use the seeder package in a clean new project (without the base starter), it works fine. However in my project created from the…
Merhawi Fissehaye
  • 2,482
  • 2
  • 25
  • 39
0
votes
1 answer

Why is meteor no longer working? `throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibe`

I'm running Meteor 1.3.2.4 and Node v4.4.3 . All my projects no longer load and show the following error. At first it was a Cannot find modules fibers error for which I did meteor build --directory ../build and cd…
Squirrl
  • 4,909
  • 9
  • 47
  • 85
0
votes
1 answer

cannot catch Meteor.Error in client when error in server inside Meteor.bindEnvironment

I am not able to get the error in client's Meteor.call error callback when in the server code, an error occurs inside Meteor.bindEnvironment. Below is example code to replicate In the server Meteor.methods({ customMethod: function(arg1, arg2){ …
Pramodh
  • 775
  • 2
  • 9
  • 17
0
votes
0 answers

Meteor MongoDB query taking very long time

I am using meteor for one of my projects. I have a sporadic issue where sometimes one or two queries are taking very long time. For example, The following logs are taken from MongoDB logs, where the last part of each block mentions the time in…
Kishor
  • 2,659
  • 4
  • 16
  • 34
0
votes
1 answer

After deploying meteor app to heroku missing fiber package

I deployed my Meteor app to heroku after adding a db etc. and when I try and access the app I get an error that says the server can't find a module called "Fibers". What does this mean? I never installed that module.
Isaac Wasserman
  • 1,461
  • 4
  • 19
  • 39
0
votes
1 answer

npm install -g fibers fails on Azure Web App

Using the console on https://portal.azure.com/ > npm install -g fibers D:\home\site\wwwroot\programs\server gypBuild failed npm ERR! fibers@1.0.5 install: `node ./build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the fibers@1.0.5…
Cees Timmerman
  • 17,623
  • 11
  • 91
  • 124
0
votes
0 answers

Remove setTimeout from Meteor.method

Gist: https://gist.github.com/FA-ViPer/39d6529edf8be6d376a9#file-gistfile1-txt I'm not sure how to remove the setTimeout function from the below code and still have my tracks variable available to insert into the collection "Carousel". asyncJob:…
Vish
  • 102
  • 8
0
votes
1 answer

How to use wrapAsync in Meteor

I am having trouble figuring out how to use wrapAsync properly using Meteor. I am currently working with node-apac and the Amazon Product Advertising API. If am trying to run the following code, how do I run it…
David Mckee
  • 1,100
  • 3
  • 19
  • 35
0
votes
1 answer

Node fibers/future callbacks hell

I've tried to use the wait.for.js library in my node.js project and I fail to get database data from a query. Here is the exemple (We are in a Database Class in coffeescript) : execute: (sqlOrder) -> resultSet = "" …
jrk
  • 43
  • 1
  • 8
0
votes
0 answers

Node.js w/ fibers eat all RAM when fibers are created in a tight loop

The following program, when run, progressively eats all RAM: var Fiber = require('fibers'); function f() { console.log('In a fiber'); } for (;;) { var fiber = new Fiber(f); fiber.run(); } Apparently, all the fibers created by it are never…
dragonroot
  • 5,653
  • 3
  • 38
  • 63
0
votes
1 answer

Accessing google contacts on user-sign-in throws Meteor.bindEnvironment error. What is wrong with my understanding of the fibers here?

The answer in - "What's going on with Meteor and Fibers/bindEnvironment()?" is very helpful however it could not help me resolve my issue. Here is what I am doing : Login with google Call FunGoogle(user) from…
0
votes
1 answer

Error when using fiber dependent wait.for npm module in Node.js

Im using the wait.for library to get rid of some asynchronous calls. Im doing this because I don't really care much about having my server run efficiently or anything, I'm using node.js for some data processing using the Natural NLP npm…
sourdesi
  • 360
  • 1
  • 4
  • 21
0
votes
2 answers

How do I perform database queries in parallel in Meteor?

Collection: docs: _id name Code: names = Docs.findOne(id).name for id in doc_ids But I would like the findOne queries to be sent off in parallel.
Loren
  • 13,903
  • 8
  • 48
  • 79
0
votes
1 answer

Returning a value from inside Fibers(nodejs)

So i'm having trouble trying to return a value from the constructor of this module. I literally have no idea how to return a value back to the constructor. I hope the code is self-explanatory, i want the constructor to return the hash variable. var…
Manak Kapoor
  • 962
  • 3
  • 12
  • 21
0
votes
1 answer

npm fails to install fibers "Build succeeded but target not found", weird error 1

I recently updated node.js on my Mac OSX 10.8.5 by uninstalling my old version and reinstalling through Homebrew. I am now getting errors installing fibers. npm version gives me: { http_parser: '1.0', node: '0.10.20', v8: '3.14.5.9', ares:…
Nick Benes
  • 1,334
  • 15
  • 14