Multibit-Legacy / multibit-hd

Deprecated Bitcoin Wallet
https://multibit.org/blog/2017/07/26/multibit-shutdown.html
Other
172 stars 113 forks source link

History load failure #629

Closed jim618 closed 9 years ago

jim618 commented 9 years ago

Looks like a history load error: "@timestamp": "2015-06-22T16:23:35.060-05:00", "level": "ERROR", "thread_name": "safe-fixed-unlock-wallet-0", "logger_name": "org.multibit.hd.core.error_reporting.ExceptionHandler", "message": "Uncaught exception", "stack_trace": "org.multibit.hd.core.exceptions.HistoryLoadException: Could not parse input stream to protobuf at org.multibit.hd.core.store.HistoryProtobufSerializer.readHistoryEntries(HistoryProtobufSerializer.java:93) [multibit-hd.jar:na] at org.multibit.hd.core.services.PersistentHistoryService.loadHistory(PersistentHistoryService.java:177) [multibit-hd.jar:na] at org.multibit.hd.core.services.PersistentHistoryService.initialise(PersistentHistoryService.java:98) [multibit-hd.jar:na] at org.multibit.hd.core.services.PersistentHistoryService.(PersistentHistoryService.java:78) [multibit-hd.jar:na] at org.multibit.hd.core.services.CoreServices.getOrCreateHistoryService(CoreServices.java:577) [multibit-hd.jar:na] at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel.checkPasswordAndLoadWallet(CredentialsWizardModel.java:781) [multibit-hd.jar:na] at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel.access$500(CredentialsWizardModel.java:57) [multibit-hd.jar:na] at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel$10.call(CredentialsWizardModel.java:711)

gary-rowe commented 9 years ago

We'll need better error handling here (and the related Contacts and Payments streams) with a possible fallback to a local backup.

gary-rowe commented 9 years ago

The History error handling was different to Contacts and Payments in that it handed over an error to the crash reporter rather than passing it up the stack. However the problem of correctly handling it remains.

jim618 commented 9 years ago

Backups for history/contacts/payments is already raised as #407

gary-rowe commented 9 years ago

Given that the longer term fix is currently scheduled for Release 0.2 there's no need for this issue to remain open.

The error report should be updated to point to 407 instead of this issue.

Ready for review and close.

jim618 commented 9 years ago

This is now OK but #407 needs to be implemented. If there is a problem with the history the user sees a 'the password cannot unlock the wallet' rather than the crash reporter. This is better but needs a bit more work.

jim618 commented 9 years ago

Reopened as still seeing:

"@timestamp": "2015-06-30T21:28:19.670+02:00", "level": "ERROR", "thread_name": "safe-fixed-unlock-wallet-0", "logger_name": "org.multibit.hd.core.error_reporting.ExceptionHandler", "message": "Uncaught exception", "stack_trace": "org.multibit.hd.core.exceptions.HistoryLoadException: Could not parse input stream to protobuf at org.multibit.hd.core.store.HistoryProtobufSerializer.readHistoryEntries(HistoryProtobufSerializer.java:93) [multibit-hd.jar:na] at org.multibit.hd.core.services.PersistentHistoryService.loadHistory(PersistentHistoryService.java:177) [multibit-hd.jar:na] at org.multibit.hd.core.services.PersistentHistoryService.initialise(PersistentHistoryService.java:98) [multibit-hd.jar:na] at org.multibit.hd.core.services.PersistentHistoryService.(PersistentHistoryService.java:78) [multibit-hd.jar:na] at org.multibit.hd.core.services.CoreServices.getOrCreateHistoryService(CoreServices.java:577) [multibit-hd.jar:na] at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel.checkPasswordAndLoadWallet(CredentialsWizardModel.java:781) [multibit-hd.jar:na] at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel.access$500(CredentialsWizardModel.java:57) [multibit-hd.jar:na] at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel$10.call(CredentialsWizardModel.java:711) [multibit-hd.jar:na] at org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel$10.call(CredentialsWizardModel.java:703)

jim618 commented 9 years ago

Should be fixed by #647

Awaiting review and closing.

gary-rowe commented 9 years ago

Now that history is gone this should also disappear. Closing.