port icon indicating copy to clipboard operation
port copied to clipboard

[bug] [1.8.0] Windows UTF-8 path and file not found

Open SorenDreano opened this issue 3 years ago • 4 comments

Bug Description On Windows, having a username that contains non-ASCII characters (my username is "Sören Dréano") prevents from booting a comet (maybe a planet too?). The comet file is never created, in my example, the folder "C:\Users\Sören Dréano\AppData\Roaming\Port\piers" is empty.

To Reproduce Steps to reproduce the behavior:

  1. Have a username with UTF-8 characters
  2. Start Port, click on "Start without an ID"
  3. Wait
  4. See error

Expected Behavior It seems Port is incapable to find the file or directory of the comet, presumably because the path contains UTF-8 characters. Port should be able to create the file, and also print the path without the character "�".

Screenshots image

Environment:

  • OS: Windows
  • Version: 10
  • Port Version: 1.8.0

Additional context Log : """ Booting Comet Failed Last seen messages:

14:51:19 boot: mining a comet. May take up to an hour. If you want to boot faster, get an Urbit identity. 14:50:55 ~ urbit 1.8 boot: home is C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\t loom: mapped 2048MB lite: arvo formula 27e494c5 lite: core 7b144622 lite: final state 7b144622 boot: downloading pill https://bootstrap.urbit.org/urbit-v1.8.pill 14:50:38 Assertion '0' failed in vere/foil.c:40 home: bailing out 14:50:38 ror: no such file or directory 14:50:38 C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\t: er 14:50:37 boot: retrieving keys for sponsor ~zod 14:50:36 boot: retrieving keys for sponsor ~wanzod 14:50:36 boot: retrieving network domains 14:50:22 boot: retrieving galaxy table 14:50:22 boot: getting sponsor 14:50:22 boot: verifying keys 14:50:21 boot: found comet ~pidsyn-littel-fanmex-bansen--bonfel-sapmeb-banpyx-wanzod 14:49:15 nt to boot faster, get an Urbit identity. 14:49:15 boot: mining a comet. May take up to an hour. If you wa 14:48:52 ~ urbit 1.8 boot: home is C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\t loom: mapped 2048MB lite: arvo formula 27e494c5 lite: core 7b144622 lite: final state 7b144622 boot: downloading pill https://bootst 14:48:52 rap.urbit.org/urbit-v1.8.pill """

SorenDreano avatar Mar 03 '22 15:03 SorenDreano

The logs kinda get truncated, can you share the full path here or just what you named the comet?

arthyn avatar Mar 03 '22 15:03 arthyn

The initial name of the comet (local) was "t". Copy-pasting the log is fairly buggy, in the initial message I used "ctrl-a" which (surprisingly) reversed the messages in the log. This is the log in the normal order """ 14:48:52 ~ urbit 1.8 boot: home is C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\t loom: mapped 2048MB lite: arvo formula 27e494c5 lite: core 7b144622 lite: final state 7b144622 boot: downloading pill https://bootst 14:49:15 boot: mining a comet. May take up to an hour. If you wa 14:49:15 nt to boot faster, get an Urbit identity. 14:50:21 boot: found comet ~pidsyn-littel-fanmex-bansen--bonfel-sapmeb-banpyx-wanzod 14:50:22 boot: verifying keys 14:50:22 boot: getting sponsor 14:50:22 boot: retrieving galaxy table 14:50:36 boot: retrieving network domains 14:50:36 boot: retrieving keys for sponsor ~wanzod 14:50:37 boot: retrieving keys for sponsor ~zod 14:50:38 C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\t: er 14:50:38 ror: no such file or directory 14:50:38 Assertion '0' failed in vere/foil.c:40 home: bailing out 14:50:55 ~ urbit 1.8 boot: home is C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\t loom: mapped 2048MB lite: arvo formula 27e494c5 lite: core 7b144622 lite: final state 7b144622 boot: downloading pill https://bootstrap.urbit.org/urbit-v1.8.pill 14:51:19 boot: mining a comet. May take up to an hour. If you want to boot faster, get an Urbit identity. """ Log is not truncated (in the initial message, since it was reversed, the "er" at the end of the path was a truncation of the word "error".

I would like to confirm that the path is "C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\t" according to Urbit and that on my Windows computer, the path "C:\Users\Sören Dréano\AppData\Roaming\Port\piers" exists (but no directory or file "t").

Thank you

SorenDreano avatar Mar 03 '22 18:03 SorenDreano

After uninstalling (via the Control Panel) and deleting the "C:\Users\Sören Dréano\AppData\Roaming\Port" directory, with a comet named "soren" locally, I obtain this log. """ 18:15:34 ~ urbit 1.8 boot: home is C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\soren loom: mapped 2048MB lite: arvo formula 27e494c5 lite: core 7b144622 lite: final state 7b144622 boot: downloading pill https://boots 18:15:34 trap.urbit.org/urbit-v1.8.pill 18:15:59 boot: mining a comet. May take up to an hour. If you want to boot faster, get an Urbit identity. 18:17:43 boot: found comet ~dalsel-tipnyt-rinhes-pagnus--fonler-divmun-tilsyx-binzod 18:17:43 boot: verifying keys 18:17:44 boot: getting sponsor 18:17:44 boot: retrieving galaxy table 18:17:52 boot: retrieving network domains 18:17:53 boot: retrieving keys for sponsor ~binzod 18:17:53 18:17:54 boot: retrieving keys for sponsor ~zod 18:17:54 C:\Users\S�ren Dr�ano\AppData\Roaming\Port\piers\soren: error: no such f 18:17:54 Assertion '0' failed in vere/foil.c:40 home: bailing out 18:17:54 ile or directory """ The word "file" that appears at 18:17:54 is truncated in the "Last seen messages" input box.

And my directory "C:\Users\Sören Dréano\AppData\Roaming\Port\piers" is still empty.

SorenDreano avatar Mar 03 '22 18:03 SorenDreano

This looks to be a problem with the urbit binary itself, but I think I can make a workaround in Port. Thanks for reporting!

arthyn avatar Mar 03 '22 19:03 arthyn