收藏
回答

copyFileSync:fail operation not permitted

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug copyFileSync 微信安卓客户端 7.0.10 2.10.0


[15:54:41]  Error: copyFileSync:fail operation not permitted, copyfile '/storage/emulated/0/tencent/MicroMsg/wxafiles/wxfce6e49034fee8c5/tmp_081278b37fbc02cd38cc591b4ad284e3c476f7e95c2c6ad7' -> '/storage/emulated/0/tencent/MicroMsg/wxanewfiles/6df30df50ed01e4bc0ff0f521056f65e/action/51aafb1ec979733ab0dd1a3dbfeee144/tmp_081278b37fbc02cd38cc591b4ad284e3c476f7e95c2c6ad7.jpg' at copyFileSync (https://lib/WASubContext.js:2:713458) at Object.e.<computed> [as copyFileSync] (https://lib/WASubContext.js:2:715121) at https://usr/app-service.js:13667:2329 at Array.forEach (<anonymous>) at e (https://usr/app-service.js:13667:2183) at e (https://usr/app-service.js:13667:2132) at https://usr/app-service.js:13667:2363 at Array.forEach (<anonymous>) at e (https://usr/app-service.js:13667:2183) at Function.complete (https://usr/app-service.js:13667:2460)


机型信息:

{"screenWidth":360,"locationEnabled":true,"statusBarHeight":18,"notificationAuthorized":true,"screenTop":0,"pixelRatio":3,"safeArea":{"height":640,"width":360,"bottom":640,"top":0,"left":0,"right":360},"system":"Android 5.1","benchmarkLevel":8,"cameraAuthorized":true,"bluetoothEnabled":false,"deviceOrientation":"portrait","windowWidth":360,"brand":"OPPO","fontSizeSetting":16,"version":"7.0.10","screenHeight":640,"locationAuthorized":true,"language":"zh_CN","wifiEnabled":false,"microphoneAuthorized":true,"windowHeight":592,"model":"OPPO R9m","platform":"android","SDKVersion":"2.10.0","devicePixelRatio":3}


以前从未出现,查文档也没有对应的异常解释

回答关注问题邀请回答
收藏

2 个回答

  • 黄勇
    黄勇
    2020-04-27

    2020-04-27
    有用
    回复
  • 灵芝
    灵芝
    2020-01-02

    麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2020-01-02
    有用
    回复 19
    • 6s
      6s
      2020-01-03
      就是把临时文件拷贝到wx.env.USER_DATA_PATH,没什么特殊的,侧式又测不出来,线上版本偶尔发生
      2020-01-03
      回复
    • 6s
      6s
      2020-01-04
      [22:42:59] Error: copyFileSync:fail operation not permitted, copyfile '/storage/emulated/0/tencent/MicroMsg/wxanewfiles/6df30df50ed01e4bc0ff0f521056f65e/tmp/tmp_3bba7ad13afaf387d388b5e2127531fbbfa59a482ea16ac1.jpg' -> '/storage/emulated/0/tencent/MicroMsg/wxanewfiles/6df30df50ed01e4bc0ff0f521056f65e/inspection/02250b34eae06940c19a4ef6c209e1e8/tmp_3bba7ad13afaf387d388b5e2127531fbbfa59a482ea16ac1.jpg' at copyFileSync (https://lib/WASubContext.js:2:717222) at Object.e. (https://lib/WASubContext.js:2:718885) at Object.p. [as copyFileSync] (https://lib/WASubContext.js:2:1198367) at https://usr/app-service.js:13854:2329 at Array.forEach () at e (https://usr/app-service.js:13854:2183) at e (https://usr/app-service.js:13854:2132) at https://usr/app-service.js:13854:2363 at Array.forEach () at e (https://usr/app-service.js:13854:2183)
      [22:42:59] {"screenWidth":360,"locationEnabled":true,"statusBarHeight":18,"notificationAuthorized":true,"screenTop":0,"pixelRatio":3,"safeArea":{"height":640,"width":360,"bottom":640,"top":0,"left":0,"right":360},"system":"Android 5.1","benchmarkLevel":8,"cameraAuthorized":true,"bluetoothEnabled":false,"deviceOrientation":"portrait","windowWidth":360,"brand":"OPPO","fontSizeSetting":16,"version":"7.0.10","screenHeight":640,"locationAuthorized":true,"language":"zh_CN","wifiEnabled":false,"microphoneAuthorized":true,"windowHeight":640,"model":"OPPO R9m","platform":"android","SDKVersion":"2.10.0","devicePixelRatio":3}
      2020-01-04
      回复
    • 6s
      6s
      2020-01-04
      就是这个型号手机 OPPO R9m
      2020-01-04
      回复
    • 6s
      6s
      2020-01-05
      经过这几天统计发生此错误的全是 oppo 和vivo手机
      2020-01-05
      回复
    • 6s
      6s
      2020-01-06
      没人管
      2020-01-06
      回复
    查看更多(14)
登录 后发表内容
问题标签