Open MegaFace opened 1 week ago
could you record a video showing all the settings and reproducing the error?
https://github.com/user-attachments/assets/f0371090-9a8f-45a3-8044-82f4fe079b1c
could you record a video showing all the settings and reproducing the error?
try with this both commands
chmod +x run-applio.sh
./run-applio.sh
try with this both commands
chmod +x run-applio.sh ./run-applio.sh
doesn't work, I still get the same error
we can't reproduce your error (maybe due your os), can you try finding info about that error? It's strange and no more reports
From GPT:
A "Segmentation fault: 11" on a Mac typically indicates a crash caused by an invalid memory access, where a program tries to read or write to a part of memory that it shouldn't. This is often related to issues with the code, a bug in the application, or a problem with system resources.
Here are a few troubleshooting steps you can try:
Ensure that both macOS and the application you are running are up to date. Sometimes segmentation faults occur due to bugs that have been patched in later versions.
Open the Disk Utility and run "First Aid" on your main drive to check for and fix any file system errors.
Clearing out system cache or user caches might help. You can do this manually or with an app like CleanMyMac. Also, ensure you have enough free space on your drive.
Sometimes bad RAM can cause segmentation faults. You can run Apple's hardware diagnostics or a third-party tool like MemTest86.
If the error is occurring with a specific app, try reinstalling it to make sure no corrupt files are causing the issue.
Use the macOS Console app to look for crash reports or error logs associated with the application. The crash report may offer specific clues as to what's causing the issue.
If you're working with code (e.g., compiling), a segmentation fault could be due to a bug in the code, like:
I updated macOS to version 14.6.1, but that didn't help. I should mention that I am using Python version 3.9.19, does it matter? Which version should I use?
I will try to apply these troubleshooting steps
try with python 3.9.10
python 3.9.10 still the same problem but this time it also displays a crash log, attached below
python 3.9.10 still the same problem but this time it also displays a crash log, attached below
can you try doing infer without index?
it is not possible to install faiss-cpu version below 1.7.2 by pip or by conda it shows an error it may be because Macbook uses ARM64 arichtektruy
pip install: (.venv) (base) user@mbp-user ~ % pip install faiss-cpu==1.7.0 Collecting faiss-cpu==1.7.0 Using cached faiss-cpu-1.7.0.tar.gz (34 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: faiss-cpu Building wheel for faiss-cpu (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [77 lines of output] /Users/maciekzukowski/.venv/lib/python3.9/site-packages/setuptools/init.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
running build_ext
building 'faiss._swigfaiss' extension
swigging faiss/faiss/python/swigfaiss.i to faiss/faiss/python/swigfaiss_wrap.cpp
swig -python -c++ -Doverride= -I/usr/local/include -Ifaiss -o faiss/faiss/python/swigfaiss_wrap.cpp faiss/faiss/python/swigfaiss.i
faiss/faiss/python/swigfaiss.i:241: Error: Unable to find 'faiss/impl/platform_macros.h'
faiss/faiss/python/swigfaiss.i:245: Error: Unable to find 'faiss/utils/ordered_key_value.h'
faiss/faiss/python/swigfaiss.i:246: Error: Unable to find 'faiss/utils/Heap.h'
faiss/faiss/python/swigfaiss.i:251: Error: Unable to find 'faiss/utils/AlignedTable.h'
faiss/faiss/python/swigfaiss.i:252: Error: Unable to find 'faiss/utils/partitioning.h'
faiss/faiss/python/swigfaiss.i:253: Error: Unable to find 'faiss/utils/hamming.h'
faiss/faiss/python/swigfaiss.i:356: Error: Unable to find 'faiss/utils/utils.h'
faiss/faiss/python/swigfaiss.i:357: Error: Unable to find 'faiss/utils/distances.h'
faiss/faiss/python/swigfaiss.i:358: Error: Unable to find 'faiss/utils/random.h'
faiss/faiss/python/swigfaiss.i:360: Error: Unable to find 'faiss/MetricType.h'
faiss/faiss/python/swigfaiss.i:363: Error: Unable to find 'faiss/Index.h'
faiss/faiss/python/swigfaiss.i:364: Error: Unable to find 'faiss/Clustering.h'
faiss/faiss/python/swigfaiss.i:366: Error: Unable to find 'faiss/utils/extra_distances.h'
faiss/faiss/python/swigfaiss.i:370: Error: Unable to find 'faiss/impl/ProductQuantizer.h'
faiss/faiss/python/swigfaiss.i:372: Error: Unable to find 'faiss/VectorTransform.h'
faiss/faiss/python/swigfaiss.i:373: Error: Unable to find 'faiss/IndexPreTransform.h'
faiss/faiss/python/swigfaiss.i:374: Error: Unable to find 'faiss/IndexFlat.h'
faiss/faiss/python/swigfaiss.i:375: Error: Unable to find 'faiss/IndexRefine.h'
faiss/faiss/python/swigfaiss.i:376: Error: Unable to find 'faiss/IndexLSH.h'
faiss/faiss/python/swigfaiss.i:377: Error: Unable to find 'faiss/impl/PolysemousTraining.h'
faiss/faiss/python/swigfaiss.i:378: Error: Unable to find 'faiss/IndexPQ.h'
faiss/faiss/python/swigfaiss.i:379: Error: Unable to find 'faiss/impl/io.h'
faiss/faiss/python/swigfaiss.i:381: Error: Unable to find 'faiss/invlists/InvertedLists.h'
faiss/faiss/python/swigfaiss.i:382: Error: Unable to find 'faiss/invlists/InvertedListsIOHook.h'
faiss/faiss/python/swigfaiss.i:384: Error: Unable to find 'faiss/invlists/BlockInvertedLists.h'
faiss/faiss/python/swigfaiss.i:385: Error: Unable to find 'faiss/invlists/DirectMap.h'
faiss/faiss/python/swigfaiss.i:388: Error: Unable to find 'faiss/IndexIVF.h'
faiss/faiss/python/swigfaiss.i:393: Error: Unable to find 'faiss/IVFlib.h'
faiss/faiss/python/swigfaiss.i:394: Error: Unable to find 'faiss/impl/ScalarQuantizer.h'
faiss/faiss/python/swigfaiss.i:395: Error: Unable to find 'faiss/IndexScalarQuantizer.h'
faiss/faiss/python/swigfaiss.i:396: Error: Unable to find 'faiss/IndexIVFSpectralHash.h'
faiss/faiss/python/swigfaiss.i:397: Error: Unable to find 'faiss/impl/HNSW.h'
faiss/faiss/python/swigfaiss.i:398: Error: Unable to find 'faiss/IndexHNSW.h'
faiss/faiss/python/swigfaiss.i:399: Error: Unable to find 'faiss/IndexIVFFlat.h'
faiss/faiss/python/swigfaiss.i:404: Error: Unable to find 'faiss/invlists/OnDiskInvertedLists.h'
faiss/faiss/python/swigfaiss.i:407: Error: Unable to find 'faiss/impl/lattice_Zn.h'
faiss/faiss/python/swigfaiss.i:408: Error: Unable to find 'faiss/IndexLattice.h'
faiss/faiss/python/swigfaiss.i:411: Error: Unable to find 'faiss/IndexIVFPQ.h'
faiss/faiss/python/swigfaiss.i:412: Error: Unable to find 'faiss/IndexIVFPQR.h'
faiss/faiss/python/swigfaiss.i:413: Error: Unable to find 'faiss/Index2Layer.h'
faiss/faiss/python/swigfaiss.i:415: Error: Unable to find 'faiss/IndexPQFastScan.h'
faiss/faiss/python/swigfaiss.i:416: Error: Unable to find 'faiss/IndexIVFPQFastScan.h'
faiss/faiss/python/swigfaiss.i:417: Error: Unable to find 'faiss/utils/quantize_lut.h'
faiss/faiss/python/swigfaiss.i:419: Error: Unable to find 'faiss/IndexBinary.h'
faiss/faiss/python/swigfaiss.i:420: Error: Unable to find 'faiss/IndexBinaryFlat.h'
faiss/faiss/python/swigfaiss.i:421: Error: Unable to find 'faiss/IndexBinaryIVF.h'
faiss/faiss/python/swigfaiss.i:422: Error: Unable to find 'faiss/IndexBinaryFromFloat.h'
faiss/faiss/python/swigfaiss.i:423: Error: Unable to find 'faiss/IndexBinaryHNSW.h'
faiss/faiss/python/swigfaiss.i:424: Error: Unable to find 'faiss/IndexBinaryHash.h'
faiss/faiss/python/swigfaiss.i:426: Error: Unable to find 'faiss/impl/ThreadedIndex.h'
faiss/faiss/python/swigfaiss.i:430: Error: Unable to find 'faiss/IndexShards.h'
faiss/faiss/python/swigfaiss.i:434: Error: Unable to find 'faiss/IndexReplicas.h'
faiss/faiss/python/swigfaiss.i:438: Error: Unable to find 'faiss/MetaIndexes.h'
faiss/faiss/python/swigfaiss.i:453: Error: Unable to find 'faiss/impl/AuxIndexStructures.h'
faiss/faiss/python/swigfaiss.i:639: Error: Unable to find 'faiss/index_io.h'
faiss/faiss/python/swigfaiss.i:640: Error: Unable to find 'faiss/clone_index.h'
faiss/faiss/python/swigfaiss.i:644: Error: Unable to find 'faiss/AutoTune.h'
faiss/faiss/python/swigfaiss.i:645: Error: Unable to find 'faiss/index_factory.h'
faiss/faiss/python/swigfaiss.i:646: Error: Unable to find 'faiss/MatrixStats.h'
error: command '/opt/homebrew/bin/swig' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for faiss-cpu Running setup.py clean for faiss-cpu Failed to build faiss-cpu ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (faiss-cpu)
pip install use pep517:
(.venv) (base) user@mbp-user ~ % pip install faiss-cpu==1.7.0 --use-pep517
Collecting faiss-cpu==1.7.0 Using cached faiss-cpu-1.7.0.tar.gz (34 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: faiss-cpu Building wheel for faiss-cpu (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for faiss-cpu (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [67 lines of output] running bdist_wheel running build running build_py running build_ext building 'faiss._swigfaiss' extension swigging faiss/faiss/python/swigfaiss.i to faiss/faiss/python/swigfaiss_wrap.cpp swig -python -c++ -Doverride= -I/usr/local/include -Ifaiss -o faiss/faiss/python/swigfaiss_wrap.cpp faiss/faiss/python/swigfaiss.i faiss/faiss/python/swigfaiss.i:241: Error: Unable to find 'faiss/impl/platform_macros.h' faiss/faiss/python/swigfaiss.i:245: Error: Unable to find 'faiss/utils/ordered_key_value.h' faiss/faiss/python/swigfaiss.i:246: Error: Unable to find 'faiss/utils/Heap.h' faiss/faiss/python/swigfaiss.i:251: Error: Unable to find 'faiss/utils/AlignedTable.h' faiss/faiss/python/swigfaiss.i:252: Error: Unable to find 'faiss/utils/partitioning.h' faiss/faiss/python/swigfaiss.i:253: Error: Unable to find 'faiss/utils/hamming.h' faiss/faiss/python/swigfaiss.i:356: Error: Unable to find 'faiss/utils/utils.h' faiss/faiss/python/swigfaiss.i:357: Error: Unable to find 'faiss/utils/distances.h' faiss/faiss/python/swigfaiss.i:358: Error: Unable to find 'faiss/utils/random.h' faiss/faiss/python/swigfaiss.i:360: Error: Unable to find 'faiss/MetricType.h' faiss/faiss/python/swigfaiss.i:363: Error: Unable to find 'faiss/Index.h' faiss/faiss/python/swigfaiss.i:364: Error: Unable to find 'faiss/Clustering.h' faiss/faiss/python/swigfaiss.i:366: Error: Unable to find 'faiss/utils/extra_distances.h' faiss/faiss/python/swigfaiss.i:370: Error: Unable to find 'faiss/impl/ProductQuantizer.h' faiss/faiss/python/swigfaiss.i:372: Error: Unable to find 'faiss/VectorTransform.h' faiss/faiss/python/swigfaiss.i:373: Error: Unable to find 'faiss/IndexPreTransform.h' faiss/faiss/python/swigfaiss.i:374: Error: Unable to find 'faiss/IndexFlat.h' faiss/faiss/python/swigfaiss.i:375: Error: Unable to find 'faiss/IndexRefine.h' faiss/faiss/python/swigfaiss.i:376: Error: Unable to find 'faiss/IndexLSH.h' faiss/faiss/python/swigfaiss.i:377: Error: Unable to find 'faiss/impl/PolysemousTraining.h' faiss/faiss/python/swigfaiss.i:378: Error: Unable to find 'faiss/IndexPQ.h' faiss/faiss/python/swigfaiss.i:379: Error: Unable to find 'faiss/impl/io.h' faiss/faiss/python/swigfaiss.i:381: Error: Unable to find 'faiss/invlists/InvertedLists.h' faiss/faiss/python/swigfaiss.i:382: Error: Unable to find 'faiss/invlists/InvertedListsIOHook.h' faiss/faiss/python/swigfaiss.i:384: Error: Unable to find 'faiss/invlists/BlockInvertedLists.h' faiss/faiss/python/swigfaiss.i:385: Error: Unable to find 'faiss/invlists/DirectMap.h' faiss/faiss/python/swigfaiss.i:388: Error: Unable to find 'faiss/IndexIVF.h' faiss/faiss/python/swigfaiss.i:393: Error: Unable to find 'faiss/IVFlib.h' faiss/faiss/python/swigfaiss.i:394: Error: Unable to find 'faiss/impl/ScalarQuantizer.h' faiss/faiss/python/swigfaiss.i:395: Error: Unable to find 'faiss/IndexScalarQuantizer.h' faiss/faiss/python/swigfaiss.i:396: Error: Unable to find 'faiss/IndexIVFSpectralHash.h' faiss/faiss/python/swigfaiss.i:397: Error: Unable to find 'faiss/impl/HNSW.h' faiss/faiss/python/swigfaiss.i:398: Error: Unable to find 'faiss/IndexHNSW.h' faiss/faiss/python/swigfaiss.i:399: Error: Unable to find 'faiss/IndexIVFFlat.h' faiss/faiss/python/swigfaiss.i:404: Error: Unable to find 'faiss/invlists/OnDiskInvertedLists.h' faiss/faiss/python/swigfaiss.i:407: Error: Unable to find 'faiss/impl/lattice_Zn.h' faiss/faiss/python/swigfaiss.i:408: Error: Unable to find 'faiss/IndexLattice.h' faiss/faiss/python/swigfaiss.i:411: Error: Unable to find 'faiss/IndexIVFPQ.h' faiss/faiss/python/swigfaiss.i:412: Error: Unable to find 'faiss/IndexIVFPQR.h' faiss/faiss/python/swigfaiss.i:413: Error: Unable to find 'faiss/Index2Layer.h' faiss/faiss/python/swigfaiss.i:415: Error: Unable to find 'faiss/IndexPQFastScan.h' faiss/faiss/python/swigfaiss.i:416: Error: Unable to find 'faiss/IndexIVFPQFastScan.h' faiss/faiss/python/swigfaiss.i:417: Error: Unable to find 'faiss/utils/quantize_lut.h' faiss/faiss/python/swigfaiss.i:419: Error: Unable to find 'faiss/IndexBinary.h' faiss/faiss/python/swigfaiss.i:420: Error: Unable to find 'faiss/IndexBinaryFlat.h' faiss/faiss/python/swigfaiss.i:421: Error: Unable to find 'faiss/IndexBinaryIVF.h' faiss/faiss/python/swigfaiss.i:422: Error: Unable to find 'faiss/IndexBinaryFromFloat.h' faiss/faiss/python/swigfaiss.i:423: Error: Unable to find 'faiss/IndexBinaryHNSW.h' faiss/faiss/python/swigfaiss.i:424: Error: Unable to find 'faiss/IndexBinaryHash.h' faiss/faiss/python/swigfaiss.i:426: Error: Unable to find 'faiss/impl/ThreadedIndex.h' faiss/faiss/python/swigfaiss.i:430: Error: Unable to find 'faiss/IndexShards.h' faiss/faiss/python/swigfaiss.i:434: Error: Unable to find 'faiss/IndexReplicas.h' faiss/faiss/python/swigfaiss.i:438: Error: Unable to find 'faiss/MetaIndexes.h' faiss/faiss/python/swigfaiss.i:453: Error: Unable to find 'faiss/impl/AuxIndexStructures.h' faiss/faiss/python/swigfaiss.i:639: Error: Unable to find 'faiss/index_io.h' faiss/faiss/python/swigfaiss.i:640: Error: Unable to find 'faiss/clone_index.h' faiss/faiss/python/swigfaiss.i:644: Error: Unable to find 'faiss/AutoTune.h' faiss/faiss/python/swigfaiss.i:645: Error: Unable to find 'faiss/index_factory.h' faiss/faiss/python/swigfaiss.i:646: Error: Unable to find 'faiss/MatrixStats.h' error: command '/opt/homebrew/bin/swig' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for faiss-cpu Failed to build faiss-cpu ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (faiss-cpu)
conda install:
(.venv) (base) user@user ~ % conda install faiss-cpu==1.7.0
Retrieving notices: ...working... done
Channels:
PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
To search for alternate channels that may provide the conda package you're looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
faiss-cpu 1.7.0 is not supported [((https://github.com/deepset-ai/haystack/issues/4003))]
well so there’s nothing we can do in this case, try to get support from faiss
Project Version
3.2.5
Platform and OS Version
MacOS 14.3.1
Affected Devices
Macbook M1 pro, on VM windows 10 ARM works normal
Existing Issues
No response
What happened?
On the VM Windows 10 ARM everything works fine, but on the MacBook an error pops up, I tried to add a short audio but it didn't help, after 10 seconds it gives me an error in the terminal. I have 16 GB of RAM if it matters.
Steps to reproduce
Expected behavior
that I will get an audio file
Attachments
Converting audio 'assets/audios/ttsMP3.com_VoiceText_2024-9-12_21-35-31.wav'... /Users//run-applio.sh: line 9: 1974 Segmentation fault: 11 python app.py --open
Screenshots or Videos
No response
Additional Information
No response