xujingzhu
xujingzhu
  • 发布:2022-09-01 14:43
  • 更新:2022-09-01 17:24
  • 阅读:359

自动化测试,运行到安卓真机报错Unhandled rejection FailError: Failure: 'couldn't create file: Too many open files'

分类:uni-app
14:26:12.770 [mmssp-page-turner:android-QDY7N1..] Unhandled rejection FailError: Failure: 'couldn't create file: Too many open files'  
14:26:12.770 [mmssp-page-turner:android-QDY7N1..]     at D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\adbkit\lib\adb\sync.js:289:33  
14:26:12.774 [mmssp-page-turner:android-QDY7N1..]     at tryCatcher (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\util.js:26:23)  
14:26:12.778 [mmssp-page-turner:android-QDY7N1..]     at Promise._settlePromiseFromHandler (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\promise.js:503:31)  
14:26:12.782 [mmssp-page-turner:android-QDY7N1..]     at Promise._settlePromiseAt (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\promise.js:577:18)  
14:26:12.786 [mmssp-page-turner:android-QDY7N1..]     at Promise._settlePromises (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\promise.js:693:14)  
14:26:12.786 [mmssp-page-turner:android-QDY7N1..]     at Async._drainQueue (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\async.js:123:16)  
14:26:12.791 [mmssp-page-turner:android-QDY7N1..]     at Async._drainQueues (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\async.js:133:10)  
14:26:12.791 [mmssp-page-turner:android-QDY7N1..]     at Immediate.Async.drainQueues [as _onImmediate] (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\async.js:15:14)  
14:26:12.796 [mmssp-page-turner:android-QDY7N1..]     at processImmediate (internal/timers.js:464:21)

使用运行测试用例的方法,就会报这个错误,如果项目直接运行,就没有这种错误。请问这是什么问题呢

开发环境:

运行平台:windows10
运行手机:Android8、Android11、Android10(全部都有这种情况)
Hbuilder版本:3.5.3.20220729

2022-09-01 14:43 负责人:无 分享
已邀请:
xujingzhu

xujingzhu (作者)

@DCloud-HBuilderX团队

DCloud_HB_WDL

DCloud_HB_WDL

重启下电脑。估计重启电脑就好了

xujingzhu

xujingzhu (作者)

确实好了,但是我得到了另外的错误,请问这是什么问题呢?@DCloud_HB_WDL

  • xujingzhu (作者)

    Unhandled rejection FailError: Failure: 'secure_mkdirs failed: Operation not permitted'  
    17:10:51.353 [mmssp-page-turner:android-6152b7..] at D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\adbkit\lib\adb\sync.js:289:33
    17:10:51.360 [mmssp-page-turner:android-6152b7..] at tryCatcher (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\util.js:26:23)
    17:10:51.365 [mmssp-page-turner:android-6152b7..] at Promise._settlePromiseFromHandler (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\promise.js:503:31)
    17:10:51.373 [mmssp-page-turner:android-6152b7..] at Promise._settlePromiseAt (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\promise.js:577:18)
    17:10:51.379 [mmssp-page-turner:android-6152b7..] at Promise._settlePromises (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\promise.js:693:14)
    17:10:51.385 [mmssp-page-turner:android-6152b7..] at Async._drainQueue (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\async.js:123:16)
    17:10:51.385 [mmssp-page-turner:android-6152b7..] at Async._drainQueues (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\async.js:133:10)
    17:10:51.393 [mmssp-page-turner:android-6152b7..] at Immediate.Async.drainQueues [as _onImmediate] (D:\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\bluebird\js\main\async.js:15:14)
    17:10:51.399 [mmssp-page-turner:android-6152b7..] at processImmediate (internal/timers.js:464:21)

    2022-09-01 17:14

xujingzhu

xujingzhu (作者)

@DCloud_HB_WDL,问题还是一样存在,我运行安卓11以上就会出现ecure_mkdirs failed: Operation not permitted
运行到11以下就出现Unhandled rejection FailError: Failure: 'couldn't create file: Too many open files'这个问题

该问题目前已经被锁定, 无法添加新回复