chia-blockchain-gui icon indicating copy to clipboard operation
chia-blockchain-gui copied to clipboard

[Bug] Sometimes the GUI can't display non-standard unicode characters

Open wallentx opened this issue 2 years ago • 2 comments

What happened?

I have an NFT that has Zalgo text in it's name on mainnet - NFT ID: nft10t04c0yzz8k3c23rnqafhmwsng6zn3qkgnp98rndgcda8n0u9lss5uxnyc Meta Name:


"name": "Ohnmy GODD!",


(github won't render the zalgo in comments) 2022-06-28_14-06

Meta URI: https://gist.githubusercontent.com/wallentx/56419164de254a3ab5efb1db1df5f276/raw/04a18a141983cbd3d6893aea3eb899f4be510ace/nft-meta.json

I did this intentionally to see if it would break stuff. It only breaks stuff SOMETIMES. For whatever reason, the GUI fails to render the text at random, maybe about 30-40% of the time.

When I click the NFT tab on the left, the GUI will sometimes stretch out my NFTs super wide when it fails to render the Zalgo text.

Loading fine: 2022-06-28_13-36

Messed up: 2022-06-28_13-44

Version

1.3.6758

What platform are you using?

Windows

What ui mode are you using?

GUI

Relevant log output

JS Selector path:

document.querySelector("#root > div > div.sc-hKwDye.vhcVc.LayoutDashboard__StyledBody-sc-1nay716-3.kEvrAS > div.sc-hKwDye.ciNAva > div > div > div.sc-iqseJM.LayoutDashboardSub__StyledContent-sc-1srf8a1-3.kdJGvt.MuiBox-root > div > div:nth-child(2) > div > div > div > button:nth-child(2) > div > div > div.sc-hKwDye.jZAkJc > p")

Contents of div when it is working: Element HTML:


<p class="sc-crHmcD neAzV MuiTypography-root MuiTypography-body1 MuiTypography-noWrap">Ohnmy GODD!</p>



2022-06-28_14-08

Contents of div when it is messed up: Element HTML:

<p class="sc-crHmcD neAzV MuiTypography-root MuiTypography-body1 MuiTypography-noWrap">O̸̹̗̤̦̞̣̯̯͙̔̇̿̈́̿̚͘̚͝Ì&nbsp;̡̨̧̗̗̜̥̞͕̣̗̩̼̰̖Ì&nbsp;̬̯̯̻̺͕͈͉h̶̢̧̡̨̨̡̡̨̬̗̺͚̗̫̜̝̗̳͉̼̫̟̲̱̞̭̮̖̲̱̪̗̝̞̭̝̞̱̮̩͉͈͚̘͚̳̝͎͖̳̫̟̻̣̳̥͎̯̗̱̺̟̯͍̫̺̋͛̋̒̔̄̄́́̈́͒̅͒̊̀̀͊̌͂̋̃͘̕̚͜ͅņ̶̧̧̧̢̛̱̭̘̤̜̖͉͈͍͍̲̭̬̘͕̞͙͙̬͍͇̪̦̞̺̰͕̩̻̘̲̜͕̰̯̮̦̗͌́̇̊͗̀̇̽̈͑͑̈́̍́͑̈́̎͛̿̓͂̃̈́̐́̈́̓̚͘̚̕͘͜͝ͅm̵̽̑̋̍Í&nbsp;̛̛̛̣̆̅̌̅̐͑͐̆̌̃͘͝͝Ì&nbsp;̢̨̥͚͔̺͙̪̪̭͓̱̣͓̞̲̩̗̺͜Ì&nbsp;̡̡̳͍̭̙͍͍̬͉͈̭̜̖̥̹̼̭͎̪̹̰̤̹͇͕̹̹̖̖͉̬y̵̧̢̢̧̧̨͉͚̜̜̳̯͍̝̻̜͕̥̙̰̫̣̟͍̘͔͉͓̥̜̘̤͇̖̝̖͇̫̻̗̯̦̬͔̒̌͂̒̓̄̃͗͊͆̈́͑̄̀̇̏̔̃̏̀́̅̃͊̽͋̾͐͌̎̽̀̓́̔͛͐̀̎̂͊̿͒̓͑̇͛͐̀̏̕͘͘͝͝ͅ ̵̛̛̽̈͊̊̇̓͆̇͒̃̋̀̋̈́̔̑̎̐͑̀͂̎̈́͋͘̕͝Í&nbsp;̡̙̞͉̘̓̈́̌̔́͆͂͑͘Ì&nbsp;̧̭̘G̶͒͗̀̈́̽͑̂̂̀̇͒̐̅͛̽̔͋̄̃̈̈͘̕̚͝Í&nbsp;̬̮̗̲̺̭̟͇̙̔͆̾ͅÌ&nbsp;̫͉̮̼͇̩Ì&nbsp;̡̪̤͖͔̗͈̱̰͙̯Ì&nbsp;̨̹͎̯̰͜ͅÌ&nbsp;̥͕̖̭͍̖͍͍̱͉̞̞̯̥O̷͂Í&nbsp;̡̨̱̲̰͓̬̦͖̼͇̟͕̮̝̝̘̘͔̅͋̊́͆̌̔̀̄̀̈́̇͂̀́͋̽̅̉̋̐́̊̍̓̒́̄̄̀̌͌̽͛̍̃̏̈́́́̃̀͌͂̽̏̆̅͋͑̂̽̈́̐̓̽́̋̏͗̀̿̔̀̕̚̕̚͝͝͝͝͝Ì&nbsp;̙Ì&nbsp;̧̧̡̧̻̞̩̙̪̪̩͕̤͇͎͖̬̣͚͜ͅͅD̴̢̢̛̛͉̰͎̫̥͓̗̣̮͉͖̯̲̑͗̉̊́̉̽̅͒͗̒̽̂͋͐͂̅́̓̇̍̉̉̃̎̅̆̐̌͑͊̐͆̋͋͐̔̍̍͗̐́̅͑̿͑͗͑͊̈́͑̇̈́̋̚͘͝͝͝͝Ì&nbsp;̨͍̱̼͖̮̖͜Ì&nbsp;̡̡̧̡̨̡̝̟̬̼͖͕̝͚͇̙̩̥̺̻̮̩͓̮̥͈̖͍̣͇̦̦͜D̵̀͊̊͋Í&nbsp;̛̽̓͐̿̃͛̈́̈͂́͌̎̀́̂̾̋͂̓̕̕̕͘̚̚Í&nbsp;̊̑̎́̅̽̈́̇͗̔̌̾Í&nbsp;̣̙̟̮̱̯͇͇̦̟͕̈́̾́̀͒̀͝Ì&nbsp;̪͕̗̭͍͓̻!̵̐̇̀̈̕͝Í&nbsp;̨̨̨͇͉͕̣̘̥̝̬̬͈̰͉͉̺̳̜̮̩͈̖̪̬̣͎̟͙͍̟͓̪̗͍̪͖͚ͅ</p>

wallentx avatar Jun 28 '22 18:06 wallentx

It's not just Zalgo text. It's emojis, and other non-standard unicode characters: 2022-06-29_05-36

wallentx avatar Jun 29 '22 10:06 wallentx

This is a chia-blockchain-gui issue isn't it? Can you transfer the issue to that repo

mariano54 avatar Jun 29 '22 14:06 mariano54

This should be fixed in 1.5.1

paninaro avatar Aug 25 '22 18:08 paninaro