-
Notifications
You must be signed in to change notification settings - Fork 105
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
Bug: Releasing physical memory associated with a frame failed with error code -1: Invalid argument #4718
Comments
Here is a smaller example (.venv) someuser@rasp03:~/Downloads $ rm -rf test
(.venv) someuser@rasp03:~/Downloads $ ./kuzu test
Opening the database at path: test in read-write mode.
Enter ":help" for usage hints.
kuzu> CREATE NODE TABLE User(name STRING, age INT64, PRIMARY KEY (name));
┌──────────────────────────────┐
│ result │
│ STRING │
├──────────────────────────────┤
│ Table User has been created. │
└──────────────────────────────┘
(1 tuple)
(1 column)
Time: 1.74ms (compiling), 4.91ms (executing)
kuzu> CREATE (u:User {name: 'Alice', age: 35});
(0 tuples)
(0 columns)
Time: 1.46ms (compiling), 2.10ms (executing)
kuzu> MATCH (a) RETURN *;
┌────────────────────────────────────────────────┐
│ a │
│ NODE │
├────────────────────────────────────────────────┤
│ {_ID: 0:0, _LABEL: User, name: Alice, age: 35} │
└────────────────────────────────────────────────┘
(1 tuple)
(1 column)
Time: 9.50ms (compiling), 1.15ms (executing)
kuzu>
(.venv) someuser@rasp03:~/Downloads $ ./kuzu test
Opening the database at path: test in read-write mode.
Enter ":help" for usage hints.
kuzu> MATCH (a) RETURN *;
┌────────────────────────────────────────────────┐
│ a │
│ NODE │
├────────────────────────────────────────────────┤
│ {_ID: 0:0, _LABEL: User, name: Alice, age: 35} │
└────────────────────────────────────────────────┘
(1 tuple)
(1 column)
Time: 0.23ms (compiling), 1.59ms (executing)
kuzu>
(.venv) someuser@rasp03:~/Downloads $ ./kuzu test
Opening the database at path: test in read-write mode.
Enter ":help" for usage hints.
kuzu> COPY User FROM "user.csv";
Error: Buffer manager exception: Releasing physical memory associated with a frame failed with error code -1: Invalid argument.
kuzu> This shows I can insert data, restart kuzu and load the data back. But when copying from CSV it fails with the exception. |
I tested kuzu 0.7.0 and I get a different exception:
|
Hi @ubmarco, thanks for reporting this! I tried to reproduce on our arm64-based MacOS and linux debian machines, but with no luck to reproduce the exception. It might be something more specific to Raspberry Pi, we need some time to figure out a runtime environment for that. We don't have a Raspberry Pi on hand in the team 😂 |
Hi @ray6080, thanks for the quick feedback. Did you test natively (aarch64-darwin) or inside a Linux Docker container (aarch64-linux)?
Raspberry Pi 5:
Here's a bigger comparison: https://gadgetversus.com/processor/broadcom-bcm2711-vs-broadcom-bcm2712/ Let me know whether and how I can provide further debug information. |
I just set up a ubuntu24.04-aarch64 VM on QEMU/KVM with
|
Hi @ubmarco, I tested on an Oracle Cloud Ampere A1 instance (quad core ARM 64-bit and 24GB RAM). I ran the script both on the machine directly with Oracle Linux 9 and in a Docker container with Debian 12. In both setup the script successfully runs to the end. Edit: Sorry I did not mean to close the issue. Clicked on the wrong button 😅. |
I suppose the issue might have something to do with non-standard parameters in the kernel configuration. Would it be possible for you to test with a different OS image on your Pi 5? |
Sure, let me test this tomorrow when I'm back at the machines. The 2 Raspberries both run Raspberry Pi OS, but on the Pi 4 I installed Raspberry Pi OS Lite and then Xfce manually. On the Pi 5 I installed Raspberry Pi OS with desktop which runs PIXEL, an adapted LXDE. |
I installed Raspberry Pi OS Lite on the Pi 5 without any desktop environment and see the same error.
|
Now I installed Ubuntu Server 24.01.1 LTS without any desktop environment and the bug does not appear on the Raspberry Pi 5.
Kernel version is different: |
Interesting. We may need to do some experiment to see which configuration can cause this so we can reproduce the issue. |
Another interesting fact. I installed the same Raspberry Pi Lite OS on the Pi 4 as on the Pi 5. Without desktop environment.
Kernel has the same version now, but for a different architecture: Sorted kernel parameter compare between Pi 4 and Pi 5 As I could not reproduce the issue on the Pi 4 and we are dealing with the same kernel version, either the different ARM Cortex core makes the difference, the kernel build or the kernel parameters. Another idea what to test next? I only have on Pi 5 and would install Ubuntu Server to actually use it. Just for my information, what is the error |
I think this error in general is due to a failure of |
Yeah, just saw I was looking at the Windows lines. Will stop debugging the code :) |
Kùzu version
v0.7.1
What operating system are you using?
Raspberry Pi 5 arm64, Debian 12 (bookworm)
What happened?
When executing the Python client example script
I get
Packages installed
The error appears for both Python 3.11 and 3.12.
The error also appears with the kuzu CLI when doing
COPY User FROM "user.csv"
.Creating the tables worked.
Are there known steps to reproduce?
No response
The text was updated successfully, but these errors were encountered: