Open alexjba opened 4 months ago
cc: @alaibe @jrainville
Seems to be fine if the app is minimised while the chat section is selected.
I've got a few seconds freeze while the community section is selected:
WRN 2024-07-29 17:17:33.640+03:00 qt warning topics="qt" tid=315143 text="Unable to assign [undefined] to int" file=qrc:/imports/shared/views/chat/MessageView.qml:679 category=default
WRN 2024-07-29 17:17:33.640+03:00 qt warning topics="qt" tid=315143 text="QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }" file=qrc:/imports/shared/views/chat/MessageView.qml:383 category=default
WRN 2024-07-29 17:17:33.649+03:00 qt warning topics="qt" tid=315143 text="Unable to assign [undefined] to int" file=qrc:/imports/shared/views/chat/MessageView.qml:679 category=default
WRN 2024-07-29 17:17:33.649+03:00 qt warning topics="qt" tid=315143 text="QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }" file=qrc:/imports/shared/views/chat/MessageView.qml:383 category=default
WRN 2024-07-29 17:17:33.655+03:00 qt warning topics="qt" tid=315143 text="Unable to assign [undefined] to int" file=qrc:/imports/shared/views/chat/MessageView.qml:679 category=default
WRN 2024-07-29 17:17:33.656+03:00 qt warning topics="qt" tid=315143 text="QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }" file=qrc:/imports/shared/views/chat/MessageView.qml:383 category=default
WRN 2024-07-29 17:17:33.662+03:00 qt warning topics="qt" tid=315143 text="Unable to assign [undefined] to int" file=qrc:/imports/shared/views/chat/MessageView.qml:679 category=default
WRN 2024-07-29 17:17:34.148+03:00 qt warning topics="qt" tid=315143 text="QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }" file=qrc:/imports/shared/views/chat/MessageView.qml:383 category=default
WRN 2024-07-29 17:17:34.155+03:00 qt warning topics="qt" tid=315143 text="Unable to assign [undefined] to int" file=qrc:/imports/shared/views/chat/MessageView.qml:679 category=default
DBG 2024-07-29 17:18:36.339+03:00 [threadpool task thread] initiating task topics="task-threadpool" tid=315202 file=threadpool.nim:56 messageType=FetchAllCurrencyFormatsTaskArg:ObjectType threadid=315202 task="{\"$type\":\"FetchAllCurrencyFormatsTaskArg:ObjectType\",\"vptr\":105553133321760,\"slot\":\"onAllCurrencyFormatsFetched\"}"
DBG 2024-07-29 17:18:36.339+03:00 NewBE_callPrivateRPC topics="rpc" tid=315202 file=core.nim:27 rpc_method=wallet_fetchAllCurrencyFormats
DBG 2024-07-29 17:18:38.562+03:00 [threadpool task thread] initiating task topics="task-threadpool" tid=315201 file=threadpool.nim:56 messageType=FetchTokensMarketValuesTaskArg:ObjectType threadid=315201 task="{\"$type\":\"FetchTokensMarketValuesTaskArg:ObjectType\",\"symbols\":[\"ZRX\",\"1INCH\",\"ABYSS\",\"AIOZ\",\"API3\",\"ARPA\",\"ASH\",\"AAVE\",\"aUSDC\",\"GHST\",\"AGLD\",\"AERGO\",\"AE\",\"AST\",\"AKRO\",\"ALCX\",\"ACH\",\"ALEPH\",\"ALI\",\"TLM\",\"ALPHA\",\"AMB\",\"ADX\",\"AMP\",\"AMPL\",\"FORTH\",\"ANKR\",\"APE\",\"APPC\",\"ANT\",\"ARB\",\"ABT\",\"AVT\",\"ASM\",\"ATM\",\"AUDIO\",\"ATA\",\"AXL\",\"AXS\",\"BNB\",\"BTU\",\"BADGER\",\"BAL\",\"BNT\",\"BAND\",\"BOND\",\"BAT\",\"BRLN\",\"BICO\",\"BUSD\",\"BIT\",\"CSNO\",\"BLT\",\"BLUR\",\"BLZ\",\"BOBA\",\"AUCTION\",\"BTRST\",\"BTM\",\"CELO\",\"COTI\",\"CTSI\",\"CELR\",\"Centra\",\"XCN\",\"Link\",\"LINK\",\"CHZ\",\"CHR\",\"TIME\",\"CND\",\"COVAL\",\"CVC\",\"CLV\",\"COB\",\"CFI\",\"C98\",\"CDT\",\"cbETH\",\"COMP\",\"cDAI\",\"CVX\",\"CQT\",\"CRO\",\"CRPT\",\"CTX\",\"CRV\",\"GEN\",\"YFII\",\"DIA\",\"ROL\",\"DAI\",\"DTA\",\"DAT\",\"DPI\",\"DYP\",\"MANA\",\"USDD\",\"HST\",\"DPY\",\"DLT\",\"DENT\",\"DCN\",\"DDX\",\"DEXT\",\"DGD\",\"DGX\",\"ELON\",\"DRT\",\"DREP\",\"ELF\",\"EOS\",\"ETH2x-FLI\",\"EKO\",\"EDG\",\"EDO\",\"ELA\",\"ENG\",\"ENJ\",\"LEND\",\"ETH\",\"ENS\",\"ERN\",\"EUL\",\"EUROC\",\"EVX\",\"FTM\",\"FET\",\"1ST\",\"FXC\",\"FORT\",\"FRAX\",\"FXS\",\"FUEL\",\"FUN\",\"FX\",\"GMX\",\"GRID\",\"GYEN\",\"GALA\",\"GUSD\",\"MV\",\"JAM\",\"GTC\",\"GNO\",\"GODS\",\"GFI\",\"GLM\",\"GNT\",\"HOPR\",\"FARM\",\"HFT\",\"HEZ\",\"HIGH\",\"HOP\",\"HT\",\"ICN\",\"ICOS\",\"IDEX\",\"IOST\",\"ILV\",\"IMX\",\"INDEX\",\"INJ\",\"INV\",\"IOTX\",\"JASMY\",\"JUP\",\"KRL\",\"KEEP\",\"KP3R\",\"KIN\",\"KNC\",\"LCX\",\"LOKA\",\"LDO\",\"LQTY\",\"LUSD\",\"LPT\",\"LOOM\",\"LRC\",\"MATH\",\"MXC\",\"MIM\",\"MAGIC\",\"MKR\",\"MPL\",\"POND\",\"MASK\",\"MDT\",\"MLN\",\"MC\",\"MTL\",\"METIS\",\"MET\",\"DAR\",\"MIR\",\"MGO\",\"MOD\",\"MDA\",\"MCO\",\"MONA\",\"MTH\",\"TKN\",\"MCO2\",\"MOC\",\"MULTI\",\"MUSE\",\"ALICE\",\"NKN\",\"NEST\",\"NEXO\",\"NU\",\"NMR\",\"OMG\",\"ORCA\",\"OCEAN\",\"OTN\",\"OP\",\"OXT\",\"OGN\",\"TRAC\",\"ORN\",\"PRQ\",\"PAXG\",\"PLR\",\"PRG\",\"UPI\",\"USDP\",\"PYUSD\",\"PPP\",\"PAX\",\"PEPE\",\"PERP\",\"PLA\",\"PLU\",\"POE\",\"POLS\",\"NCT\",\"MATIC\",\"POLY\",\"PPT\",\"PT\",\"POWR\",\"PRIME\",\"GAL\",\"PRO\",\"NPXS\",\"QRL\",\"QRDO\",\"QNT\",\"QSP\",\"QKC\",\"QUICK\",\"R\",\"RAE\",\"REVV\",\"RHOC\",\"XRL\",\"RAD\",\"RAI\",\"RDN\",\"RLY\",\"RGT\",\"RARI\",\"RNDR\",\"REN\",\"REP\",\"REPv2\",\"REQ\",\"RBN\",\"RCN\",\"rETH\",\"ROOK\",\"RBC\",\"SAN\",\"UPP\",\"SKL\",\"SOL\",\"SNM\",\"SPANK\",\"SUKU\",\"SWFTC\",\"SAI\",\"SALT\",\"SPN\",\"KEY\",\"FOX\",\"SHIB\",\"SHPING\",\"ST\",\"SNGLS\",\"SLP\",\"CUBE\",\"SPELL\",\"SPIKE\",\"USDS\",\"FIS\",\"STG\",\"SNT\",\"STT\",\"STORJ\",\"STORM\",\"STX\",\"XDATA\",\"SUB\",\"SUPER\",\"RARE\",\"SUSHI\",\"SXP\",\"SYLO\",\"SYN\",\"MFG\",\"sUSD\",\"SNX\",\"TONE\",\"TGT\",\"TRB\",\"PAY\",\"USDT\",\"GRT\",\"SAND\",\"TVK\",\"T\",\"TNT\",\"TOKE\",\"TAAS\",\"TRIBE\",\"TRX\",\"TAUD\",\"TCAD\",\"TRU\",\"TGBP\",\"TUSD\",\"TRST\",\"UMA\",\"USDC\",\"USDC.e\",\"UBT\",\"UNFI\",\"UKG\",\"SOCKS\",\"UNI\",\"UBI\",\"VERI\",\"VRS\",\"VIB\",\"VGX\",\"WEENUS\",\"WETH9\",\"WINGS\",\"WOO\",\"WaBi\",\"WTC\",\"WAMPL\",\"WBTC\",\"WCFG\",\"WETH\",\"XEENUS\",\"XPA\",\"XSGD\",\"XYO\",\"XAUR\",\"YEENUS\",\"YGG\",\"ZEENUS\",\"ZSC\",\"agEUR\",\"DYDX\",\"DNT\",\"RLC\",\"MUSD\",\"PSTAKE\",\"tBTC\",\"YFI\"],\"currency\":\"USD\",\"vptr\":105553133321696,\"slot\":\"tokensMarketValuesRetrieved\"}"
DBG 2024-07-29 17:18:38.563+03:00 NewBE_callPrivateRPC topics="rpc" tid=315201 file=core.nim:27 rpc_method=wallet_fetchMarketValues
DBG 2024-07-29 17:18:38.612+03:00 [threadpool task thread] initiating task topics="task-threadpool" tid=315198 file=threadpool.nim:56 messageType=FetchTokensPricesTaskArg:ObjectType threadid=315198 task="{\"$type\":\"FetchTokensPricesTaskArg:ObjectType\",\"symbols\":[\"ZRX\",\"1INCH\",\"ABYSS\",\"AIOZ\",\"API3\",\"ARPA\",\"ASH\",\"AAVE\",\"aUSDC\",\"GHST\",\"AGLD\",\"AERGO\",\"AE\",\"AST\",\"AKRO\",\"ALCX\",\"ACH\",\"ALEPH\",\"ALI\",\"TLM\",\"ALPHA\",\"AMB\",\"ADX\",\"AMP\",\"AMPL\",\"FORTH\",\"ANKR\",\"APE\",\"APPC\",\"ANT\",\"ARB\",\"ABT\",\"AVT\",\"ASM\",\"ATM\",\"AUDIO\",\"ATA\",\"AXL\",\"AXS\",\"BNB\",\"BTU\",\"BADGER\",\"BAL\",\"BNT\",\"BAND\",\"BOND\",\"BAT\",\"BRLN\",\"BICO\",\"BUSD\",\"BIT\",\"CSNO\",\"BLT\",\"BLUR\",\"BLZ\",\"BOBA\",\"AUCTION\",\"BTRST\",\"BTM\",\"CELO\",\"COTI\",\"CTSI\",\"CELR\",\"Centra\",\"XCN\",\"Link\",\"LINK\",\"CHZ\",\"CHR\",\"TIME\",\"CND\",\"COVAL\",\"CVC\",\"CLV\",\"COB\",\"CFI\",\"C98\",\"CDT\",\"cbETH\",\"COMP\",\"cDAI\",\"CVX\",\"CQT\",\"CRO\",\"CRPT\",\"CTX\",\"CRV\",\"GEN\",\"YFII\",\"DIA\",\"ROL\",\"DAI\",\"DTA\",\"DAT\",\"DPI\",\"DYP\",\"MANA\",\"USDD\",\"HST\",\"DPY\",\"DLT\",\"DENT\",\"DCN\",\"DDX\",\"DEXT\",\"DGD\",\"DGX\",\"ELON\",\"DRT\",\"DREP\",\"ELF\",\"EOS\",\"ETH2x-FLI\",\"EKO\",\"EDG\",\"EDO\",\"ELA\",\"ENG\",\"ENJ\",\"LEND\",\"ETH\",\"ENS\",\"ERN\",\"EUL\",\"EUROC\",\"EVX\",\"FTM\",\"FET\",\"1ST\",\"FXC\",\"FORT\",\"FRAX\",\"FXS\",\"FUEL\",\"FUN\",\"FX\",\"GMX\",\"GRID\",\"GYEN\",\"GALA\",\"GUSD\",\"MV\",\"JAM\",\"GTC\",\"GNO\",\"GODS\",\"GFI\",\"GLM\",\"GNT\",\"HOPR\",\"FARM\",\"HFT\",\"HEZ\",\"HIGH\",\"HOP\",\"HT\",\"ICN\",\"ICOS\",\"IDEX\",\"IOST\",\"ILV\",\"IMX\",\"INDEX\",\"INJ\",\"INV\",\"IOTX\",\"JASMY\",\"JUP\",\"KRL\",\"KEEP\",\"KP3R\",\"KIN\",\"KNC\",\"LCX\",\"LOKA\",\"LDO\",\"LQTY\",\"LUSD\",\"LPT\",\"LOOM\",\"LRC\",\"MATH\",\"MXC\",\"MIM\",\"MAGIC\",\"MKR\",\"MPL\",\"POND\",\"MASK\",\"MDT\",\"MLN\",\"MC\",\"MTL\",\"METIS\",\"MET\",\"DAR\",\"MIR\",\"MGO\",\"MOD\",\"MDA\",\"MCO\",\"MONA\",\"MTH\",\"TKN\",\"MCO2\",\"MOC\",\"MULTI\",\"MUSE\",\"ALICE\",\"NKN\",\"NEST\",\"NEXO\",\"NU\",\"NMR\",\"OMG\",\"ORCA\",\"OCEAN\",\"OTN\",\"OP\",\"OXT\",\"OGN\",\"TRAC\",\"ORN\",\"PRQ\",\"PAXG\",\"PLR\",\"PRG\",\"UPI\",\"USDP\",\"PYUSD\",\"PPP\",\"PAX\",\"PEPE\",\"PERP\",\"PLA\",\"PLU\",\"POE\",\"POLS\",\"NCT\",\"MATIC\",\"POLY\",\"PPT\",\"PT\",\"POWR\",\"PRIME\",\"GAL\",\"PRO\",\"NPXS\",\"QRL\",\"QRDO\",\"QNT\",\"QSP\",\"QKC\",\"QUICK\",\"R\",\"RAE\",\"REVV\",\"RHOC\",\"XRL\",\"RAD\",\"RAI\",\"RDN\",\"RLY\",\"RGT\",\"RARI\",\"RNDR\",\"REN\",\"REP\",\"REPv2\",\"REQ\",\"RBN\",\"RCN\",\"rETH\",\"ROOK\",\"RBC\",\"SAN\",\"UPP\",\"SKL\",\"SOL\",\"SNM\",\"SPANK\",\"SUKU\",\"SWFTC\",\"SAI\",\"SALT\",\"SPN\",\"KEY\",\"FOX\",\"SHIB\",\"SHPING\",\"ST\",\"SNGLS\",\"SLP\",\"CUBE\",\"SPELL\",\"SPIKE\",\"USDS\",\"FIS\",\"STG\",\"SNT\",\"STT\",\"STORJ\",\"STORM\",\"STX\",\"XDATA\",\"SUB\",\"SUPER\",\"RARE\",\"SUSHI\",\"SXP\",\"SYLO\",\"SYN\",\"MFG\",\"sUSD\",\"SNX\",\"TONE\",\"TGT\",\"TRB\",\"PAY\",\"USDT\",\"GRT\",\"SAND\",\"TVK\",\"T\",\"TNT\",\"TOKE\",\"TAAS\",\"TRIBE\",\"TRX\",\"TAUD\",\"TCAD\",\"TRU\",\"TGBP\",\"TUSD\",\"TRST\",\"UMA\",\"USDC\",\"USDC.e\",\"UBT\",\"UNFI\",\"UKG\",\"SOCKS\",\"UNI\",\"UBI\",\"VERI\",\"VRS\",\"VIB\",\"VGX\",\"WEENUS\",\"WETH9\",\"WINGS\",\"WOO\",\"WaBi\",\"WTC\",\"WAMPL\",\"WBTC\",\"WCFG\",\"WETH\",\"XEENUS\",\"XPA\",\"XSGD\",\"XYO\",\"XAUR\",\"YEENUS\",\"YGG\",\"ZEENUS\",\"ZSC\",\"agEUR\",\"DYDX\",\"DNT\",\"RLC\",\"MUSD\",\"PSTAKE\",\"tBTC\",\"YFI\"],\"currencies\":[\"USD\"],\"vptr\":105553133321696,\"slot\":\"tokensPricesRetrieved\"}"
DBG 2024-07-29 17:18:38.617+03:00 NewBE_callPrivateRPC topics="rpc" tid=315198 file=core.nim:27 rpc_method=wallet_fetchPrices
DBG 2024-07-29 17:18:38.644+03:00 NewBE_callPrivateRPC topics="rpc" tid=315143 file=core.nim:27 rpc_method=wallet_checkRecentHistoryForChainIDs
DBG 2024-07-29 17:18:38.645+03:00 [threadpool task thread] initiating task topics="task-threadpool" tid=315199 file=threadpool.nim:56 messageType=BuildTokensTaskArg:ObjectType threadid=315199 task="{\"$type\":\"BuildTokensTaskArg:ObjectType\",\"accounts\":[\"0x8b6950bb8a74489a83e6a1281e3aa008f02bf368\",\"0xb5102d8abe09650e5f18248b18c09c27df1765b6\",\"0x4f014b9143c52a9f07b7edf9fd79ca2176532140\",\"0x00000000219ab540356cbb839cbe05303d7705fa\"],\"storeResult\":true,\"vptr\":105553133321792,\"slot\":\"onAllTokensBuilt\"}"
DBG 2024-07-29 17:18:38.645+03:00 NewBE_callPrivateRPC topics="rpc" tid=315199 file=core.nim:27 rpc_method=wallet_fetchOrGetCachedWalletBalances
ERR 2024-07-29 17:19:37.636+03:00 rpc response error topics="rpc" tid=315202 file=core.nim:36 err="\nstatus-go error [methodName:wallet_fetchAllCurrencyFormats, code:-32000, message:database is locked ]\n"
ERR 2024-07-29 17:19:37.636+03:00 error doing rpc request topics="rpc" tid=315202 file=core.nim:39 methodName=wallet_fetchAllCurrencyFormats exception="\nstatus-go error [methodName:wallet_fetchAllCurrencyFormats, code:-32000, message:database is locked ]\n"
ERR 2024-07-29 17:19:37.637+03:00 error fetchAllCurrencyFormatsTaskArg: tid=315202 file=async_tasks.nim:15 errDesription="\nstatus-go error [methodName:wallet_fetchAllCurrencyFormats, code:-32000, message:database is locked ]\n"
DBG 2024-07-29 17:19:38.590+03:00 [threadpool task thread] initiating task topics="task-threadpool" tid=315194 file=threadpool.nim:56 messageType=BuildTokensTaskArg:ObjectType threadid=315194 task="{\"$type\":\"BuildTokensTaskArg:ObjectType\",\"accounts\":[\"0x8b6950bb8a74489a83e6a1281e3aa008f02bf368\",\"0xb5102d8abe09650e5f18248b18c09c27df1765b6\",\"0x4f014b9143c52a9f07b7edf9fd79ca2176532140\",\"0x00000000219ab540356cbb839cbe05303d7705fa\"],\"storeResult\":true,\"vptr\":105553133321792,\"slot\":\"onAllTokensBuilt\"}"
DBG 2024-07-29 17:19:38.590+03:00 NewBE_callPrivateRPC topics="rpc" tid=315194 file=core.nim:27 rpc_method=wallet_fetchOrGetCachedWalletBalances
DBG 2024-07-29 17:19:38.594+03:00 [threadpool task thread] initiating task topics="task-threadpool" tid=315197 file=threadpool.nim:56 messageType=BuildTokensTaskArg:ObjectType threadid=315197 task="{\"$type\":\"BuildTokensTaskArg:ObjectType\",\"accounts\":[\"0x8b6950bb8a74489a83e6a1281e3aa008f02bf368\",\"0xb5102d8abe09650e5f18248b18c09c27df1765b6\",\"0x4f014b9143c52a9f07b7edf9fd79ca2176532140\",\"0x00000000219ab540356cbb839cbe05303d7705fa\"],\"storeResult\":true,\"vptr\":105553133321792,\"slot\":\"onAllTokensBuilt\"}"
DBG 2024-07-29 17:19:38.595+03:00 NewBE_callPrivateRPC topics="rpc" tid=315197 file=core.nim:27 rpc_method=wallet_fetchOrGetCachedWalletBalances
ERR 2024-07-29 17:19:38.616+03:00 error onAllCurrencyFormatsFetched: tid=315143 file=service.nim:95 errDescription="json.nim(837, 10) `node.kind == JObject` : pairs() can not iterate a JsonNode of kind JString"
DBG 2024-07-29 17:19:38.622+03:00 NewBE_callPrivateRPC topics="rpc" tid=315143 file=core.nim:27 rpc_method=wakuext_slowdownArchivesImport
DBG 2024-07-29 17:19:38.727+03:00 NewBE_callPrivateRPC topics="rpc" tid=315143 file=core.nim:27 rpc_method=wakuext_speedupArchivesImport
I've got a few seconds freeze while the community section is selected:
It seems like the rpc calls are still wallet related:
wallet_fetchAllCurrencyFormats
(async) (this one returns with the error that the DB is locked)wallet_fetchMarketValues
(async)wallet_fetchPrices
(async)wallet_checkRecentHistoryForChainIDs
wallet_fetchOrGetCachedWalletBalances
(async)It's hard to tell which one locks the DB since some of them are async
Bug Report
Description
The app is frozen after some time of inactivity if the app is minimised. It seems to be related to
wallet_restartWalletReloadTimer
and I've reproduced it every time while the wallet was active. Will check and update if it can be reproduced on other sections as well.Logs below
Steps to reproduce
Expected behavior
Actual behavior
Additional Information