microsoft / graphrag

A modular graph-based Retrieval-Augmented Generation (RAG) system
https://microsoft.github.io/graphrag/
MIT License
19.95k stars 1.95k forks source link

[Bug]: Segmentation fault (core dumped) #456

Open sparkyqin opened 4 months ago

sparkyqin commented 4 months ago

Describe the bug

When I referred to the guidebook for operation, I encountered the following error. Segmentation fault (core dumped)

Steps to reproduce

  1. pip install graphrag
  2. mkdir -p ./ragtest/input
  3. curl https://www.gutenberg.org/cache/epub/24022/pg24022.txt > ./ragtest/input/book.txt
  4. python -m graphrag.index --init --root ./ragtest

Expected Behavior

create two files: .env and settings.yaml in the ./ragtest directory.

GraphRAG Config Used

before configuration generated

Logs and screenshots

image

Additional Information

zhouxiangling commented 4 months ago

Are you running in a virtual machine? I started testing in a virtual machine in virtualBox, and I encountered this situation. After switching to a host, it worked. I ran it in Docker on the host, and the same Docker failed in the virtualBox virtual machine

zmh2000829 commented 4 months ago

same error :eulerosv2r10.aarch64

sujith-rkumar commented 4 months ago

facing same issue

AlonsoGuevara commented 4 months ago

Can you please add details about your hosting machine, and graphrag config?

sujith-rkumar commented 4 months ago

Can you please add details about your hosting machine, and graphrag config?

Tried on Ubuntu 18.04. Tried the basic 3 steps in the tutorial (https://microsoft.github.io/graphrag/posts/get_started/) . pip install graphrag mkdir -p ./ragtest/input curl https://www.gutenberg.org/cache/epub/24022/pg24022.txt > ./ragtest/input/book.txt python -m graphrag.index --init --root ./ragtest

This resulted in Segmentation Error. No other error details. Tried with Python 3.10, 3.11, 3.12. Nothing worked.

Update: I checked on Ubuntu 20.04 and it worked. The issue is on Ubuntu 18.04.

dhruv-fxis commented 4 months ago

Same Issue encountered

with system Ubuntu 22.04. No GPU s Only using CPU with 8 GB memory.

Python version: 3.11

renzhangzhe commented 3 months ago

怎么解决呢

tonisi commented 3 months ago

I have the same issue. Ubuntu 22.04

hit-ybai commented 3 months ago

+1