Walletwasabi: Wallet crashes when clicking "Import Coldcard"

Created on 30 Jul 2020  ·  14Comments  ·  Source: zkSNACKs/WalletWasabi

General Description

Wallet crashes when clicking "Import Coldcard"

How To Reproduce?

  1. Go to 'Hardware Wallet'
  2. Click on 'Import Coldcard'
  3. A file selection dialog saying:
    "Import Coldcard: Failed to use your operating system's OpenFileDialog. Please provide the path to the file you want to open manually"
    screen briefly appears before wallet crashes.

Screenshots

image

Operating System

Please consider your privacy, before completing this section.
Example: Ubuntu 20.04.1 LTS

Logs

2020-07-30 17:37:55 WARNING AvaloniaControlsExtensions (38) System.ArgumentException: The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'. (Parameter 'bytes')
at System.Text.Encoding.ThrowBytesOverflow()
at System.Text.Encoding.ThrowBytesOverflow(EncoderNLS encoder, Boolean nothingEncoded)
at System.Text.Encoding.GetBytesWithFallback(ReadOnlySpan1 chars, Int32 originalCharsLength, Span1 bytes, Int32 originalBytesLength, EncoderNLS encoder)
at System.Text.Encoding.GetBytesWithFallback(Char* pOriginalChars, Int32 originalCharCount, Byte* pOriginalBytes, Int32 originalByteCount, Int32 charsConsumedSoFar, Int32 bytesWrittenSoFar)
at System.Text.UTF8Encoding.GetBytes(String s, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex)
at Avalonia.FreeDesktop.NativeMethods.ReadLink(String path)
at Avalonia.FreeDesktop.LinuxMountedVolumeInfoListener.GetSymlinkTarget(String x)
at Avalonia.FreeDesktop.LinuxMountedVolumeInfoListener.b__8_7(FileInfo x)
at System.Linq.Enumerable.SelectArrayIterator2.MoveNext() at System.Linq.Lookup2.CreateForJoin(IEnumerable1 source, Func2 keySelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.GroupJoinIterator[TOuter,TInner,TKey,TResult](IEnumerable1 outer, IEnumerable1 inner, Func2 outerKeySelector, Func2 innerKeySelector, Func3 resultSelector, IEqualityComparer1 comparer)+MoveNext() at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()
at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items)
at System.Collections.Generic.EnumerableHelpers.ToArrayT
at Avalonia.FreeDesktop.LinuxMountedVolumeInfoProvider.Listen(ObservableCollection1 mountedDrives) at Avalonia.Dialogs.ManagedFileChooserViewModel..ctor(FileSystemDialog dialog) at Avalonia.Dialogs.ManagedFileDialogExtensions.ManagedSystemDialogImpl1.Show(SystemDialog d, IWindowImpl parent)
at Avalonia.Dialogs.ManagedFileDialogExtensions.ManagedSystemDialogImpl1.ShowFileDialogAsync(FileDialog dialog, IWindowImpl parent) at Avalonia.Controls.AvaloniaControlsExtensions.ShowOpenSaveFileDialogAsync(FileDialog me, Window parent) at Avalonia.Controls.AvaloniaControlsExtensions.ShowAsync(FileDialog me, Window parent, Boolean fallBack) 2020-07-30 17:37:56 WARNING Program (85) System.ArgumentException: The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'. (Parameter 'bytes') at System.Text.Encoding.ThrowBytesOverflow() at System.Text.Encoding.ThrowBytesOverflow(EncoderNLS encoder, Boolean nothingEncoded) at System.Text.Encoding.GetBytesWithFallback(ReadOnlySpan1 chars, Int32 originalCharsLength, Span1 bytes, Int32 originalBytesLength, EncoderNLS encoder) at System.Text.Encoding.GetBytesWithFallback(Char* pOriginalChars, Int32 originalCharCount, Byte* pOriginalBytes, Int32 originalByteCount, Int32 charsConsumedSoFar, Int32 bytesWrittenSoFar) at System.Text.UTF8Encoding.GetBytes(String s, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex) at Avalonia.FreeDesktop.NativeMethods.ReadLink(String path) at Avalonia.FreeDesktop.LinuxMountedVolumeInfoListener.GetSymlinkTarget(String x) at Avalonia.FreeDesktop.LinuxMountedVolumeInfoListener.<Poll>b__8_7(FileInfo x) at System.Linq.Enumerable.SelectArrayIterator2.MoveNext()
at System.Linq.Lookup2.CreateForJoin(IEnumerable1 source, Func2 keySelector, IEqualityComparer1 comparer)
at System.Linq.Enumerable.GroupJoinIteratorTOuter,TInner,TKey,TResult+MoveNext()
at System.Linq.Enumerable.SelectManyIteratorTSource,TCollection,TResult in D:a1sRx.NETSourcesrcSystem.ReactiveConcurrencyScheduler.Services.Emulation.cs:line 79
at System.Reactive.Concurrency.DefaultScheduler.PeriodicallyScheduledWorkItem1.<>c.<Tick>b__5_0(PeriodicallyScheduledWorkItem1 closureWorkItem) in D:a1sRx.NETSourcesrcSystem.ReactiveConcurrencyDefaultScheduler.cs:line 127
at System.Reactive.Concurrency.AsyncLock.<>c__51.<Wait>b__5_0(Delegate actionObject, Object stateObject) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\AsyncLock.cs:line 53 at System.Reactive.Concurrency.AsyncLock.Wait(Object state, Delegate delegate, Action2 action) in D:a1sRx.NETSourcesrcSystem.ReactiveConcurrencyAsyncLock.cs:line 93
at System.Reactive.Concurrency.AsyncLock.Wait[TState](TState state, Action1 action) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\AsyncLock.cs:line 54 at System.Reactive.Concurrency.DefaultScheduler.PeriodicallyScheduledWorkItem1.Tick() in D:a1sRx.NETSourcesrcSystem.ReactiveConcurrencyDefaultScheduler.cs:line 128
at System.Reactive.Concurrency.ConcurrencyAbstractionLayerImpl.PeriodicTimer.Tick(Object state) in D:a1sRx.NETSourcesrcSystem.ReactiveConcurrencyConcurrencyAbstractionLayerImpl.cs:line 218
at System.Reactive.Concurrency.ConcurrencyAbstractionLayerImpl.PeriodicTimer.<>c.<.ctor>b__2_0(Object _) in D:a1sRx.NETSourcesrcSystem.ReactiveConcurrencyConcurrencyAbstractionLayerImpl.cs:line 210
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.TimerQueueTimer.CallCallback(Boolean isThreadPool)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()
2020-07-30 17:38:03 INFO WalletManager (30) .ctor finished in 6 milliseconds.
2020-07-30 17:38:03 INFO Global (79) .ctor finished in 354 milliseconds.

2020-07-30 17:38:03 INFO Program (43) Wasabi GUI started (c021e9bc-63a8-46ae-80ab-411a4ab62109).
2020-07-30 17:38:04 INFO TransactionStore (29) MempoolStore.InitializeAsync finished in 11 milliseconds.
2020-07-30 17:38:04 INFO TransactionStore (29) ConfirmedStore.InitializeAsync finished in 5 milliseconds.
2020-07-30 17:38:04 INFO AllTransactionStore (28) InitializeAsync finished in 17 milliseconds.
2020-07-30 17:38:04 INFO TorProcessManager (251) Starting Tor monitor...
2020-07-30 17:38:04 INFO Global (168) TorProcessManager is initialized.
2020-07-30 17:38:04 INFO TorProcessManager (75) Tor is already running.
2020-07-30 17:38:05 INFO Global (392) Loaded AddressManager from /home/basalon/.walletwasabi/client/AddressManager/AddressManagerMain.dat.
2020-07-30 17:38:08 INFO IndexStore (45) InitializeAsync finished in 3 seconds.
2020-07-30 17:38:08 INFO BitcoinStore (39) InitializeAsync finished in 3 seconds.
2020-07-30 17:38:08 INFO HostedServices (51) Started Software Update Checker.
2020-07-30 17:38:08 INFO Global (290) Start connecting to nodes...
2020-07-30 17:38:08 INFO Global (314) Start synchronizing filters...

Wasabi Version

1.1.11.1 from official website

debug

All 14 comments

Can't reproduce

Happens every time on my system

can you please see if the error is still present in the v1.1.12RC2

Download our newest release. Feel free to reopen if you still encounter the issue:

https://wasabiwallet.io/#download

Thanks,
I'm on a vacation. Have no computer.
I'll check it up when I get back.

בתאריך יום ה׳, 6 באוג׳ 2020, 12:01, מאת Dávid Molnár ‏<
[email protected]>:

Closed #4089 https://github.com/zkSNACKs/WalletWasabi/issues/4089.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zkSNACKs/WalletWasabi/issues/4089#event-3628105416,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APFIZFINQZQB26RZO5TZFMLR7JWPVANCNFSM4PN42Y7A
.

It still happens.

ah crap, the LinuxMountedVolumeInfoListener in avalonia's managed dialog failed for some reason... Did you have any non-latin characters in either wasabi's folder path or anywhere else?

Not as far as I know.
It's a new installation of ubuntu.
Almost did not anything there.
Installed tor browser and electrum...
Did not make any custom ethnic stuff...

בתאריך יום ב׳, 10 באוג׳ 2020, 02:55, מאת Jumar Macato ‏<
[email protected]>:

ah crap, the LinuxMountedVolumeInfoListener in avalonia's managed dialog
failed for some reason... Did you have any non-latin characters in either
wasabi's folder path or anywhere else?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zkSNACKs/WalletWasabi/issues/4089#issuecomment-671116686,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APFIZFN7CZ4WTNH7GX6TM6LR74ZQFANCNFSM4PN42Y7A
.

The problem is long filenames in wallets path.
Try stuff like "George W. Bush Junior savings custody wallet.json"

בתאריך יום ב׳, 10 באוג׳ 2020, 22:52, מאת Arkady Volman ‏<[email protected]

:

Not as far as I know.
It's a new installation of ubuntu.
Almost did not anything there.
Installed tor browser and electrum...
Did not make any custom ethnic stuff...

בתאריך יום ב׳, 10 באוג׳ 2020, 02:55, מאת Jumar Macato ‏<
[email protected]>:

ah crap, the LinuxMountedVolumeInfoListener in avalonia's managed dialog
failed for some reason... Did you have any non-latin characters in either
wasabi's folder path or anywhere else?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zkSNACKs/WalletWasabi/issues/4089#issuecomment-671116686,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APFIZFN7CZ4WTNH7GX6TM6LR74ZQFANCNFSM4PN42Y7A
.

@soosr can you test this too, you are on ColdCard currently.

Can't reproduce on Ubuntu 20.04.1 LTS.

Tried it with the filename of George W. Bush Junior savings custody walletGeorge W. Bush Junior savings custody walletGeorge W. Bush Junior savings custody walletGeorge W. Bush Junior savings custody walletGeorge W. Bush Junior savings custody walletGeorge W. Bush Junior savings s.json.
Works fine.

I tested it again with a code that always uses the manual path selector.
It created and loaded the wallet successfully.

2020-09-01 10:33:29 INFO ConnectHardwareWalletViewModel (121) Creating a new wallet file.
2020-09-01 10:33:51 INFO ClientState (470) Round (26517) added.
2020-09-01 10:33:51 INFO ClientState (470) Round (26518) added.
2020-09-01 10:33:51 INFO WalletManager (169) Starting Wallet...
2020-09-01 10:33:51 INFO CoinJoinClient (136) CoinJoinClient is successfully initialized.
2020-09-01 10:34:09 INFO Wallet (171) StartAsync finished in 18 seconds.
2020-09-01 10:34:09 INFO WalletManager (171) Wallet started.

@redocrepus Do you have some additional info that can help us?

I'm really sorry, didn't have time recently... maybe tomorrow I'll check it
again

On Tue, 1 Sep 2020 at 11:40, Roland Soós notifications@github.com wrote:

I tested it again with a code that always uses the manual path selector.
It created and loaded the wallet successfully.

2020-09-01 10:33:29 INFO ConnectHardwareWalletViewModel (121) Creating a
new wallet file.
2020-09-01 10:33:51 INFO ClientState (470) Round (26517) added.
2020-09-01 10:33:51 INFO ClientState (470) Round (26518) added.
2020-09-01 10:33:51 INFO WalletManager (169) Starting Wallet...
2020-09-01 10:33:51 INFO CoinJoinClient (136) CoinJoinClient is
successfully initialized.
2020-09-01 10:34:09 INFO Wallet (171) StartAsync finished in 18 seconds.
2020-09-01 10:34:09 INFO WalletManager (171) Wallet started.

@redocrepus https://github.com/redocrepus Do you have some additional
info that can help us?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zkSNACKs/WalletWasabi/issues/4089#issuecomment-684583820,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APFIZFJEH6TQRHCE2NAH4UTSDSXQPANCNFSM4PN42Y7A
.

I closed this issue since we couldn't reproduce. Feel free to reopen it if you think it still exists and please give us a detailed description of how to reproduce.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaxHillebrand picture MaxHillebrand  ·  3Comments

kenny47 picture kenny47  ·  3Comments

the-metalworker picture the-metalworker  ·  3Comments

yahiheb picture yahiheb  ·  3Comments

MaxHillebrand picture MaxHillebrand  ·  3Comments