flathub / flathub/so.onekey.Wallet

Broken network

Open
#92 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Image

Image

Image

# logs
```
15:59:32.996 › [Shortcuts] Registration complete: 27/27 shortcuts registered successfully.
15:59:32.993 (app) › 15:59:32 | INFO : app => background => call : ["serviceNotification.clearBadgeWhenAppStart"]
15:59:32.993 (app) › 15:59:32 | INFO : app => background => call : ["serviceMarketV2.getMarketWatchListV2"]
15:59:32.993 (app) › 15:59:32 | INFO : app => background => call : ["serviceMarketV2.getMarketWatchListV2"]
[2:0718/155933.035548:INFO:CONSOLE:1] "Uncaught (in promise) UnwrappedIpcError: An object could not be cloned.", source: file:///main.59b328bc.c542fef760.bundle.js (1)
[2:0718/155933.036183:INFO:CONSOLE:1] "Uncaught (in promise) UnwrappedIpcError: An object could not be cloned.", source: file:///main.59b328bc.c542fef760.bundle.js (1)
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
15:59:33.102 (app) › 15:59:33 | INFO : app => background => call : ["serviceMarketV2.fetchMarketBasicConfig"]
15:59:33.103 (app) › 15:59:33 | INFO : app => background => call : ["serviceMarketV2.fetchMarketBasicConfig"]
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
15:59:33.995 (app) › 15:59:33 | INFO : app => background => call : ["simpleDb@customTokens.getRawData"]
15:59:33.995 (app) › 15:59:33 | INFO : app => background => call : ["simpleDb@riskTokenManagement.getRawData"]
15:59:33.995 (app) › 15:59:33 | INFO : app => background => call : ["simpleDb@localTokens.getRawData"]
15:59:33.996 (app) › 15:59:33 | INFO : app => background => call : ["simpleDb@aggregateToken.getRawData"]
15:59:33.996 (app) › 15:59:33 | INFO : app => background => call : ["serviceAllNetwork.getAllNetworkAccounts"]
15:59:34.003 (app) › 15:59:34 | INFO : app => background => call : ["serviceHistory.fetchAccountHistory"]
15:59:34.006 (app) › 15:59:34 | INFO : app => background => call : ["serviceSetting.syncWalletConfig"]
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
15:59:34.050 (app) › 15:59:34 | INFO : app => background => call : ["simpleDb@aggregateToken.getRawData"]
15:59:34.090 (app) › 15:59:34 | INFO : app => background => call : ["serviceToken.fetchAccountTokens"]
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
[2:0718/155934.165146:INFO:CONSOLE:1] "Uncaught (in promise) UnwrappedIpcError: An object could not be cloned.", source: file:///main.59b328bc.c542fef760.bundle.js (1)
15:59:34.465 › Cleaning up launch throttle
15:59:35.048 (app) › 15:59:35 | INFO : app => background => call : ["serviceHistory.fetchAccountHistory"]
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
15:59:36.241 › [Process Metrics] High memory processes: [
{ pid: 2, type: 'Browser', memoryMB: 266, cpu: '0.5' },
{ pid: 84, type: 'Tab', memoryMB: 374, cpu: '7.7' }
]
15:59:36.246 › [WebView Memory] pid=84 type=window url=file:/// memory=374MB
15:59:36.252 › [CPU Watchdog] tick cores=4 wallΔ=10.0s processes=[{"pid":84,"type":"Tab","electronPct":0,"effectivePct":30.9,"cum":66.67},{"pid":140,"type":"GPU","electronPct":39.63,"effectivePct":18.2,"cum":31.05},{"pid":2,"type":"Browser","electronPct":0,"effectivePct":2.1,"cum":7.59},{"pid":232,"type":"Tab","electronPct":0,"effectivePct":0.1,"cum":0.06},{"pid":246,"type":"Tab","electronPct":0,"effectivePct":0.1,"cum":0.16},{"pid":61,"type":"Utility","name":"Network Service","electronPct":0,"effectivePct":0,"cum":0.34}]
15:59:36.435 › Bridge heart check error, will restart bridge process: request to http://127.0.0.1:21320/ failed, reason: connect ECONNREFUSED 127.0.0.1:21320
15:59:36.435 › arch: x64
15:59:36.435 › bridge: Restarting
15:59:36.438 › Restarting

15:59:46.466 › restarting...
15:59:46.482 › arch: x64
15:59:46.482 › Throttling launch, cancel process
15:59:48.326 › [Shortcuts] Registration complete: 27/27 shortcuts registered successfully.
15:59:48.319 (app) › 15:59:48 | INFO : app => background => call : ["serviceNotification.clearBadgeWhenAppStart"]
15:59:49.320 (app) › 15:59:49 | INFO : app => background => call : ["simpleDb@customTokens.getRawData"]
15:59:49.320 (app) › 15:59:49 | INFO : app => background => call : ["simpleDb@riskTokenManagement.getRawData"]
15:59:49.320 (app) › 15:59:49 | INFO : app => background => call : ["simpleDb@localTokens.getRawData"]
15:59:49.320 (app) › 15:59:49 | INFO : app => background => call : ["simpleDb@aggregateToken.getRawData"]
15:59:49.320 (app) › 15:59:49 | INFO : app => background => call : ["serviceAllNetwork.getAllNetworkAccounts"]
15:59:49.322 (app) › 15:59:49 | INFO : app => background => call : ["serviceSetting.syncWalletConfig"]
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
15:59:49.343 (app) › 15:59:49 | INFO : app => background => call : ["simpleDb@aggregateToken.getRawData"]
15:59:49.366 (app) › 15:59:49 | INFO : app => background => call : ["serviceToken.fetchAccountTokens"]
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
15:59:49.440 › Cleaning up launch throttle
15:59:50.344 (app) › 15:59:50 | INFO : app => background => call : ["serviceHistory.fetchAccountHistory"]
Error occurred in handler for 'DESKTOP_API_CALL': Error: An object could not be cloned.
at Session. (node:electron/js2c/browser_init:2:112805)
15:59:51.467 › arch: x64
15:59:51.472 › Status error: request to http://127.0.0.1:21320/ failed, reason: connect ECONNREFUSED 127.0.0.1:21320
15:59:51.472 › Throttling startup
15:59:51.475 › [
'Starting process:',
'- Path: /app/onekey-wallet/resources/bin/bridge/onekeyd',
'- Params: ',
'- CWD: /app/onekey-wallet/resources/bin/bridge'
]
15:59:51.488 › Exited, code: 1 (Stopped: false)
```
# additional info
- OS: `Qubes 4.3.1` (debian vm)
- Flatpak (package version: `6.4.0`)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce on Qubes 4.3.1 in a Debian VM using Flatpak 6.4.0, then trace the DESKTOP_API_CALL errors and the bridge health check at http://127.0.0.1:21320/. Check the bridge process at /app/onekey-wallet/resources/bin/bridge/onekeyd and the reported object-cloning failures; done means the bridge starts successfully and network-related calls no longer fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, linux
Domain
desktop, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.