HEVC file crash only when added to library

I found a bug in kodi/OSMC:

STR

  1. Add HEVC file 1080p@24fps (1h, ~700MB) of TV Show
  2. Look if TV show is added to library
  3. Open it on Raspberry Pi 3 without overclocking (with heatsinks)

Expected: TV show is playing without problem
Result: kodi crash

BUT

if the same file is played without adding to library (without metadata, etc) it plays well!

Is the the good place to report the issue? Where are KODI logs after crash? I can sent them.

Does this happen with all files, or just this one?

All episodes of this TV show have this issue. All are encoded with 265 HEVC.

(well to tell you the truth 6 out of 12 are encoded in 265HEVC and are not working when in library. Other half of the episodes is encoded in 264 and works well even when in library)

When making your first post here, you were prompted with a link that explains in great detail how to do so…

Sorry for RTFM kind of question :slight_smile:

Here are logs:

############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Thu Jun  1 18:47:18 CEST 2017
 Kodi Options: 
 Arch: armv7l
 Kernel: Linux 4.9.26v7-aufs #1 SMP Tue May 9 20:14:03 CEST 2017
 Release: OSMC April 2017
############## END SYSTEM INFO ##############

############### STACK TRACE #################
gdb not installed, can't get stack trace.
############# END STACK TRACE ###############

################# LOG FILE ##################

18:41:19.325 T:1958928384  NOTICE: special://profile/ is mapped to: special://masterprofile/
18:41:19.325 T:1958928384  NOTICE: -----------------------------------------------------------------------
18:41:19.325 T:1958928384  NOTICE: Starting Kodi (17.1). Platform: Linux ARM (Thumb) 32-bit
18:41:19.325 T:1958928384  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
18:41:19.325 T:1958928384  NOTICE: Kodi compiled May  2 2017 by GCC 4.9.2 for Linux ARM (Thumb) 32-bit version 3.16.39 (200743)
18:41:19.325 T:1958928384  NOTICE: Running on Open Source Media Center 2017.04-1, kernel: Linux ARM 32-bit version 4.9.26v7-aufs
18:41:19.325 T:1958928384  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
18:41:19.326 T:1958928384  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
18:41:19.326 T:1958928384  NOTICE: ARM Features: Neon disabled
18:41:19.326 T:1958928384  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
18:41:19.326 T:1958928384  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
18:41:19.326 T:1958928384  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
18:41:19.326 T:1958928384  NOTICE: special://masterprofile/ is mapped to: /home/osmc/.kodi/userdata
18:41:19.326 T:1958928384  NOTICE: special://envhome/ is mapped to: /home/osmc
18:41:19.326 T:1958928384  NOTICE: special://home/ is mapped to: /home/osmc/.kodi
18:41:19.326 T:1958928384  NOTICE: special://temp/ is mapped to: /home/osmc/.kodi/temp
18:41:19.326 T:1958928384  NOTICE: special://logpath/ is mapped to: /home/osmc/.kodi/temp
18:41:19.326 T:1958928384  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
18:41:19.326 T:1958928384  NOTICE: Local hostname: RPiOSMC
18:41:19.326 T:1958928384  NOTICE: Log File is located: /home/osmc/.kodi/temp//kodi.log
18:41:19.326 T:1958928384  NOTICE: -----------------------------------------------------------------------
18:41:19.333 T:1958928384   ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
18:41:19.346 T:1958928384  NOTICE: load settings...
18:41:19.475 T:1958928384  NOTICE: Found 2 Lists of Devices
18:41:19.475 T:1958928384  NOTICE: Enumerated PI devices:
18:41:19.475 T:1958928384  NOTICE:     Device 1
18:41:19.475 T:1958928384  NOTICE:         m_deviceName      : HDMI
18:41:19.475 T:1958928384  NOTICE:         m_displayName     : HDMI
18:41:19.475 T:1958928384  NOTICE:         m_displayNameExtra:
18:41:19.475 T:1958928384  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
18:41:19.475 T:1958928384  NOTICE:         m_channels        : FL,FR
18:41:19.475 T:1958928384  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
18:41:19.475 T:1958928384  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_RAW
18:41:19.475 T:1958928384  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_EAC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_512
18:41:19.475 T:1958928384  NOTICE:     Device 2
18:41:19.475 T:1958928384  NOTICE:         m_deviceName      : Analogue
18:41:19.475 T:1958928384  NOTICE:         m_displayName     : Analogue
18:41:19.475 T:1958928384  NOTICE:         m_displayNameExtra:
18:41:19.475 T:1958928384  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
18:41:19.476 T:1958928384  NOTICE:         m_channels        : FL,FR
18:41:19.476 T:1958928384  NOTICE:         m_sampleRates     : 48000
18:41:19.476 T:1958928384  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
18:41:19.476 T:1958928384  NOTICE:         m_streamTypes     : No passthrough capabilities
18:41:19.476 T:1958928384  NOTICE:     Device 3
18:41:19.476 T:1958928384  NOTICE:         m_deviceName      : Both
18:41:19.476 T:1958928384  NOTICE:         m_displayName     : HDMI and Analogue
18:41:19.476 T:1958928384  NOTICE:         m_displayNameExtra:
18:41:19.476 T:1958928384  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
18:41:19.476 T:1958928384  NOTICE:         m_channels        : FL,FR
18:41:19.476 T:1958928384  NOTICE:         m_sampleRates     : 48000
18:41:19.476 T:1958928384  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
18:41:19.476 T:1958928384  NOTICE:         m_streamTypes     : No passthrough capabilities
18:41:19.476 T:1958928384  NOTICE: Enumerated ALSA devices:
18:41:19.476 T:1958928384  NOTICE:     Device 1
18:41:19.476 T:1958928384  NOTICE:         m_deviceName      : @
18:41:19.476 T:1958928384  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
18:41:19.476 T:1958928384  NOTICE:         m_displayNameExtra:
18:41:19.476 T:1958928384  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
18:41:19.476 T:1958928384  NOTICE:         m_channels        : FL,FR
18:41:19.476 T:1958928384  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000
18:41:19.476 T:1958928384  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
18:41:19.476 T:1958928384  NOTICE:         m_streamTypes     : No passthrough capabilities
18:41:19.488 T:1958928384  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
18:41:19.489 T:1958928384  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="UTF-8" ?>
                                            <!-- Do not modify! These are OSMC Optimised Settings for your device  !-->
                                            <!-- If you wish to override any of these values, then create a file in /home/osmc/.kodi/userdata/advancedsettings.xml !-->
                                            <!-- It will override these settings, and your settings will be preserved across OSMC updates !-->
                                            <advancedsettings>
                                              <imageres>540</imageres>
                                              <fanartres>720</fanartres>
                                              <splash>false</splash>
                                              <handlemounting>0</handlemounting>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                            </advancedsettings>
18:41:19.490 T:1958928384  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
18:41:19.490 T:1958928384  NOTICE: Default Video Player: VideoPlayer
18:41:19.490 T:1958928384  NOTICE: Default Audio Player: paplayer
18:41:19.490 T:1958928384  NOTICE: Disabled debug logging due to GUI setting. Level 0.
18:41:19.490 T:1958928384  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
18:41:19.490 T:1958928384  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
18:41:19.491 T:1958928384  NOTICE: Loaded playercorefactory configuration
18:41:19.491 T:1958928384  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
18:41:19.492 T:1958928384  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
18:41:19.655 T:1958928384  NOTICE: Running database version Addons27
18:41:21.340 T:1958928384  NOTICE: ADDONS: Using repository repository.xbmc.org
18:41:21.494 T:1958928384  NOTICE: Raspberry PI firmware version: Apr 27 2017 17:27:25 
                                            Copyright (c) 2012 Broadcom
                                            version 17af5814bb19dbb7c70ccd2c845b80a160943811 (clean) (release)
18:41:21.494 T:1958928384  NOTICE: ARM mem: 848MB GPU mem: 160MB MPG2:0 WVC1:0
18:41:21.494 T:1958928384  NOTICE: cache.memorysize: 20MB libass.cache: 0MB
18:41:21.494 T:1958928384  NOTICE: Config:
                                            arm_freq=1200
                                            audio_pwm_mode=1
                                            config_hdmi_boost=5
                                            core_freq=400
                                            desired_osc_freq=0x36ee80
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=300
                                            hdmi_channel_map=8
                                            hdmi_force_cec_address=65535
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            over_voltage_avs=43750
                                            over_voltage_avs_boost=37500
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            ramfsaddr=-1
                                            sdram_freq=450
                                            temp_limit=85
18:41:21.494 T:1958928384  NOTICE: Config:
                                            device_tree=-
                                            kernel=kernel_rpi2_aufs.img
                                            ramfsfile=berryboot.img
18:41:21.504 T:1958928384  NOTICE: InitWindowSystem: Using EGL Implementation: raspberrypi
18:41:21.505 T:1958928384  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 60.000000 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 59.940063 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 60.000000 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 59.940063 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 1280 x 800 for display 0 with 1280 x 800 @ 60.000000 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 1280 x 800 for display 0 with 1280 x 800 @ 59.940063 Hz
18:41:21.505 T:1958928384  NOTICE: Found resolution 1280 x 1024 for display 0 with 1280 x 1024 @ 60.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1280 x 1024 for display 0 with 1280 x 1024 @ 59.940063 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1680 x 1050 for display 0 with 1680 x 1050 @ 60.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1680 x 1050 for display 0 with 1680 x 1050 @ 59.940063 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1600 x 900 for display 0 with 1600 x 900 @ 60.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1600 x 900 for display 0 with 1600 x 900 @ 59.940063 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.940063 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 720 x 576 for display 0 with 720 x 576 @ 50.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 50.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 50.000000 Hz
18:41:21.506 T:1958928384  NOTICE: Found (1920x1080@60.000000) at 34, setting to RES_DESKTOP at 16
18:41:21.506 T:1958928384  NOTICE: Checking resolution 16
18:41:21.813 T:1958928384  NOTICE: GL_VENDOR = Broadcom
18:41:21.813 T:1958928384  NOTICE: GL_RENDERER = VideoCore IV HW
18:41:21.813 T:1958928384  NOTICE: GL_VERSION = OpenGL ES 2.0
18:41:21.813 T:1958928384  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00
18:41:21.813 T:1958928384  NOTICE: GL_EXTENSIONS = GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_APPLE_rgb_422 GL_EXT_debug_marker
18:41:22.926 T:1938813936  NOTICE: Running database version Addons27
18:41:22.928 T:1938813936  NOTICE: Running database version ViewModes6
18:41:22.929 T:1938813936  NOTICE: Running database version Textures13
18:41:22.934 T:1938813936  NOTICE: Running database version MyMusic60
18:41:22.942 T:1938813936  NOTICE: Running database version MyVideos107
18:41:22.944 T:1938813936  NOTICE: Running database version TV29
18:41:22.945 T:1938813936  NOTICE: Running database version Epg11
18:41:22.947 T:1958928384  NOTICE: start dvd mediatype detection
18:41:22.955 T:1824093168  NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
18:41:23.477 T:1958928384 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
18:41:24.085 T:1958928384  NOTICE: initialize done
18:41:24.085 T:1958928384  NOTICE: Running the application...
18:41:24.092 T:1958928384  NOTICE: starting zeroconf publishing
18:41:24.094 T:1958928384  NOTICE: CWebServer[8080]: Started
18:41:24.094 T:1958928384  NOTICE: starting upnp client
18:41:24.145 T:1656746992  NOTICE: ES: Starting UDP Event server on port 9777
18:41:24.145 T:1656746992  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
18:41:25.116 T:1938813936   ERROR: DoWork - Direct texture file loading failed for resource://resource.images.weathericons.default/.png
18:41:28.849 T:1743778800 WARNING: CSkinInfo: failed to load skin settings
18:42:33.401 T:1938813936   ERROR: GetDirectory - Error getting -
18:46:14.878 T:1918890992  NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
18:47:09.429 T:1958928384  NOTICE: VideoPlayer: Opening: /media/Pen64 (Vol)/Seriale/Bojack season 3/[ www.torrenting.com ] - Bojack.Horseman.S03E01.1080p.HEVC.x265-MeGusta/Bojack.Horseman.S03E01.1080p.HEVC.x265-MeGusta.mkv
18:47:09.429 T:1958928384 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
18:47:09.430 T:1734603760  NOTICE: Creating InputStream
18:47:09.445 T:1734603760  NOTICE: Creating Demuxer
18:47:09.564 T:1734603760  NOTICE: Opening stream: 0 source: 256
18:47:09.565 T:1734603760  NOTICE: Creating video codec with codec id: 174
18:47:09.565 T:1734603760   ERROR: CMMALVideo::Open : Video codec unknown: ae
18:47:09.565 T:1734603760  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: HEVC (High Efficiency Video Coding)
18:47:09.669 T:1734603760  NOTICE: Creating video thread
18:47:09.670 T:1734603760  NOTICE: Opening stream: 1 source: 256
18:47:09.670 T:1380504560  NOTICE: running thread: video_thread
18:47:09.670 T:1734603760  NOTICE: Finding audio codec for: 86018
18:47:09.673 T:1734603760  NOTICE: Creating audio thread
18:47:09.673 T:1371567088  NOTICE: running thread: CVideoPlayerAudio::Process()
18:47:09.673 T:1734603760  NOTICE: Opening stream: 2 source: 256
18:47:09.760 T:1380504560  NOTICE: CDecoder::Open - fmt:0
18:47:09.774 T:1371567088  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
18:47:10.468 T:1380504560  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 43636


############### END LOG FILE ################

############ END Kodi CRASH LOG #############

gpu_mem should be no lower than 256mb on a Pi3.

Also, this log was not created with dubug logging enabled so, very little verbosity to the actual issue. I did provide the manual… :confused:

1 Like

I think OP is using BerryBoot or an unofficial kernel
Please try and reproduce on OSMC proper.

1 Like
  1. Yes I am using BerryBoot
  2. I changed to 256 vram
  3. I unabled debug logging for future reference. Once again, sorry for not reading manuals!

Cannot reproduce this issue anymore :slight_smile: Guess changing vram helped! Thanks for help!

Enjoy!

Spoke too soon. Playing HEVC is rising temp above 80c, and when throttling hits, movie skips frames.

No overclocking, heatsink and original case onboard.

Because you are using BerryBoot we can’t provide support.
Please try with OSMC proper.

Ok, I will get back once I will do pure install without BerryBoot.

Anyway… does berryboot do that much work under the hood?

BerryBoot changes the kernel and firmware, so you can no longer consider it OSMC and we can’t provide support for it at this time unfortunately

HEVC improvements require a specific firmware version to work properly.

I guess my that’s also why I can’t update package “rbp-bootloader-osmc”, right?

Yes. If you can’t update that package, you’re not going to have the HEVC improvements we pushed.

well thanks for lighting fast response. This place is amazing when it comes to community support :slight_smile:

And sorry to derail this topic from it’s original meaning.