The Server Status hangs if the logs contain invalid characters

From: Marko Mahnič <marko(dot)mahnic(at)dfgcon(dot)si>
To: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>
Subject: The Server Status hangs if the logs contain invalid characters
Date: 2013-12-09 13:05:21
Message-ID: 36E3C662B100D2469A6A1BB59A93DA4C26F8CDEA@DFGDC.dfglocal.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Version: pgAdmin 1.18.1
OS: server: Windows Server, client: Windows 7
Encodings: The database encoding is UTF8 but clients work with cp1250 encoding
Message: ERROR: invalid byte sequence for encoding "UTF8": 0xc4

If the logs contain invalid UTF8 cracters, pgAdmin starts to show error messages. At the beginning only one message is shown. When OK button is clicked, another messge is shown. This goes one indefinitely. Sometimes new messages continue to appear without user interaction (screenshot). The application has to be killed with a task manager.

Probable cause: An application sends a request encoded with cp1250 characers (eg. 0xc4) to the server. If this request fails it is written to the log. When pgAdmin reads (displays) the log it detects an encoding error and pops up a message.

Possible resoultion: Silently replace invalid bytes with '?' in the Server Status subsystem.

Marko Mahnič

Attachment Content-Type Size
image/png 72.9 KB

Browse pgadmin-support by date

  From Date Subject
Next Message Wendell Borges 2013-12-09 18:45:32 Keyboard Layout US International - PC
Previous Message David Paulo 2013-12-08 21:30:13 PGAdmin debugger