monero-project / monero-gui

Monero: the secure, private, untraceable cryptocurrency
Other
1.68k stars 760 forks source link

Solo mining resulting in crashing Daemon immediately Windows 11 Pro #4254

Open tommyboy0 opened 7 months ago

tommyboy0 commented 7 months ago

After synchronizing my wallet, I went to try & start mining in solo mode resulting in the network losing connection & goes into a loop of trying to reconnect to the network. I believe the node is crashing because I am able to manually start it again. Once I restart the node manually, I change the settings, resulting in the same issue or I get a message stating 'Mining temporarily suspended.'. I have this issue weather I am using half or all of my CPU's threads.. When I try to use the "Background mining" thread, I seem to be having the same issue. Let me know what information I can provide that would be helpful. Thank you!

selsta commented 7 months ago

What kind of PC hardware do you have? (CPU / RAM / etc.). Also do you have an anti virus installed?

tommyboy0 commented 7 months ago

Intel i7-10750H CPU Nvidia RTX 2060 GPU 64 GB Ram PC Brand: MSI Virus software is just the standard Windows Defender. I have my computer set to Developer mode

What kind of PC hardware do you have? (CPU / RAM / etc.). Also do you have an anti virus installed?

tommyboy0 commented 7 months ago

What kind of PC hardware do you have? (CPU / RAM / etc.). Also do you have an anti virus installed?

By the way when I run P2Pool it seems to run as planned but nothing goes into my wallet. I have been running it for a few hours now.. What am I doing wrong, I have no issue just using it this way.

RFITSCorp commented 7 months ago

I'm having this same issue. z690-pro mb. i9-13900k. 64gb ripjaw. ssd, etc.

Worked perfect solo before. I've been mining p2pool for a bit but decided to go back and it's just not working anymore. If I type "status" fast enough or have it run through the GUI, it appears to be mining for a second or so but that's it.

No errors of any sort that I can see from the GUI nor console. I'm trying to see if I can get one to pop but not yet.

Windows 11 also. Latest. Reinstalled, all cache/etc wiped and retried.

EDIT: All AV killed BTW. monerod just appears to crash. It simply exits with no message after it displays the list of threads mining unless I'm fast enough to get in a 'status' or alike which shows it mining fine, until it quits. I don't think I can add anything more helpful as of now.

selsta commented 7 months ago

Can you start monerod.exe from cmd and then enter "start_mining address" and see if it crashes?

737simpilot commented 7 months ago

I'm getting the same thing on my end running Windows 10. Hardware is as follows:

i7 7700

Gigabyte Z270X Gaming K7

16GB RAM

RTX 3060

NVMe HDD

I do keep seeing this in the error log which may or may not be related or part of another issue.

WARNING frontend src/wallet/api/wallet.cpp:411 Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations

I also see a lot of this:

WARNING wallet.wallet2 src/wallet/wallet2.cpp:2224 Transaction extra has unsupported format: <001143fa710c0046c1ae04f47858eddee9f2c5f10ed93506b745440d2173ebdb>

That string of 64 characters is always different.

I'm running monerod.exe and the GUI with Admin rights in compatibility mode. The wallet is portable and is in the root of C drive. C:\wallet\monero-gui-v0.18.3.1

737simpilot commented 7 months ago

I ran monerod.exe (start_mining) in the command line and had errors as well. After constant testing it appears the errors happen more often if you use more than 3 or 4 threads.

Here are the two errors I caught.

img

selsta commented 7 months ago

@737simpilot can you try to download monerod.exe from this version and confirm that it also crashes? This was from before we did some code changes.

https://github.com/monero-project/monero/releases/tag/v0.18.1.2

737simpilot commented 7 months ago

Doesn't appear to have errors in that version.

selsta commented 7 months ago

@737simpilot thank you, can you also test https://github.com/monero-project/monero/releases/tag/v0.18.2.2 ?

737simpilot commented 6 months ago

I'll test this sometime today or tomorrow when I have time. Thanks.

RFITSCorp commented 6 months ago

Programmer here, all the time in the world, offered help. I see these pages from arch linux issues to this with problems that take forever to get resolved and it's clear why - lack of communication. I'd offer free help and funds but I didn't get a response to my last question. Peace. Good luck with your ... project.

nahuhh commented 6 months ago

Programmer here, all the time in the world, offered help. I see these pages from arch linux issues to this with problems that take forever to get resolved and it's clear why - lack of communication. I'd offer free help and funds but I didn't get a response to my last question. Peace. Good luck with your ... project.

I also see a lot of this:

WARNING wallet.wallet2 src/wallet/wallet2.cpp:2224 Transaction extra has unsupported format: <001143fa710c0046c1ae04f47858eddee9f2c5f10ed93506b745440d2173ebdb>

That string of 64 characters is always different.

You can ignore this

selsta commented 6 months ago

@RFITSCorp you didn't ask a question, you simply stated that you also have the same issue. Fixing bugs that can't be reproduced on our side is difficult so I'm trying to find out in which version this got introduced.

If you want to help then try the two linked versions in the previous comment and check if they crash or not.

737simpilot commented 6 months ago

No errors in 0.18.2.2

selsta commented 6 months ago

@737simpilot can you also try to download monerod.exe from https://github.com/monero-project/monero/releases/tag/v0.18.3.1 instead of the one bundled with the GUI?

737simpilot commented 6 months ago

I've been testing monerod.exe independently. Can I actually replace the monerod.exe in my wallet now with an old one? Or is that not a good idea?

In either case, firing off monerod.exe from my current wallet with the current code exhibits Windows errors shown in the pic above, where's the ones you're having me test do not. I verify this by firing off the monerod.exe program many times to rule out anything. I've also have been running them directly from the C drive.

selsta commented 6 months ago

Did you try the monerod.exe one from the v0.18.3.1 link above? Does it work?

737simpilot commented 6 months ago

Doing that now. It's updating the block chain as it's 2 days old now.

737simpilot commented 6 months ago

Got an error in v0.18.3.1.

737simpilot commented 6 months ago

Tried the 32 bit version and get this. Is that normal?

img

selsta commented 6 months ago

If you have 64bit Windows make sure to use the 64bit version.

Last test, can you try the latest development version by scrolling down on the following link and downloading the "Win64" file?

https://github.com/monero-project/monero/actions/runs/7454870884

737simpilot commented 6 months ago

Got an error with that version.

selsta commented 6 months ago

@737simpilot Please also test this version: https://github.com/selsta/monero/actions/runs/7569980391

This now has reverted the only RandomX related change between v0.18.2.2 and v0.18.3.1. If this doesn't crash we at least know which change causes the issue, if it does crash we have to look somewhere else.

737simpilot commented 5 months ago

Hi. Sorry, I'm just now seeing your message. Tested that version and no errors.

SChernykh commented 5 months ago

@737simpilot How exactly do you start mining? Do you add --start-mining WALLET to monerod command line, or do you run start_mining WALLET in monerod console when it's fully synced?

737simpilot commented 5 months ago

start_mining WALLET ID in the console.

SChernykh commented 5 months ago

This commit should hopefully fix it: https://github.com/SChernykh/monero/commit/e95f2b0b5476f055d23918f6f8fffc4fa0df17a8 I'll give a link for you to test as soon as binaries are built by CI.

selsta commented 5 months ago

@737simpilot Can you test the "Win64" file from this version? It includes the fix from @SChernykh.

https://github.com/SChernykh/monero/actions/runs/8029758573

737simpilot commented 5 months ago

Got an error.

img

img