mimblewimble / grin-gui

GUI for Grin Node + Wallet
GNU General Public License v3.0
20 stars 21 forks source link

[Bug]: Can't load slatepack file at #80

Open phyro opened 9 months ago

phyro commented 9 months ago

Describe the bug Clicking on Show slatepack gives an error message at the top of the gui app saying "Can't load slatepack file at ".

NOTE: This is the same on Contracts and Legacy flow.

To Reproduce Steps to reproduce the behavior:

  1. Make a self-spend tx and broadcast it to the node
  2. Click on tx log entry that was created
  3. Click on Show slatepack
  4. See error

Expected behavior I would expect that either the button isn't there or that it shows a slatepack.

Screenshots /

Desktop (please complete the following information):

Additional context It works until I finalize the transaction. From this I'd assume that the slatepack file gets deleted upon finalization.

Anynomouss commented 7 months ago

I have the same issue, I use alpha-4 version, I thought that contained the bug fix, or is it not yet in that release? Let me know, if it is the main branch but not in alpha-4 I can test if it works when I build from the main branch.

yeastplume commented 7 months ago

I have the same issue, I use alpha-4 version, I thought that contained the bug fix, or is it not yet in that release? Let me know, if it is the main branch but not in alpha-4 I can test if it works when I build from the main branch.

It's ready in the PR but not merged yet.. I'm going to fix one or two more things, merge the PR and tag another build soon

yeastplume commented 7 months ago

Merged now in alpha 5 if anyone wants to check

cekickafa commented 7 months ago

wwd

Anynomouss commented 7 months ago

I tried sending between IronBelly and GrinGUI by pasting slates. Unfortunately the bug persists for me in Alpha-5, I use the debug version. the information from the debug does not tell me much except that the wallet does see the transaction as awaiting finalization for 0.01 Grin. I do see the path that is shown in the error is strange since it is mixing forward and backward slashes 'Can't load slatepack file at C:\anynomous.grin\main\grin_wallet\default/slatepack/6a.........slatepack'

20240301 15:19:19.340 DEBUG grin_gui::gui::element::wallet::operation::home - Reload stored slatepack at: 6a6c86cf-41cf-4998-9cf4-00bb2804bf49 20240301 15:19:20.001 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 2682168, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 1000000, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 }.

I tried to cancel the transaction, that also failed: Error_canceling

Cancelling the transaction results in an time-out:

20240301 15:30:54.383 ERROR grin_wallet_impls::node_clients::http - Outputs by id failed: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): operation timed out 20240301 15:30:54.384 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node

Tried again later, this time cancelling failed because it cannot find the json

20240301 15:34:19.477 ERROR grin_wallet_impls::node_clients::http - Response { result: Some(Object {"Err": String("NotFound")}), error: None, id: Number(1), jsonrpc: Some("2.0") } 20240301 15:34:19.478 ERROR grin_wallet_impls::node_clients::http - Unable to parse response for get_unspent_outputs: JSON decode error: invalid type: null, expected struct OutputListing 20240301 15:34:19.492 ERROR grin_gui - Failed to Cancel Transaction 20240301 15:34:19.492 ERROR grin_gui - caused by: Client Callback Error: Unable to parse response for get_unspent_outputs: JSON decode error: invalid type: null, expected struct OutputListing