Skip to content

[BUG] 错误 object of type 'NoneType' has no len() #497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chenw191 opened this issue May 6, 2025 · 1 comment
Open

[BUG] 错误 object of type 'NoneType' has no len() #497

chenw191 opened this issue May 6, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@chenw191
Copy link

chenw191 commented May 6, 2025

评论小于5个的ISSUE不会回复 (新版本的BUG除外)

先搜索现有ISSUE:
https://github.com/ok-oldking/ok-wuthering-waves/issues?q=

请先挨个检查:
常见问题

讨论区
https://github.com/ok-oldking/ok-wuthering-waves/discussions

只处理老版本没问题, 新版本会出现的BUG. 其他问题请通过上面的方法解决.
如有角色适配不好, 可能是我没抽或者不玩, 如需改进可以自己提PR, 将来可能跳大多数角色.
可以尝试使用支持好的角色.

描述错误:
[请清晰简洁地描述错误是什么]
错误 object of type 'NoneType' has no len()

复现步骤 按照以下步骤复现行为:

  1. 日常一条龙
  2. 等待战斗一两次
  3. 看到错误

截图 :
如果适用,添加截图以帮助解释您的问题。

Image

是否必现:

ok-ww出现bug的版本:
2.3.20

ok-ww最近未出现bug的版本:

windows操作系统:
Windows 11 专业版 24H2 26100.3915

上传日志:
2025-05-06 20:49:47,308 INFO TaskExecutor ok:ocr_zone Box(name='[re.compile('^(\d+)$'), re.compile('^(\d+)/(\d+)$')]', x=1882, y=22, width=1651, height=194, confidence=100) found result: []) time: 0.09 scale_factor: 1.00 target_height:0 resized_shape:(194, 1651, 3) all_boxes: [!_0.61]
2025-05-06 20:49:47,309 INFO TaskExecutor ok:ocr detected but no match: [re.compile('^(\d+)$'), re.compile('^(\d+)/(\d+)$')] [!_0.61]
2025-05-06 20:49:47,309 INFO TaskExecutor ok:wait_until timeout <cyfunction wait_ocr.. at 0x0000024EBCF3BED0> 10.0 seconds
2025-05-06 20:49:47,310 INFO TaskExecutor DailyTask:info_set 错误 object of type 'NoneType' has no len()
2025-05-06 20:49:47,310 ERROR TaskExecutor ok:Daily Task exception Traceback (most recent call last):
File "ok\init.pyx", line 2345, in ok.TaskExecutor.execute
File "src\task\DailyTask.pyx", line 26, in src.task.DailyTask.DailyTask.run
File "src\task\TacetTask.pyx", line 68, in src.task.TacetTask.TacetTask.farm_tacet
File "src\task\BaseWWTask.pyx", line 364, in src.task.BaseWWTask.BaseWWTask.ensure_stamina
File "src\task\BaseWWTask.pyx", line 352, in src.task.BaseWWTask.BaseWWTask.get_stamina
TypeError: object of type 'NoneType' has no len()

2025-05-06 20:49:47,793 INFO TaskExecutor ok:ocr_zone Box(name='search_dialog', x=2675, y=1051, width=351, height=117, confidence=66) found result: []) time: 0.10 scale_factor: 1.00 target_height:0 resized_shape:(117, 351, 3) all_boxes: [领取奖励_1.00]
2025-05-06 20:49:47,794 INFO TaskExecutor ok:ocr detected but no match: ['吸收', 'Absorb'] [领取奖励_1.00]
2025-05-06 20:49:47,927 INFO TaskExecutor ok:ocr_zone Box(name='search_dialog', x=2675, y=1051, width=351, height=117, confidence=66) found result: []) time: 0.08 scale_factor: 1.00 target_height:0 resized_shape:(117, 351, 3) all_boxes: [领取奖励_1.00]

@chenw191 chenw191 added the bug Something isn't working label May 6, 2025
@chenw191 chenw191 changed the title [BUG] [BUG] 错误 object of type 'NoneType' has no len() May 6, 2025
@Aifoc
Copy link

Aifoc commented May 14, 2025

同样有这样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants