Giter Site home page Giter Site logo

Comments (5)

KazuCocoa avatar KazuCocoa commented on July 17, 2024 1

Not possible for Android since the time comes from adb's screenrecord command limitation
https://github.com/appium/appium-adb/blob/01f3dbd8e2be4bd967906c24bb444651f7bcbae7/lib/tools/adb-commands.js#L1772

from appium.

KazuCocoa avatar KazuCocoa commented on July 17, 2024

As the error message, 1800 is the max value for the endpoint usage as Appium.

[HTTP] --> POST /wd/hub/wd-internal/session/0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b/appium/start_recording_screen
[HTTP] {"options":{"videoType":"libx264","videoFps":10,"videoScale":"1280:720","videoSize":"1280x720","timeLimit":1801}}
[XCUITestDriver@d3b8 (0cf65adc)] Calling AppiumDriver.startRecordingScreen() with args: [{"videoType":"libx264","videoFps":10,"videoScale":"1280:720","videoSize":"1280x720","timeLimit":1801},"0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b"]
[device-farm-main] 📱 Plugin Args: {"platform":"both","iosDeviceType":"both","androidDeviceType":"both"}
[AppiumDriver@dfb2] Clearing new command timeout pre-emptively since plugin(s) will handle this command
[AppiumDriver@dfb2] Plugins which can handle cmd 'startRecordingScreen': device-farm
[AppiumDriver@dfb2] Plugin device-farm is now handling cmd 'startRecordingScreen'
[AppiumDriver@dfb2] Executing default handling behavior for command 'startRecordingScreen'
[XCUITestDriver@d3b8 (0cf65adc)] Executing command 'startRecordingScreen'
[XCUITestDriver@d3b8 (0cf65adc)] Checking if there is/was a previous screen recording. Set 'forceRestart' option to 'true' if you'd like to skip this step.
[XCUITestDriver@d3b8 (0cf65adc)] Screen recording is not running. There is nothing to stop.
[device-farm-main] Updating lastCmdExecutedAt for device 4FBCECAB-C544-4346-9551-BE2769F642AA in session 0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b
[DevCon Factory] Releasing connections for 4FBCECAB-C544-4346-9551-BE2769F642AA device on 53757 port number
[DevCon Factory] No cached connections have been found
[XCUITestDriver@d3b8 (0cf65adc)] The timeLimit value must be in range [1, 1800] seconds. The value of '1801' has been passed instead.
[XCUITestDriver@d3b8 (0cf65adc)] Encountered internal error running command: Error: The timeLimit value must be in range [1, 1800] seconds. The value of '1801' has been passed instead.
[XCUITestDriver@d3b8 (0cf65adc)]     at Object.wrappedLogger.errorWithException (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/support/lib/logging.js:114:43)
[XCUITestDriver@d3b8 (0cf65adc)]     at Object.wrappedLogger.errorAndThrow (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/support/lib/logging.js:120:16)
[XCUITestDriver@d3b8 (0cf65adc)]     at XCUITestDriver.startRecordingScreen (/Users/alekseybulygin/.appium/node_modules/appium-xcuitest-driver/lib/commands/recordscreen.js:248:16)
[HTTP] <-- POST /wd/hub/session/0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b/appium/start_recording_screen 500 11 ms - 706

https://github.com/appium/appium-xcuitest-driver/blob/f00139e68fe29ba53f21b9d3293dbd47c33d3c1e/lib/commands/recordscreen.js#L247-L252
Possibly you could modify the code on your local to extend it. I don't recall well but probably we added the limit for some past issue etc

from appium.

KazuCocoa avatar KazuCocoa commented on July 17, 2024

Looks like appium/appium-xcuitest-driver#751 is the last modification for the max timeout.
We could relax it more by user responsibility I guess.

from appium.

nskcashHH avatar nskcashHH commented on July 17, 2024

@KazuCocoa I tried to increase the value locally, I came across this limitation
[ffmpeg] [http @ 0x138808e00] Value 5401.000000 for parameter 'reconnect_delay_max' out of range [0 - 4294]

I was able to run without an error with a value of 4293, at least something, thank you

from appium.

nskcashHH avatar nskcashHH commented on July 17, 2024

@KazuCocoa thank you so much for making this fix, and will this revision be for uiautomator2 ?

from appium.

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.