-
Notifications
You must be signed in to change notification settings - Fork 5
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
Segmentation fault #5
Comments
FYI, PlantingSpace has put a $500 bounty on resolving of this issue: https://gitlab.com/plantingspace/tasks/-/issues/12 |
Hi! I thought it would be a fun project for the weekend (and maybe profitable!) to try solving this issue and also learn some Julia (familiar with neo4j, python). I tried running the code from Then started a Neo4J container, and tried the following code: using Neo4jBolt
driver = Neo4jBoltDriver("bolt://localhost:7687", auth=("neo4j", "s3cr3t"))
for i in range(0, length=1000)
session(driver) do sess
result = run(sess, "UNWIND(RANGE(1, 10)) AS z RETURN z")
for record in result
println(record["z"])
end
end It took a couple minutes (creating new sessions is probably taking a toll) worked fine. Tried then using transactions with the same session. using Neo4jBolt
driver = Neo4jBoltDriver("bolt://localhost:7687", auth=("neo4j", "s3cr3t"))
session(driver) do sess
begin_transaction(sess) do tx
for i in range(0, length=1000)
result = run(sess, "UNWIND(RANGE(1, 10)) AS z RETURN z")
for record in result
println(record["z"])
end
end
end
end No segmentation fault. Maybe it needs to be executed in parallel? |
Hey, thanks for having a look and sorry you were not able to reproduce. Yes, it was likely happening for parallelized code. Will test with newer version of Julia and see if it can be reproduced and under what conditions. |
Thanks @keorn . In case that happens, my env: kinow@ranma:~$ julia -v
julia version 1.4.1
kinow@ranma:~$ uname -a
Linux ranma 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Used Docker + Neo4J, with JVM 11 (openJDK) and Neo4j 4.3.6. Thanks! |
Thank you @kinow for working on this. Sorry I have not dedicated any time to this repository in a while. |
Not a problem @virtualgraham, and thanks for creating & sharing the code :-) . If you have some spare time later to review #8. I'm using that branch to use Neo4jBolt with Neo4j 4.3. |
Actually I realised why I could not use this package before. I intermittently get segmentation fault:
Seems like it happens when writing to socket at
src/julia_bolt/JuliaBolt.jl:417
The text was updated successfully, but these errors were encountered: