exantech / monero-nodejs-libwallet

Node.js addon for Monero libwallet
13 stars 21 forks source link

Aborted (core dumped) #26

Open marcosc90 opened 6 years ago

marcosc90 commented 6 years ago

When I try to create a wallet I get the following error:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
  what():  context: library has no ciphers
Aborted (core dumped)

This is the code that triggers it:

(async() => {

    const path = require('path');

    const monero = require('monero-nodejs-libwallet');

    const wallet = await monero.createWallet({
        'path': './wallets',
        'password': '123', 
        'network': 'mainnet',
        'daemonAddress': 'localhost:18081',
    })

    console.log(wallet);

})();

I tested this on:

Node.js: v10.10.0, v10.7.0 & v8.11.4 on Ubuntu 16.04 & Ubuntu 18.04

phelipebf commented 5 years ago

Same here:

const monero = require('monero-nodejs-libwallet');
monero.setupLog(4, 'wallet.log');

const path = require('path');

monero.createWallet({
    'path': path.join(__dirname, 'test-wallet'),
    'password': '123',
    'network': 'mainnet',
    'daemonAddress': 'localhost:18082',
}).then((wallet) => console.log('New wallet succesfully created: ' + wallet.address()))
    .catch((e) => console.log('Failed to create new wallet: ' + e));

Result: Segmentation Fault (core dumped)

wallet.log (say nothing):

2019-01-26 01:01:59.347     7f23c8a74b80    INFO    logging contrib/epee/src/mlog.cpp:186   New log categories: *:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
2019-01-26 01:01:59.347     7f23c8a74b80    INFO    logging contrib/epee/src/mlog.cpp:186   New log categories: *:TRACE

node v8.10.0 Ubuntu 18.04.1 LTS

naughtyfox commented 5 years ago

Thanks for the feedback. We haven't updated the lib to work with latest monero hardfork.