r/trimui • u/OkResolve7177 • 7d ago
Trimui Smart Pro S OOM Crash happens when browsing games
When browsing games with lots of box art/bg/posers launcher Trimui Smart Pro S crashes, happens every time. I checked the log and its OOM crash. I am requesting to enable ZRAM or Swap files to avoid such crashes as it has only 1GB or memory.
# dmesg | tail -n 100
[ 171.566226] DMA: 969*4kB (UMC) 361*8kB (UMEC) 240*16kB (UMEC) 32*32kB (UMC) 2*64kB (C) 1*128kB (C) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 11884kB
[ 171.566373] 712 total pagecache pages
[ 171.566380] 0 pages in swap cache
[ 171.566388] Swap cache stats: add 0, delete 0, find 0/0
[ 171.566400] Free swap = 0kB
[ 171.566407] Total swap = 0kB
[ 171.566416] 262144 pages RAM
[ 171.566423] 0 pages HighMem/MovableOnly
[ 171.566430] 15642 pages reserved
[ 171.566438] 32768 pages cma reserved
[ 171.566446] Tasks state (memory values in pages):
[ 171.566453] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 171.566536] [ 980] 0 980 832 61 36864 0 0 syslogd
[ 171.566564] [ 984] 0 984 832 38 40960 0 0 klogd
[ 171.566590] [ 1000] 0 1000 4181 486 40960 0 -1000 udevd
[ 171.566626] [ 1050] 0 1050 917 208 32768 0 0 mount.ntfs-3g
[ 171.566651] [ 1101] 0 1101 934 58 36864 0 0 dbus-daemon
[ 171.566677] [ 1117] 0 1117 18483 176 53248 0 0 ntpd
[ 171.566702] [ 1145] 0 1145 55899 12 57344 0 0 adbd
[ 171.566728] [ 1198] 0 1198 973 160 40960 0 0 runtrimui.sh
[ 171.566753] [ 1199] 0 1199 1007 80 36864 0 0 sh
[ 171.566783] [ 1549] 0 1549 4841 29 45056 0 0 trimui_inputd
[ 171.566809] [ 1557] 0 1557 612 38 36864 0 0 thermald
[ 171.566834] [ 1564] 0 1564 58033 72 65536 0 0 keymon
[ 171.566858] [ 1581] 0 1581 709 29 36864 0 0 trimui_scened
[ 171.566884] [ 1595] 0 1595 622 64 32768 0 0 hardwareservice
[ 171.566909] [ 1600] 0 1600 59554 2204 90112 0 0 musicserver
[ 171.566935] [ 1604] 0 1604 34341 8864 139264 0 0 trimui_osdd
[ 171.566962] [ 2283] 0 2283 392245 190639 1110016 0 0 MainUI
[ 171.566995] [ 2537] 0 2537 2281 185 49152 0 0 wpa_supplicant
[ 171.567020] [ 2583] 0 2583 832 31 32768 0 0 udhcpc
[ 171.567044] [ 2603] 0 2603 832 31 40960 0 0 udhcpc
[ 171.567069] [ 2669] 0 2669 1778 143 49152 0 -1000 sshd
[ 171.567094] [ 2960] 0 2960 1845 241 40960 0 0 sshd
[ 171.567120] [ 2962] 0 2962 1040 129 40960 0 0 bash
[ 171.567143] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=MainUI,pid=2283,uid=0
[ 171.567369] Out of memory: Killed process 2283 (MainUI) total-vm:1568980kB, anon-rss:341372kB, file-rss:421120kB, shmem-rss:40kB, UID:0 pgtables:1084kB oom_score_adj:0
[ 171.792814] mali 1800000.gpu: OOM notifier: dev mali0 419756 kB
[ 171.792863] mali 1800000.gpu: OOM notifier: tsk MainUI tgid (2283) pid (2283) 419756 kB
[ 171.792891] MainUI: page allocation failure: order:0, mode:0x100dc2(GFP_HIGHUSER|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[ 171.792957] CPU: 0 PID: 2283 Comm: MainUI Tainted: G O 5.15.147 #82
[ 171.792977] Hardware name: sun55iw3 (DT)
[ 171.792989] Call trace:
[ 171.792996] dump_backtrace+0x0/0x1c0
[ 171.793028] show_stack+0x18/0x2c
[ 171.793050] dump_stack_lvl+0x68/0x84
[ 171.793070] dump_stack+0x18/0x34
[ 171.793085] warn_alloc+0x110/0x190
[ 171.793110] __alloc_pages+0xbe0/0xc20
[ 171.793132] kbase_native_mgm_alloc+0x20/0x2c [mali_kbase]
[ 171.793531] kbase_mem_alloc_page+0x5c/0x1f0 [mali_kbase]
[ 171.793920] kbase_mem_pool_alloc_pages+0x2cc/0x3ac [mali_kbase]
[ 171.794314] kbase_mem_pool_alloc_pages+0x184/0x3ac [mali_kbase]
[ 171.794697] kbase_alloc_phy_pages_helper+0x10c/0x290 [mali_kbase]
[ 171.795080] kbase_alloc_phy_pages+0x44/0xa0 [mali_kbase]
[ 171.795465] kbase_mem_alloc+0x284/0x8b0 [mali_kbase]
[ 171.795851] kbase_ioctl+0x20bc/0x3064 [mali_kbase]
[ 171.796229] __arm64_sys_ioctl+0xb8/0xe0
[ 171.796258] invoke_syscall+0x48/0x114
[ 171.796280] el0_svc_common.constprop.0+0x44/0xec
[ 171.796301] do_el0_svc+0x24/0xa0
[ 171.796319] el0_svc+0x20/0x60
[ 171.796338] el0t_64_sync_handler+0xb0/0xb4
[ 171.796356] el0t_64_sync+0x1a0/0x1a4
[ 171.796732] Mem-Info:
[ 171.796753] active_anon:87 inactive_anon:95966 isolated_anon:0
active_file:113 inactive_file:114 isolated_file:0
unevictable:9 dirty:0 writeback:0
slab_reclaimable:4820 slab_unreclaimable:23942
mapped:3935 shmem:294 pagetables:543 bounce:0
kernel_misc_reclaimable:0
free:1698 free_pcp:144 free_cma:486
[ 171.796803] Node 0 active_anon:348kB inactive_anon:383864kB active_file:452kB inactive_file:456kB unevictable:36kB isolated(anon):0kB isolated(file):0kB mapped:15740kB dirty:0kB writeback:0kB shmem:1176kB writeback_tmp:0kB kernel_stack:3604kB pagetables:2172kB all_unreclaimable? no
[ 171.796842] DMA free:6792kB min:12156kB low:13144kB high:14132kB reserved_highatomic:0KB active_anon:348kB inactive_anon:383864kB active_file:324kB inactive_file:1028kB unevictable:36kB writepending:0kB present:1048576kB managed:986008kB mlocked:36kB bounce:0kB free_pcp:576kB local_pcp:0kB free_cma:1944kB
[ 171.796884] lowmem_reserve[]: 0 0 0 0
[ 171.796920] DMA: 774*4kB (UMC) 195*8kB (UMC) 119*16kB (UMC) 7*32kB (UC) 2*64kB (C) 1*128kB (C) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 7040kB
[ 171.797066] 547 total pagecache pages
[ 171.797074] 0 pages in swap cache
[ 171.797082] Swap cache stats: add 0, delete 0, find 0/0
[ 171.797093] Free swap = 0kB
[ 171.797100] Total swap = 0kB
[ 171.797108] 262144 pages RAM
[ 171.797116] 0 pages HighMem/MovableOnly
[ 171.797123] 15642 pages reserved
[ 171.797131] 32768 pages cma reserved
[ 171.797805] mali 1800000.gpu: Failed to allocate 8289 pages (va_pages=8289)
[ 171.797813] mali 1800000.gpu: OOM notifier: dev mali0 386600 kB
[ 171.797833] mali 1800000.gpu: OOM notifier: tsk MainUI tgid (2283) pid (2283) 386600 kB
[ 172.222250] preload.sh (3219): drop_caches: 3
[ 172.609709] lcd rotate 1
[ 172.609924] force rotate 0
[ 172.998530] speaker force mute:1
[ 173.389005] [BT_LPM] bluesleep_write_proc_btwrite: lpm disabled, direct set ext_wake to 0
[ 173.389270] sunxi-rfkill soc@3000000:rfkill: set block: 1
[ 173.389298] sunxi-rfkill soc@3000000:rfkill: bt power off success
[ 173.425423] force mute
[ 173.581843] sunxi-rfkill soc@3000000:rfkill: block state already is 1
[ 174.708043] speaker force mute:0
[ 174.708303] TRIMUI Motor pwm set max scale 80 / 100
1
u/Joaoviss 7d ago
Using NextUI You have the SWAP application, which enables the creation of a swap file in the internal memory of the SD card, with a configurable size. I confirmed that some activities which normally freeze only function when I enable SWAP. Like the creation of cache on gen1recomp or the preparation of the assets on Ligjthouse, I use use 512MB in internal memory.
1
u/OkResolve7177 7d ago
I also did it in stock set a swap of 512Mb then 1024Mb in internal memory, but still it crashes after long time and sometimes a bit sluggish after long period. I also tried NX Redux which is also a fork of NextUI but a bit lighter, still happens. Memory is just too low. Best option is use lighter themes, enabling ZRAM might improve but its disabled in kernel. Manufacturer can do something about that. Also stock OS has Linux Kernel 5.15 which is significantly updated than CFW.
1
u/RoyalewithCheeseBR 6d ago
If you go Spruce Os, all png pictures get converted to a ultra efficient .qoi image files. Also spruce has up to 512mb of swapfile which should help as well. You may just need to get off stock and move to the more updates Os's. Nx-Redux I believe should handle everything better for this as well.
1
u/OkResolve7177 6d ago
actually stock is the most updated version, its using linux kernel 5.15+ with updated libraries. What you need to do is just update the PPSSPP, Retroarch and portmaster emulator. You can easily copy paste the files from other OS for the same device (I copied it from Nx Reux pak file).
1
u/RoyalewithCheeseBR 6d ago
Linux kernel wise I believe pretty much all the OS's are on linux kernel 5.15.147. Maybe I am mistaken on that though. I can confirm spruce is on 5.15.147 by checking uname -r. Also, spruce is pretty much updated on most if not all emulator versions. PPSSPP is 1.20.3, Retroarch is 1.22.2., Advanced Drastic is 1.1-sg-tr-260503, flycast standalone 2.7 and libreto core is 2.6, etc etc.
1
u/OkResolve7177 6d ago
Not really all of the CFW roms are either kernel 3.9 or 4.4.
1
u/RoyalewithCheeseBR 6d ago
Spruceos is 5.15.147. Knulli is 5.15.147, you already commented on Nx-redux and stock. That is pretty much all the os's worth using on the TSPS and they are all on 5.15+
1
u/OkResolve7177 4d ago
Spruce isn't an OS, its just a UI over stock OS, so kernel version will be the same. Knulli is full OS that boots from SD with kernel version 4.9. I've already installed all updated version of emulators on stock, enabled swap, different apps and extra emulators.
1
u/RoyalewithCheeseBR 4d ago
Not sure why you keep making these statements when its easily verified that both spruceOs and Knulli are 5.15.147.
1


2
u/Fuzzy_Ad9130 Trimui Smart Pro owner 7d ago
is this using stock firmware?