[bisq-network/bisq] Launch in Limbo with BisqException (#3510)

niyid notifications at github.com
Tue Oct 29 23:06:35 UTC 2019


### Description

<!-- brief description of the bug -->
I am not sure if this can happen to the general users, but it could happen fairly often to developers: while playing around with the navigation buttons, you may end up with a situation where the last navigation no longer exists. This renders the application inaccessible as a **`BisqException`** is thrown.

#### Version
<!-- commit id or version number -->
1.2.0, 1.1.x

### Steps to reproduce

<!--if you can reliably reproduce the bug, list the steps here  -->
1. Navigate to a particular screen then exit the application.
2. Go into the code and change the last navigation to something else so it no longer exists.
3. Rebuild the application and launch.
### Expected behaviour

<!--description of the expected behavior -->
The last navigation no longer exists so the application navigates to a default path (for instance - **`MainView.class, MarketView.class, TradesChartsView.class`**).
### Actual behaviour

<!-- explain what happened instead of the expected behaviour -->
A **`BisqException`** is thrown and the application launch never completes (stuck trying to load view).
### Screenshots

<!--Screenshots if gui related, drag and drop to add to the issue -->
![Screenshot from 2019-10-30 00-01-29](https://user-images.githubusercontent.com/20237127/67815992-d4041d80-faa8-11e9-8b62-ff95556d2e95.png)

#### Device or machine
<!-- device/machine used, operating system -->
Fedora 22 PC



#### Additional info

<!-- Additional information useful for debugging (e.g. logs) -->
```
bisq.core.exceptions.BisqException: No button matching class bisq.desktop.main.offer.offerbook.OfferBookView found
	at bisq.desktop.main.MainView.lambda$initialize$6(MainView.java:385)
	at java.base/java.util.Optional.orElseThrow(Optional.java:397)
	at bisq.desktop.main.MainView.lambda$initialize$7(MainView.java:385)
	at bisq.desktop.Navigation.lambda$navigateTo$1(Navigation.java:140)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:804)
	at java.base/java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:425)
	at bisq.desktop.Navigation.navigateTo(Navigation.java:140)
	at bisq.desktop.Navigation.navigateToPreviousVisitedView(Navigation.java:155)
	at bisq.desktop.main.MainView.lambda$initialize$9(MainView.java:396)
	at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:181)
	at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
	at javafx.base/javafx.beans.property.BooleanPropertyBase.fireValueChangedEvent(BooleanPropertyBase.java:104)
	at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111)
	at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
	at bisq.desktop.main.MainViewModel.onSetupComplete(MainViewModel.java:253)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1378)
	at bisq.core.app.BisqSetup.step5(BisqSetup.java:353)
	at bisq.core.app.BisqSetup.lambda$startP2pNetworkAndWallet$9(BisqSetup.java:571)
	at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:181)
	at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
	at javafx.base/javafx.beans.binding.ObjectBinding.invalidate(ObjectBinding.java:170)
	at javafx.base/com.sun.javafx.binding.BindingHelperObserver.invalidated(BindingHelperObserver.java:52)
	at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136)
	at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
	at javafx.base/javafx.beans.property.BooleanPropertyBase.fireValueChangedEvent(BooleanPropertyBase.java:104)
	at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111)
	at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
	at bisq.core.app.P2PNetworkSetup$2.onDataReceived(P2PNetworkSetup.java:163)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at bisq.network.p2p.P2PService.onDataReceived(P2PService.java:361)
	at bisq.network.p2p.peers.getdata.RequestDataManager$2.onComplete(RequestDataManager.java:339)
	at bisq.network.p2p.peers.getdata.RequestDataHandler.onMessage(RequestDataHandler.java:262)
	at bisq.network.p2p.network.NetworkNode.lambda$onMessage$4(NetworkNode.java:357)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at bisq.network.p2p.network.NetworkNode.onMessage(NetworkNode.java:357)
	at bisq.network.p2p.network.Connection.lambda$onMessage$5(Connection.java:429)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:804)
	at java.base/java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:425)
	at bisq.network.p2p.network.Connection.lambda$onMessage$6(Connection.java:429)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$9(PlatformImpl.java:418)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:417)
	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
	at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
	at java.base/java.lang.Thread.run(Thread.java:844)
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/issues/3510
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191029/90c426c7/attachment-0001.html>


More information about the bisq-github mailing list