{"action":"created","issue":{"url":"https://api.github.com/repos/ncb000gt/node.bcrypt.js/issues/272","labels_url":"https://api.github.com/repos/ncb000gt/node.bcrypt.js/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/ncb000gt/node.bcrypt.js/issues/272/comments","events_url":"https://api.github.com/repos/ncb000gt/node.bcrypt.js/issues/272/events","html_url":"https://github.com/ncb000gt/node.bcrypt.js/issues/272","id":55309485,"number":272,"title":"IOjs v1.0.3 not able to load bcrypt module (Windows)","user":{"login":"dvlsg","id":4721566,"avatar_url":"https://avatars.githubusercontent.com/u/4721566?v=3","gravatar_id":"","url":"https://api.github.com/users/dvlsg","html_url":"https://github.com/dvlsg","followers_url":"https://api.github.com/users/dvlsg/followers","following_url":"https://api.github.com/users/dvlsg/following{/other_user}","gists_url":"https://api.github.com/users/dvlsg/gists{/gist_id}","starred_url":"https://api.github.com/users/dvlsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvlsg/subscriptions","organizations_url":"https://api.github.com/users/dvlsg/orgs","repos_url":"https://api.github.com/users/dvlsg/repos","events_url":"https://api.github.com/users/dvlsg/events{/privacy}","received_events_url":"https://api.github.com/users/dvlsg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-23T17:38:16Z","updated_at":"2015-02-09T09:02:14Z","closed_at":null,"body":"I am unable to load Bcrypt into an IOjs module. On require('bcrypt'), an error is thrown from bindings. The bcrypt module can be loaded in with nodejs v0.10.33 without issue.\r\n\r\nHere is a quick rundown of my specs (can provide more info, if necessary):\r\n- Windows 7 x64\r\n- IOjs v1.0.3 x64\r\n- Bcrypt v0.8.1\r\n   - Bindings v1.0.0\r\n   - Nan v1.5.0\r\n- Visual Studio 2012 (for gyp)\r\n\r\nHere is the error message thrown from `require('bcrypt')`:\r\n\r\n    D:\\Code\\Personal\\temp\\iojs\\bcrypt-test\\node_modules\\bcrypt\\node_modules\\bindings\\bindings.js:79\r\n            throw e\r\n                  ^\r\n    Error: Module did not self-register.\r\n        at Error (native)\r\n        at Module.load (module.js:341:32)\r\n        at Function.Module._load (module.js:296:12)\r\n        at Module.require (module.js:351:17)\r\n        at require (module.js:370:17)\r\n        at bindings (D:\\Code\\Personal\\temp\\iojs\\bcrypt-test\\node_modules\\bcrypt\\node_modules\\binding\\bindings.js:74:15)\r\n        at Object.<anonymous> (D:\\Code\\Personal\\temp\\iojs\\bcrypt-test\\node_modules\\bcrypt\\bcrypt.js:3:35)\r\n        at Module._compile (module.js:446:26)\r\n        at Object.Module._extensions..js (module.js:464:10)\r\n        at Module.load (module.js:341:32)\r\n\r\nHere is the stdout from a `node-gyp rebuild` call (note: I used the msvs_version=2012 flag to build, but I believe this output looks exactly the same as with previous versions of bcrypt, including the same warnings about possible loss of data):\r\n\r\n    Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n      blowfish.cc\r\n      bcrypt.cc\r\n      bcrypt_node.cc\r\n    ..\\src\\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of data [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    d:\\code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\node_modules\\nan\\nan_implementation_pre_12_inl.h(156): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (..\\src\\bcrypt_node.cc) [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    d:\\code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\node_modules\\nan\\nan_implementation_pre_12_inl.h(165): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data (..\\src\\bcrypt_node.cc) [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    d:\\code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\node_modules\\nan\\nan_implementation_pre_12_inl.h(183): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (..\\src\\bcrypt_node.cc) [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    ..\\src\\bcrypt_node.cc(76): warning C4244: 'argument' : conversion from 'ssize_t' to 'unsigned char', possible loss of data [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    ..\\src\\bcrypt_node.cc(137): warning C4244: 'argument' : conversion from 'const ssize_t' to 'unsigned char', possible loss of data [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    ..\\src\\bcrypt_node.cc(231): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    ..\\src\\bcrypt_node.cc(232): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n    C:\\Users\\Dave\\.node-gyp\\0.10.33\\deps\\v8\\include\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\bcrypt_lib.vcxproj]\r\n              with\r\n              [\r\n                  T=v8::Object\r\n              ] (..\\src\\bcrypt_node.cc)\r\n         Creating library D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\Release\\bcrypt_lib.lib and object D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\Release\\bcrypt_lib.exp\r\n      Generating code\r\n      Finished generating code\r\n      bcrypt_lib.vcxproj -> D:\\Code\\clubspeed\\temp\\passwords\\iojs\\node_modules\\bcrypt\\build\\Release\\\\bcrypt_lib.node"},"comment":{"url":"https://api.github.com/repos/ncb000gt/node.bcrypt.js/issues/comments/73476153","html_url":"https://github.com/ncb000gt/node.bcrypt.js/issues/272#issuecomment-73476153","issue_url":"https://api.github.com/repos/ncb000gt/node.bcrypt.js/issues/272","id":73476153,"user":{"login":"xhallix","id":3819652,"avatar_url":"https://avatars.githubusercontent.com/u/3819652?v=3","gravatar_id":"","url":"https://api.github.com/users/xhallix","html_url":"https://github.com/xhallix","followers_url":"https://api.github.com/users/xhallix/followers","following_url":"https://api.github.com/users/xhallix/following{/other_user}","gists_url":"https://api.github.com/users/xhallix/gists{/gist_id}","starred_url":"https://api.github.com/users/xhallix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhallix/subscriptions","organizations_url":"https://api.github.com/users/xhallix/orgs","repos_url":"https://api.github.com/users/xhallix/repos","events_url":"https://api.github.com/users/xhallix/events{/privacy}","received_events_url":"https://api.github.com/users/xhallix/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T09:02:14Z","updated_at":"2015-02-09T09:02:14Z","body":"I updated to iojs 1.1.0 and using  \"bcrypt\"  : \"0.8.x\" in my package.json"}}