MKV playback leads to oom-killer

Issue #137 resolved
Peter Urbanec created an issue

With firmware 20140305 and a 3.6 GB MKV file (1 hour and 50 minutes), 1916x798, 23.976 fps, h.264 High@L4.0, AAC 2 channels @ 48kHz, 160kbps One video track, one audio track, one subtitle track without language code, 17 additional subtitle tracks with various language codes, 16 chapters defined.

At around 30 minutes into playback, the "busy spinner" appeared on the screen while playback continued for about 15 seconds, then playback stuttered and stopped for about 5 more seconds and then enigma2 just restarted. No crash dialog and not a reboot, just a restart of enigma2. Same crashing experience at around 65 minutes, then again at around 72 minutes and from there about every 5 minutes until the end of the movie!

When reproducing the issue, I managed to capture this via serial console:

matroskademux0: invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0                     
Call Trace:                                                                                                   
[<805eeaec>] dump_stack+0x8/0x34                                                                              
[<805ef8f0>] dump_header.isra.12+0x84/0x19c                                                                   
[<8008e248>] oom_kill_process+0x4c4/0x7c4                                                                     
[<8008ece0>] out_of_memory+0x3f4/0x478                                                                        
[<800927c4>] __alloc_pages_nodemask+0x680/0x694                                                               
[<8008cec0>] filemap_fault+0x35c/0x5f0                                                                        
[<800acd68>] __do_fault+0x8c/0x7d4                                                                            
[<800b1480>] handle_pte_fault+0xa0/0xd9c                                                                      
[<800b22f4>] handle_mm_fault+0x178/0x1e8                                                                      
[<80010e80>] do_page_fault+0x110/0x3c0                                                                        
[<80005580>] ret_from_exception+0x0/0x28

Mem-Info:                                                                                                     
Normal per-cpu:                                                                                               
CPU    0: hi:  186, btch:  31 usd:  16                                                                        
CPU    1: hi:  186, btch:  31 usd:   0                                                                        
active_anon:62729 inactive_anon:54 isolated_anon:0                                                            
 active_file:0 inactive_file:36 isolated_file:30                                                              
 unevictable:0 dirty:0 writeback:0 unstable:0                                                                 
 free:2206 slab_reclaimable:505 slab_unreclaimable:1647                                                       
 mapped:40 shmem:89 pagetables:206 bounce:0                                                                   
Normal free:8824kB min:8192kB low:10240kB high:12288kB active_anon:250916kB inactive_anon:216kB active_file:0kB inactive_file:144kB unevictable:0kB isolated(anon):0kB isolated(file):120kB present:518144kB mlocked:0kB dirty:0kB writeback:0kB mapped:160kB shmem:356kB slab_reclaimable:2020kB slab_unreclaimable:6588kB kernel_stack:968kB pagetables:824kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no         
lowmem_reserve[]: 0 0                                                                                         
Normal: 170*4kB 14*8kB 2*16kB 2*32kB 0*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 1*2048kB 1*4096kB = 8824kB       
150 total pagecache pages                                                                                     
0 pages in swap cache                                                                                         
Swap cache stats: add 0, delete 0, find 0/0                                                                   
Free swap  = 0kB                                                                                              
Total swap = 0kB                                                                                              
131072 pages RAM                                                                                              
58343 pages reserved                                                                                          
324 pages shared                                                                                              
69747 pages non-shared                                                                                        
[ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name                                     
[  305]     0   305     1017      139       3        0             0 nmbd                                     
[  307]     0   307     1754      177       5        0             0 smbd                                     
[  326]     0   326     1754      175       4        0             0 smbd                                     
[  332]     0   332      720       19       4        0             0 udhcpc                                   
[  355]   997   355      773       38       3        0             0 dbus-daemon                              
[  359]     0   359      678       24       4        0             0 dropbear                                 
[  371]     0   371     8144       94       8        0             0 automount                                
[  384]     0   384      720       22       4        0             0 crond                                    
[  392]     0   392      813       27       5        0             0 inetd                                    
[  402]     0   402    24175      171      15        0             0 djmount                                  
[  404]     0   404      720       19       4        0             0 syslogd                                  
[  411]     0   411      720       27       3        0             0 klogd                                    
[  422]   999   422      930       53       4        0             0 avahi-daemon                             
[  424]   999   424      930       42       4        0             0 avahi-daemon                             
[  428]     0   428     7735      164      10        0             0 minidlnad                                
[  975]     0   975      720       19       3        0             0 enigma2.sh                               
[  980]     0   980   129513    58904     103        0             0 enigma2                                  
[ 1021]     0  1021    16186     2839      16        0             0 hbbtv.app                                
Out of memory: Kill process 980 (enigma2) score 780 or sacrifice child                                        
Killed process 980 (enigma2) total-vm:518052kB, anon-rss:235172kB, file-rss:444kB                             
!!!Error BERR_OS_ERROR(0x6) at /prj/ini/hd-x/driver/device/refsw_release_97405_20110228/nexus/../magnum/basemodules/kni/linuxkernel/bkni.c:622                                                                              
!!!Error BERR_OS_ERROR(0x6) at /prj/ini/hd-x/driver/device/refsw_release_97405_20110228/nexus/../magnum/basemodules/kni/linuxkernel/bkni.c:622                                                                              
!!!Error BERR_OS_ERROR(0x6) at /prj/ini/hd-x/driver/device/refsw_release_97405_20110228/nexus/../magnum/basemodules/kni/linuxkernel/bkni.c:622                                                                              
!!!Error BERR_OS_ERROR(0x6) at /prj/ini/hd-x/driver/device/refsw_release_97405_20110228/nexus/../magnum/basemodules/kni/linuxkernel/bkni.c:622                                                                              
Killed

Reproduction steps

  • Play MKV file with features similar to the above.
  • Wait
  • Observe serial console output or run dmesg command after the crash.

Comments (4)

  1. Peter Urbanec reporter
    • removed issue_status

    The issue was updated with the following change(s):

    • The status has been updated, from New to Delegated.
  2. Peter Urbanec reporter
    • removed issue_priority

    The issue was updated with the following change(s):

    • The priority has been updated, from Normal to High.
  3. Peter Urbanec reporter
    • removed issue_severity

    The issue was updated with the following change(s):

    • The severity has been updated, from Major to CRASH.
  4. Log in to comment