Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

StringError("failed to fill whole buffer") #25

Open
sidaudhi opened this issue Apr 22, 2019 · 4 comments
Open

StringError("failed to fill whole buffer") #25

sidaudhi opened this issue Apr 22, 2019 · 4 comments

Comments

@sidaudhi
Copy link

I am running Kaleidoscope module with Bitcoind -regtest and local RGB Bifrost Server.

I issued an asset and i could see the proof generated in the filesystem.
After I confirm the transaction using bitcoin-cli generate. I tried to view listunspent, i get this error:

StringError("failed to fill whole buffer")

And the error is emanating from:

let decoded: Proof = deserialize(&mut buffer).unwrap();

And I see the proof file looks something like this:

image

Any idea on how I could potentially debug or look to resolve it?

Platform: Windows

@isghe
Copy link
Contributor

isghe commented Apr 22, 2019

Can you please attach the file? thanks

@sidaudhi
Copy link
Author

2b08dd07240994a67ec5e2477dc6fdbc89f16b1c80ddaeda57bee85318dbd044.zip
Here it is. Zipped for Github.

@isghe
Copy link
Contributor

isghe commented Apr 22, 2019

do you remember the name you gave to the asset?

@isghe
Copy link
Contributor

isghe commented Apr 22, 2019

Just added in the PR #26 the command deserialize that can help, to understand where the file containing the proof is corrupted.

And with one of my file:

$ ./target/debug/kaleidoscope deserialize ../../../../.rgb/data/813462cf4d7c055023ee683ce65e0211aafd3f58498a89da8872c89e157da1c5\:1/4d9ce2e0fa355088a19f23a92f3ca7caa98012a3d6f553e72641288117f8dd45
Deserializing proof at ../../../../.rgb/data/813462cf4d7c055023ee683ce65e0211aafd3f58498a89da8872c89e157da1c5:1/4d9ce2e0fa355088a19f23a92f3ca7caa98012a3d6f553e72641288117f8dd45
Proof at ../../../../.rgb/data/813462cf4d7c055023ee683ce65e0211aafd3f58498a89da8872c89e157da1c5:1/4d9ce2e0fa355088a19f23a92f3ca7caa98012a3d6f553e72641288117f8dd45 deserialized succesfully

but with your file:

$ ./target/debug/kaleidoscope deserialize ../issue/issue-75/2b08dd07240994a67ec5e2477dc6fdbc89f16b1c80ddaeda57bee85318dbd044
Deserializing proof at ../issue/issue-75/2b08dd07240994a67ec5e2477dc6fdbc89f16b1c80ddaeda57bee85318dbd044
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: UnknownNetworkMagic(537419229)', src/libcore/result.rs:997:5

I don't have a Windows platform to make test right now, can you please reset your .rgb folder and try to issue another asset, to understand if the problem is recurrent and deterministic related on Windows? thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants