Comments (5)
I can reproduce this on Ubuntu 22.04 locally. It seems to cause a Segmentation fault
. I will look into it.
from kuzu.
@prrao87 the use case is to run kuzu on the "server side", assume closing the connection is one way to reuse resources especially there are "close API" for both Connection and Database
from kuzu.
I think the issue is related to the query result deletion. QueryResult is stored in a factorizedTable whose memory is managed by the bufferManager(database component). If we destroy the database before deleting the query result,
Segmentation fault.
occurs when python deletes the queryResult. The simplest work around is to always delete queryResults before deleting conneciton and database. simply adddel ret
before theconn.close() db.close()
call
@min-mwei, we also have a QueryResult.close()
method: https://kuzudb.com/api-docs/python/kuzu.html#QueryResult.close
Calling ret.close()
before closing the connection and database should fix it. It is a bit safer than deleting ret
.
from kuzu.
@min-mwei I've seen this same issue come up elsewhere too - may I know the use case for closing the connection explicitly as you did here? The current approach in the Python client is to follow DuckDB's approach, where explicitly closing the connection is not necessary.
from kuzu.
I think the issue is related to the query result deletion.
QueryResult is stored in a factorizedTable whose memory is managed by the bufferManager(database component).
If we destroy the database before deleting the query result, Segmentation fault.
occurs when python deletes the queryResult.
The simplest work around is to always delete queryResults before deleting conneciton and database.
simply add del ret
before the
conn.close()
db.close()
call
from kuzu.
Related Issues (20)
- Feature: ART Index to allow users to specify added indexes and constraints
- Feature: Full text search index
- Feature: Inbuilt vector index
- Refactor: rework `StorageDriver` to go through regular lookups from node table
- Rust crate compile times on macOS arm64 are incredibly slow HOT 10
- Bug: `MATCH` path with recursive relation returns nodes/rels in wrong order HOT 3
- Bug: Using explain for export database ran the query HOT 3
- Performance Bug: Scan rel is slow when bound node offsets are random
- Bug: [Recursive relationship] Error: Runtime exception: Internal ID of relationship is not scanned. This should not happen.
- Remove unnecessary functions from base_graph_test.h
- Functions for recursive relationships is not documented
- Feature: Support nested datatype in UDF HOT 1
- Bug: electron app on windows, as soon as I include kuzu into main process, I get the following error and the app crashes. HOT 1
- Bug: [Python API] Prepared statement `dict` value should be interpreted as `STRUCT`, not `MAP` HOT 1
- Shell not highlighting SHORTEST keyword
- Better error message in Testing Framework when a wrong statement is given
- Documentation for size function for lists
- Asking for a < 256KB memory block gives 256KB block
- Bug: Unable to submit long queries through CLI
- Bug: LOAD FROM queries in demo_db/demo_db.test fail with "Load from multiple files is not supported"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kuzu.