r/Aeon • aeon contributor • Apr 28 '18

PSA: Daemon stuck bug fixed (supposedly)

I did some digging into the code and I seem to have found the bug that was making the daemon stuck: https://github.com/monero-project/monero/pull/3719

I've updated the pre-release v0.1.8 accordingly, so please try it out:

If we see no further issue after a while of testing, and when moneromooo puts a rubber stamp on the code, I think we're finally ready to set the fork height and announce the official release.

55 Upvotes

41 comments sorted by

3

u/DnkBmbzl Apr 28 '18

I'd like to help with the testing but I'm having issues starting the daemon. It crashes with the following message:

Error attempting to retrieve a hard fork version at height 0 from the db: MDB_NOTFOUND: No matching key/data pair found

Can someone help me with the setup ? (I'm running Win10 but can consider switching to linux)

2

u/TNSepta Apr 30 '18 edited Apr 30 '18

I can confirm I'm getting a crash on startup with the exact same error message. I also have no issues running the monerod official release.

It seems that this bug occurs when there is no blockchain file to be loaded in the default directory C:\ProgramData\aeon\lmdb or if an incorrect --data-dir option is set. When the blockchain file is correctly set, the daemon starts with no issues.

/u/stoffu Hope this can be of help pinning down the reason for the crash.

2

u/stoffu aeon contributor Apr 30 '18

A fixed version v0.1.8.1 is released. See the edited OP

1

u/DnkBmbzl Apr 30 '18

I confirm that the issue is solved. Out of curiosity, what did you change ?

3

u/stoffu aeon contributor Apr 30 '18

I was accidentally enabling the stack trace feature which is defunct on Windows and causes the crash.

2

u/[deleted] Apr 30 '18

Is this with the GUI or aeonD? If it’s the GUI than use the low graphics mode bat and it should work fine.

2

u/TNSepta Apr 30 '18

It was aeond, so the graphics option wasn't the causative factor of the crash. Starting the GUI worked fine once the daemon was pointed to a blockchain directory.

3

u/stoffu aeon contributor Apr 30 '18

Thanks for reporting. I confirm it happening to my Windows machine too. I'll look into this.

1

u/stoffu aeon contributor Apr 28 '18

That error message is harmless and can be safely ignored. Immediate crash after launch is strange. Is it the same when you try Monero's release or some of the earlier Aeon pre-releases?

2

u/DnkBmbzl Apr 28 '18 edited Apr 28 '18

If it can be of any use, this is the instruction that causes the exception:

000000000157C680 mov qword ptr [rdi],rax

The exact message is:

Unhandled exception at 0x000000000157C680 in aeond.exe: 0xC0000005: Access violation reading location 0x00000000.

2

u/stoffu aeon contributor Apr 28 '18

Hmm, maybe there’s some glitches for Windows builds. I’m not really good at this kind of problems, so maybe hopefully someone else can find a fix. Or you could build it yourself:)

2

u/DnkBmbzl Apr 28 '18 edited Apr 28 '18

Alright, so I have been progressing through the hurdles of compiling it myself but I am stuck. I am using the branch Aeon-Dark which has the latest commits.

First, I don't understand why, but even though the build.sh file is configured to compile aeond.exe it still outputs monerod.exe in the monero/bin folder.

Then during the very last steps of the compilation I encounter the following error:

../src/libwalletqt/Wallet.cpp:738:37: error: 'class Monero::Wallet' has no member named 'defaultRingSize'; did you mean 'defaultMixin'? const quint32 r = m_walletImpl->defaultRingSize();

I will stop for now unless you have an idea on how to solve this.

EDIT: Using defaultMixin did the trick. It seems strange however that I needed to change this in order to compile.

EDIT 2: The previous issue did not arise when compiling with the proper submodule. See below:

The "monero" submodule in the Aeon branch of the "monero-core" repository was pointing towards the monero repository and not the one adapted for aeon. So I checked out the proper branch and now I have a working daemon running for Windows. More specifically, I have the daemon v.0.12 from the aeon-rebase-new branch. I can post the corresponding binary file if it's ok.

2

u/stoffu aeon contributor Apr 28 '18

Something seems strange with your repository configuration. Please try cloning the repo freshly somewhere else and building again.

2

u/DnkBmbzl Apr 28 '18

Answer updated.

3

u/DnkBmbzl Apr 28 '18

Will try a build!

1

u/Zaaphod Apr 28 '18

Let us know your findings, having the same issue on windows.

2

u/DnkBmbzl Apr 28 '18

Looks like a bad memory access (0xC0000005).

I had tried your earlier Aeon and Monero v0.1.1 debug releases a few day ago with the same result. (retested again now without success)

Official Monero v0.1.2 release works fine on my computer though.

3

u/TNSepta Apr 29 '18

Is there a public key we can use to verify signatures on this binary release?

12

u/picksubredditfav16 Apr 28 '18

Thanks for your hard work stoffu. I know times have been tough around here lately, but i still see a bright future for this project and community.

6

u/TheSacredOne Apr 28 '18

Awesome.

I'll test when I get a chance. I haven't tried the past few versions due to lack of time. :(

5

u/Cryptonote-Social pool operator Apr 28 '18

Nice work!

5

u/Thunderosa Apr 28 '18

What a nice announcement to start the day. Thank you for doing this proper.

1

u/stupidoperator Apr 28 '18

are you updating the rebase-new branch also?

4

u/stoffu aeon contributor Apr 28 '18

Of course it’s updated and includes the daemon bug fix.

1

u/[deleted] Apr 28 '18 edited Aug 21 '18

[overwritten]

1

u/stoffu aeon contributor Apr 28 '18

Does it not run on your system?

1

u/[deleted] Apr 29 '18 edited Aug 21 '18

[overwritten]

3

u/[deleted] Apr 28 '18

I am so happy we can finally fork

3

u/[deleted] Apr 29 '18 edited Apr 30 '18

I will have to download and run this. I’ll setup daemon and run for 24hrs on windows then High sierra if everything works good on startup for both.

Edit:

And simplewallet crashes when you enter the wrong password for windows. Before it just closed the cmd window.

Edit 2: Simplewallet also crashes when closing even if sync fully and using exit command. AeonD crashes when using the exit command as well. Gui works ok. Had to open wallet file to get gui to work even though the .keys and wallet.dat were in the folder location. Doesn’t crash when closed like aeonD does.

All these crashes with windows 10 pro.

Have not tried OS X yet.

3

u/d0uglas72 May 01 '18

Been running v0.1.8 for 24 hrs straight along with wallet-cli. Sent a small transaction to the wallet, which was received fine. Both aeond and wallet kept up to date with the blockchain fine.

This is on 64bit xubuntu 16.04.1.

Will try some additional wallet transactions in a bit.

2

u/d0uglas72 May 01 '18

Sent 3 more transactions, all received. Everything working good thus far. Will keep aeond and wallet-cli running.

5

u/aeonminingpool-com Apr 28 '18

Wonderful news /u/stoffu

Thank you for your work.

2

u/farfiman Apr 28 '18

WHOOHOO!

2

u/d0uglas72 May 02 '18

Another 24hrs running both aeond and wallet-cli. No issues.

xubuntu 16.04.1, 64bit

2

u/d0uglas72 May 02 '18

My box even lost internet connection for a short time and when it reconnected, everything caught back up fine.

2

u/d0uglas72 May 03 '18

72 hours now. Running v0.1.8 rebase on Ubuntu 16.04, withe the cli wallet. No issues. Yay!!

2

u/d0uglas72 May 04 '18

4 to 5 days running 24/7, with no issues.

2

u/stupidoperator Apr 28 '18

thank you.

  • return true;

  • return 1; wow!

5

u/smooth_xmr aeon core developer Apr 29 '18

That's not the actual fix, just cleanup.