Ticket #581 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

UnicodeErrors when logging non-unicode strings containing non-ascii characters

Reported by: plch.m Owned by: jteh
Priority: minor Milestone:
Component: Core Version: development
Keywords: error sound, video, web Cc:
Operating system: Windows 7 Blocked by:
Blocking:

Description (last modified by plch.m) (diff)

When the video starts, the error sound is played. It plays until the end of clip. Then error sound stops playing.
Here is the direct link:
 http://fotbalzive.ct24.cz/article.asp?id=16205&play=1

Attachments

video_log.txt Download (14.2 KB) - added by plch.m 2 years ago.
nvda.log Download (58.1 KB) - added by plch.m 2 years ago.
Next log file from video playing.

Change History

Changed 2 years ago by plch.m

comment:1 follow-up: ↓ 3 Changed 2 years ago by jteh

What video? Please provide the URL to a page which reproduces this.

comment:2 Changed 2 years ago by plch.m

  • Description modified (diff)

comment:3 in reply to: ↑ 1 Changed 2 years ago by plch.m

Replying to jteh:

What video? Please provide the URL to a page which reproduces this.

 http://fotbalzive.ct24.cz/article.asp?id=16205&play=1

comment:4 follow-up: ↓ 5 Changed 2 years ago by jteh

I can't reproduce this. However, these errors relate to logging and are hiding the real log message.

Can you please try with r3605? This should stop the errors, but I'd appreciate it if you could play this video again and then attach another log, as it should now log some useful info which will help us track down the source of these bad log messages.

Changed 2 years ago by plch.m

Next log file from video playing.

comment:5 in reply to: ↑ 4 Changed 2 years ago by plch.m

Replying to jteh:

I can't reproduce this. However, these errors relate to logging and are hiding the real log message.

Can you please try with r3605? This should stop the errors, but I'd appreciate it if you could play this video again and then attach another log, as it should now log some useful info which will help us track down the source of these bad log messages.

Hi,
i tested it with R3606 and no problems found.
I can play the video without error sound.
This temporary fix is helpful for other applications, such as windows live mail, where the error sound plays when moving between message folders.
So thank you for this fix.

comment:6 Changed 2 years ago by jteh

  • Status changed from new to accepted
  • Owner set to jteh
  • Summary changed from Playing video on the web to UnicodeErrors when logging non-unicode strings containing non-ascii characters

The root cause is that _ctypes.FormatError, which is used by COMError and ctypes.WinError, fetches the message in ANSI instead of unicode. Grrrr! I'm improving on my fix in r3605 at present.

comment:7 Changed 2 years ago by jteh

  • Status changed from accepted to closed
  • Resolution set to fixed

Better fix in r3607.

Note: See TracTickets for help on using tickets.