-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
C:\arrow\cpp\src\arrow\filesystem\s3fs.cc:2598: arrow::fs::FinalizeS3 was not called even though S3 was initialized. This could lead to a segmentation fault at exit #35771
Comments
@Aricept094 thanks for the issue. Can you provide a full repro script? The current script does not include the imports, and also not the data (e.g. On a side now, it doesn't look like you're doing any data uploading or processing within Ray, so it might be related to the way that you do data loading. For instance, if you use pyarrow to read a CSV into X_train. Here it might be a good idea to eitehr move the data loading into the trainable, or to use |
thank you for getting back to me I am relatively new to coding, and most of the code was done using GPT-4, so I apologize in advance for any obvious issues. |
There are two main things I'd suggest to improve in your code. First, you are using optuna within the trainable and as a searcher. That will probably not work well. If you're using Ray Tune, you can use the Optuna-provided search engine (e.g. Tree-parzen estimators), but you won't use the optuna interface. Here is a tutorial that will teach you how to use it: https://docs.ray.io/en/latest/tune/examples/optuna_example.html As a TLDR, if you're using Ray Tune, you should use the OptunaSearcher, but not use the optuna-specific APIs, e.g. Second, the problem you're experiencing likely comes up because you are loading the data outside the training function, and it's implicilty captured in the scope. This can lead to problems with stateful dataloaders, tensors etc. I would suggest you move this code block into a separate function that you call either in the You should also consider using tune.with_parameters to pass This may already resolve the problem you're experiencing. Maybe you can try updating your code and let us know? I'm also happy to take another look when you made the update. |
wow , thanks a lot . i will do my best . |
I'll close this for now, please feel free to re-open if the problem still comes up! |
I have the identical problem with PyArrow and am not running Ray-Project. |
What happened + What you expected to happen
my trials are keep getting terminated and my models score zero with this error : C:\arrow\cpp\src\arrow\filesystem\s3fs.cc:2598: arrow::fs::FinalizeS3 was not called even though S3 was initialized. This could lead to a segmentation fault at exit.
i would appreciate some help . i use ray 2.4.0 and conda for windows
Versions / Dependencies
Reproduction script
Issue Severity
None
The text was updated successfully, but these errors were encountered: