Getting Unexpected / Malformed input from Linux clients.

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
mikejdavison
Posts: 3
Joined: 24 Jun 2009, 20:15

Getting Unexpected / Malformed input from Linux clients.

Post by mikejdavison »

Hi,

I have a small SFS based game running online right now, and it's working great with Mac/Windows machines, but when someone using linux with firefox (specifically Ubuntu, but it may well be wider) tries to connect, we get this:

[ WARNING ] [id: 11] (SmartFoxServer.readIncomingMessages): Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1

The user manages to connect, but then the messages from the client are crap, and we get no further. We're wondering if this might be some sort of UTF8/encoding/protocol issue, but we're just guessing and don't really know what to do, hence this plea for some help. Anyone have any ideas/solutions?

cheers,
Mike
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi,
this is a well know problem and it's based on a famous Flash Player bug, only in the Linux version :(
The good news is that we have worked around it and you just need to use the latest client API and recompile your application.

Latest API can be downloaded here

hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply