agentscope-ai / agentscope-ai/QwenPaw
[Bug]: 概率性出现启动报错、奔溃退出qwenpaw。v2.0.1版本,pip安装。
- 主要言語
- TypeScript
- スター
- 35k
- フォーク
- 3.1k
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 228
説明
报错日志:
INFO .v13\Lib\site-packages\qwenpaw\app\_app.py:615 | 2026-08-12 23:02:27 | Application shutdown complete
ERROR: Traceback (most recent call last):
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 463, in finish_socket_func
return ov.getresult()
~~~~~~~~~~~~^^
OSError: [WinError 995] 由于线程退出或应用程序请求,已中止 I/O 操作。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 804, in _poll
value = callback(transferred, key, ov)
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 467, in finish_socket_func
raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 995] 由于线程退出或应用程序请求,已中止 I/O 操作。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\python313\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "D:\Program Files\python313\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "D:\Program Files\python313\Lib\asyncio\base_events.py", line 708, in run_until_complete
self.run_forever()
~~~~~~~~~~~~~~~~^^
File "D:\Program Files\python313\Lib\asyncio\base_events.py", line 679, in run_forever
self._run_once()
~~~~~~~~~~~~~~^^
File "D:\Program Files\python313\Lib\asyncio\base_events.py", line 1989, in _run_once
event_list = self._selector.select(timeout)
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 446, in select
self._poll(timeout)
~~~~~~~~~~^^^^^^^^^
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 806, in _poll
f.set_exception(e)
~~~~~~~~~~~~~~~^^^
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 89, in set_exception
super().set_exception(exception)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
asyncio.exceptions.InvalidStateError: invalid state
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\starlette\routing.py", line 645, in lifespan
await receive()
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\uvicorn\lifespan\on.py", line 137, in receive
return await self.receive_queue.get()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\python313\Lib\asyncio\queues.py", line 186, in get
await getter
asyncio.exceptions.CancelledError
Traceback (most recent call last):
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 463, in finish_socket_func
return ov.getresult()
~~~~~~~~~~~~^^
OSError: [WinError 995] 由于线程退出或应用程序请求,已中止 I/O 操作。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 804, in _poll
value = callback(transferred, key, ov)
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 467, in finish_socket_func
raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 995] 由于线程退出或应用程序请求,已中止 I/O 操作。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "D:\Pycharm_program\qwenpaw\.v13\Scripts\qwenpaw.exe\__main__.py", line 5, in
sys.exit(cli())
~~~^^
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\click\core.py", line 1569, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\click\core.py", line 1490, in main
rv = self.invoke(ctx)
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\click\core.py", line 1970, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\click\core.py", line 1353, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\click\core.py", line 907, in invoke
return callback(*args, **kwargs)
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\qwenpaw\cli\app_cmd.py", line 155, in app_cmd
uvicorn.run(
~~~~~~~~~~~^
"qwenpaw.app._app:app",
^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
log_level=log_level,
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\uvicorn\main.py", line 621, in run
server.run()
~~~~~~~~~~^^
File "D:\Pycharm_program\qwenpaw\.v13\Lib\site-packages\uvicorn\server.py", line 74, in run
return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory())
File "D:\Program Files\python313\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "D:\Program Files\python313\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "D:\Program Files\python313\Lib\asyncio\base_events.py", line 708, in run_until_complete
self.run_forever()
~~~~~~~~~~~~~~~~^^
File "D:\Program Files\python313\Lib\asyncio\base_events.py", line 679, in run_forever
self._run_once()
~~~~~~~~~~~~~~^^
File "D:\Program Files\python313\Lib\asyncio\base_events.py", line 1989, in _run_once
event_list = self._selector.select(timeout)
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 446, in select
self._poll(timeout)
~~~~~~~~~~^^^^^^^^^
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 806, in _poll
f.set_exception(e)
~~~~~~~~~~~~~~~^^^
File "D:\Program Files\python313\Lib\asyncio\windows_events.py", line 89, in set_exception
super().set_exception(exception)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
asyncio.exceptions.InvalidStateError: invalid state
[5/5] 等待服务启动...
[错误] 服务启动超时,请检查日志
'�证配置错误' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
【AI分享报告如下,也找不出具体原因和解决方法】:
[QwenPaw_启动失败_排查报告_2026-08-13.md](https://github.com/user-attachments/files/31003824/QwenPaw_._._2026-08-13.md)
コントリビューションガイド
調査の方向性
Start with qwenpaw/cli/app_cmd.py at line 155 and qwenpaw/app/_app.py around line 615, then reproduce the intermittent startup failure on Windows with Python 3.13. Trace the Uvicorn and asyncio errors through the reported startup timeout; done means the service starts successfully without the traceback or timeout.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend, cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100