On 23 Sep 2017, at 22:42, Jan BlizniÄenko <bliznjan@fit.cvut.cz> wrote:
Hello
I am having very similar errors from time to time when manually loading code into Pharo from filetree (gitfiletree), but only in one of my projects which contains non-ASCII characters like ÄÅ¡ÄÅžýáÃéůúťÄ. For the very same reason (not able to find why sometimes the error is there and sometimes is not), I did not report it yet, but it is quite annoying. Retrying loading the package helps every time.
I think was reported before. I believe Ombu somewhere takes an arbitrary chunk of bytes out of an UTF-8 encoded file (like the last 100 of something like that) and then starts reading that. With UTF-8, a variable length encoding, that can be dangerous because you could end up in the middle of a character, not between encoded character boundaries. This would also explain the randomness, as it is highly dependent on the contents. ZnUTF8Encoder>>#backOnStream: can be used to make sure you are really at the start of an encoded character.
Jan
gcotelli wrote
Hi,
I'm having some non-deterministic errors in the Travis builds, the error is always something like:
*OmFileStoreReadingError: Reading entry from File @ pharo-local/ombu-sessions/Pharo.4p8buz6mww48y1noxrolgwkl1.ombu@17432579: Invalid utf8 input detected*
If I retried the build it works without any change. I think it happens during the code loading phase.
Is anyone experiencing this issue?
Here's an extract of the travis log:
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html