Open Liquidmasl opened 2 weeks ago
Doest seam to be exactlly it, all the objects have their own unique object id as they should. but something still isnt right.
in worker.py:785
the object id is fetched (cant debug deeper) with the owner adress being Null
one step up in worker.put()
ray gets the global_worker
so maybe thats wrong somehow...??
Hi @Liquidmasl, try to call reload_modin()
method in between ray.shutdown()
and ray.init()
. This works for me.
import ray
import modin.pandas as pd
from modin.utils import reload_modin
ray.init()
df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
df.min()
ray.shutdown()
reload_modin()
ray.init()
df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
df.min()
Hi @Liquidmasl, try to call
reload_modin()
method in betweenray.shutdown()
andray.init()
. This works for me.
Wow I did not find this anywhere. When googling now I also just find this thread and https://github.com/modin-project/modin/releases?q=reload_modin&expanded=true haha
Will try right now
call
reload_modin()
method in betweenray.shutdown()
andray.init()
yes this seams to work, but it also seams to break @mutlimethod
s which is a bummer...
Apparently multimethod is not as extensively used as i thought
Modin version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest released version of Modin.
[ ] I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)
Reproducible Example
Issue Description
This code will lead to
It seams to method is initialised as actor in the first ray session, and is not remade on the second call.
When I do NOT reinitialize ray in between, RAM slowly fills up until the process dies. Something is leaking, or some references to ray objects are never dropped. So this is the only solution I found. Sadly it leads to this issue.
This is not isolated to .min() but to all of the methods (?)
Expected Behavior
the error should not appear. Modin should recreate nescessary actors in a new ray session
Error Logs
Installed Versions