-
Notifications
You must be signed in to change notification settings - Fork 9
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
Stack overflow when not in --release #60
Comments
I dont experience the issue on my machinge, but:
Yeah, true |
Thanks a lot, great code also keep it up 🙌
When running the example without the --release flag everything actually works. So it only seems to happen when adding
|
Just for clarification: |
Only after adding hbs-lms as a dependency |
Can you give it a try and add a |
I've created a minimal example that errors in debug but not release for me, can you see if it works for you? I've also forked the repository and tried to change ArrayVec to TinyVec but it doesn't seem to solve the issue. Additionally for me, when running
|
Nice, thanks for the minimal example!
Unfortunately, on my machine I cannot recreate this error. Neither the minimal nor the I have never tested the functionality on a windows machine. Maybe it stems from this. But I am not sure at this point. Which rustc version are you using? |
I'm using rustc 1.60.0 (7737e0b5c 2022-04-04). Yes that's probably it then. Since it works for Linux and is only a problem in Debug this issue is not deal-breaking, so I'll close it. Thanks for investigating! |
Actually, my TinyVec change did solve the issue! My project now works as expected, however, the second doc test is still failing. Additionally, because src/hss/aux.rs is named "aux.rs", Windows prevents it from being created which is an issue when trying to clone the project. (https://stackoverflow.com/a/67226358/13819662 Very dumb, Linux is superior). I can create a PR for my changes, I'm afraid it will be quite large and maybe you can see some optimizations for it. |
Ah, yes you activated the If you could add an For the point with renaming: As it seems like a generic issue, it makes sense to take into account. |
Okay I will attempt to do that :) I will also make multiple PRs for the different features. Will be done in a week I think. |
Cool, thank you. 👍 |
newbie question. How/where do you specify seed for example demo ? |
It is added as argument to the keygen cmd (I just realized that the readme is out-of-date and the example needs some polish, I moved that into a separate issue #83)
|
@henke443 Are you still interested to work on a solution for the issue of memory usage under Windows? |
thank you @aewag. BTW, i am glad to see that this was published. It was great to collaborate with your team. |
I just started using this library. I'm on windows 10 x64 if that makes a difference.
When building with --release it compiles correctly and I get the right results, when I omit it things fail however:
thread 'main' has overflowed its stack
error: process didn't exit successfully:
target\debug\npcoin.exe
(exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)Another small thing is that I failed to make the examples in the README run before I looked through the code and found out that I have to specify a 32 byte seed with 64 hex characters.
The text was updated successfully, but these errors were encountered: