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

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

Open
SorenDreano opened this issue Mar 3, 2022 · 4 comments
Open

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

SorenDreano opened this issue Mar 3, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@SorenDreano
Copy link

SorenDreano commented Mar 3, 2022

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 SorenDreano added the bug Something isn't working label Mar 3, 2022
@arthyn
Copy link
Collaborator

arthyn commented Mar 3, 2022

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

@SorenDreano
Copy link
Author

SorenDreano commented Mar 3, 2022

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
Copy link
Author

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.

@arthyn
Copy link
Collaborator

arthyn commented Mar 3, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants