wbolster / plyvel

Plyvel, a fast and feature-rich Python interface to LevelDB
https://plyvel.readthedocs.io/
Other
530 stars 75 forks source link

python3.11 crashes on windows10 #163

Open Kawasaki5963 opened 2 weeks ago

Kawasaki5963 commented 2 weeks ago

Hello I am using plyvel-ci1.5.1 with python3.11 on windows10. When I run the following code, python crashes the second time.

import plyvel
import random

db = plyvel.DB(r"<PATH>", create_if_missing=True)

with db.write_batch() as wb:
    for i in range(100000):
        k = v = random.randbytes(4)
        wb.put(k, v)

db.close()

However, if I disable Snappy compression, it runs normally.

import plyvel
import random

db = plyvel.DB(r"<PATH>", create_if_missing=True, compression=None) # <--

with db.write_batch() as wb:
    for i in range(100000):
        k = v = random.randbytes(4)
        wb.put(k, v)

db.close()

Thank you.