imanel / websocket-eventmachine-client

WebSocket client for Ruby
74 stars 18 forks source link

Assertion `EmConnsHash != ((VALUE)RUBY_Qnil)' failed. #9

Closed Zloy closed 8 years ago

Zloy commented 9 years ago

This simple test works when Machine == EventMachine, but doesn't when Machine == WebSocket::EventMachine

#!/usr/bin/env ruby

require 'rubygems'
require 'bundler/setup'
require "websocket-eventmachine-server"

#Machine = EventMachine
Machine = WebSocket::EventMachine
Machine.run {}

It reports the error:

ruby: rubymain.cpp:209: VALUE t_initialize_event_machine(VALUE): Assertion `EmConnsHash !=\
((VALUE)RUBY_Qnil)' failed.

My Gemfile

source 'https://rubygems.org'
gem 'websocket-eventmachine-server'

My Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    eventmachine (1.0.7)
    websocket (1.2.1)
    websocket-eventmachine-base (1.1.0)
      eventmachine (~> 1.0)
      websocket (~> 1.0)
      websocket-native (~> 1.0)
    websocket-eventmachine-server (1.0.1)
      websocket-eventmachine-base (~> 1.0)
    websocket-native (1.0.0)

PLATFORMS
  ruby

DEPENDENCIES
  websocket-eventmachine-server
imanel commented 9 years ago

It looks like it's EventMachine problem as trace points. I'm not sure if I will be able to help.