OpenELEC Testbuilds for RaspberryPi (Kodi 16.0)
(2015-12-05, 01:51)nalor Wrote: Is it possible to give it another try with this fix applied and reenable libaacs support?

Great, that's progress, thanks.

However it's crashing for me when playing the 8GB ISO (the crash is immediate, as soon as playback is started).

I'm using the following patch (should be the same as yours, modified to apply on top of libaacs when building OpenELEC):

http://sprunge.us/VWdK

which produces the following crashlog:

http://sprunge.us/fLPe

Perhaps there are additional places that need fixing now that the loop is exiting early? Although I'm not seeing the "len=0 error detected" debug message, so maybe it's failing before it gets that far? It seems to be crashing in aacs.c: https://gist.github.com/MilhouseVH/bd80fdd1adc505859754

Edit: OK, so libaacs needs a hand before enabling debug logging...
I ran kodi as follows:
Code:
export AACS_DEBUG_MASK=-1
/usr/lib/kodi/kodi.bin  --standalone -fs --lircdev /run/lirc/lircd

and the following is written to stdout/stderr when playing the 8GB ISO:
Code:
aacs.c:987: libaacs 0.8.1 [160]
aacs.c:989: Initializing libgcrypt...
aacs.c:833: Disc ID: ec6afe5df8a1325068b95313f82bd72c09d4f963
keydbcfg.c:146: Opened /storage/.config/aacs/KEYDB.cfg for r
keydbcfg.c:631: found config file: /storage/.config/aacs/KEYDB.cfg
syntax error: line 161
bad entry at or around line 160
keydbcfg.c:146: /storage/.config/aacs/ProcessingDeviceKeysSimple.txt not found
keydbcfg.c:178: /etc/xdg/aacs/ProcessingDeviceKeysSimple.txt not found
keydbcfg.c:146: /storage/.config/aacs/HostKeyCertificate.txt not found
keydbcfg.c:178: /etc/xdg/aacs/HostKeyCertificate.txt not found
aacs.c:1020: Starting AACS waterfall...
aacs.c:736: Searching for keydb config entry...
keydbcfg.c:424: /storage/.cache/aacs/vuk/ec6afe5df8a1325068b95313f82bd72c09d4f963 not found
aacs.c:425: Calculate media key...
mkb.c:76: MKB size: 1048576
mkb.c:53: Couldn't retrieve MKB record 0x10 - len=0 error detected (0x5d8b4008)
mkb.c:77: MKB version: 0
mkb.c:53: Couldn't retrieve MKB record 0x10 - len=0 error detected (0x5d8b4008)
mkb.c:53: Couldn't retrieve MKB record 0x10 - len=0 error detected (0x5d8b4008)
keydbcfg.c:507: /storage/.cache/aacs/drl not found
mkb.c:53: Couldn't retrieve MKB record 0x10 - len=0 error detected (0x5d8b4008)
mkb.c:53: Couldn't retrieve MKB record 0x20 - len=0 error detected (0x5d8b4008)
keydbcfg.c:507: /storage/.cache/aacs/hrl not found
mkb.c:53: Couldn't retrieve MKB record 0x10 - len=0 error detected (0x5d8b4008)
mkb.c:53: Couldn't retrieve MKB record 0x21 - len=0 error detected (0x5d8b4008)
mkb.c:53: Couldn't retrieve MKB record 0x04 - len=0 error detected (0x5d8b4008)
mkb.c:53: Couldn't retrieve MKB record 0x05 - len=0 error detected (0x5d8b4008)
Segmentation fault (core dumped)

The mkb.c file is here: https://gist.github.com/MilhouseVH/d8bac0f67f98ae25d54f

Without your patch (ie. with unpatched libaacs), the output is:
Code:
aacs.c:987: libaacs 0.8.1 [160]
aacs.c:989: Initializing libgcrypt...
aacs.c:833: Disc ID: ec6afe5df8a1325068b95313f82bd72c09d4f963
keydbcfg.c:146: Opened /storage/.config/aacs/KEYDB.cfg for r
keydbcfg.c:631: found config file: /storage/.config/aacs/KEYDB.cfg
syntax error: line 161
bad entry at or around line 160
keydbcfg.c:146: /storage/.config/aacs/ProcessingDeviceKeysSimple.txt not found
keydbcfg.c:178: /etc/xdg/aacs/ProcessingDeviceKeysSimple.txt not found
keydbcfg.c:146: /storage/.config/aacs/HostKeyCertificate.txt not found
keydbcfg.c:178: /etc/xdg/aacs/HostKeyCertificate.txt not found
aacs.c:1020: Starting AACS waterfall...
aacs.c:736: Searching for keydb config entry...
keydbcfg.c:424: /storage/.cache/aacs/vuk/ec6afe5df8a1325068b95313f82bd72c09d4f963 not found
aacs.c:425: Calculate media key...
mkb.c:69: MKB size: 1048576
<Kodi hangs here - busy dialog spinning>

In this case, mkb.c is: https://gist.github.com/MilhouseVH/ac0fd8c2e825a35cc461
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.


Messages In This Thread
Bluetooth on #1003 - by cdvreede - 2015-10-13, 11:08
Re: RE: Bluetooth on #1003 - by Milhouse - 2015-10-13, 13:24
RE: OpenELEC Testbuilds for RaspberryPi (Kodi 16.0) - by Milhouse - 2015-12-05, 03:16
Logout Mark Read Team Forum Stats Members Help
OpenELEC Testbuilds for RaspberryPi (Kodi 16.0)10