wechat-miniprogram / wechat-miniprogram/miniprogram-demo
wx.createInferenceSession 创建失败返回2004010错误码的原因?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 2.2k
- Avg merge
- 10h 34m
- Merged PRs (30d)
- 2
Description
在使用wx.createInferenceSession 创建Session的时候,同样的代码在红米和荣耀手机可以正常创建,在小米手机上创建失败,返回错误信息是: {errno: 2004010, errMsg: "createInferenceSession:fail:environment not ready"}
小米手机型号和微信版本信息如下图:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named. Start by reproducing wx.createInferenceSession on the Xiaomi device and compare its model and WeChat version with the working Redmi and Honor devices, using the attached screenshot. Done means identifying the condition behind “environment not ready” or documenting a confirmed workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100