Broken TV Show posters keep breaking
#1
Hi!

Since switching from Raspberry Pi 2 / RetroPie 4.3 / Raspbian Jessie / Kodi 17.4 to Raspberry Pi 3b+ / RetroPie 4.4 / Raspbian Stretch / Kodi 17.6, there is something strange going on with my TV show posters. Some of the posters seem to have stopped loading in the middle of them and the rest of the poster is just green. This usually happens in some of the "first" TV shows I have, but is quite random. It does not happen for the movies, it only happens once or twice for the TV show fanart and the affected shows are random.

I can replace the posters with new ones, but that's pointless as for the next Kodi start, different posters are affected.

This did not happen with Raspberry Pi 2 / RetroPie 4.3 / Raspbian Jessie / Kodi 17.4 and also does not happen on my Windows PCs.

Please help! Thanks!


Log: https://paste.ubuntu.com/p/vjWtGqVhn2/

Screenshot:

Image
Reply
#2
To help narrow it down can you add to config.txt:
arm_freq=1200
sdram_freq=450

and reboot and report if the problem is still present? (you may need to replace the currently broken posters to confirm if the problem is fixed).
Reply
#3
Will try and report back. Thanks!
Reply
#4
Seems like insufficient gpu memory. Increase it in config.txt
Reply
#5
popcornmix Wrote:To help narrow it down can you add to config.txt:
arm_freq=1200
sdram_freq=450

Nope, didn't solve the problem.

I have changed the config.txt accordingly, rebooted, changed all the broken posters, rebooted again and now, different posters are broken.

Here's the new log: https://paste.ubuntu.com/p/7rKnVb6mrD/
Reply
#6
(2018-05-08, 16:55)rascas Wrote: Seems like insufficient gpu memory. Increase it in config.txt
 to how much? Also, currently only two of 750 tv show posters are affected -- wouldn't the lack of GPU memory result in more problems?
Reply
#7
Try 320MB. You can check how much GPU mem is being used at one time by running via ssh:
sudo vcdbg reloc
Reply
#8
Is that the "VRAM" setting in Emulation Station? Or do I have to change the config.txt?
Reply
#9
No. Edit /boot/config.txt and change gpu_mem=X to the desired amount. If you have gpu_mem_1024=X change that one also.
Reply
#10
Still no luck. I have changed the config.txt, rebooted, and again, other tv shows now show the broken posters.

Here's my config.txt:
Code:
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=1200
sdram_freq=450

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

gpu_mem=320

gpu_mem_256=128
gpu_mem_512=256

#gpu_mem_1024=256
gpu_mem_1024=320

#overscan_scale=1

Here's the first part of vcdbg:
Code:
 $ sudo vcdbg reloc | head -n 25

Relocatable heap version 4 found at 0x2c000000
total space allocated is 300M, with 298M relocatable, 2.3M legacy and 0 offline
1 legacy blocks of size 2359296

free list at 0x3e4011c0
232M free memory in 28 free block(s)
largest free block is 231M bytes

0x2c000000: legacy block 2.3M
0x2c240000: free 231M
[ 258] 0x3a9aaa60: used 820K (refcount 2 lock count 0, size   835584, align 4096, data 0x3a9ab000, d1rual) 'Texture blob'
[ 257] 0x3aa77a80: used 820K (refcount 2 lock count 0, size   835584, align 4096, data 0x3aa78000, d1rual) 'Texture blob'
[  99] 0x3ab44aa0: used 820K (refcount 2 lock count 0, size   835584, align 4096, data 0x3ab45000, d1rual) 'Texture blob'
[ 217] 0x3ac11ac0: used 820K (refcount 2 lock count 0, size   835584, align 4096, data 0x3ac12000, d1rual) 'Texture blob'
[ 305] 0x3acdeae0: used 820K (refcount 5 lock count 3, size   835584, align 4096, data 0x3acdf000, d1rual) 'Texture blob'
[ 292] 0x3adabb00: used 820K (refcount 5 lock count 3, size   835584, align 4096, data 0x3adac000, d1rual) 'Texture blob'
[  94] 0x3ae78b20: used 820K (refcount 5 lock count 3, size   835584, align 4096, data 0x3ae79000, d1rual) 'Texture blob'
[  91] 0x3af45b40: used 820K (refcount 5 lock count 3, size   835584, align 4096, data 0x3af46000, d1rual) 'Texture blob'
[ 286] 0x3b012b60: used 820K (refcount 4 lock count 3, size   835584, align 4096, data 0x3b013000, d1rual) 'Texture blob'
[ 338] 0x3b0dfb80: used 820K (refcount 4 lock count 3, size   835584, align 4096, data 0x3b0e0000, d1rual) 'Texture blob'
0x3b1acba0: free 98K
[ 330] 0x3b1c5440: used 820K (refcount 5 lock count 3, size   835584, align 4096, data 0x3b1c6000, d1rual) 'Texture blob'
[ 216] 0x3b292460: used 820K (refcount 5 lock count 3, size   835584, align 4096, data 0x3b293000, d1rual) 'Texture blob'
[ 300] 0x3b35f480: used 820K (refcount 5 lock count 3, size   835584, align 4096, data 0x3b360000, d1rual) 'Texture blob'
Reply
#11
Ok, it is not insuficient gpu memory, you have plenty free, you can put it again at 256MB. But if you get random green posters, like if you restart Kodi, a previous green one displays correctly and a new one gets green, it may be some kind of memory corruption. Unfortunately I don't have the skills to debug that, maybe @popcornmix can help you with that, he knows that stuff much better than me. It can be also something else corrupted, like some settings, although I couldn't figure it out by looking at your kodi log. You can try to backup your kodi settings, like exiting Kodi, moving away ~/.kodi, for example to ~/.kodi_bak, start Kodi again, and set your content again to see if that still happens. This will be like if you are starting Kodi for the first time, with the default settings. And it can be a hardware (memory) failure also, although less probable I think, I don't have any experience with the new PI 3 B+
Reply
#12
Ok, thanks for your support!
Reply
#13
If you want to recache artwork you might want to try the script in my signature - just download texturecache.py and then use something like
text:
./texturecache.py C tvshows "breaking bad" @cache.artwork=poster,season.poster
to force the recaching of all poster artwork for the tvshow "Breaking Bad".

This isn't a fix, it just might help you live with the problem/work towards a solution.

You can also query the Texture Cache with:
text:
./texturecache.py s "Breaking Bad"
(or some other search text that appears in the url/path of the artwork you are interested in)

From the results you should be able to locate the matching artwork in the .kodi/userdata/Thumbnails folder and (by viewing the file in a browser/image viewer) determine if the cached file is corrupt, or if the artwork is being corrupted as it is displayed.
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.
Reply
#14
Cool, will try that. Thanks!

Some more input:

- I have four profiles. This only happens for the master profile
- This mostly happens for the tv show posters, I've never seen it happen for the tv show season posters.
- This only happens on my Raspberry Pi, I've never seen it happen on my PCs.
- This sometimes happens for the tv show fanart, sometimes also for movies, but mostly for tv show posters.
Reply
#15
Well, that's odd... The Texturecache Script doesn't seem to find my TV shows, only my music stuff?

Image
 
Code:
pi@*****:~/bin $ ./texturecache.py s "Brain Games"
Matching row ids:
pi@****:~/bin $ ./texturecache.py s "BeLIEve"
020661|2/2e7e0b29.jpg|0000|0000|0001|2018-05-12 18:08:40|2018-05-12 20:08:40|smb://*****/...../[LMD 054] Jon Delerious - Believe In You EP (2012)/folder.jpg
Matching row ids: 20661
Reply

Logout Mark Read Team Forum Stats Members Help
TV Show posters keep breaking0