Open sentry-io[bot] opened 3 years ago
updated original description with more detailed breakdown, @bosomt managed to trigger "Loading takes too long" due to problems with connect-bridge communication which led to timeout (on nixos, mint and win worked fine). Please take a look at last item in the list in original description for more info.
cc @szymonlesisz @tsusanka you will probably be able to tell what's happening here. I think part of the issue is related to bridge, main question is why it didn't respond? Could be some problem on OS-level though. Second part is connect, why it didn't emit TRANSPORT.ERROR if there is a problem with bridge communication?
Uf. If this would be 2.0.31 bridge a not 2.0.27 as it is (see log) I would dig way deeper, but since it happened on 27 and:
I am a bit inclined into dealing with this later when we are able to reproduce it or we are sure it concerns more people.
@tsusanka
it happened in latest version of Fedora. And yes it was built in 2.0.27 Trezor Bridge. But I removed 2.0.31 version before with command that ignored dependencies /RPM packaging was causing some issues/
Uf. If this would be 2.0.31 bridge a not 2.0.27 as it is (see log) I would dig way deeper, but since it happened on 27 and:
- 27 is stable for quite some time already
- it happened only on NixOS (correct?)
- we do not have a clear reproducible steps (do we?)
I am a bit inclined into dealing with this later when we are able to reproduce it or we are sure it concerns more people.
yeah I agree, it really looks like it was some OS/system setup failure, as it worked in other linux distros just fine. In the end we just need to make sure connect handles these bridge errors correctly (mytrezor properly detects libusb error, connect does not). Bridge issue itself could be solved later if needed, I just wanted to be sure we didn't miss anything so I wrote it down too.
In the end we just need to make sure connect handles these bridge errors correctly (mytrezor properly detects libusb error, connect does not).
Great, I totally agree.
@alex-jerechinsky I'll assign this to you till you figure out if @szymonlesisz should take this someone else, the problem lies probably somewhere in trezor-connect.
It looks like the first checkbox (https://github.com/trezor/trezor-suite/pull/3462) is not resolved properly: https://sentry.io/organizations/satoshilabs/issues/1730980450/events/dce5c836bece43c98d20ef173fa6f194
Some of the events has Migrating database from version 23 to 24
in breadcrumbs and then throw error Loading takes too long
.
Related to #4657
Related also to this #4267
waiting for some inputs on https://github.com/trezor/trezor-suite/issues/4657
Sentry Issue: TREZOR-SUITE-D8
This error pops out every time something get stuck and user would wait forever. It basically acts as a timeout (30s), if suite won't load til the limit, there is something wrong and we throw this error.
There will be multiple reasons why it may happen (take with a grain of salt, I am going by memory):
[x] botched DB migration/upgrade (or lack of db migration) https://github.com/trezor/trezor-suite/pull/3462
[x] multiple instances of electron app running https://github.com/trezor/trezor-suite/pull/3467
[ ] I think we used to have some problems with TOR that would also lead to timeout
[ ] Trouble communicating with bridge/connect (suite is basically waiting for right set of fields and it will wait till this condition is satisfied)
transport
info object to be set, but since these events above are never dispatched we'll get stuck at initial loading of suite.bridge logs: log (1).gz
old wallet shows libusb error
We most likely can't really fix the root cause right away, but introducing new errors that would clearly explain what happened would help a lot.