Device: Ugoos AM8 Pro
SoC: Amlogic S928X / Amlogic S922X (as per @rykios response)
RAM: 8 GB
Boot medium: microSD
CoreELEC versions tested:
22 Alpha 1
22 Alpha 2
22 Alpha 3
22 Beta 1
22 nightly 20260730
22 nightly 20260806
DTB: stock am8 DTB supplied with each respective release
Firmware: 2.0.8
SD Card - Lexar A2, V30, U3, 128GB
Kodi: bundled with CoreELEC
Playback:
Native + Jellyfin integration
Media stored on NFS mount (kernel-level mount) + usb stick
Display:
1080p projector
SDR only
No HDR
No Dolby Vision
Problem
During hardware video playback, contiguous CMA memory gradually decreases until Kodi crashes and the system reboots.
Typical failure sequence:
Video plays normally.
Audio begins looping the last buffer.
Screen turns black.
Kodi crashes.
Device reboots (watchdog).
The problem only occurs during video playback.
System is stable indefinitely when:
idle (tested for 5 days)
playing music
browsing the UI
CMA observations
Initial:
CmaFree ≈ 1985 MB
During failing playback:
Naomi:~ # while true; do
date
grep -i cma /proc/meminfo
sleep 300
done
Thu Aug 6 14:50:49 CEST 2026
CmaTotal: 2347008 kB
CmaFree: 1817432 kB
Thu Aug 6 14:55:49 CEST 2026
CmaTotal: 2347008 kB
CmaFree: 1452008 kB
Thu Aug 6 15:00:50 CEST 2026
CmaTotal: 2347008 kB
CmaFree: 989240 kB
Thu Aug 6 15:05:50 CEST 2026
CmaTotal: 2347008 kB
CmaFree: 566996 kB
Thu Aug 6 15:10:50 CEST 2026
CmaTotal: 2347008 kB
CmaFree: 128112 kB(examble on Sherlock Holmes 2009)
After stopping playback:
CmaFree recovers only partially (approximately 670 MB), never returning to the initial value.
Starting another video after this can causes an immediate crash if little of memory was left.
Normal system RAM does not show a comparable increase.
Debugging performed
Fresh SD card formatted before every installation
No restored userdata
Multiple CoreELEC versions tested
Different Arctic and stock estuary skins tested
Debug logging enabled
CMA monitored through:
grep -i Cma /proc/meminfo
DMA-BUF inspection:
cat /sys/kernel/debug/dma_buf/bufinfo
Result remains constant:
3 DMA-BUF objects
~87 MB total
No increasing exported DMA-BUF count was observed.
Kernel log before reboot contains only repeated:
dim:warn:irq:flag 0
No GPU fault, kernel panic, or OOM messages appear before SSH connection is lost.
Codec testing
Initially AV1 appeared stable, but further testing showed codec alone is not the determining factor.
Failing file
Alice in Wonderland
MKV
AV1 Main
1920×1080
10-bit
23.976 fps
AV1 codec string: av01.0.08M.10.0.111.01.01.01.0
Video bitrate: ~8.18 Mb/s
DTS-HD MA + DTS + AC3
2 PGS subtitle tracks
Result:
Rapid CMA depletion
Crash after approximately 20 minutes
Working file
Project Hail Mary
MKV
AV1 Main
1920×1080
10-bit
24 fps
AV1 codec string: av01.0.08M.10.0.110.01.01.01.0
Video bitrate: ~0.77 Mb/s
HE-AAC stereo
35 SRT subtitle tracks
Result:
Over 2 hours playback
No measurable CMA leak
Additional testing
Disabling subtitles does not resolve the issue.
Hard factory reset, stock skin, file played from usb flash drive, movie stripped from everything except video track - no subtitles, audio, tags, chapters etc - leak stills occurred but slower
FFmpeg software decoding reports no bitstream corruption.
Audio playback alone never reproduces the problem.
System idle for multiple days remains stable.
Additional information
Found 2 fully working files (ones where cma leak do not appear at all) - one a high bitrate BD rip ive transcoded myself (h265) and internet rip in low bitrate (av1) can provide them for analysis or send some ffmpeg probes
Im not an IT person report above is an export from AI chat after 2 months of trouble shooting and hitting the wall time and time again - if any additional information is necessary, please word it in a way layman can understand.
Approximately 80% (if not more) of my movie library of hundreds of movies are causing problems both files ripped from BD and transcoded by me as well as privatized from internet h264, h265, av1 all cause problems - tho movies and tv series with low bit-rate are in general less problematic than high quality rips (aka the shorter and smaller files the higher change I will manage to watch it through before it crash)
Ive added amologic s922x to tile as another user also reported that cma memory leak in Amlogic-NO discussion thread after ive first posted it there @rykios
according to rykios problem is resolved by rolling back to CE 21 - havent yet, tested it myself.
even tho the kodi crashed it did not create kodi_crash.log id say its sometimes do sometimes dont so im also attaching an older logs that do had that kodi_crash, cma memmory leak is a ssh export of cma memory logging while playing Sherlock Holmes
01_KODI.log (97.1 KB)
02_System.log (102.0 KB)
03_Hardware.log (42.0 KB)
04_Audio.log (12.6 KB)
05_Network.log (23.8 KB)
06_varlog.log (106.3 KB)
07_input.log (2.2 KB)
08_Filesystem.log (6.4 KB)
09_Journal-cur.log (148.5 KB)
CMA memmory leak .txt (539 Bytes)
01_KODI_CRASH.log (1.0 MB)
01_KODI_CRASH(1).log (442.9 KB)