monero-project / monero-gui

Monero: the secure, private, untraceable cryptocurrency
Other
1.74k stars 769 forks source link

GUI v0.12 unable to connect to remote / local daemon (error std::bad_cast) #1261

Closed dEBRUYNE-1 closed 6 years ago

dEBRUYNE-1 commented 6 years ago

Getting a few reports of people unable to connect to their own (local) node or remote node after upgrading to v0.12.0.0. Logs:

Case 1:

https://paste.fedoraproject.org/paste/QKowduN71M9OMENPNHX2Vg

https://paste.fedoraproject.org/paste/W3HZGq7O9~TTIfw3SSKJew

Reddit conversation: https://www.reddit.com/r/Monero/comments/89nn2p/monero_gui_v01200_lithium_luna_released/dws770b/


Case 2:

https://paste.fedoraproject.org/paste/dwXoiPEYE82lO5g7FB793Q

https://paste.fedoraproject.org/paste/pj3gZVLxvpcE5VWAvDsIXA

Reddit conversation: https://www.reddit.com/r/Monero/comments/89nn2p/monero_gui_v01200_lithium_luna_released/dwsh4fc/


EDIT: Three more Linux users affected here. The issue seems specific to Linux.

EDIT2: For anyone incurring this issue: As last resort you can always run GUI v0.11 with daemon (monerod) v0.12. Please see instructions below for using v0.11 and being sufficiently prepared for the upcoming scheduled network upgrade:

<dEBRUYNE> You mean v0.11?
<dEBRUYNE> If you're using a local node -> replace monerod v0.11 w/ monerod v0.12
<dEBRUYNE> remote node, just open v0.11 and you should be able to use it past the fork
<dEBRUYNE> However, the wallet cache may be incompatible, because (afaik) it's only forward compatible
<dEBRUYNE> So if you incur an issue opening the wallet, use -> <dEBRUYNE> Go to your wallet directory (Documents\Monero\<wallet-name> on Windows | ~/Monero/<wallet-name>) and rename <wallet-name> to <wallet-name>-old

After block 1546000 you should also ensure that your transaction uses ring size 7, otherwise it will be rejected by the network.

EDIT3: Better overview of workarounds:

https://monero.stackexchange.com/questions/7999/linux-gui-v0-12-does-not-connect-to-local-or-remote-node-stdbad-cast-error

EDIT4: GUI v0.12.2.0, which includes a fix for this particular issue, has been released:

https://www.reddit.com/r/Monero/comments/8vkx2g/gui_v01220_released/

dEBRUYNE-1 commented 6 years ago

+bug

badfiles commented 6 years ago

I run the daemon in my lan, the cli version successfully connects and syncs wallet with the blockchain. The gui version does nothing when I push 'connect', nothing in logs, status disconnected. WTF?

dEBRUYNE-1 commented 6 years ago

@badfiles: Which operating system are you using?

memorie62 commented 6 years ago

same problem on Win64. daemon fails. log shows

2018-04-05 00:33:03.194 8536 WARN net.http src/wallet/wallet_errors.h:794 C:/msys64/home/vagrant/slave/monero-gui-win64/build/monero/src/wallet/wallet2.cpp:5610:N5tools5error23no_connection_to_daemonE: no connection to daemon, request = gettransactions

the local file does not exist. Also, monerod.exe is not included in the Win64 download.

stevesbrain commented 6 years ago

No issue here; running Arch linux version, connecting to version 0.12.0.0 node also running on Arch Linux.

medusadigital commented 6 years ago

@memorie62 monerod.exe is definetely included, make sure no anti virus software removed it while unpacking

CaptainPlanet77 commented 6 years ago

I'm also affected. Running Xubuntu 16.04.

badfiles commented 6 years ago

Ubuntu 17.10 No connection attempts on the pool side, nothing in client logs.

mbay1971 commented 6 years ago

same on Ubuntu 16.04.4 LTS

dEBRUYNE-1 commented 6 years ago

@CaptainPlanet77, @badfiles, @mbay1971: As last resort you can always run GUI v0.11 with daemon (monerod) v0.12. Please see instructions below for using v0.11 and being sufficiently prepared for the upcoming scheduled network upgrade:

<dEBRUYNE> You mean v0.11?
<dEBRUYNE> If you're using a local node -> replace monerod v0.11 w/ monerod v0.12
<dEBRUYNE> remote node, just open v0.11 and you should be able to use it past the fork
<dEBRUYNE> However, the wallet cache may be incompatible, because (afaik) it's only forward compatible
<dEBRUYNE> So if you incur an issue opening the wallet, use -> <dEBRUYNE> Go to your wallet directory (Documents\Monero\<wallet-name> on Windows | ~/Monero/<wallet-name>) and rename <wallet-name> to <wallet-name>-old

After block 1546000 you should also ensure that your transaction uses ring size 7, otherwise it will be rejected by the network.

badfiles commented 6 years ago

cli 0.12 works fine. and I don't need local daemon, I already have a running 0.12 daemon on another machine.

M5M400 commented 6 years ago

same here. Ubuntu 17.10, v0.12 release binaries.

2018-04-05 15:42:25.591     7fa7dbfff700    WARN    net.http    src/wallet/wallet_errors.h:794  /home/vagrant/slave/monero-gui-ubuntu-amd64/build/monero/src/wallet/wallet2.cpp:5610:N5tools5error23no_connection_to_daemonE: no connection to daemon, request = gettransactions
2018-04-05 15:42:25.591     7fa7dbfff700    ERROR   wallet.wallet2  src/wallet/wallet2.cpp:3827 Failed to save rings, will try again next time
2018-04-05 15:42:25.593     7fa7f9772840    ERROR   default src/wallet/api/utils.cpp:46 error: std::bad_cast
2018-04-05 15:42:49.498     7fa7f9772840    ERROR   default src/wallet/api/utils.cpp:46 error: std::bad_cast

Same behavior for starting daemon in GUI or separately and for remote daemon.

erols commented 6 years ago

Same here on Ubuntu 17.10.

I noticed that I couldn't set Wallet Mode to Local Node in the gui

screenshot from 2018-04-05 21-33-35

dEBRUYNE-1 commented 6 years ago

@erols - If the Local Node button is grey it means that the wallet mode is set to local node.

erols commented 6 years ago

@dEBRUYNE-1 thanks.

ghost commented 6 years ago

Unable to connect to daemon using monero-gui-v0.12.0.0 on Mint 18 confirmed

notgiven688 commented 6 years ago

Same here. Ubuntu 17.10.

gypzie commented 6 years ago

@badfiles did you need to open and run the CLI on another machine to connect to daemon. I see that CLI works, it is also working for me. Were you able to use this to make the GUI work?

badfiles commented 6 years ago

CLI from GUI package syncs well with my remote daemon. GUI version does not connect and also does not exit properly. I am quite surprised you guys rolling out a release that does not connect and does not quit under most famous Linux distro.

dEBRUYNE-1 commented 6 years ago

I am quite surprised you guys rolling out a release that does not connect and does not quit under most famous Linux distro.

None of us did incur this bug whilst testing. Frankly, we were quite surprised too this bug was present.

For anyone that is affected, could you please test the buildbot binary from here?

https://build.getmonero.org/builders/monero-gui-ubuntu-amd64/builds/105

It should include a fix for this particular issue.

notgiven688 commented 6 years ago

@dEBRUYNE-1 buildbot binary also does not work.

dEBRUYNE-1 commented 6 years ago

@notgiven688 - Same error in the log?

notgiven688 commented 6 years ago

I only get this error: ERROR default src/wallet/api/utils.cpp:46 error: std::bad_cast

badfiles commented 6 years ago
2018-04-08 10:43:36.934     7f5af5d76840    ERROR   default src/wallet/api/utils.cpp:46 error: std::bad_cast
2018-04-08 10:44:01.643     7f5af5d76840    ERROR   default src/wallet/api/utils.cpp:46 error: std::bad_cast
dEBRUYNE-1 commented 6 years ago

@notgiven688 & @badfiles - are you using a local node or a remote node?

badfiles commented 6 years ago

remote node. I have no space for the whole blockchain on my laptop.

notgiven688 commented 6 years ago

@dEBRUYNE-1 local

vitalisator commented 6 years ago

@dEBRUYNE-1, same issue with the fix on Linux Mint x64 2018-04-08 16:42:56.522 7f70e8e447c0 ERROR default src/wallet/api/utils.cpp:46 error: std::bad_cast

vitalisator commented 6 years ago

@dEBRUYNE-1 trying to catch some debugging infos, maybe that helps (replaced my address with xxx) Maybe we could see more with compiled debug infos.

gdb ./monero-wallet-gui GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./monero-wallet-gui...(no debugging symbols found)...done. (gdb) catch throw Haltepunkt 1 (throw) (gdb) run Starting program: /home/me/Downloads/build/release/bin/monero-wallet-gui [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff0ffb700 (LWP 14610)] app startd [New Thread 0x7fffebfff700 (LWP 14611)] available width: 1920 available height: 1048 devicePixelRatio: 1 screen height: 1920 screen width: 1080 screen logical dpi: 96.1263 screen Physical dpi: 141.951 screen calculated ratio: 1.10899 [New Thread 0x7fffeaffe700 (LWP 14612)] [Thread 0x7fffeaffe700 (LWP 14612) exited] [New Thread 0x7fffeaffe700 (LWP 14613)] [New Thread 0x7fffe3fff700 (LWP 14614)] qml: check next false qml: Checking seed qml: check next false qml: Checking seed qml: check next false qml: check next false libpng warning: iCCP: known incorrect sRGB profile [New Thread 0x7fffe35fe700 (LWP 14615)] libpng warning: iCCP: known incorrect sRGB profile qml: transfer page loaded qml: PrivacyLevel changed:0 qml: mixin count: 6 qml: qrScannerEnabled disabled qrc:/qt-project.org/imports/QtQuick/Controls/ApplicationWindow.qml:241:9: QML ContentItem: Binding loop detected for property "implicitWidth" [New Thread 0x7fffe2d51700 (LWP 14616)] Checking for updates [New Thread 0x7fffe2550700 (LWP 14617)] [New Thread 0x7fffe1d4f700 (LWP 14618)] [New Thread 0x7fffe154e700 (LWP 14619)] [New Thread 0x7fffe0d4d700 (LWP 14620)] qml: languages availible: 29 [Thread 0x7fffe1d4f700 (LWP 14618) exited] [Thread 0x7fffe2550700 (LWP 14617) exited] [Thread 0x7fffe154e700 (LWP 14619) exited] Checking for updates - done [Thread 0x7fffe0d4d700 (LWP 14620) exited] qml: initializing.. setLanguage "de" setLanguage: loading translation file 'monero-core_de' from '/home/me/Downloads/build/release/bin/translations setLanguage: translation for language 'de' loaded successfully qml: transfer page loaded qml: PrivacyLevel changed:0 qml: mixin count: 6 qml: opening wallet at: /home/me/Monero/wallets/wallet/wallet.keys , network type: mainnet Wallet* WalletManager::openWallet(const QString&, const QString&, NetworkType::Type): opening wallet at /home/me/Monero/wallets/wallet/wallet.keys, nettype = 0 [New Thread 0x7fffe0d4d700 (LWP 14628)] 2018-04-08 17:03:04.669 7fffe2d51700 WARN wallet.wallet2 src/wallet/wallet2.cpp:3742 Loaded wallet keys file, with public address: xxx [Switching to Thread 0x7fffe2d51700 (LWP 14616)]

Thread 8 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x000055555735a6ed in __cxa_throw () (gdb) next Single stepping until exit from function __cxa_throw, which has no line number information. 2018-04-08 17:04:07.551 7fffe2d51700 ERROR wallet.wallet2 src/wallet/wallet2.cpp:5634 !r. THROW EXCEPTION: error::no_connection_to_daemon 2018-04-08 17:04:07.552 7fffe2d51700 WARN net.http src/wallet/wallet_errors.h:794 /home/vagrant/slave/monero-gui-ubuntu-amd64/build/monero/src/wallet/wallet2.cpp:5634:N5tools5error23no_connection_to_daemonE: no connection to daemon, request = gettransactions

Thread 8 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x000055555735a6ed in __cxa_throw () (gdb) next Single stepping until exit from function __cxa_throw, which has no line number information. 2018-04-08 17:04:34.923 7fffe2d51700 ERROR wallet.wallet2 src/wallet/wallet2.cpp:3851 Failed to save rings, will try again next time Wallet* WalletManager::openWallet(const QString&, const QString&, NetworkType::Type): opened wallet: xxx, status: 0 AddressBook getAll Subaddress getAll qml: check next false qml: >>> wallet opened: Wallet(0x7fffd47d2310) qml: Recovering from seed: false qml: restore Height 0 [Switching to Thread 0x7ffff7fb67c0 (LWP 14603)]

Thread 1 "monero-wallet-g" hit Catchpoint 1 (exception thrown), 0x000055555735a6ed in __cxa_throw () (gdb) next Single stepping until exit from function __cxa_throw, which has no line number information. [Thread 0x7fffe2d51700 (LWP 14616) exited] 2018-04-08 17:05:06.457 7ffff7fb67c0 ERROR default src/wallet/api/utils.cpp:46 error: std::bad_cast qml: initializing with daemon address: localhost:18081 "initAsync: localhost:18081" [New Thread 0x7fffe2d51700 (LWP 14677)] init non async

moneromooo-monero commented 6 years ago

Please post the output of "bt" when you're in gdb at that point, but before the call to next.

vitalisator commented 6 years ago

@moneromooo-monero, because the catched tree times here the full output:

gdb ./monero-wallet-gui GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./monero-wallet-gui...(no debugging symbols found)...done. (gdb) catch throw Haltepunkt 1 (throw) (gdb) run Starting program: /home/me/Downloads/build/release/bin/monero-wallet-gui [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff0ffb700 (LWP 18732)] app startd [New Thread 0x7fffebfff700 (LWP 18733)] available width: 1920 available height: 1048 devicePixelRatio: 1 screen height: 1920 screen width: 1080 screen logical dpi: 96.1263 screen Physical dpi: 141.951 screen calculated ratio: 1.10899 [New Thread 0x7fffeaffe700 (LWP 18734)] [Thread 0x7fffeaffe700 (LWP 18734) exited] [New Thread 0x7fffeaffe700 (LWP 18735)] [New Thread 0x7fffe3fff700 (LWP 18736)] qml: check next false qml: Checking seed qml: check next false qml: Checking seed qml: check next false qml: check next false libpng warning: iCCP: known incorrect sRGB profile [New Thread 0x7fffe35fe700 (LWP 18737)] libpng warning: iCCP: known incorrect sRGB profile qml: transfer page loaded qml: PrivacyLevel changed:0 qml: mixin count: 6 qml: qrScannerEnabled disabled qrc:/qt-project.org/imports/QtQuick/Controls/ApplicationWindow.qml:241:9: QML ContentItem: Binding loop detected for property "implicitWidth" [New Thread 0x7fffe2d51700 (LWP 18738)] Checking for updates [New Thread 0x7fffe2550700 (LWP 18739)] [New Thread 0x7fffe1d4f700 (LWP 18740)] [New Thread 0x7fffe154e700 (LWP 18741)] [New Thread 0x7fffe0d4d700 (LWP 18742)] [Thread 0x7fffe154e700 (LWP 18741) exited] [Thread 0x7fffe1d4f700 (LWP 18740) exited] [Thread 0x7fffe0d4d700 (LWP 18742) exited] [Thread 0x7fffe2550700 (LWP 18739) exited] qml: languages availible: 29 Checking for updates - done qml: initializing.. setLanguage "de" setLanguage: loading translation file 'monero-core_de' from '/home/me/Downloads/build/release/bin/translations setLanguage: translation for language 'de' loaded successfully qml: transfer page loaded qml: PrivacyLevel changed:0 qml: mixin count: 6 qml: opening wallet at: /home/me/Monero/wallets/wallet/wallet.keys , network type: mainnet Wallet* WalletManager::openWallet(const QString&, const QString&, NetworkType::Type): opening wallet at /home/me/Monero/wallets/wallet/wallet.keys, nettype = 0 [New Thread 0x7fffe0d4d700 (LWP 18753)] 2018-04-08 18:58:47.809 7fffe2d51700 WARN wallet.wallet2 src/wallet/wallet2.cpp:3742 Loaded wallet keys file, with public address: xxx [Switching to Thread 0x7fffe2d51700 (LWP 18738)]

Thread 8 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x000055555735a6ed in __cxa_throw () (gdb) bt

0 0x000055555735a6ed in __cxa_throw ()

1 0x00005555558c2c10 in void boost::throw_exception(boost::system::system_error const&) ()

2 0x00005555558de5b3 in boost::asio::detail::do_throw_error(boost::system::error_code const&, char const*) ()

3 0x00005555558edba3 in epee::net_utils::blocked_mode_client::connect(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::chrono::duration<long, std::ratio<1l, 1000l> >, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()

4 0x000055555591f83f in epee::net_utils::http::http_simple_client_template::invoke(boost::basic_string_ref<char, std::char_traits >, boost::basic_string_ref<char, std::char_traits >, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::chrono::duration<long, std::ratio<1l, 1000l> >, epee::net_utils::http::http_response_info const**, std::cxx11::list<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > > const&) ()

5 0x0000555555a6a674 in bool epee::net_utils::invoke_http_json<cryptonote::COMMAND_RPC_GET_TRANSACTIONS::request, cryptonote::COMMAND_RPC_GET_TRANSACTIONS::response, epee::net_utils::http::http_simple_client_template >(boost::basic_string_ref<char, std::char_traits >, cryptonote::COMMAND_RPC_GET_TRANSACTIONS::request const&, cryptonote::COMMAND_RPC_GET_TRANSACTIONS::response&, epee::net_utils::http::http_simple_client_template&, std::chrono::duration<long, std::ratio<1l, 1000l> >, boost::basic_string_ref<char, std::char_traits >) ()

6 0x00005555559689a3 in tools::wallet2::find_and_save_rings(bool) ()

7 0x00005555559b4262 in tools::wallet2::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, epee::wipeable_string const&) ()

8 0x00005555558ad2fa in Monero::WalletImpl::open(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()

9 0x00005555558d3099 in Monero::WalletManagerImpl::openWallet(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, Monero::NetworkType) ()

10 0x000055555586ebb9 in WalletManager::openWallet(QString const&, QString const&, NetworkType::Type) ()

11 0x0000555555873380 in QtConcurrent::RunFunctionTask<Wallet*>::run() ()

12 0x00005555570866fb in QThreadPoolThread::run() ()

13 0x000055555708a115 in QThreadPrivate::start(void*) ()

14 0x00007ffff62986ba in start_thread (arg=0x7fffe2d51700) at pthread_create.c:333

15 0x00007ffff5cc541d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

(gdb) next Single stepping until exit from function __cxa_throw, which has no line number information. 2018-04-08 18:59:44.479 7fffe2d51700 ERROR wallet.wallet2 src/wallet/wallet2.cpp:5634 !r. THROW EXCEPTION: error::no_connection_to_daemon 2018-04-08 18:59:44.479 7fffe2d51700 WARN net.http src/wallet/wallet_errors.h:794 /home/vagrant/slave/monero-gui-ubuntu-amd64/build/monero/src/wallet/wallet2.cpp:5634:N5tools5error23no_connection_to_daemonE: no connection to daemon, request = gettransactions

Thread 8 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x000055555735a6ed in __cxa_throw () (gdb) bt

0 0x000055555735a6ed in __cxa_throw ()

1 0x0000555555a0f497 in void tools::error::throw_wallet_ex<tools::error::no_connection_to_daemon, char [16]>(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&&, char const (&) [16]) ()

2 0x0000555555968aef in tools::wallet2::find_and_save_rings(bool) ()

3 0x00005555559b4262 in tools::wallet2::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, epee::wipeable_string const&) ()

4 0x00005555558ad2fa in Monero::WalletImpl::open(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()

5 0x00005555558d3099 in Monero::WalletManagerImpl::openWallet(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, Monero::NetworkType) ()

6 0x000055555586ebb9 in WalletManager::openWallet(QString const&, QString const&, NetworkType::Type) ()

7 0x0000555555873380 in QtConcurrent::RunFunctionTask<Wallet*>::run() ()

8 0x00005555570866fb in QThreadPoolThread::run() ()

9 0x000055555708a115 in QThreadPrivate::start(void*) ()

10 0x00007ffff62986ba in start_thread (arg=0x7fffe2d51700) at pthread_create.c:333

11 0x00007ffff5cc541d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

(gdb) next Single stepping until exit from function __cxa_throw, which has no line number information. 2018-04-08 19:00:03.483 7fffe2d51700 ERROR wallet.wallet2 src/wallet/wallet2.cpp:3851 Failed to save rings, will try again next time Wallet* WalletManager::openWallet(const QString&, const QString&, NetworkType::Type): opened wallet: xxx, status: 0 AddressBook getAll Subaddress getAll qml: check next false qml: >>> wallet opened: Wallet(0x7fffd47d2310) qml: Recovering from seed: false qml: restore Height 0 [Switching to Thread 0x7ffff7fb67c0 (LWP 18728)]

Thread 1 "monero-wallet-g" hit Catchpoint 1 (exception thrown), 0x000055555735a6ed in __cxa_throw () (gdb) bt

0 0x000055555735a6ed in __cxa_throw ()

1 0x0000555557364322 in __cxa_bad_cast ()

2 0x00005555573a926c in std::__cxx11::collate const& std::use_facet<std::__cxx11::collate >(std::locale const&) ()

3 0x0000555555cc8669 in boost::re_detail::cpp_regex_traits_base::imbue(std::locale const&) ()

4 0x0000555555cdd1a7 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > >::do_assign(char const, char const, unsigned int) ()

5 0x00005555558e11a7 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > >::basic_regex(char const*, unsigned int) ()

6 0x000055555591b848 in epee::net_utils::parse_url(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, epee::net_utils::http::url_content&) ()

7 0x0000555555b7e789 in tools::is_local_address(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()

8 0x0000555555929741 in Monero::Utils::isAddressLocal(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()

9 0x0000555555870e21 in WalletManager::isDaemonLocal(QString const&) const ()

10 0x00005555558a0a46 in WalletManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()

11 0x00005555558a0f68 in WalletManager::qt_metacall(QMetaObject::Call, int, void**) ()

12 0x0000555556d8c691 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const ()

13 0x0000555556d25c1c in CallMethod(QQmlObjectOrGadget const&, int, int, int, int, QV4::ExecutionEngine, QV4::CallData*) [clone .constprop.159] ()

14 0x0000555556d27746 in CallPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine, QV4::CallData) [clone .constprop.157] ()

15 0x0000555556d282bd in QV4::QObjectMethod::callInternal(QV4::CallData*) const ()

16 0x0000555556d3e37a in QV4::Runtime::callProperty(QV4::ExecutionEngine, int, QV4::CallData) ()

17 0x00007ffff7e0a4aa in ?? ()

18 0x00007fffeb000498 in ?? ()

19 0x0000555558767010 in ?? ()

20 0x00007fffeb0004d8 in ?? ()

21 0x0000555556d3b97e in QV4::Runtime::getProperty(QV4::ExecutionEngine*, QV4::Value const&, int) ()

22 0x00007fffe932e230 in ?? ()

23 0x0000000000000000 in ?? ()

(gdb)

sanderfoobar commented 6 years ago

Thanks @vitalisator

Some more gdb, tested against this debug build on Ubuntu 17 64bit (virtualbox vm from here) with debugging symbols.

[----------------------------------registers-----------------------------------]
RAX: 0x555558b75ce0 --> 0x5555586f12e8 --> 0x5555573e4720 (<_ZNSt8bad_castD2Ev>:        lea    rax,[rip+0x130cbb1]        # 0x5555586f12d8 <_ZTVSt8bad_cast>)
RBX: 0x555558b75ce0 --> 0x5555586f12e8 --> 0x5555573e4720 (<_ZNSt8bad_castD2Ev>:        lea    rax,[rip+0x130cbb1]        # 0x5555586f12d8 <_ZTVSt8bad_cast>)
RCX: 0x0
RDX: 0x5555573e4720 (<_ZNSt8bad_castD2Ev>:      lea    rax,[rip+0x130cbb1]        # 0x5555586f12d8 <_ZTVSt8bad_cast>)
RSI: 0x5555586f12c0 --> 0x5555586f0778 --> 0x5555573e33f0 (<_ZN10__cxxabiv120__si_class_type_infoD2Ev>: lea    rax,[rip+0x130d371]        # 0x5555586f0768 <_ZTVN10__cxxabiv120__si_class_type_infoE>)
RDI: 0x555558b75ce0 --> 0x5555586f12e8 --> 0x5555573e4720 (<_ZNSt8bad_castD2Ev>:        lea    rax,[rip+0x130cbb1]        # 0x5555586f12d8 <_ZTVSt8bad_cast>)
RBP: 0x5555586f12c0 --> 0x5555586f0778 --> 0x5555573e33f0 (<_ZN10__cxxabiv120__si_class_type_infoD2Ev>: lea    rax,[rip+0x130d371]        # 0x5555586f0768 <_ZTVN10__cxxabiv120__si_class_type_infoE>)
RSP: 0x7fffffffc740 --> 0x7fffffffc7c0 --> 0x555558764700 --> 0x1f
RIP: 0x5555573d9a3d (<__cxa_throw+13>:  nop)
R8 : 0x7ffff5f82b98 --> 0x7ffff5f82b88 --> 0x5555594963f0 --> 0x18
R9 : 0x5555586f1a98 --> 0x5555586f1460 --> 0x5555573e5730 (<_ZN10__cxxabiv117__class_type_infoD2Ev>:    lea    rax,[rip+0x130bd19]        # 0x5555586f1450 <_ZTVN10__cxxabiv117__class_type_infoE>)
R10: 0x555558b75c60 --> 0x0
R11: 0x5555587638f0 --> 0x5555586f3eb8 --> 0x55555741eb90 (<_ZNSt7codecvtIDic11__mbstate_tED2Ev>:       lea    rax,[rip+0x12d5261]        # 0x5555586f3df8 <_ZTVSt23__codecvt_abstract_baseIDic11__mbstate_tE>)
R12: 0x5555573e4720 (<_ZNSt8bad_castD2Ev>:      lea    rax,[rip+0x130cbb1]        # 0x5555586f12d8 <_ZTVSt8bad_cast>)
R13: 0x5555577b8afc --> 0x3c20746e756f6300 ('')
R14: 0x100000
R15: 0x7fffffffc7f0 --> 0x555558764700 --> 0x1f
EFLAGS: 0x206 (carry PARITY adjust zero sign trap INTERRUPT direction overflow)
[-------------------------------------code-------------------------------------]
   0x5555573d9a36 <__cxa_throw+6>:      mov    rbp,rsi
   0x5555573d9a39 <__cxa_throw+9>:      push   rbx
   0x5555573d9a3a <__cxa_throw+10>:     mov    rbx,rdi
=> 0x5555573d9a3d <__cxa_throw+13>:     nop
   0x5555573d9a3e <__cxa_throw+14>:     call   0x5555573e54a0 <__cxa_get_globals>
   0x5555573d9a43 <__cxa_throw+19>:     add    DWORD PTR [rax+0x8],0x1
   0x5555573d9a47 <__cxa_throw+23>:     mov    DWORD PTR [rbx-0x80],0x1
   0x5555573d9a4e <__cxa_throw+30>:     sub    rbx,0x20
[------------------------------------stack-------------------------------------]
0000| 0x7fffffffc740 --> 0x7fffffffc7c0 --> 0x555558764700 --> 0x1f
0008| 0x7fffffffc748 --> 0x7fffffffc7c0 --> 0x555558764700 --> 0x1f
0016| 0x7fffffffc750 --> 0x7fffffffc7d0 --> 0x555558764700 --> 0x1f
0024| 0x7fffffffc758 --> 0x5555573e3672 (nop    WORD PTR cs:[rax+rax*1+0x0])
0032| 0x7fffffffc760 --> 0x5555577b8afc --> 0x3c20746e756f6300 ('')
0040| 0x7fffffffc768 --> 0x55555742820c (nop    DWORD PTR [rax+0x0])
0048| 0x7fffffffc770 --> 0x7fffffffc7f0 --> 0x555558764700 --> 0x1f
0056| 0x7fffffffc778 --> 0x555555d44659 (<_ZN5boost9re_detail21cpp_regex_traits_baseIcE5imbueERKSt6locale+73>:  mov    QWORD PTR [rbx+0x18],rax)
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value

Thread 1 "monero-wallet-g" hit Catchpoint 1 (exception thrown), 0x00005555573d9a3d in __cxa_throw ()

gdb-peda$ bt
#0  0x00005555573d9a3d in __cxa_throw ()
#1  0x00005555573e3672 in __cxa_bad_cast ()
#2  0x000055555742820c in std::__cxx11::collate<char> const& std::use_facet<std::__cxx11::collate<char> >(std::locale const&) ()
#3  0x0000555555d44659 in boost::re_detail::cpp_regex_traits_base<char>::imbue(std::locale const&) ()
#4  0x0000555555d59197 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int) ()
#5  0x00005555558de248 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign (f=<optimized out>, p2=<optimized out>, p1=<optimized out>,
    this=0x55555871ce10 <epee::net_utils::parse_url(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, epee::net_utils::http::url_content&)::rexp_match_uri>) at /usr/include/boost/regex/v4/basic_regex.hpp:380
#6  boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign (f=<optimized out>, p=<optimized out>,
    this=0x55555871ce10 <epee::net_utils::parse_url(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, epee::net_utils::http::url_content&)::rexp_match_uri>) at /usr/include/boost/regex/v4/basic_regex.hpp:365
#7  boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::basic_regex (
    this=0x55555871ce10 <epee::net_utils::parse_url(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, epee::net_utils::http::url_content&)::rexp_match_uri>, p=<optimized out>, f=<optimized out>)
    at /usr/include/boost/regex/v4/basic_regex.hpp:334
#8  0x0000555555925acf in epee::net_utils::parse_url (url_str="", content=...) at /home/vagrant/slave/monero-gui-debug-ubuntu-amd64/build/monero/contrib/epee/include/net/net_parse_helpers.h:138
#9  0x0000555555bb92b1 in tools::is_local_address (address="") at /home/vagrant/slave/monero-gui-debug-ubuntu-amd64/build/monero/src/common/util.cpp:620
#10 0x000055555592e919 in Monero::Utils::isAddressLocal (address=...) at /home/vagrant/slave/monero-gui-debug-ubuntu-amd64/build/monero/src/wallet/api/utils.cpp:44
#11 0x0000555555860673 in WalletManager::isDaemonLocal (this=0x5555588c5fa0, daemon_address=...) at ../src/libwalletqt/WalletManager.cpp:275
#12 0x000055555589a419 in WalletManager::qt_static_metacall (_o=0x5555588c5fa0, _c=QMetaObject::InvokeMetaMethod, _id=0x26, _a=0x7fffffffd2c0) at moc_WalletManager.cpp:390
#13 0x000055555589ae5f in WalletManager::qt_metacall (this=0x5555588c5fa0, _c=QMetaObject::InvokeMetaMethod, _id=0x26, _a=0x7fffffffd2c0) at moc_WalletManager.cpp:497
#14 0x0000555556e0c401 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const ()
#15 0x0000555556da598c in CallMethod(QQmlObjectOrGadget const&, int, int, int, int*, QV4::ExecutionEngine*, QV4::CallData*) [clone .constprop.159] ()
#16 0x0000555556da74b6 in CallPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*) [clone .constprop.157] ()
#17 0x0000555556da802d in QV4::QObjectMethod::callInternal(QV4::CallData*) const ()
#18 0x0000555556dbe0ea in QV4::Runtime::callProperty(QV4::ExecutionEngine*, int, QV4::CallData*) ()
#19 0x00007fffee16df5a in ?? ()
#20 0x0000000000000000 in ?? ()
gdb-peda$ 

So it does:

Monero::Utils::isAddressLocal -> tools::is_local_address -> epee::net_utils::parse_url -> boost::basic_regex -> boost::re_detail -> dies here

Bug in boost?

root@osboxes:~# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
# ldd monero-wallet-gui
        linux-vdso.so.1 =>  (0x00007ffc9c7f9000)
        libpcsclite.so.1 => /lib/x86_64-linux-gnu/libpcsclite.so.1 (0x00007f921a19f000)
        libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f9219f86000)
        libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f9219d84000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9219b62000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f921991f000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f9219670000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9219337000)
        libEGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa-egl/libEGL.so.1 (0x00007f92190fe000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9218efa000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9218cf2000)
        libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f9218a80000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9218860000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9218557000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9218190000)
        /lib64/ld-linux-x86-64.so.2 (0x000055b108ea3000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9217f8c000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9217d86000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f9217b5c000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f921793e000)
        libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f921770c000)
        libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f9217507000)
        libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f9217304000)
        libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f9217101000)
        libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f9216ef9000)
        libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f9216cf0000)
        libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f9216aed000)
        libwayland-client.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f92168de000)
        libwayland-server.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-server.so.0 (0x00007f92166cc000)
        libgbm.so.1 => /usr/lib/x86_64-linux-gnu/libgbm.so.1 (0x00007f92164bf000)
        libmirclient.so.9 => /usr/lib/x86_64-linux-gnu/libmirclient.so.9 (0x00007f9216217000)
        libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f9216004000)
        libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f9215dd5000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9215bc3000)
        libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f92159c0000)
        libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f92157ba000)
        libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f92155b4000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f92153aa000)
        libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f921516a000)
        libmircommon.so.7 => /usr/lib/x86_64-linux-gnu/libmircommon.so.7 (0x00007f9214f23000)
        libmirprotobuf.so.3 => /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3 (0x00007f9214ca2000)
        libcapnp-0.5.3.so => /usr/lib/x86_64-linux-gnu/libcapnp-0.5.3.so (0x00007f9214a1d000)
        libmircore.so.1 => /usr/lib/x86_64-linux-gnu/libmircore.so.1 (0x00007f9214812000)
        libboost_system.so.1.62.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.62.0 (0x00007f921460e000)
        libprotobuf-lite.so.10 => /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.10 (0x00007f92143c0000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9214038000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9213e21000)
        libboost_filesystem.so.1.62.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.62.0 (0x00007f9213c06000)
        libkj-0.5.3.so => /usr/lib/x86_64-linux-gnu/libkj-0.5.3.so (0x00007f92139df000)
stoffu commented 6 years ago

According to https://svn.boost.org/trac10/ticket/4671, it seems to be due to the compiler's bug:

This is a problem with the locale you are using - for whatever reason it doesn't contain a std::collate<char> facet - as it's required to do so by the standard.

This issue can hopefully be fixed by upgrading the compiler to some newer version. FWIW the version of my compiler is g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609, and the binaries built with it don't exhibit this error.

Alternatively, a less desirable but easy workaround is to stop calling tools::is_local_address() and bring back the code removed in #1015.

stoffu commented 6 years ago

1298

joelstahre commented 6 years ago

Same issue for me.

dEBRUYNE-1 commented 6 years ago

For anyone that is affected by the issue, please check whether this one works:

https://build.getmonero.org/builders/monero-gui-linux-qt57/builds/4

vitalisator commented 6 years ago

@dEBRUYNE-1 , can you please include the qt in the build? ./start-gui.sh ./monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5: version Qt_5' not found (required by ./monero-wallet-gui) ./monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5: versionQt_5' not found (required by ./monero-wallet-gui) ./monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version Qt_5' not found (required by ./monero-wallet-gui) ./monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: versionQt_5' not found (required by ./monero-wallet-gui) ./monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.7' not found (required by ./monero-wallet-gui) ./monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: versionQt_5' not found (required by ./monero-wallet-gui)

DamnTele commented 6 years ago

I was having this issue on Ubuntu 16.04 then I upgraded to the 18.04 beta and now I'm have an intermediate connection to the daemon that fails every couple of minutes and then reconnects.

When I run the build you linked I get this.

$ ./start-gui.sh 

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

Reinstalling the application may fix this problem.
./start-gui.sh: line 7: 18278 Aborted                 (core dumped) "$SCRIPT_DIR"/monero-wallet-gui
ghost commented 6 years ago

Failed on MINT 18

sanderfoobar commented 6 years ago

@eggsdontbounce Could you post the output of ./monero-wallet-gui, using the build dEBRUYNE linked?

sanderfoobar commented 6 years ago

@vitalisator qtchooser -print-env / qmake -v / apt-cache madison qt5-default (assuming you have apt)

pazos commented 6 years ago

@DamnTele: what happens if you run the application with ./monero-wallet-gui -platform xcb

DamnTele commented 6 years ago

@pazos that got it running but i still have the intermediate connection issue, this is what it says in the console

Checking connection status
2018-04-12 21:11:01.709     7f044c6adc40    ERROR   net.http    contrib/epee/include/net/http_client.h:456  Unexpected recv fail
2018-04-12 21:11:01.709     7f044c6adc40    ERROR   WalletAPI   src/wallet/api/wallet.cpp:893   daemonBlockChainTargetHeight: possibly lost connection to daemon
ghost commented 6 years ago

@skftn I deleted the package after it failed then reverted back to the cli version. Will have a better look at it later in the day

dEBRUYNE-1 commented 6 years ago

@DamnTele - Unexpected recv fail usually means you already have a daemon (monerod) running. Could you check your process list?

grigio commented 6 years ago

@skftn

bin ⟩ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:    17.10
Codename:   artful
bin ⟩ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt4/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"
bin ⟩ qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
bin ⟩ apt-cache madison qt5-default
qt5-default | 5.9.1+dfsg-10ubuntu1 | http://it.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
bin ⟩ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:    17.10
Codename:   artful
bin ⟩ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt4/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"
bin ⟩ qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
bin ⟩ apt-cache madison qt5-default
qt5-default | 5.9.1+dfsg-10ubuntu1 | http://it.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
DamnTele commented 6 years ago

@dEBRUYNE-1 there's only one monerod running, the disconnecting seems to only happen when the daemon is still syncing, once it reaches 100% the gui stays connected.

also i noticed this in the daemon log


Height: 1550066/1550066 (100.0%) on mainnet, not mining, net hash 445.83 MH/s, v7, up to date, 6(out)+4(in) connections, uptime 0d 0h 8m 11s

Height: 1550066/1550601 (99.9%) on mainnet, not mining, net hash 445.83 MH/s, v7, up to date, 5(out)+5(in) connections, uptime 0d 0h 8m 20s

Height: 1550066/1550601 (99.9%) on mainnet, not mining, net hash 445.83 MH/s, v7, up to date, 7(out)+3(in) connections, uptime 0d 0h 8m 49s

Height: 1550066/1550066 (100.0%) on mainnet, not mining, net hash 445.83 MH/s, v7, up to date, 8(out)+3(in) connections, uptime 0d 0h 10m 55s

Height: 1550074/1550659 (99.9%) on mainnet, not mining, net hash 446.58 MH/s, v7, up to date, 8(out)+4(in) connections, uptime 0d 0h 22m 34s

Height: 1550075/1550075 (100.0%) on mainnet, not mining, net hash 445.80 MH/s, v7, up to date, 8(out)+5(in) connections, uptime 0d 0h 29m 22s

the number of blocks keeps going up and down by about 600, is this normal?

vitalisator commented 6 years ago

@skftn qtchooser -print-env ;qmake -v ; apt-cache madison qt5-default QT_SELECT="default" QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt4/bin" QTLIBDIR="/usr/lib/x86_64-linux-gnu" qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory qt5-default | 5.5.1+dfsg-16ubuntu7.5 | http://mirror.netcologne.de/ubuntu xenial-updates/universe amd64 Packages qt5-default | 5.5.1+dfsg-16ubuntu7 | http://mirror.netcologne.de/ubuntu xenial/universe amd64 Packages

lsb_release -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: LinuxMint Description: Linux Mint 18.3 Sylvia Release: 18.3 Codename: sylvia

el00ruobuob commented 6 years ago

@skftn same as vitalisator here:

Téléchargements/build/release/bin/start-gui.sh 
Téléchargements/build/release/bin/monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5: version `Qt_5' not found (required by Téléchargements/build/release/bin/monero-wallet-gui)
Téléchargements/build/release/bin/monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5: version `Qt_5' not found (required by Téléchargements/build/release/bin/monero-wallet-gui)
Téléchargements/build/release/bin/monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by Téléchargements/build/release/bin/monero-wallet-gui)
Téléchargements/build/release/bin/monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by Téléchargements/build/release/bin/monero-wallet-gui)
Téléchargements/build/release/bin/monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.7' not found (required by Téléchargements/build/release/bin/monero-wallet-gui)
Téléchargements/build/release/bin/monero-wallet-gui: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by Téléchargements/build/release/bin/monero-wallet-gui)
qtchooser -print-env ;qmake -v ; apt-cache madison qt5-default
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt5/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu
qt5-default | 5.5.1+dfsg-16ubuntu7.5 | http://fr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
qt5-default | 5.5.1+dfsg-16ubuntu7 | http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
el00ruobuob commented 6 years ago

@DamnTele @dEBRUYNE-1 Same behavior here:

2018-04-13 09:12:54.142 [P2P8]  INFO    global  src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [85.114.17.187:50836 INC] Sync data returned a new top block candidate: 1547734 -> 1550169 [Your node is 2435 blocks (3 days) behind] 
SYNCHRONIZATION started
2018-04-13 09:14:26.092 [P2P4]  INFO    global  src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [217.25.221.123:55642 INC] Sync data returned a new top block candidate: 1547734 -> 1550169 [Your node is 2435 blocks (3 days) behind] 
SYNCHRONIZATION started
2018-04-13 09:15:14.911 [P2P4]  INFO    global  src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [67.5.251.222:18080 OUT] Sync data returned a new top block candidate: 1547734 -> 1550458 [Your node is 2724 blocks (3 days) behind] 
SYNCHRONIZATION started
2018-04-13 09:15:37.406 [P2P1]  INFO    global  src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [77.41.132.51:44136 INC] Sync data returned a new top block candidate: 1547734 -> 1550820 [Your node is 3086 blocks (4 days) behind] 
SYNCHRONIZATION started