gemini-testing / gemini

💀💀💀[DEPRECATED] Use hermione
https://github.com/gemini-testing/hermione
MIT License
1.5k stars 149 forks source link

`gemini update` leads to node crash when I run test against Firefox #928

Open BorisOsipov opened 6 years ago

BorisOsipov commented 6 years ago

gemini update leads to node crash when I run test against Firefox(in my case 61.0.1) It works well when I use Chrome with the same setup.

OS:

bo@boubuntu:~/tmp/genimi$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:        17.10
Codename:       artfu

Node version

bo@boubuntu:~/tmp/genimi$ node -v
v8.11.3

Output of gemini --version:

bo@boubuntu:~/tmp/genimi$ gemini --version
5.8.0

Contents of .gemini.js file:

module.exports = {
    rootUrl: 'http://yandex.ru',
    gridUrl: 'http://127.0.0.1:4444/wd/hub',

    browsers: {
        firefox: {
            desiredCapabilities: {
                browserName: 'firefox'
            }
        }
    }
};

Test source code:

gemini.suite('yandex-search', (suite) => {
    suite.setUrl('/')
        .setCaptureElements('.home-logo')
        .capture('plain');
});

Command used to run the test:

gemini update

Publically accessible URL of the page you are testing against:

http://yandex.ru

Result:

bo@boubuntu:~/tmp/genimi$ gemini update
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
 1: node::Abort() [node]
 2: 0x8c21ec [node]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [node]
 4: PngImgAdapter::NewInstance(Nan::FunctionCallbackInfo<v8::Value> const&) [/home/bo/.nvm/versions/node/v8.11.3/lib/node_modules/gemini/node_modules/png-img/build/Release/png_img.node]
 5: 0x7f9074812065 [/home/bo/.nvm/versions/node/v8.11.3/lib/node_modules/gemini/node_modules/png-img/build/Release/png_img.node]
 6: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [node]
 7: 0xad762f [node]
 8: v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [node]
 9: 0x3175155842fd
Aborted (core dumped)

Expected behaviour:

Not crashes.

ghost commented 6 years ago

Same experience on windows 7. No matter connect local firefox or browserstack.

I did a little test, gemini works fine when testing old firefox(46.0) and selenium server(2.53.1), but fails for latest versions.

j0tunn commented 5 years ago

gemini does not support firefox later than 46 version. In fact gemini will no longer be supported soon. I'd suggest you to try hermione.assertView instead.

tymfear commented 5 years ago

@j0tunn - what do you mean by soon? Currently it is impossible to replace gemini with hermione. There is a lot of things to be implemented to hermione to replace gemini (from my point of view).

j0tunn commented 5 years ago

@tymfear Hi.

what do you mean by soon?

As soon as gemini could be completely replaced with hermione. Hermione already can do most of the things to make it possible to use it as visual testing tool.

Currently it is impossible to replace gemini with hermione. There is a lot of things to be implemented to hermione to replace gemini (from my point of view)

Could you please define all those things? For now I see only one issue from you: https://github.com/gemini-testing/hermione/issues/319