erlanglab / erlangpl

Tool for developers working with systems running on the Erlang VM (BEAM). It helps with performance analysis.
http://www.erlang.pl/
Apache License 2.0
549 stars 40 forks source link

runtime error #93

Open ssow opened 5 years ago

ssow commented 5 years ago

Hi,

I'm facing a runtime error related to the websocket component.

Error in process <0.226.0> on node 'erlangpl@127.0.0.1' with exit value: {undef,[{crypto,sha, [<<"DhX4I0c+u60EPDe8ETlV2w==258EAFA5-E914-47DA-95CA-C5AB0DC85B11">>], []}, {cowboy_websocket,websocket_handshake,3, [{file,"src/cowboy_websocket.erl"},{line,142}]}, {cowboy_protocol,execute,4, [{file,"src/cowboy_protocol.erl"},{line,522}]}]}

For your information, the node running on centos 7 with erlang/OTP 21

I've tried to recompile the tool but it fails with the following error 👍 error

/production/factory/erlangpl/node_modules/elm-format: Command failed. Exit signal: SIGABRT Command: binwrap-install Arguments: Directory: /production/factory/erlangpl/node_modules/elm-format Output: /usr/bin/node[1466]: ../src/node_contextify.cc:626:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo&): Assertion `args[1]->IsString()' failed. 1: 0x8dc510 node::Abort() [/usr/bin/node] 2: 0x8dc5e5 [/usr/bin/node] 3: 0x91081e node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo const&) [/usr/bin/node] 4: 0xb6166b [/usr/bin/node] 5: 0xb63602 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object*, v8::internal::Isolate) [/usr/bin/node]

Any suggestion appreciated.

Thank you

michalslaski commented 5 years ago

Hello @ssow I can try to help with the first error on CentOS 7, which indicates you do not have the crypto application installed in your system. Try the following command sudo yum install erlang-crypto and then try running the tool again.

ssow commented 5 years ago

Hello @michalslaski

I've installed the complete esl-erlang.x86_64 (21.3.7-1) package, which includes crypto-4.4.2. If this version is ok than the problem is somewhere else, I guess Thank you.

michalslaski commented 5 years ago

@ssow OTP 20 removed the previously deprecated crypto:sha/1 function in favour of crypto:hash/2. It seems this project deserves an upgrade of the underlying cowboy library and a new release :)

Thanks so much for reporting the issue, which somehow went unnoticed for a long time!

ssow commented 5 years ago

You're welcome. When can I expect to see the update ?

Thank you