AirtestProject / AirtestProject/Airtest

vivo Y100无法使用yosemite模式进行录屏,报错airtest.core.error.AirtestError: 'start_recording first'

Ouverte
#1,276 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
9.6k
Forks
1.5k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

:bulb:**相关项目:** Airtest

**标题:** [BUG提交]vivo Y100无法使用yosemite模式进行录屏,报错airtest.core.error.AirtestError: 'start_recording first'

**AirtestIDE版本:** 无

- [x] **使用了本地Pyhton环境运行脚本**
- Python版本: 3.10
- Airtest版本: v1.3.5

**报错描述:**
    vivo Y100无法使用yosemite模式进行录屏,报错airtest.core.error.AirtestError: 'start_recording first'

**相关截图:**

**报错Log:**
```
[12:18:34][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH wait-for-device
[12:18:34][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell getprop ro.build.version.sdk
[12:18:34][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell ls -l /data/local/tmp/rotationwatcher.jar
[12:18:35][DEBUG] install_rotationwatcher skipped
[12:18:35][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell app_process -Djava.class.path=/data/local/tmp/rotationwatcher.jar /data/local/tmp com.example.rotationwatcher.Main
[12:18:35][DEBUG] [rotation_server]b'270'
[12:18:36][INFO] update orientation None->3
[12:18:36][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell wm size
[12:18:36][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell getprop ro.sf.lcd_density
[12:18:36][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell dumpsys SurfaceFlinger
[12:18:36][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell dumpsys input
[12:18:36][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell dumpsys window displays
[12:18:37][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell getevent -p
[12:18:37][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell dumpsys package com.netease.nie.yosemite
[12:18:37][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell pm path com.netease.nie.yosemite
[12:18:37][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell CLASSPATH=/data/app/~~_eCDaoB78-uubpRIA1fFCA==/com.netease.nie.yosemite-l1gdiar-PgbzzKIoye-vHQ==/base.apk exec app_process -Dduration=1800 -Dbitrate=2592000 -Dvertical=off /system/bin com.netease.nie.yosemite.Recorder --start-record
[12:18:38][DEBUG] [start_recording_2725298958688]b'---Name:: null---duration:: 1800---bitrate:: 2592000 --vertival:: off'
[12:18:38][DEBUG] [start_recording_2725298958688]b'browsing http://192.168.30.9:8686/start to start recording!'
[12:18:38][DEBUG] [start_recording_2725298958688]b'then using http://192.168.30.9:8686/download to stop and download recording.'
[12:18:38][DEBUG] [start_recording_2725298958688]b'or using http://192.168.30.9:8686/stop to stop the recording server.'
[12:18:39][DEBUG] [start_recording_2725298958688]b'TESTherere'
[12:18:39][DEBUG] [start_recording_2725298958688]b'record started, isVertical1: null'
[12:18:39][DEBUG] [start_recording_2725298958688]b'record started, isVertical2: off'
[12:18:39][DEBUG] [start_recording_2725298958688]b'WIDTH;height0'
[12:18:39][DEBUG] [start_recording_2725298958688]b'CANSHU!!!___display----2400----null-----null'
[12:18:39][DEBUG] [start_recording_2725298958688]b'record started, max duration: 1800 secs.'
[12:18:39][DEBUG] [start_recording_2725298958688]b'bitrate: 2592000'
[12:18:39][DEBUG] [start_recording_2725298958688]b'startLocalRecord:'
[12:18:39][DEBUG] [start_recording_2725298958688]b'start result: Record start success! File path:/storage/emulated/0/Android/data/com.netease.nie.yosemite/files/videotest.mp4'
[12:18:39][DEBUG] [start_recording_2725298958688]b'WIDTH;height2400'
[12:18:59][DEBUG] Stopping recording. Current recording_proc:
[12:18:59][DEBUG] Current recording_file: /storage/emulated/0/Android/data/com.netease.nie.yosemite/files/videotest.mp4
[12:18:59][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell pm path com.netease.nie.yosemite
[12:18:59][DEBUG] E:\myPath\adb.exe -s 10CDCX1KPU001AH shell CLASSPATH=/data/app/~~_eCDaoB78-uubpRIA1fFCA==/com.netease.nie.yosemite-l1gdiar-PgbzzKIoye-vHQ==/base.apk exec app_process /system/bin com.netease.nie.yosemite.Recorder --stop-record
[12:19:00][DEBUG] self.recording_proc:
Traceback (most recent call last):
File "F:\xxx\test.py", line 22, in
dev.stop_recording()
File "E:\miniconda3\envs\xxx\lib\site-packages\airtest\core\android\android.py", line 992, in stop_recording
return self.yosemite_recorder.stop_recording(output=output, is_interrupted=is_interrupted)
File "E:\miniconda3\envs\xxx\lib\site-packages\airtest\utils\snippet.py", line 127, in ready_func
return func(inst, *args, **kwargs)
File "E:\miniconda3\envs\xxx\lib\site-packages\airtest\core\android\recorder.py", line 117, in stop_recording
raise AirtestError("start_recording first")
airtest.core.error.AirtestError: 'start_recording first'
[12:19:00][DEBUG] [rotation_server]b''

Process finished with exit code 1
```

**连接设备信息:**
设备类型 | 设备型号 | 系统版本号 | apk名称/下载链接
------------ | ------------- | ------------- | -------------
Android | vivo Y100 | Android 13 |

**提供最小可复现此BUG的代码:**
```
from airtest.core.api import *
auto_setup(__file__)

# 指定设备地址
device_address = "f6857ee"

# 初始化设备
dev = connect_device(f"android:///{device_address}")

# 开始录制
dev.start_recording(output="123.mp4")

time.sleep(20)
# 结束录制
dev.stop_recording()
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.