Skip to content

BUG: IndexError: [address=127.0.0.1:56006, pid=22364] list index out of range #778

@zhanland

Description

@zhanland

import xorbits.numpy as xnp
import numpy as np
a2 = np.arange(15).reshape(3, 5)
print(a2)
a3 = xnp.arange(15).reshape(3, 5)
print(a3)

Python 3.11.9 | packaged by Anaconda, Inc. | (main, Apr 19 2024, 16:40:41) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.25.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 8.25.0
Python 3.11.9 | packaged by Anaconda, Inc. | (main, Apr 19 2024, 16:40:41) [MSC v.1916 64 bit (AMD64)] on win32
runfile('D:\project\pyproject\scientific\main.py', wdir='D:\project\pyproject\scientific')
[[ 0 1 2 3 4]
[ 5 6 7 8 9]
[10 11 12 13 14]]
C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\session.py:1953: UserWarning: No existing session found, creating a new local session now.
warnings.warn(warning_msg)
Traceback (most recent call last):
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('D:\project\pyproject\scientific\main.py', wdir='D:\project\pyproject\scientific')
File "D:\Program Files\JetBrains\PyCharm 2024.1\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\JetBrains\PyCharm 2024.1\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\project\pyproject\scientific\main.py", line 7, in
print(a3)
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits\utils.py", line 38, in inn
return f(self, args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits\core\data.py", line 299, in str
run(self)
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits\core\execution.py", line 55, in run
mars_execute(mars_tileables, kwargs)
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\session.py", line 1787, in execute
session = get_default_or_create(
(new_session_kwargs or dict()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\session.py", line 1954, in get_default_or_create
session = new_session("127.0.0.1", init_local=True, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\session.py", line 1924, in new_session
session = SyncSession.init(
^^^^^^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\session.py", line 1550, in init
isolated_session = fut.result()
^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\concurrent\futures_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\concurrent\futures_base.py", line 401, in __get_result
raise self._exception
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\session.py", line 775, in init
await new_cluster_in_isolation(
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\local.py", line 101, in new_cluster_in_isolation
await cluster.start()
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\local.py", line 346, in start
await self._start_service()
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\local.py", line 407, in _start_service
await start_worker(
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\deploy\oscar\service.py", line 89, in start_worker
await start_services(
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\services\core.py", line 175, in start_services
await asyncio.gather(
[inst.start() for inst in instances])
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\services\storage\worker\service.py", line 67, in start
await mo.create_actor(
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xoscar\api.py", line 78, in create_actor
return await ctx.create_actor(actor_cls, *args, uid=uid, address=address, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xoscar\backends\context.py", line 143, in create_actor
return self._process_result_message(result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xoscar\backends\context.py", line 102, in _process_result_message
raise message.as_instanceof_cause()
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xoscar\backends\pool.py", line 598, in create_actor
await self._run_coro(message.message_id, actor.post_create())
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xoscar\backends\pool.py", line 370, in _run_coro
return await coro
^^^^^^^^^^
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\services\storage\core.py", line 430, in post_create
await self._handle_post_create()
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\services\storage\core.py", line 444, in _handle_post_create
await self._setup_storage_backends()
File "C:\Users\zhu\anaconda3\envs\l_nlp119\Lib\site-packages\xorbits_mars\services\storage\core.py", line 487, in _setup_storage_backends
size = cuda_infos[index].fb_mem_info.available
~~~~~~~~~~^^^^^^^
IndexError: [address=127.0.0.1:56006, pid=22364] list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggpu

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions