Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Encoding issue when displaying error messages (F@h 7.6.x) #76

Open
JWhyFR opened this issue Apr 20, 2020 · 4 comments
Open

Encoding issue when displaying error messages (F@h 7.6.x) #76

JWhyFR opened this issue Apr 20, 2020 · 4 comments

Comments

@JWhyFR
Copy link

JWhyFR commented Apr 20, 2020

Hello,

There seems to be an issue with F@H / FahControl 7.6.x when handling "exotic" characters (i.e. french ones ;) ) in error messages (mainly network-related ones)

FahControl769
(message should read : "Une connexion existante a dû être fermée par l’hôte distant.")

The easiest way to reproduce this is to launch the Viewer and close it (to receive the "usual" networking error msg)

It is OK with F@H / FahControl 7.5.1
FahControl751

Logfile for v7.6.9 appears OK in Notepad2 (or Notepad++) with the correct UTF8 encoding.
FahControl769(txt)

My computer is running Windows 10 Family Edition 1909 :
Windows10

I am available if you need more information, or if you want me to test a fix/beta version.

Thanks !

JY.

@harlam357
Copy link

Just want to put my observations on this issue. This hex encoding for localized characters is not only in the log messages transmitted by the FAHClient, which is not expected to be valid Pyon/Json, but can also be found in other messages, like info.

For example:

[ "System", ... ["CUDA", "Not detected: Failed to open dynamic library 'nvcuda.dll': Le module sp\xe9cifi\xe9 est introuvable.\r\n"], ... ]

Note the \xe9 in the value. Perhaps this is valid Pyon, I don't know, but it is not valid Json.

@jcoffland
Copy link
Member

This is a problem in C!. I may have been fixed recently. CauldronDevelopmentLLC/cbang@641d0cc

JSON allows for \u#### escape codes but not \x##. This may need more work.

@harlam357
Copy link

Any further progress on this? Changes made in the latest 7.6 betas?

@davidhcefx
Copy link

davidhcefx commented Apr 20, 2021

Hello, I also spotted a similar issue, not sure if it has also been fixed in your commit @jcoffland?

09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign1.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C 
09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign2.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C 
09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign3.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C 
09:49:13:ERROR:WU01:FS00:Exception: Could not get IP address for assign4.foldingathome.org: µLªkÃgO³o¥x¥D¾÷¡C 
09:49:13:ERROR:WU01:FS00:Exception: Failed to find any IP addresses for assignment servers
09:50:57:WU00:FS00:Sending unit results: id:00 state:SEND error:NO_ERROR project:17428 run:0 clone:3630 gen:369 core:0xa7 unit:0x00000e2e000001710000441400000000
09:50:57:WU00:FS00:Uploading 10.21MiB to 128.252.203.9
09:50:57:WU00:FS00:Connecting to 128.252.203.9:8080
09:50:57:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:50:57:WU00:FS00:Connecting to 128.252.203.9:80
09:50:57:WARNING:WU00:FS00:Exception: Failed to send results to work server: Failed to connect to 128.252.203.9:80: �
ïÍ\!Õ#Ú0;_�
09:50:57:WU00:FS00:Trying to send results to collection server
09:50:57:WU00:FS00:Uploading 10.21MiB to 128.252.203.1
09:50:57:WU00:FS00:Connecting to 128.252.203.1:8080
09:50:57:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:50:57:WU00:FS00:Connecting to 128.252.203.1:80
09:50:57:ERROR:WU00:FS00:Exception: Failed to connect to 128.252.203.1:80: �
ïÍ\!Õ#Ú0;_�
09:55:12:WU00:FS00:Sending unit results: id:00 state:SEND error:NO_ERROR project:17428 run:0 clone:3630 gen:369 core:0xa7 unit:0x00000e2e000001710000441400000000
09:55:12:WU00:FS00:Uploading 10.21MiB to 128.252.203.9
09:55:12:WU00:FS00:Connecting to 128.252.203.9:8080
09:55:12:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:55:12:WU00:FS00:Connecting to 128.252.203.9:80
09:55:12:WARNING:WU00:FS00:Exception: Failed to send results to work server: Failed to connect to 128.252.203.9:80: �
ïÍ\!Õ#Ú0;_�
09:55:12:WU00:FS00:Trying to send results to collection server
09:55:12:WU00:FS00:Uploading 10.21MiB to 128.252.203.1
09:55:12:WU00:FS00:Connecting to 128.252.203.1:8080
09:55:12:WARNING:WU00:FS00:WorkServer connection failed on port 8080 trying 80
09:55:12:WU00:FS00:Connecting to 128.252.203.1:80
09:55:12:ERROR:WU00:FS00:Exception: Failed to connect to 128.252.203.1:80: �
ïÍ\!Õ#Ú0;_�

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

4 participants