QFormStateHandlerChecked

Login or register to post comments
1 reply [Last post]
Offline
Joined: 12/02/2011

Recently I've met a strange problem with qcubed-based application in a client installation. There were a lot of complains from QFormStateHandler::Load for gzuncompress failed to do it's job (gzuncompress(): data error). After some modifications (see file attached) the error message becomes "QFormStateHandler: gzuncompress failed for:\xeb\x7f9\xf7\xa6\xf7\x7fg\xb5\xf5\xb7\xdeq\xe7}sg\xf4sW|\xf3}w"

I've added some checks for returned values and self-checks for data packed and all checks have passed, but complains stay there. Now I have a main hypothesis of packet corruption somewhere in the network. The question for community is have you any ideas how the data passed back to QFormStateHandler::Load can be corrupted?

The second point is that QFormStateHandler doues not do some simple checks for returned values. I don't know reasons. Anyway, see an attach. may be some checks from it can be generally usefull for QFormStateHandler. The whole QFormStateHandler implementation in attach I'm going to name QFormStateHandlerChecked and use to test client's network to be good enough for our application.

Offline
Joined: 10/11/2010

Try removing the compression mechanism for some time. See if that works. If it does not, somewhere the data is being corrupted, if it does, the installed library is behaving cranky.