Coder Social home page Coder Social logo

Comments (5)

christian-bromann avatar christian-bromann commented on July 30, 2024

Can you provide some sort of reproducible example? As you can see this log doesn't help at all to guess where a bug might be located. Could be this library or your environment. Without more information it will be impossible to investigate this problem.

from wdio-video-reporter.

LikaKse avatar LikaKse commented on July 30, 2024

I'm running tests in a docker container.

I reproduced the environment in a new project https://github.com/LikaKse/wdio-template .
Without the tested site located on the local network, I can't reproduce the error.
I managed to collect more logs.
stdout.txt
wdio-0-0-Video-reporter.log
What other information could be useful to you?

from wdio-video-reporter.

christian-bromann avatar christian-bromann commented on July 30, 2024

Thanks for providing the information. I currently don't have much time to look into this but if anyone can help to investigate, this would be much appreciated!

from wdio-video-reporter.

ginta1337 avatar ginta1337 commented on July 30, 2024

Exception generated by browser.saveScreenshot at index.js#L113 was not handled by "try catch" block, that leads to whole promise chain fails with warnings:

[0-0] (node:541) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
[0-0] (node:541) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3)

I replaced "try catch" statement with ".catch(()=>{})" and sent a patch to @LikaKse
So we can catch an actual error:

Got exception "unknown error: cannot activate web view
  (Session info: headless chrome=96.0.4664.110)"
#0 0x55fc304a7ee3 <unknown>
#1 0x55fc2ff75608 <unknown>
#2 0x55fc2ff65e83 <unknown>
#3 0x55fc2ff59779 <unknown>
#4 0x55fc2ffe8aa9 <unknown>
#5 0x55fc2ffc9272 <unknown>
#6 0x55fc2ffdc3bc <unknown>
#7 0x55fc2ffc9163 <unknown>
#8 0x55fc2ff9ebfc <unknown>
#9 0x55fc2ff9fc05 <unknown>
#10 0x55fc304d9baa <unknown>
#11 0x55fc304ef651 <unknown>
#12 0x55fc304dab05 <unknown>
#13 0x55fc304f0a68 <unknown>
#14 0x55fc304cf05f <unknown>
#15 0x55fc3050b818 <unknown>
#16 0x55fc3050b998 <unknown>
#17 0x55fc30526eed <unknown>
#18 0x7fe2fbf6bfa3 <unknown>
    at Browser.<anonymous> (/e2e/node_modules/@wdio/utils/build/shim.js:270:24)
    at Video.onAfterCommand (/e2e/node_modules/wdio-video-reporter/src/index.js:113:9)
    at Video.emit (node:events:381:22)
    at Video.emit (node:domain:470:12)
    at /e2e/node_modules/@wdio/runner/build/reporter.js:36:56
    at Array.forEach (<anonymous>)
    at BaseReporter.emit (/e2e/node_modules/@wdio/runner/build/reporter.js:36:25)
    at EventEmitter.<anonymous> (/e2e/node_modules/@wdio/runner/build/index.js:209:82)

@christian-bromann can you take a closer look at this "try catch" statements index.js#L111 index.js#L171 ? Why them don't catch an exception in a desired way?

from wdio-video-reporter.

LikaKse avatar LikaKse commented on July 30, 2024

"unknown error: cannot activate web view" fixed by increasing the resources available to the container and setting the following arguments to chrome:

        args: ["window-size=1920,1080",
               "--headless",
               "--no-sandbox",
               "--disable-gpu",
               "--disable-extensions",
               "--dns-prefetch-disable",
               "--disable-infobars",
               "--disable-browser-side-navigation",
               "--disable-dev-shm-usage"
              ],

Thank @ginta1337 for your help in debugging

from wdio-video-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.