Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Assets with special characters in it cause Ledger Live to stop working #4371

Closed
phillipfickl opened this issue Nov 1, 2021 · 7 comments
Closed

Comments

@phillipfickl
Copy link

Ledger Live Version and Operating System

  • tested on Ledger Live >2.34.0
  • Platform and version: Windows 10, Mac OS 12

It does still work with Ledger Live <= 2.33.1

Expected behavior

Ledger Live should work with any kind of assets. An Ethereum Account having an asset with special characters (eg. DEFI++ from PieDAO) should not make Ledger Live crash.

Actual behavior

Upon adding the account, Ledger Live crashes with an error message
Invalid regular expression: /1INCH|AAVE|LEND|ALINK|AUNI|AWBTC|GHST|ALCX|ALUSD|ALPHA|....Nothing to repeat

Steps to reproduce the behavior

  1. Add an Ethereum account with an asset that would make the regex invalid
  2. See Ledger Live crashing and refusing to start

Logs & Screenshot:
ledgerlive-logs-2021.11.01-10.07.35-1833c2f.txt

Screenshot 2021-11-01 at 10 11 08

@0xaardling
Copy link

0xaardling commented Nov 7, 2021

Can confirm this is an issue on Linux with v2.34.4 too.

The solution is to properly escape the regex. What causes the problem for me is also the DEFI++ ERC20 token.

SyntaxError: Invalid regular expression: /BUSD|BTC|CVP|DAI|ETH|FARM|GSE|KICK|LINK|LPT|DEFI++|TRX|USDC|YDAI/: Nothing to repeat

Should be DEFI\+\+ with proper escaping.

@dOrgJelli
Copy link

This is a problem for me as well, currently blocked.

@outcassed
Copy link

outcassed commented Nov 9, 2021

I'm also having this problem with DEFI++

@phillipfickl
Copy link
Author

Still the same problem with 2.35.2.
Any chance you guys could look into this please? Hope you forgive me for tagging you but I can't use any version of ledger live > 2.33 atm.
@gre @valpinkman

@valpinkman
Copy link
Member

We are sorry for not having seen this. A fix has been proposed LedgerHQ/ledger-live-common#1559 here but I cannot tell exactly when this will be shipped.

@phillipfickl
Copy link
Author

We are sorry for not having seen this. A fix has been proposed LedgerHQ/ledger-live-common#1559 here but I cannot tell exactly when this will be shipped.

No worries, thanks for the response and (future) fixing ✌

@porenes-ledger
Copy link
Contributor

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

No branches or pull requests

6 participants