Skip to content
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

OSError: exception: access violation writing 0x0000000000000000 #4912

Closed
beast331 opened this issue Dec 27, 2021 · 6 comments
Closed

OSError: exception: access violation writing 0x0000000000000000 #4912

beast331 opened this issue Dec 27, 2021 · 6 comments
Labels

Comments

@beast331
Copy link

Description

I have a large training dataset (44 million rows, 9 columns). When I pass it into LightGBM and run the fit method, it throws this error.
The code I used is below. It's very short and fairly simple.

Reproducible example

import lightgbm as lbm
model = lbm.LGBMClassifier(learning_rate=0.2,max_depth=-5,random_state=42)
model.fit(X, y, verbose=1)

Environment info

Running a Windows 10 with 8GB ram. Using Anaconda and Jupyter notebook.

LightGBM version or commit hash:
LightGBM version 3.3.1

Command(s) you used to install LightGBM - I used a couple of different commands to try and fix the issue. All install commands were run through Jupyter notebook

!{sys.executable} -m pip install lightgbm
pip install --no-binary :all: lightgbm
@shiyu1994
Copy link
Collaborator

@beast331 Thanks for using LightGBM. Is it possible to share the data with us, so that we can reproduce the error?

@beast331
Copy link
Author

@beast331 Thanks for using LightGBM. Is it possible to share the data with us, so that we can reproduce the error?

Hi thanks for the quick reply! Is there somehow I can upload the CSV file here?

Also, I decided to try the "train" function instead of "fit" and it seems to be working. What is the difference?

@shiyu1994
Copy link
Collaborator

Not sure whether GitHub has a limitation of the attached file size. You may send that to my email shiyu_k1994@qq.com as well. Thanks!

@jameslamb jameslamb added the bug label Dec 28, 2021
@jameslamb
Copy link
Collaborator

@beast331 , thanks for the report and for using LightGBM!

If you start a new Python session and run this code again, do you get the same error? We have seen similar errors very rarely in our tests and it's often resolved by just starting a new Python session.

for reference:

@no-response
Copy link

no-response bot commented Jan 27, 2022

This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. Thank you for taking the time to improve LightGBM!

@no-response no-response bot closed this as completed Jan 27, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants