-
Notifications
You must be signed in to change notification settings - Fork 6
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
Crashes on some windows machines when inserting #27
Comments
Do you mind providing more info on how it crashes? Besides, which version are you using? |
@1yefuwang1 Thank you for your reply.
Vectorlite version: vectorlite extension version 0.2.0, built with SSE. I don't know much about SQLite logging. Perhaps you could guide me in gathering more information about this crush. |
To help me troubleshoot, do you mind to
|
|
It's kind of weird that your script just silently exits without reporting any errors. @l0o0 Are you sure that your print statement was saved before running? What happens if you execute your sql commands in a sqlite3 CLI shell? |
@l0o0 Which sqlite/sqlalchemy version are you using? |
I encountered the same issue. I'm running the vectorlite\examples\quickstart.py sample, and I'm also getting an exception during the insert operation. Here are the logs I added before and after the insert: import faulthandler
print("insert starting")
faulthandler.enable()
cursor.executemany('insert into my_table(rowid, my_embedding) values (?, ?)', [(i, data[i].tobytes()) for i in range(NUM_ELEMENTS)])
print("insert done") System Details: |
Thank you @fukuro031 for reporting. It can be confirmed that it is a memory violation. And both of you are using python3.12. Do you mind sharing what CPU you are using and whether you can reproduce it on other systems like WSL/Linux if it is convenient for you. I can't reproduce it with my PC (Win11, python3.10.11, apsw 3.46.1.0) |
@1yefuwang1 My current CPU is an Intel(R) Core(TM) i7-10850H. I also tested on another WIN10 system with a 12th Gen Intel(R) Core(TM) i7-1270P, where the application runs successfully. |
@fukuro031 Thank you for the info. |
Hi, I encountered a crush when I tried to insert a row. I was following the example code. Below is my python code.
Meanwhile, I downloaded Sqlite3 and tested the demo code in PowerShell. It crushed after this insert statement.
Is there anything else I can provide to help you resolve this issue?
The text was updated successfully, but these errors were encountered: