Closed cekickafa closed 9 months ago
Windows 10 . same situation !
I got same issue when syncing from scratch. The first stuck at 82% during PIBD, and the second one at 100%. No choice by to clone chain_data from another machine.
Thanks everyone for testing. Could everyone having sync issues try to sync with the standalone command-line node and see if the same thing occurs?
I had the same issue. I synced with grin.exe then copied chain_data into the grin_node folder and the node now runs.
Thanks everyone for testing. Could everyone having sync issues try to sync with the standalone command-line node and see if the same thing occurs?
I'm not clear what standalone command-line? You mean original grin node command line? I tried grin-gui.exe --help but not found argument to sync the chain
I use to have problems syncing on the window full node, I think changing it to archive mode helped
@yeastplume which specific versions of the wallet and node should we use try to see if the same issue occurs? I do not know which node and wallet version are under the hood of grin gui alpha 1.
@yeastplume which specific versions of the wallet and node should we use try to see if the same issue occurs? I do not know which node and wallet version are under the hood of grin gui alpha 1.
The node is from grin master branch, the wallet from the contracts branch.
I'm not clear what standalone command-line? You mean original grin node command line? I tried grin-gui.exe --help but not found argument to sync the chain !
I mean the build from the core node project itself, not the gui: https://github.com/mimblewimble/grin
I've been trying to reproduce this myself by syncing from scratch, but I haven't had a situation where it stops or shuts down. I'll keep trying.
I will run multiple tests and each time update this comment:
Yep, okay I'm seeing this as well, but only on the released CI built version. When I run a local build, it's fine and moves to stage 3.
in C:\Users\<user>\.grin\gui
there should be a log with debug info, does anyone see anything relevant in there?
I will try running my own compiled version in a bit. In the log there is nothing that I recognizer as informative on the crash, here are the last few lines in the log:
20240116 21:39:07.773 DEBUG grin_gui::gui::element::wallet::operation::home - Updating transactions based on new wallet info data: None (old) vs WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } (new) 20240116 21:39:07.809 DEBUG grin_gui::gui::element::wallet::operation::tx_list_display - Update Tx List Summary: false 20240116 21:39:07.810 DEBUG grin_gui::gui::element::wallet::operation::tx_list_display - Update Wallet Txs Summary: [] 20240116 21:39:11.397 DEBUG grin_gui::gui::element::menu - Interaction::ModeSelectedSettings(Node) 20240116 21:39:17.860 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:39:27.931 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:39:38.017 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:39:48.076 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:39:58.129 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:40:08.190 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:40:18.241 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:40:28.283 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240116 21:40:38.350 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 }
Precompiled version 5.2.0-beta3 shows these errors before crashing in the log in the UI
Precompiled version 5.2.0-beta3 shows these errors before crashing in the log in the UI ![crash_node5 2_beta3_precompiled]
Oh, thanks very much for this, it gives me a potential better place to look for the issue
It looks a bit like it rewinds block by block beyond the PIBD horizon and then totally craps out. Interestingly, when showing these errors, the node still runs for an hour (responsive, but no updates to user interface log) for an hour or so, while showing some minimal CPU usage. So the crash looks like some automated kill after being stuck or inactive for long.
More detailed log from the log file:
20240117 15:10:02.202 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:3414, 9 connected (4 most_work). all 16086 = 15088 healthy + 0 banned + 998 defunct 20240117 15:10:21.442 DEBUG grin_chain::types - sync_state: sync_status: TxHashsetPibd { aborted: false, errored: false, completed_leaves: 19309675, leaves_required: 19309675, completed_to_height: 2620080, required_height: 2620080 } -> Shutdown 20240117 15:10:21.520 INFO grin_api::rest - API server has been stopped 20240117 15:10:22.356 INFO grin_servers::grin::server - connect_and_monitor thread stopped 20240117 15:10:22.356 ERROR grin_servers::grin::server - failed to join to sync thread: Any { .. } 20240117 15:10:22.356 INFO grin_servers::grin::server - dandelion_monitor thread stopped 20240117 15:10:22.356 DEBUG grin_p2p::peer - Stopping peer PeerAddr(51.175.26.172:3414) 20240117 15:10:22.356 DEBUG grin_p2p::peer - Stopping peer PeerAddr(23.94.120.31:3414) 20240117 15:10:22.356 DEBUG grin_p2p::peer - Stopping peer PeerAddr(8.210.135.170:3414) 20240117 15:10:22.357 DEBUG grin_p2p::peer - Stopping peer PeerAddr(168.119.147.118:3414) 20240117 15:10:22.357 DEBUG grin_p2p::peer - Stopping peer PeerAddr(37.27.20.157:3414) 20240117 15:10:22.357 DEBUG grin_p2p::peer - Stopping peer PeerAddr(45.94.122.50:3414) 20240117 15:10:22.357 DEBUG grin_p2p::peer - Stopping peer PeerAddr(107.174.93.165:3414) 20240117 15:10:22.357 DEBUG grin_p2p::peer - Stopping peer PeerAddr(45.79.250.16:3444) 20240117 15:10:22.357 DEBUG grin_p2p::peer - Stopping peer PeerAddr(157.90.146.148:3414) 20240117 15:10:22.357 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(51.175.26.172:3414) to stop 20240117 15:10:22.357 DEBUG grin_p2p::conn - waiting for thread ThreadId(693) exit 20240117 15:10:22.434 DEBUG grin_p2p::conn - Shutting down reader connection with 45.79.250.16:3444 20240117 15:10:22.449 DEBUG grin_p2p::conn - Shutting down writer connection with 45.79.250.16:3444 20240117 15:10:22.496 DEBUG grin_p2p::conn - Shutting down writer connection with 8.210.135.170:3414 20240117 15:10:22.591 DEBUG grin_p2p::conn - Shutting down writer connection with 37.27.20.157:3414 20240117 15:10:22.591 DEBUG grin_p2p::conn - Shutting down reader connection with 37.27.20.157:3414 20240117 15:10:22.637 DEBUG grin_p2p::conn - Shutting down writer connection with 157.90.146.148:3414 20240117 15:10:22.676 DEBUG grin_p2p::conn - try_break: exit the loop: Connection(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }) 20240117 15:10:22.676 DEBUG grin_p2p::conn - Shutting down reader connection with 157.90.146.148:3414 20240117 15:10:22.699 DEBUG grin_p2p::conn - Shutting down writer connection with 45.94.122.50:3414 20240117 15:10:22.699 DEBUG grin_p2p::conn - Shutting down reader connection with 45.94.122.50:3414 20240117 15:10:22.714 DEBUG grin_p2p::conn - Shutting down writer connection with 168.119.147.118:3414 20240117 15:10:22.870 DEBUG grin_p2p::conn - Shutting down writer connection with 107.174.93.165:3414 20240117 15:10:22.870 DEBUG grin_p2p::conn - Shutting down reader connection with 107.174.93.165:3414 20240117 15:10:23.024 DEBUG grin_p2p::conn - Shutting down writer connection with 23.94.120.31:3414 20240117 15:10:23.032 DEBUG grin_p2p::conn - try_break: exit the loop: Connection(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }) 20240117 15:10:23.032 DEBUG grin_p2p::conn - Shutting down reader connection with 23.94.120.31:3414 20240117 15:10:23.368 DEBUG grin_p2p::conn - Shutting down writer connection with 51.175.26.172:3414 20240117 15:10:24.379 ERROR grin_p2p::peers - connected_peers: failed to get peers lock 20240117 15:10:24.379 DEBUG grin_p2p::conn - try_break: exit the loop: Send("try_send disconnected") 20240117 15:10:24.379 DEBUG grin_p2p::conn - Shutting down reader connection with 8.210.135.170:3414 20240117 15:10:24.693 ERROR grin_p2p::peers - connected_peers: failed to get peers lock 20240117 15:10:24.693 DEBUG grin_p2p::conn - try_break: exit the loop: Send("try_send disconnected") 20240117 15:10:24.693 DEBUG grin_p2p::conn - Shutting down reader connection with 168.119.147.118:3414 20240117 15:10:24.802 ERROR grin_p2p::peers - connected_peers: failed to get peers lock 20240117 15:10:24.802 DEBUG grin_p2p::conn - try_break: exit the loop: Send("try_send disconnected") 20240117 15:10:24.802 DEBUG grin_p2p::conn - Shutting down reader connection with 51.175.26.172:3414 20240117 15:10:24.802 DEBUG grin_p2p::conn - waiting for thread ThreadId(694) exit 20240117 15:10:24.802 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(23.94.120.31:3414) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(949) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(950) exit 20240117 15:10:24.803 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(8.210.135.170:3414) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(951) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(952) exit 20240117 15:10:24.803 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(168.119.147.118:3414) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(305) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(306) exit 20240117 15:10:24.803 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(37.27.20.157:3414) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(691) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(692) exit 20240117 15:10:24.803 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(45.94.122.50:3414) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(435) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(436) exit 20240117 15:10:24.803 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(107.174.93.165:3414) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(176) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(177) exit 20240117 15:10:24.803 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(45.79.250.16:3444) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(1081) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(1082) exit 20240117 15:10:24.803 DEBUG grin_p2p::peer - Waiting for peer PeerAddr(157.90.146.148:3414) to stop 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(1083) exit 20240117 15:10:24.803 DEBUG grin_p2p::conn - waiting for thread ThreadId(1084) exit 20240117 15:10:24.803 WARN grin_servers::grin::server - Shutdown complete
Okay, this is just about the worst kind of bug there is:
cargo run --release
So my strategy was to try and have CI produce a debug build with symbols so I could get some information, but of course that version doesn't crash. I thought it may have something to do with the bin being built with the windows subsystem (that avoids spawning the console window), so I tried a version that spawned a console window, built on CI on my own fork, and that crashes as well.
This feels like some arcane native lib thing (or possibly llvm?) but have no idea how to go about finding the culprit now given that a debug build built on the same CI system doesn't exhibit the crash. Fact that the debug build doesn't crash and the release build does definitely points to some kind of mismanaged memory underneath rust (either in an FFI layer or C lib), so it could be just about anywhere.
A few things would help if someone could try:
Not sure how to proceed myself at the moment, need to think.
That's an illegal instruction.. and the crash occurs on validation. Perhaps the release build on CI is compiling for some arcane instruction set?
Ok, I can verify that the local build of at least the main node works fine. One thing that came to mind is that perhaps the build is for x86 on Windows, In which case we should try putting the release build in C:\Program Files (x86) and run from there, some different .dll settings are applied in that case. Running from another directory automatically assume its 64 bit. I have no time to test it today, perhaps tomorrow, perhaps you have time @yeastplume to test this wild guess of mine.
I will try to make time tomorrow to test the GUI with local build, and will try running debug .exe built (in alpha.4)
it's an x86_64 build.
I now think the release build is optimizing something on the CI server for the particular architecture of whatever CPU it's running and compiling in some instruction set not found in most consumer CPUs. I'll try and track down what CI is optimized for by default and compare to a local build.
Tested running from Programs(x86), did not work, after checking the executable by opening it in notepad I see it contains "PE d†" at the beginning of the file, which is a market that it is indeed a 64 bit executable. So indeed it must be some optimizations for the CPU or the virtual system you compiled it in.
Perhaps useful thread: https://users.rust-lang.org/t/executable-not-running-on-a-different-computer/79642/18
Thank you all for your help. The main thing after research is to install all packages and make sure that all toolchains are installed for rust compilation, and to know how to build the project, it is necessary to make sure that the toolchain is default tools and the correct exemple
rustup toolchain list
stable-x86_64-pc-windows-gnu (default) stable-x86_64-pc-windows-msvc nightly-x86_64-pc-windows-msvc
This way it worked for me, thanks all, problem solved
Might be or not be useful. Our case is a bit different since the programs runs, but contains a weird bug.
I have run the release debug version (alpha3), and that one DOES WORK. It syncs like normal on my machine and does not crash. This was not a local build but the debug version you provided here: https://github.com/mimblewimble/grin-gui/releases/tag/v0.1.0-alpha.3
Advice from a friend in another crypto project, compile on an older machine to avoid optimizations for newer processors like AVIX2 AVIX5, AVIX5.12. Perhaps a slightly slower executable, but less problems with compatibility. Power users can always make their own compilation if they want higher speeds or lower system load.
-System: Windows 10 / Grin version 0.1.0-alpha.3 Still cant pass 2/7 synch and it shuts down auto.
LOGS
20240119 13:41:47.350 INFO grin_gui_core::node - This is Grin version 0.1.0-alpha.3 (git v0.1.0-alpha.3), built for x86_64-pc-windows-msvc by rustc 1.75.0 (82e1608df 2023-12-21). 20240119 13:41:47.350 INFO grin_gui_core::node - Chain: Mainnet 20240119 13:41:47.350 INFO grin_gui_core::node - Accept Fee Base: 500000 20240119 13:41:47.350 INFO grin_gui_core::node - Future Time Limit: 300 20240119 13:41:47.350 INFO grin_gui_core::node - Feature: NRD kernel enabled: false 20240119 13:41:47.351 INFO grin_servers::grin::server - Starting server, genesis block: 40adad0aec27 20240119 13:41:50.804 INFO grin_servers::grin::server - Starting rest apis at: 127.0.0.1:3413 20240119 13:41:50.805 WARN grin_api::handlers - Starting HTTP Node APIs server at 127.0.0.1:3413. 20240119 13:41:50.805 WARN grin_api::handlers - HTTP Node listener started. 20240119 13:41:50.805 INFO grin_servers::grin::server - Starting dandelion monitor: 127.0.0.1:3413 20240119 13:41:50.805 WARN grin_servers::grin::server - Grin server started. 20240119 13:41:50.805 WARN grin_gui_core::node - Running Mainnet 20240119 13:41:50.806 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: None 20240119 13:41:51.938 INFO grin_servers::common::adapters - Received 2 block headers from 178.130..13:3414 20240119 13:54:27.665 INFO grin_gui_core::node - Using configuration file at C:\Users\.grin\main\grin_node\default\grin-server.toml 20240119 13:54:27.665 INFO grin_gui_core::node - This is Grin version 0.1.0-alpha.3 (git v0.1.0-alpha.3), built for x86_64-pc-windows-msvc by rustc 1.75.0 (82e1608df 2023-12-21). 20240119 13:54:27.665 INFO grin_gui_core::node - Chain: Mainnet 20240119 13:54:27.665 INFO grin_gui_core::node - Accept Fee Base: 500000 20240119 13:54:27.665 INFO grin_gui_core::node - Future Time Limit: 300 20240119 13:54:27.665 INFO grin_gui_core::node - Feature: NRD kernel enabled: false 20240119 13:54:27.666 INFO grin_servers::grin::server - Starting server, genesis block: 40adad0aec27 20240119 13:54:31.183 INFO grin_servers::grin::server - Starting rest apis at: 127.0.0.1:3413 20240119 13:54:31.183 WARN grin_api::handlers - Starting HTTP Node APIs server at 127.0.0.1:3413. 20240119 13:54:31.183 WARN grin_api::handlers - HTTP Node listener started. 20240119 13:54:31.183 INFO grin_servers::grin::server - Starting dandelion monitor: 127.0.0.1:3413 20240119 13:54:31.183 WARN grin_servers::grin::server - Grin server started. 20240119 13:54:31.183 WARN grin_gui_core::node - Running Mainnet 20240119 13:54:31.183 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: None 20240119 13:54:32.407 INFO grin_servers::common::adapters - Received 11 block headers from 107.174.*.157:3414 20240119 13:57:35.384 INFO grin_gui_core::node - Using configuration file at C:\Users***.grin\main\grin_node\default\grin-server.toml 20240119 13:57:35.385 INFO grin_gui_core::node - This is Grin version 0.1.0-alpha.3 (git v0.1.0-alpha.3), built for x86_64-pc-windows-msvc by rustc 1.75.0 (82e1608df 2023-12-21). 20240119 13:57:35.385 INFO grin_gui_core::node - Chain: Mainnet 20240119 13:57:35.385 INFO grin_gui_core::node - Accept Fee Base: 500000 20240119 13:57:35.385 INFO grin_gui_core::node - Future Time Limit: 300 20240119 13:57:35.385 INFO grin_gui_core::node - Feature: NRD kernel enabled: false 20240119 13:57:35.385 INFO grin_servers::grin::server - Starting server, genesis block: 40adad0aec27 20240119 13:57:38.898 INFO grin_servers::grin::server - Starting rest apis at: 127.0.0.1:3413 20240119 13:57:38.899 WARN grin_api::handlers - Starting HTTP Node APIs server at 127.0.0.1:3413. 20240119 13:57:38.899 WARN grin_api::handlers - HTTP Node listener started. 20240119 13:57:38.899 INFO grin_servers::grin::server - Starting dandelion monitor: 127.0.0.1:3413 20240119 13:57:38.899 WARN grin_servers::grin::server - Grin server started. 20240119 13:57:38.899 WARN grin_gui_core::node - Running Mainnet 20240119 13:57:38.900 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: false (90%), relay: None 20240119 13:57:40.122 INFO grin_servers::common::adapters - Received 2 block headers from 104.182.32.89:3414
WALLET LOG
20240111 14:37:21.079 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:38:23.102 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:38:23.102 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:39:25.111 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:39:25.111 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:40:27.140 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:40:27.140 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:41:29.170 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:41:29.170 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:42:31.185 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:42:31.185 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:43:33.214 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:43:33.214 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:44:35.228 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:44:35.228 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:45:37.241 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:45:37.241 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:46:39.254 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:46:39.254 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:47:41.292 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:47:41.292 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:48:43.334 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:48:43.334 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:49:45.351 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:49:45.351 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:50:47.386 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:50:47.387 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:51:49.419 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:51:49.419 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:52:51.464 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:52:51.464 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:53:53.513 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:53:53.513 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node 20240111 14:54:55.527 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Hedef makine etkin olarak reddettiğinden bağlantı kurulamadı. (os error 10061) 20240111 14:54:55.527 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
Ok, now things get interesting. It does work for me and @yeastplume, meaning it was compiled for some optimizations that both our CPU's support, but not your CPU. @cekickafa @yeastplume Can you tell me what CPU you use (Windows about, CPU information shown there)?
MY PC runs a Ryzen 7 2700X, which has AVX2 standard support but not AVX-512. So probably @yeastplume and I have CPU's of a generation that supports AVX2. The trick is probably that the release should be compiled for an older CPU type that does not use AVX, AVX2 or AVX512. Slight hit in performance, but better compatibility. Those who wants maximum performance can compile themselves.
My CPU is AMD Ryzen 7 1700 Eight-Core Processor 3.00 GHz.
I checked, both your and my CPU have the exact same instruction set (both Ryzen 7 family, same cores and cash, only difference is clock speed), both support AVX, AVX2 but not AVX512. @cekickafa Can you try again, but first run
./grin.exe clean
@yeastplume Which cross platform compatibility flags do you use when compiling?: https://clang.llvm.org/docs/CrossCompilation.html https://clang.llvm.org/docs/UsersManual.html#target-features
0.1.0-alpha.3 still can't pass 2/7 and it shuts down auto Windows 10 / AMD Ryzen 5 2600
Windows 7 / laptop x230i CAN PASS 2/7 cpu : i3-2370M
@z3j3 @cekickafa Can you perhaps check if you have Hyper-V disabled or enabled? I suspect this might have influence, when its enabled, virtualization will not work which is perhaps needed for Windows subsystems. See this link how to check, it is in Windows features if it is enabled or disabled: https://www.itechguides.com/how-to-enable-virtualization-in-windows-10/
In case you had it enabled @cekickafa , try disabling, restart PC, then try again running 0.1.0-alpha.3.
i checked it is OFF. I am not using virtual Machine. I deleted and reinstalled 0.1.0-alpha.3. Waiting for synch now. Almost synched to 2/7 waiting still.
20240120 09:59:37.300 INFO grin_gui_core::node - This is Grin version 0.1.0-alpha.3 (git v0.1.0-alpha.3), built for x86_64-pc-windows-msvc by rustc 1.75.0 (82e1608df 2023-12-21). 20240120 09:59:37.300 INFO grin_gui_core::node - Chain: Mainnet 20240120 09:59:37.300 INFO grin_gui_core::node - Accept Fee Base: 500000 20240120 09:59:37.300 INFO grin_gui_core::node - Future Time Limit: 300 20240120 09:59:37.300 INFO grin_gui_core::node - Feature: NRD kernel enabled: false 20240120 09:59:37.302 INFO grin_servers::grin::server - Starting server, genesis block: 40adad0aec27 20240120 09:59:37.601 INFO grin_servers::grin::server - Starting rest apis at: 127.0.0.1:3413 20240120 09:59:37.601 WARN grin_api::handlers - Starting HTTP Node APIs server at 127.0.0.1:3413. 20240120 09:59:37.601 WARN grin_api::handlers - HTTP Node listener started. 20240120 09:59:37.601 INFO grin_servers::grin::server - Starting dandelion monitor: 127.0.0.1:3413 20240120 09:59:37.601 WARN grin_servers::grin::server - Grin server started. 20240120 09:59:37.601 WARN grin_gui_core::node - Running Mainnet 20240120 09:59:37.602 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: None 20240120 09:59:38.873 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:38.979 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.074 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.198 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.332 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.434 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.533 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.626 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.713 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.815 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:39.904 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:40.036 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:40.132 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:40.208 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:40.280 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:40.345 INFO grin_servers::common::adapters - Received 32 block headers from 188.68.36.183:3414 20240120 09:59:40.756 INFO grin_servers::common::adapters - Received 32 block headers from 192.3.254.163:3414 20240120 09:59:40.969 INFO grin_servers::common::adapters - Received 32 block headers from 192.3.254.163:3414 20240120 09:59:41.033 INFO grin_servers::common::adapters - Received 32 block headers from 192.3.254.163:3414 20240120 09:59:41.097 INFO grin_servers::common::adapters - Received 32 block headers from 192.3.254.163:3414 20240120 09:59:41.171 INFO grin_servers::common::adapters - Received 7 block headers from 192.3.254.163:3414 20240120 10:09:47.906 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(107.174.186.153:3414)) 20240120 10:19:48.197 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(192.3.254.163:3414)) 20240120 10:29:58.489 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(54.39.49.39:3414)) 20240120 10:40:08.798 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(192.3.254.163:3414)) 20240120 10:50:09.088 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(85.10.201.143:3414)) 20240120 11:00:19.394 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(148.63.17.24:3414)) 20240120 11:10:29.710 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(148.63.17.24:3414)) 20240120 11:20:30.009 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(74.207.247.242:3444)) 20240120 11:30:40.321 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(54.39.49.39:3414)) 20240120 11:40:50.639 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: false (90%), relay: Some(PeerAddr(148.63.17.24:3414)) 20240120 11:51:00.958 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(192.3.254.163:3414)) 20240120 12:00:03.579 WARN grin_servers::grin::sync::syncer - sync: no peers available, disabling sync 20240120 12:00:15.233 WARN grin_servers::grin::sync::syncer - sync: no peers available, disabling sync 20240120 12:00:24.248 WARN grin_servers::grin::sync::syncer - sync: no peers available, disabling sync 20240120 12:00:33.264 WARN grin_servers::grin::sync::syncer - sync: no peers available, disabling sync 20240120 12:00:42.277 WARN grin_servers::grin::sync::syncer - sync: no peers available, disabling sync 20240120 12:00:51.293 INFO grin_servers::grin::sync::syncer - sync: total_difficulty 17179869184, peer_difficulty 2134981753134445, threshold 17179869184 (last 5 blocks), enabling sync 20240120 12:00:51.602 INFO grin_servers::common::adapters - Received 1 block headers from 23.94.112.132:3414 20240120 12:01:01.267 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: false (90%), relay: Some(PeerAddr(23.94.112.132:3414)) 20240120 12:11:11.579 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(202.5.26.28:3414)) 20240120 12:21:21.904 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(89.58.0.69:3414)) 20240120 12:31:22.223 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(23.94.112.132:3414)) 20240120 12:41:32.532 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: false (90%), relay: Some(PeerAddr(202.5.26.28:3414)) 20240120 12:51:42.829 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(54.38.120.222:3414)) 20240120 13:01:43.127 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(89.58.0.69:3414)) 20240120 13:11:53.425 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(89.58.0.69:3414)) 20240120 13:22:03.742 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(54.38.120.222:3414)) 20240120 13:32:04.038 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(54.39.49.39:3414)) 20240120 13:42:14.353 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(78.47.206.120:3414)) 20240120 13:52:24.653 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(78.47.206.120:3414)) 20240120 14:02:34.952 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(54.39.49.39:3414)) 20240120 14:12:35.244 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: false (90%), relay: Some(PeerAddr(107.174.176.161:3414)) 20240120 14:22:45.550 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(23.94.120.30:3414)) 20240120 14:32:55.868 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(142.132.168.230:3414)) 20240120 14:42:56.181 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(83.151.206.122:3414)) 20240120 14:53:06.486 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(159.69.37.136:3414)) 20240120 15:03:16.779 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: Some(PeerAddr(23.94.105.34:3414))
Ok, and if you shutdown and restart grin-gui? I think the being stuck bug is different from not being able to get past 100% at sync step 2.
Ok, and if you shutdown and restart grin-gui? I think the being stuck bug is different from not being able to get past 100% at sync step 2. Ok, true. Restarted. Trying. Thanks for advice.
@z3j3 @cekickafa Can you perhaps check if you have Hyper-V disabled or enabled? I suspect this might have influence, when its enabled, virtualization will not work which is perhaps needed for Windows subsystems. See this link how to check, it is in Windows features if it is enabled or disabled: https://www.itechguides.com/how-to-enable-virtualization-in-windows-10/
In case you had it enabled @cekickafa , try disabling, restart PC, then try again running 0.1.0-alpha.3.
it is off
I've checked differences in target architecture between local and the CI build, LLVM versions, still haven't found any fix. Because I can't actually get any useful debug info (since this issue doesn't occur on a debug build,) I'm going to have to start spraying debug statements all over the place to try and find out exactly where this crash is occurring. Will do that on my own fork
Alright, managed to create a build with enough debug info that still exhibits the crash. Very much looking like this is some optimization flag within our old friend croaring bitmaps:
More fun here because it looks like the instruction is AVX2 which most processors should support now. Tried changing some croaring build flags.. no change.
Something message ?!
@z3j3 Interesting observation, can you check in the node tab, just to be sure the syncing has finished also on the Desktop with the AMD CPU?
@z3j3 Interesting observation, can you check in the node tab, just to be sure the syncing has finished also on the Desktop with the AMD CPU?
the node show 'running' ,
@z3j3 In that case I think you should file it as a new bug/issue, this makes it easier for @yeastplume to keep track of it.
grin_gui!avx2_harley_seal_popcount256+0x62:
00007ff6`4b580612 62a15500efed vpxord xmm21,xmm21,xmm21
Okay, that was confusing me because within a function called avx2_blah_blah
the CI compiler is actually including a VXPORD instruction, which (from what I can gather), is an AVX512 instruction. I think I just need to figure out how to ensure the gui compiles itself and all dependencies with ROARING_ARCH=x86-64-v2
Still tearing hair out over this, but this indeed looks like an issue in CRoaringRS or windows CI:
https://github.com/RoaringBitmap/croaring-rs/pull/128
Edit: No, looks like a VC compiler bug
Could everyone having this issue now try using the latest alpha, 0.1.0-alpha.4!
Successfully running, performed a transaction! Thank you @yeastplume. OS: Windows 10.
Fast sync to end and 'Running'. 0.1.0-alpha.4 / win10 / AMD
I confirmed the sync went through in version alpha 4
Looks like this issue is resolved in alpha 4. The node is fully synced and running. Win 11 Home, AMD Ryzen 7 5800H. Thanks!
thanks all for testing! Closing
20240112 14:21:36.090 DEBUG grin_gui::gui - antialiasing: true 20240112 14:21:36.576 DEBUG grin_gui::gui::update - Font Loaded: Ok(()) 20240112 14:21:36.577 DEBUG grin_gui::gui::update - Font Loaded: Ok(()) 20240112 14:21:36.591 INFO grin_gui_core::logger - log4rs configuration changed - gui-stdout - DEBUG, gui-file - DEBUG, node-stdout - WARN, node-file - INFO, min level: DEBUG 20240112 14:21:40.085 DEBUG grin_gui::gui::element::menu - Interaction::ModeSelectedSettings(Node) 20240112 14:23:10.182 DEBUG grin_gui::gui::element::menu - Interaction::ModeSelectedSettings(Wallet) 20240112 14:23:14.984 DEBUG grin_gui::gui::element::wallet::operation::open - setup::wallet::operation::open::OpenWallet 20240112 14:23:14.986 INFO grin_gui_core::logger - log4rs configuration changed - gui-stdout - DEBUG, gui-file - DEBUG, node-stdout - WARN, node-file - INFO, wallet-stdout - WARN, wallet-file - INFO, min level: DEBUG 20240112 14:23:15.372 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } 20240112 14:23:15.372 DEBUG grin_gui::gui::element::wallet::operation::home - Updating transactions based on new wallet info data: None (old) vs WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 } (new) 20240112 14:23:15.412 DEBUG grin_gui::gui::element::wallet::operation::tx_list_display - Update Tx List Summary: false 20240112 14:23:15.412 DEBUG grin_gui::gui::element::wallet::operation::tx_list_display - Update Wallet Txs Summary: [] 20240112 14:23:25.453 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 0, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 0, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 }