teampoltergeist / poltergeist

A PhantomJS driver for Capybara
MIT License
2.5k stars 415 forks source link

Phantom crash #841

Closed ArnisL closed 7 years ago

ArnisL commented 7 years ago

There's a peculiar phantom crash happening in react_on_rails tutorial app test suite

Crash occurs at spec/features/shared/contexts.rb:51

When test execution briefly stopped with byebug before line:51 - test passes

Strace (got full 30k+ lines log too)

What seems to be telling:

open("/home/lapsa/.rvm/gems/ruby-2.3.1/gems/websocket-driver-0.6.4/lib/websocket/driver/hybi.rb", O_RDONLY|O_NONBLOCK|O_CLOEXEC) = 16
(..)
read(16, "module WebSocket\n  class Driver\n"..., 8192) = 8192
read(16, "ror, \"Unrecognized frame opcode:"..., 8192) = 3890

Found on stackoverflow something seemingly related about frame opcodes and web sockets

My uneducated guess is that either:

Any ideas what's going on?

twalpole commented 7 years ago

The most likely cause of this is PhantomJS which we have no control over. What version are you using? Could you try running it with the PhantomJS 2.5 beta - https://groups.google.com/forum/#!topic/phantomjs/AefOuwkgBh0 -, and master branch of Poltergeist?

ArnisL commented 7 years ago

Used PhantomJS 2.1.1

Having some troubles testing beta version at the moment. Unsure how to get that up and running on Arch Linux.

twalpole commented 7 years ago

Any update on this? Were you able to try PhantomJS 2.5 ?

ArnisL commented 7 years ago

Sorry... Real life happened and completely forgot about this.

Will give it another shot this weekend.