[BUG] - DVR UTF-8 Not proper encoding

Server Version#: Latest
Player Version#: Latest
Tuner Make/Model: Hauppauge DualHD
Guide/Lineup name:
Using XMLTV?: No, use the wizard
Channel number/Name: TF1 Séries Films → 21

Hello,

I have received my Hauppauge DualHD tuner, it is well recognize by OMV (OpenMediaVault) and in Plex Server as well, but when i’m looking for channel I got this error inside /var/log/syslog

Feb  5 11:49:51 Plex Media Server[1470157]: Entity: line 2: parser error : Input is not proper UTF-8, indicate encoding !
Feb  5 11:49:52 Plex Media Server[1470157]: Bytes: 0xE9 0x72 0x69 0x65
Feb  5 11:49:52 Plex Media Server[1470157]: tainer size="39"><Channel channelIdentifier="triplet://8442:10:2561" name="TF1 S
Feb  5 11:49:52 Plex Media Server[1470157]: error : xmlTextWriterWriteDocCallback : XML error 9 !
Feb  5 11:49:52 Plex Media Server[1470157]: I/O error : write error
Feb  5 11:49:52 Plex Media Server[1470157]: error : xmlTextWriterCloseDocCallback : XML error 9 !

The error seems to be the channel name more precisly the accent on letter E : “TF1 Séries Films”

Do you have any idea to solve this problem?

Thanks

I test DVB-T on Plex on Windows and it works

So, clearly the linux version doesn’t encode well channel names

Thanks for reporting the issue. I have got the log files that you sent in.
I am trying to relate the above syslog errors to the Plex Media Server and Plex Tuner Service log files

At the time - 11:49:51 there was a channel scan which found 39 channels
There are no errors in the server and tuner logs relating to this. At the time the Plex Media Server process asked the Plex Tuner Service for the list of channels - this was at 11:49:51

Feb 05, 2022 11:49:51.956 [0x7fa87a135b38] DEBUG - [Grabber] HTTP requesting GET http://127.0.0.1:32600/devices/compound_device072dvb%23v4l%23%2fsys%2fdevices%2fpci0000%3a00%2f0000%3a00%3a14.0%2fusb1%2f1-5%2f1-5%3a1.0%3a0014319079/channels

Feb 05, 2022 11:49:51.959 [0x7fa87af60b38] DEBUG - [HttpClient] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:32600/devices/compound_device072dvb%23v4l%23%2fsys%2fdevices%2fpci0000%3a00%2f0000%3a00%3a14.0%2fusb1%2f1-5%2f1-5%3a1.0%3a0014319079/channels (reused)

Could you run these 3 curl commands on the server and get me the 3 response files that the Plex Tuner Service returns. Please zip and attach the 3 files

curl -o req1.xml http://127.0.0.1:32600/devices/compound_device072dvb%23v4l%23%2fsys%2fdevices%2fpci0000%3a00%2f0000%3a00%3a14.0%2fusb1%2f1-5%2f1-5%3a1.0%3a0014319079

curl -o req2.xml http://127.0.0.1:32600/devices/compound_device072dvb%23v4l%23%2fsys%2fdevices%2fpci0000%3a00%2f0000%3a00%3a14.0%2fusb1%2f1-5%2f1-5%3a1.0%3a0014319079/scanners

curl -o req3.xml  http://127.0.0.1:32600/devices/compound_device072dvb%23v4l%23%2fsys%2fdevices%2fpci0000%3a00%2f0000%3a00%3a14.0%2fusb1%2f1-5%2f1-5%3a1.0%3a0014319079/channels

These were the requests sent by the server process to the PTS process at the time

I see from the logs that you are using xmltv provider for EPG - is this what you normally use ? or do you also use a lineup for the post code when setting up the DVR?

Is this what you use ? https://xmltvfr.fr/xmltv/xmltv_tnt.xml

Can you tell me at what point in time during setup do you get this error screen ? Is it after the channel scan completing ?

Do you have a timestamp for when this got displayed so I can relate it to what is in the logs ?

Would it be possible for you to also enable verbose browser console network logging and send me zipped .har file captured at the time of the error screen after a scan as well as the server and tuner service logs as before

Hello,

Thank you for your reply !

Here are the answers to your questions :

I used the xmltv provider from xmltv.fr just for testing but I plan to use my location with the postal code

I get “No Channels Found” error right after scanning channels

The error was displayed: 07/02/2022 - 17:48

In the “Plex Tuner Service” log file lines 727, 3549, 8776, 14291 could be interesting.
I deduce that it is receiving string names with a special character

You will find in the PJ file everything you asked me
the req.xml files, the HAR file and the two log files

thank you for your time

Edited by sa2000 to remove attachment ; please always send har files by private message

Hello,

I come to the news.

I read the topic at this address Plex finds 978 channels during scan, but lists only 19-20

The person was talking about using a specific version namely 1.22.3.4523-d0ce30438. So I downloaded it by running the command:

wget https://downloads.plex.tv/plex-media-server-new/1.22.3.4523-d0ce30438/debian/plexmediaserver_1.22.3.4523-d0ce30438_amd64.deb

and I installed it by doing:

dpkg -i plexmediaserver_1.22.3.4523-d0ce30438_amd64.deb

Once the installation was complete, I immediately launched a channel scan and bingo everything worked


We can see channels 20/24/25 contains accented characters

The solution would be within this version I think

PS : I don’t use this time xmltv.fr i’ve juste set my postal code

thanks in advance

Stoufiler

FYI - the Red Hat / Fedora / CentOS link to that version is
https://downloads.plex.tv/plex-media-server-new/1.22.3.4523-d0ce30438/redhat/plexmediaserver-1.22.3.4523-d0ce30438.x86_64.rpm

1 Like

Think that the problem appear at this version : Plex Media Server - #430 by emilybersin

Got some news

You can search channels with version 1.22.3.4523 and you can upgrade to latest version where bug still occurs.

It will works but if you want to scan another channels you need to rollback to 1.22.3.4523 and repeat to latest

I’m talking with someone at Plex, hope the bug will be patched in next release @chrisBlum

1 Like

sent you alpha build to Plex Media Server 1.25.8 which updates dependencies used by Plex Tuner Server to see if it resolves the issue

Thanks for your help

Just reply to you right now

It doesn’t work

I need to reinstall the 1.22 version to DVR work

Thanks

Thanks for trying - I passed the details to the development team

The fix has been released in Plex Media Server beta release 1.26.1.5762

  • (DVR) Plex Tuner Service does not return non-unicode encoded channels (#13374)
  • (DVR) Plex Tuner Service only returns a small number of channels (#13261)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.