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

show summary under portfolio history error, log attached #6464

Closed
styleisfoundation opened this issue Dec 16, 2022 · 6 comments · Fixed by #6466
Closed

show summary under portfolio history error, log attached #6464

styleisfoundation opened this issue Dec 16, 2022 · 6 comments · Fixed by #6466

Comments

@styleisfoundation
Copy link

Description

Version

Steps to reproduce

Expected behaviour

Actual behaviour

Screenshots

Device or machine

Additional info

@boring-cyborg
Copy link

boring-cyborg bot commented Dec 16, 2022

Thanks for opening your first issue here!

Be sure to follow the issue template. Your issue will be reviewed by a maintainer and labeled for further action.

@ghost
Copy link

ghost commented Dec 16, 2022

@styleisfoundation There's currently no information in your post above. Could you provide any details, as prompted by the template? A stack trace from bisq.log would be useful.

@styleisfoundation
Copy link
Author

styleisfoundation commented Dec 16, 2022 via email

@ghost
Copy link

ghost commented Dec 16, 2022

exception from the log:

Dec.-15 19:50:03.180 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: Uncaught Exception from thread JavaFX Application Thread 
Dec.-15 19:50:03.181 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: throwableMessage= Expected a finite double, but found NaN 
Dec.-15 19:50:03.182 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: throwableClass= class java.lang.IllegalArgumentException 
Dec.-15 19:50:03.192 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: Stack trace:
java.lang.IllegalArgumentException: Expected a finite double, but found NaN
    at bisq.common.util.MathUtils.roundDouble(MathUtils.java:46)
    at bisq.common.util.MathUtils.roundDouble(MathUtils.java:38)
    at bisq.core.util.FormattingUtils.formatToPercent(FormattingUtils.java:231)
    at bisq.core.util.FormattingUtils.formatToPercent(FormattingUtils.java:227)
    at bisq.core.util.FormattingUtils.formatToPercentWithSymbol(FormattingUtils.java:211)
    at bisq.core.trade.ClosedTradableFormatter.getTotalTxFeeAsString(ClosedTradableFormatter.java:103)
    at bisq.desktop.main.portfolio.closedtrades.ClosedTradesViewModel.getTotalTxFee(ClosedTradesViewModel.java:62)
    at bisq.desktop.main.overlays.windows.ClosedTradesSummaryWindow.addContent(ClosedTradesSummaryWindow.java:81)
    at bisq.desktop.main.overlays.windows.ClosedTradesSummaryWindow.show(ClosedTradesSummaryWindow.java:50)
    at bisq.desktop.main.portfolio.closedtrades.ClosedTradesView.lambda$activate$12(ClosedTradesView.java:335)
    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)

@styleisfoundation
Copy link
Author

styleisfoundation commented Dec 16, 2022 via email

@ghost
Copy link

ghost commented Dec 16, 2022

@styleisfoundation its just a UI display bug -- the reason it has not been noticed before is that it only happens in cases where there is literally zero trade history. Most user's have at least 1 completed trade before invoking that trades summary button and the bug does not manifest itself then. Anyway, thanks for bringing it up, PR #6466 is submitted to correct it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant