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

Segmentation fault: 11 on M1 Mac #100

Open
hyperknot opened this issue Mar 25, 2024 · 5 comments
Open

Segmentation fault: 11 on M1 Mac #100

hyperknot opened this issue Mar 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@hyperknot
Copy link

Describe the bug
When importing the library, it terminates the whole python process with Segmentation fault: 11.

To Reproduce
Describe the steps to reproduce the behavior:

import faiss  # noqa
from sentence_transformers import SentenceTransformer

model = SentenceTransformer('all-MiniLM-L6-v2')
model.encode(['a'])

Expected behavior
Should not terminate the app. faiss is not even used!

Desktop (please complete the following information):

  • OS: macOS
  • Architecture: M1
  • Python: 3.11
  • Version: faiss-cpu==1.8.0
@hyperknot hyperknot added the bug Something isn't working label Mar 25, 2024
@kyamagu
Copy link
Owner

kyamagu commented Mar 25, 2024

Please attach a log
Likely a known issue #73

@hyperknot
Copy link
Author

How can I attach a log? There is no exception, no output, just this one line

Segmentation fault: 11

@kyamagu
Copy link
Owner

kyamagu commented Mar 26, 2024

You would need to use a debugger like lldb to identify what is causing segfault

@giantss
Copy link

giantss commented Oct 15, 2024

@kyamagu I also encountered the same problem, is it solved?

@anton-dergunov
Copy link

I have the exact same issue, but with faiss-cpu==1.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants