KomodoPlatform / komodo-wallet

Komodo Wallet
https://app.komodoplatform.com
GNU General Public License v3.0
240 stars 208 forks source link

[BUG]: crash after loosing internet connection #2203

Closed cipig closed 1 week ago

cipig commented 1 year ago

my ADEX Desktop crashed after i lost internet for a (i guess short) period of time... some of my open ssh sessions died too, but only couple of them, like 10% or so, so i guess it wasn't for long

logs showed this:

[10:36:05] [warning] [mm2.service.cpp:2522] [2755994]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755985]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755987]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755972]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755989]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755982]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755968]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755969]: We should reset connection here
[10:36:05] [warning] [mm2.service.cpp:2522] [2755961]: We should reset connection here
[10:36:05] [info] [qt.addressbook.page.cpp:59] [2755957]: disconnecting addressbook signals
[10:36:05] [info] [qt.wallet.manager.cpp:353] [2755957]: Set status: None
[10:36:05] [warning] [main.prerequisites.hpp:93] [2755957]: qrc:/Dex/Dashboard/FatalErrorModal.qml:18: Error: Cannot assign to non-existent property "current_page"
[10:36:05] [info] [mm2.service.cpp:325] [2755957]: destroying mm2 service...
[10:36:05] [info] [mm2.service.cpp:329] [2755957]: mm2 signals successfully disconnected
[10:36:05] [info] [mm2.service.cpp:333] [2755957]: preparing mm2 stop batch request
[10:36:05] [info] [mm2.service.cpp:337] [2755957]: processing mm2 stop batch request
[10:36:14] [error] [mm2.service.cpp:2514] [2755992]: pplx task error: Error resolving address from: process_tx_tokenscan, request: null
[10:36:31] [error] [mm2.service.cpp:2514] [2755981]: pplx task error: Failed to read HTTP status line from: fetch_single_balance, request: [
    {
        "coin": "ZRX-PLG20",
        "method": "my_balance",
        "userpass": ""
    }
]
[10:36:31] [warning] [mm2.service.cpp:2522] [2755981]: We should reset connection here

...

"a lot more of those fetch_single_balance errors"

...

[10:36:34] [warning] [mm2.service.cpp:2522] [2755991]: We should reset connection here
[10:36:44] [error] [main.prerequisites.hpp:107] [2755957]: sigabort received, cleaning mm2
[10:36:45] [error] [main.prerequisites.hpp:113] [2755957]: stacktrace:  0# signal_handler(int) at main.cpp:?
 1# 0x00007FED80C63D60 in /lib/x86_64-linux-gnu/libc.so.6
 2# gsignal in /lib/x86_64-linux-gnu/libc.so.6
 3# abort in /lib/x86_64-linux-gnu/libc.so.6
 4# 0x00007FED858CD7EC in /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 5# 0x00007FED858D8966 in /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 6# 0x00007FED858D89D1 in /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 7# std::thread::~thread() in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
 8# atomic_dex::mm2_service::~mm2_service() in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
 9# atomic_dex::mm2_service::~mm2_service() in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
10# antara::gaming::ecs::system_manager::sweep_systems_() in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
11# antara::gaming::ecs::system_manager::update() in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
12# atomic_dex::application::tick() in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
13# 0x00007FED826D5F30 in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
14# QTimer::timeout(QTimer::QPrivateSignal) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
15# QTimer::timerEvent(QTimerEvent*) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
16# QObject::event(QEvent*) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
17# QApplicationPrivate::notify_helper(QObject*, QEvent*) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Widgets.so.5
18# QApplication::notify(QObject*, QEvent*) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Widgets.so.5
19# QCoreApplication::notifyInternal2(QObject*, QEvent*) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
20# QTimerInfoList::activateTimers() in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
21# 0x00007FED826F8E99 in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
22# g_main_context_dispatch in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
23# 0x00007FED84123118 in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
24# g_main_context_iteration in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
25# QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
26# QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
27# QCoreApplication::exec() in /home/florian/Tools/AntaraAtomicDexAppDir/usr/bin/../lib/libQt5Core.so.5
28# run_app(int, char**) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
29# main in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
30# __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
31# _start in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop

[10:36:45] [error] [main.prerequisites.hpp:107] [2756016]: sigabort received, cleaning mm2
cipig commented 1 year ago

recent crash adter loosing internet connection for 60s or so

 0# signal_handler(int) at main.cpp:?
 1# 0x00007FE344664D60
 2# web::http::client::http_client::request(web::http::http_request, pplx::cancellation_token const&) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
 3# atomic_dex::global_price_service::on_force_update_providers(std::integral_constant<unsigned int, 611633173u> const&) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
 4# std::_Function_handler<void (pplx::task<void>), atomic_dex::global_price_service::on_force_update_providers(std::integral_constant<unsigned int, 611633173u> const&)::$_5>::_M_invoke(std::_Any_data const&, pplx::task<void>&&) at global.provider.cpp:?
 5# pplx::details::_MakeTToUnitFunc<pplx::task<void> >(std::function<void (pplx::task<void>)> const&)::{lambda(pplx::task<void>)#1}::operator()(pplx::task<void>) const in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
 6# unsigned char std::__invoke_impl<unsigned char, pplx::details::_MakeTToUnitFunc<pplx::task<void> >(std::function<void (pplx::task<void>)> const&)::{lambda(pplx::task<void>)#1}&, pplx::task<void> >(std::__invoke_other, pplx::details::_MakeTToUnitFunc<pplx::task<void> >(std::function<void (pplx::task<void>)> const&)::{lambda(pplx::task<void>)#1}&, pplx::task<void>&&) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
 7# pplx::details::_PPLTaskHandle<unsigned char, pplx::task<unsigned char>::_ContinuationTaskHandle<void, void, atomic_dex::global_price_service::on_force_update_providers(std::integral_constant<unsigned int, 611633173u> const&)::$_5&, std::integral_constant<bool, true>, pplx::details::_TypeSelectorNoAsync>, pplx::details::_ContinuationTaskHandleBase>::invoke() const at global.provider.cpp:?
 8# pplx::details::_TaskProcHandle::_RunChoreBridge(void*) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
 9# boost::asio::detail::completion_handler<boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > >, boost::asio::io_context::basic_executor_type<std::allocator<void>, 0ul> >::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
10# boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
11# boost::asio::detail::scheduler::run(boost::system::error_code&) in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
12# boost::asio::io_context::run() in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
13# boost::asio::detail::posix_thread::func<(anonymous namespace)::threadpool_impl::add_thread()::{lambda()#1}>::run() at threadpool.cpp:?
14# boost_asio_detail_posix_thread_function in AntaraAtomicDexAppDir/usr/bin/atomicdex-desktop
15# 0x00007FE351F1BEA7
16# 0x00007FE344727A2F
endrilickollari commented 1 year ago

After stimulating some times, it crash, also while there was no internet app became unresponsive. Tried to tap at coins listed but wallet page wont opened.

Retested again and I think that the app crashes when actually the device is connected with internet but there is no actually internet. Tested with internet turned off nothing happens. In the moment that the internet goes away, but device it is still connected the app crashes and closes automatically.

cipig commented 1 year ago

After stimulating some times, it crash, also while there was no internet app became unresponsive. Tried to tap at coins listed but wallet page wont opened.

Retested again and I think that the app crashes when actually the device is connected with internet but there is no actually internet. Tested with internet turned off nothing happens. In the moment that the internet goes away, but device it is still connected the app crashes and closes automatically.

That is exactly my scenario... router is still connected, but no external IPs reachable... this lasts for 1-5 minutes, then everything returns back to normal sometimes ADEX Desktop crashes when this happens to my internet, but not always, i would say 10% of the time or so