Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Member

    Join Date
    Nov 2017
    Posts
    55
    Thanks
    7
    Thanked 7 Times in 6 Posts

    BBC iPlayer on IPTV plugin causes Enigma2 crash

    Hi All,

    I've installed IPTV plugin and although I can play youtube videos fine, UK catch up TV (BBC iPlayer, or ITV) always cause a crash. The logs show the problem to occur when trying to obtain exif data from IPTV player icons:
    Code:
    <   394.982> [ePicLoad] decode picture... /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/icons/logos/bbciplayerlogo.png
    <   394.982> [EXIF] getting exif from JPEG
    <   395.263> [eInputDeviceInit] 0 160 1
    <   395.264> [InfoBarGenerics] KEY: 352 OK
    <   395.434> [ePicLoad] setPara max-X=215 max-Y=325 aspect_ratio=1.000000 cache=0 resize=1 bg=#00000000 auto_orient=0
    <   395.448> [ePicLoad] decode picture... /hdd/IPTVCache//.iptvplayer_icons_1518268533.125357/872f39aa9c893ddeaa7db7f69748181d.jpg
    <   395.448> [EXIF] getting exif from JPEG
    <   399.553> [eInputDeviceInit] 1 160 1
    <   399.555> [InfoBarGenerics] KEY: 352 OK
    <   399.555> [ActionMap] WizardActions ok
    <   399.757> [ePicLoad] decode picture... /hdd/IPTVCache//.iptvplayer_icons_1518268533.125357/6025ca9dcaecf3435dc1c9ff73163738.jpg
    <   399.757> [EXIF] getting exif from JPEG
    <   399.863> [eInputDeviceInit] 0 160 1
    <   399.864> [InfoBarGenerics] KEY: 352 OK
    <   403.849> [eInputDeviceInit] 1 160 1
    <   403.851> [InfoBarGenerics] KEY: 352 OK
    <   403.851> [ActionMap] WizardActions ok
    <   403.971> [ePicLoad] decode picture... /hdd/IPTVCache//.iptvplayer_icons_1518268533.125357/8ec8e964454eaeb6ad57ae2230ac1c88.jpg
    <   403.971> [EXIF] getting exif from JPEG
    <   403.974> Backtrace:
    <   403.974> /usr/bin/enigma2(_Z17handleFatalSignaliP9siginfo_tPv) [0x753D8]
    <   403.975> /lib/libc.so.6(__default_rt_sa_restorer) [0xB6104E60]
    <   403.975> /usr/bin/enigma2(_ZN8ePicLoad7getDataER4ePtrI7gPixmapE) [0x102730]
    <   403.975> /usr/bin/enigma2(n/a) [0x15FDE4]
    <   403.975> -------FATAL SIGNAL (11)
    Looking at the exif data of the offending image I can't see anything out of place:
    Code:
    $ exiftool 8ec8e964454eaeb6ad57ae2230ac1c88.jpg
    ExifTool Version Number         : 10.72
    File Name                       : 8ec8e964454eaeb6ad57ae2230ac1c88.jpg
    Directory                       : .
    File Size                       : 3.0 kB
    File Modification Date/Time     : 2018:02:08 20:27:11+00:00
    File Access Date/Time           : 2018:02:10 13:22:43+00:00
    File Inode Change Date/Time     : 2018:02:10 13:22:43+00:00
    File Permissions                : rw-r--r--
    File Type                       : PNG
    File Type Extension             : png
    MIME Type                       : image/png
    Image Width                     : 512
    Image Height                    : 512
    Bit Depth                       : 8
    Color Type                      : Grayscale
    Compression                     : Deflate/Inflate
    Filter                          : Adaptive
    Interlace                       : Noninterlaced
    Gamma                           : 2.2
    White Point X                   : 0.3127
    White Point Y                   : 0.329
    Red X                           : 0.64
    Red Y                           : 0.33
    Green X                         : 0.3
    Green Y                         : 0.6
    Blue X                          : 0.15
    Blue Y                          : 0.06
    Modify Date                     : 2016:08:21 15:29:04
    Background Color                : 0
    Caption                         : BBC ONE
    Datecreate                      : 2016-08-21T15:29:04+02:00
    Datemodify                      : 2016-08-21T15:29:04+02:00
    Image Size                      : 512x512
    Megapixels                      : 0.262
    Would you know what is causing this?

    I attach the complete log file for your perusal.
    Attached Files Attached Files
    Kind regards,

    Mick

  2. The Following User Says Thank You to Mickkie For This Useful Post:

    imtiaz_2007 (13-02-18)

  3. #2
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    16,872
    Thanks
    4,544
    Thanked 6,588 Times in 4,452 Posts
    Thread moved to plugin support.

    The plugin author is active on other forums. I have posted the issue on one of them.

  4. The Following User Says Thank You to abu baniaz For This Useful Post:

    Mickkie (11-02-18)

  5. #3
    Junior Member

    Join Date
    Sep 2016
    Posts
    3
    Thanks
    0
    Thanked 4 Times in 3 Posts
    @Mickkie

    This not looks like plugin problem. It looks like your Enigma2 distribution problem.
    You should report it to your Enigma2 distribution developers.

    As temporary solution you can disable thumbnails in the IPTVPlayer configuration or you can use different Enigma2 distribution.

  6. The Following User Says Thank You to samsamsam For This Useful Post:

    cargen (17-02-18)

  7. #4
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    16,872
    Thanks
    4,544
    Thanked 6,588 Times in 4,452 Posts
    Maybe the problem results from the fact that this image is PNG not JPEG.

    But I just checked on OpenPLI this image decode correctly.

    To check image type the header form file should be take not file extenstions.


    So, if you know that the problem is with some PNG files you can change option in IPTVPlayer to allow only JPEG file:
    "Allowed format of thumbnails" "jpeg"
    and remove all IPTVPlayer icons cache.


    IPTVPlayer will not download this image again because PNG will be not allowed.
    The above workaround works.

  8. #5
    Member

    Join Date
    Nov 2017
    Posts
    55
    Thanks
    7
    Thanked 7 Times in 6 Posts
    Thank you both, I just checked the IPTVPlayer settings and it shows:

    Display thumbnails: Yes
    Allow format of thumbnails: jpg,png

    So on the face of it IPTVPlayer should not have a problem with either jpg, or png. I cannot test it setting thumbnails to jpg only, because I am recording something at present and don't want to risk crashing the box, but I will test it later. So is this an Enigma bug and should it be reported to the Enigma devs?
    Kind regards,

    Mick

  9. #6
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    16,872
    Thanks
    4,544
    Thanked 6,588 Times in 4,452 Posts
    I have changed option to jpeg, it does not crash

    I have started a thread in our Developer section about the crash.

  10. #7
    Member

    Join Date
    Nov 2017
    Posts
    55
    Thanks
    7
    Thanked 7 Times in 6 Posts
    Quote Originally Posted by abu baniaz View Post
    I have changed option to jpeg, it does not crash
    Hmm ... my Mut@ant still crashes:
    Code:
    <   266.536> [InfoBarGenerics] KEY: 106 RIGHT
    <   266.831> [eInputDeviceInit] 1 160 1
    <   266.832> [InfoBarGenerics] KEY: 352 OK
    <   266.833> [ActionMap] WizardActions ok
    <   266.862> [ePicLoad] setPara max-X=120 max-Y=40 aspect_ratio=1.000000 cache=0 resize=1 bg=#00000000 auto_orient=0
    <   266.864> [ePicLoad] decode picture... /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/icons/logos/bbciplayerlogo.png
    <   266.864> [EXIF] getting exif from JPEG
    <   267.039> [eInputDeviceInit] 0 160 1
    <   267.040> [InfoBarGenerics] KEY: 352 OK
    <   267.414> [ePicLoad] setPara max-X=215 max-Y=325 aspect_ratio=1.000000 cache=0 resize=1 bg=#00000000 auto_orient=0
    <   267.430> [ePicLoad] decode picture... /hdd/IPTVCache//.iptvplayer_icons_1518392727.556734/872f39aa9c893ddeaa7db7f69748181d.jpg
    <   267.430> [EXIF] getting exif from JPEG
    <   270.275> [eInputDeviceInit] 1 160 1
    <   270.276> [InfoBarGenerics] KEY: 352 OK
    <   270.276> [ActionMap] WizardActions ok
    <   270.438> [ePicLoad] decode picture... /hdd/IPTVCache//.iptvplayer_icons_1518392727.556734/6025ca9dcaecf3435dc1c9ff73163738.jpg
    <   270.438> [EXIF] getting exif from JPEG
    <   270.479> [eInputDeviceInit] 0 160 1
    <   270.480> [InfoBarGenerics] KEY: 352 OK
    <   273.983> [eInputDeviceInit] 1 160 1
    <   273.985> [InfoBarGenerics] KEY: 352 OK
    <   273.985> [ActionMap] WizardActions ok
    <   274.151> [ePicLoad] decode picture... /hdd/IPTVCache//.iptvplayer_icons_1518392727.556734/8ec8e964454eaeb6ad57ae2230ac1c88.jpg
    <   274.151> [EXIF] getting exif from JPEG
    <   274.154> Backtrace:
    <   274.154> /usr/bin/enigma2(_Z17handleFatalSignaliP9siginfo_tPv) [0x753D8]
    <   274.155> /lib/libc.so.6(__default_rt_sa_restorer) [0xB6176E60]
    <   274.155> /usr/bin/enigma2(_ZN8ePicLoad7getDataER4ePtrI7gPixmapE) [0x102730]
    <   274.155> /usr/bin/enigma2(n/a) [0x15FDE4]
    <   274.155> -------FATAL SIGNAL (11)
    I uninstalled and reinstalled IPTVPlayer just in case, which updated it to a later version from the server.

    Quote Originally Posted by abu baniaz View Post
    I have started a thread in our Developer section about the crash.
    Thank you for this.
    Kind regards,

    Mick

  11. #8
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    4,469
    Thanks
    89
    Thanked 941 Times in 756 Posts
    Quote Originally Posted by Mickkie View Post
    Looking at the exif data of the offending image I can't see anything out of place:.
    I can. It's got a .jpg suffix, but the Exif data says it's a PNG file.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  12. #9
    Member

    Join Date
    Nov 2017
    Posts
    55
    Thanks
    7
    Thanked 7 Times in 6 Posts
    Quote Originally Posted by birdman View Post
    I can. It's got a .jpg suffix, but the Exif data says it's a PNG file.
    Thanks Birdman, your right!

    The BBC iPlayer logo is a PNG file - like all logos in /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/icons/logos seem to be. The exif data and file extension correspond to a PNG image format:
    Code:
    $ exiftool bbciplayerlogo.png 
    ExifTool Version Number         : 10.72
    File Name                       : bbciplayerlogo.png
    Directory                       : .
    File Size                       : 1111 bytes
    File Modification Date/Time     : 2018:02:12 08:56:28+00:00
    File Access Date/Time           : 2018:02:12 08:56:28+00:00
    File Inode Change Date/Time     : 2018:02:12 08:56:28+00:00
    File Permissions                : rw-r--r--
    File Type                       : PNG
    File Type Extension             : png
    MIME Type                       : image/png
    Image Width                     : 120
    Image Height                    : 40
    Bit Depth                       : 8
    Color Type                      : Palette
    Compression                     : Deflate/Inflate
    Filter                          : Adaptive
    Interlace                       : Noninterlaced
    Gamma                           : 2.2
    Palette                         : (Binary data 138 bytes, use -b option to extract)
    Transparency                    : (Binary data 45 bytes, use -b option to extract)
    Image Size                      : 120x40
    Megapixels                      : 0.005
    However, the other three files despite their .jpg file extension are all PNGs ....

    I don't know if this is the cause of the crash. On a desktop, Linux opens all these files without a problem, because it reads the magic code in the header of the file to determine its mime type, rather than the file name extension.
    Code:
    $ file 8ec8e964454eaeb6ad57ae2230ac1c88.jpg 
    8ec8e964454eaeb6ad57ae2230ac1c88.jpg: PNG image data, 512 x 512, 8-bit grayscale, non-interlaced
    I expect it should do the same on Android, but I don't know what checks the Python parser of Enigma2 does and why it crashes. The crash seems to happen on the 3rd file only, which contains the BBC One logo. Anyway, I hope the devs can sort this out.
    Kind regards,

    Mick

  13. #10
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    4,469
    Thanks
    89
    Thanked 941 Times in 756 Posts
    Quote Originally Posted by Mickkie View Post
    However, the other three files despite their .jpg file extension are all PNGs .....
    Could you post a copy of them all here, please?
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  14. #11
    Member

    Join Date
    Nov 2017
    Posts
    55
    Thanks
    7
    Thanked 7 Times in 6 Posts
    Quote Originally Posted by birdman View Post
    Could you post a copy of them all here, please?
    Ha! I tried to upload them but the uploading mechanism of the forums rejects them because they have the wrong file extension! So, here's the 3 .jpg files being parsed by the plugin:

    IPTVCache/.iptvplayer_icons_1518392727.556734/872f39aa9c893ddeaa7db7f69748181d.jpg
    IPTVCache//.iptvplayer_icons_1518392727.556734/6025ca9dcaecf3435dc1c9ff73163738.jpg
    IPTVCache//.iptvplayer_icons_1518392727.556734/8ec8e964454eaeb6ad57ae2230ac1c88.jpg

    I changed the file extensions of the last three to .png so that I can upload them to this forum, but you can rename them as you see them listed above.
    Attached Images Attached Images
    Kind regards,

    Mick

  15. #12
    Member

    Join Date
    Nov 2017
    Posts
    55
    Thanks
    7
    Thanked 7 Times in 6 Posts
    Also, here's the .png iPlayer logo file attached:

    /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/icons/logos/bbciplayerlogo.png
    Attached Images Attached Images
    Kind regards,

    Mick

  16. #13
    Forum Supporter
    Donated Member
    ccs's Avatar

    Join Date
    Sep 2014
    Posts
    1,919
    Thanks
    173
    Thanked 404 Times in 357 Posts
    You need to zip them all up into a file if the file extension isn't allowed.

  17. #14
    Member

    Join Date
    Nov 2017
    Posts
    55
    Thanks
    7
    Thanked 7 Times in 6 Posts
    Thanks css. Here they are attached as a zipped archive.
    Attached Files Attached Files
    Kind regards,

    Mick

  18. #15
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    4,469
    Thanks
    89
    Thanked 941 Times in 756 Posts
    I can save the images as well.
    One thing I can see is that the "offending" one (the BBC ONE logo) has more EXIF data than the previous one. It's also a Grayscale one, rather than an RGB one (which may explain the extra Red/Green/Blue[X/Y] data...).

    Not sure whether I can build a working enigma2 binary at the moment...will have to see later today.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •