-
Notifications
You must be signed in to change notification settings - Fork 37
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
neoxp hangs forever when executing the batch command #455
Comments
We highly appreciate the good work put so far in neo-express. However, we rely on this software and need to address this soon. 🙏 |
Will check right away |
Wasnt able to reproduceCan you try the Also this is unofficial image, I created that you can build off of (ref: neo-project/neo#3355 )
Also there is versioning issue with |
so... let me give you a bit more context: I install the neo-express with the following command:
|
Ok, @chenzhitong @cschuchardt88, here are the steps to reproduce:
docker run -it \
-v $(pwd)/default.neo-express:/neoxp/default.neo-express \
-v $(pwd)/setup.batch:/neoxp/setup.batch \
-w /neoxp \
ubuntu:noble \
bash
apt-get update -y && apt-get install wget
wget https://github.com/neo-project/neo-express/releases/download/3.7.3/Neo.Express-linux-x64-3.7.3.tar.gz
tar -xvzf Neo.Express-linux-x64-3.7.3.tar.gz
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
./neoxp batch -i default -r setup.batch 👉 Please, let me know if you could make the batch process hang forever. 😸 |
Also, I tried the following: I just took |
@gsmachado, I am struggling with this for almost 1 month! |
This bug is blocking neow3j from releasing a Neo-3.7.x-compatible version. Additionally, by blocking neow3j from releasing a Neo-3.7.x-compatible version, it's also blocking a desired feature ( |
@mialbu @gsmachado |
I can confirm that the fix works! Not hanging anymore. Great work, team! @cschuchardt88 @chenzhitong @Jim8y |
credit goes to @cschuchardt88 , he such a productive and senior developer. |
Hey @cschuchardt88, can you give me an ETA for a release with this fix? Do you think it's possible to publish a new release early next week? |
@mialbu Release of express can be done at the communities convenience. Will have a new version ASAP, expect next 2 days. |
Describe the bug
When I execute
neoxp batch -i default -r setup.batch
the process simply hangs forever or it outputs an ugly error (Segmentation fault (core dumped)
)Example of a
![image](https://private-user-images.githubusercontent.com/2124276/348856537-275acb6e-f9c3-424b-a96c-010e142916c8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTcwODcsIm5iZiI6MTczOTQxNjc4NywicGF0aCI6Ii8yMTI0Mjc2LzM0ODg1NjUzNy0yNzVhY2I2ZS1mOWMzLTQyNGItYTk2Yy0wMTBlMTQyOTE2YzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDMxOTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTI2ZDdhODhlOTRhZTQ3NzVmMTVlZmE0NzlhMjQ0ZTFmYjk1NDE2ZDBjNjVjZDI5YzhiOGRkZjFlNzRmMjgxYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.J-JHuDwoLlTOU5wmEz7Ty-i-vXkJIDbwIRt_mVeymso)
Segmentation fault
:Below you can find the case that most frequently happens: the neoxp batch command just hangs, forever. Never returns.
![image](https://private-user-images.githubusercontent.com/2124276/348856954-f29d669b-102d-48cd-a3c5-7ccc90c51360.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTcwODcsIm5iZiI6MTczOTQxNjc4NywicGF0aCI6Ii8yMTI0Mjc2LzM0ODg1Njk1NC1mMjlkNjY5Yi0xMDJkLTQ4Y2QtYTNjNS03Y2NjOTBjNTEzNjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDMxOTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGFmOWRhOTUzZTNjZWJmZjA1ZGZlYjc4MjljNjUxM2RhMGM2NDUwYzcwNjgzYzQ4YjY3YTA0NzI4NTcxODhhNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.aMWGATd5lic-e3dxH4a8NayHPAjli5n9x5ig9AdpfJ8)
Sometimes, if the
neoxp batch
successfully completes, then, it simply outputs the following error when I start with the commandneoxp run -i default
:RocksDbSharp.RocksDbException: Corruption: bad WriteBatch Put
.To Reproduce
I can't reproduce the problem 100% of the time, since it might be a timing issue, race condition, or maybe rocksdb handlers are not properly closed. I'm not sure, but it certainly needs some investigation.
HOWEVER, I can provide you with a
setup.batch
anddefault.neo-express
files that most likely can reproduce the problem:Please use the following files:
setup.batch
default.neo-express
Place them in a directory and then, within the same dir, run:
$ neoxp batch -i default -r setup.batch
Try to execute this command a couple of times in sequence.
Expected behavior
The
neoxp batch
command should successfully complete, 100% of the time.Info about platform
Additional context
The text was updated successfully, but these errors were encountered: