Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Swaps history break #350

Closed
tonymorony opened this issue Jul 10, 2020 · 7 comments
Closed

[BUG]: Swaps history break #350

tonymorony opened this issue Jul 10, 2020 · 7 comments
Assignees
Labels
bug Something isn't working full-stack P1 Major issue needs to be fixed

Comments

@tonymorony
Copy link
Contributor

Describe the bug

I've used the app quite actively and performed over than 30 swaps as maker and taker, on some point my "Recent swaps" page cleared and new swaps not displaying here however DB is still there. I suspect that some swap file broke it, investigating.

App version: latest dev, OS: Windows

Log: history_adex.log

Noticed adex-api panic in log, maybe it's related:

10 07:08:23, common:438] panicked at '

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!   unwrap! called on Result::Err                                              !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
mm2src\coins\lp_coins.rs:397,9 in coins

Err(Os { code: 87, kind: Other, message: "The parameter is set incorrectly." })

', <::std::macros::panic macros>:5:6
10 07:08:23, common:439] backtrace
  ??:0] BaseThreadInitThunk 0x7ffbecf97bd3
  ??:0] RtlUserThreadStart 0x7ffbedd2ce50
@tonymorony tonymorony added the bug Something isn't working label Jul 10, 2020
@tonymorony
Copy link
Contributor Author

tonymorony commented Jul 10, 2020

By bisection method I've found a file caused it (without this one tx history displaying fine):

6462abf3-bcb9-46dc-bd55-693361d147e4.zip

It's a swap with "StartFailed" event (btw mm2 panic unrelated to that problem)

@tonymorony tonymorony added the P1 Major issue needs to be fixed label Jul 10, 2020
@tonymorony
Copy link
Contributor Author

that looks like exactly the same problem as in #234 so it's not fixed it seems

@artemii235
Copy link
Member

@tonymorony Do you see the panic repeatedly or it happened just once? It was caused by this code https://github.com/KomodoPlatform/atomicDEX-API/blob/08d013c6a5983ccb590b246a5600387f9918a805/mm2src/coins/lp_coins.rs#L397, history cache file failed to be renamed and panicked due to unwrap, we should handle this gracefully on MM2 side. Could you please open an issue in AtomicDEX-API repo for further investigation?

@tonymorony
Copy link
Contributor Author

@artemii235 I can see it on every GUI startup, sure will open the issue now

@Milerius
Copy link
Contributor

I'm following this one, thanks for the issue @tonymorony

@tonymorony
Copy link
Contributor Author

I'm following this one, thanks for the issue @tonymorony

great! yea, would be superb if GUI can handle "type": "StartFailed" swaps

@tonymorony tonymorony moved this from To do to Testing in AtomicDEX-Pro 0.2.0 (new UI) Jul 10, 2020
@tonymorony
Copy link
Contributor Author

fixed in #349

@tonymorony tonymorony moved this from Testing to Done in AtomicDEX-Pro 0.2.0 (new UI) Jul 11, 2020
@ca333 ca333 mentioned this issue Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working full-stack P1 Major issue needs to be fixed
Projects
No open projects
Development

No branches or pull requests

3 participants