Ask / Submit
3

Threes (android game) crashes due to kgsl memory allocation failure in 1.1.2.16 [answered]

asked 2015-03-06 13:02:22 +0200

bilog gravatar image

updated 2015-03-06 13:14:54 +0200

Hello all,

I got Threes (an Android game) from the Humble Bundle some time ago and I sideloaded it to my Jolla. It was working fairly well in the previous Sailfish OS version (the only exception being crashes when trying to switch on night mode). I've now upgraded to 1.1.2.16, and now the game doesn't work anymore. It starts to load, but then it crashes with a memory allocation failure in kgsl. Specifically, this is what dmesg tells me after the crash:

[Thu Mar  5 19:29:31 2015] UnityMain: page allocation failure: order:4, mode:0x40d0
[Thu Mar  5 19:29:31 2015] [<c010b930>] (unwind_backtrace+0x0/0x11c) from [<c01fc338>] (warn_alloc_failed+0xf8/0x120)
[Thu Mar  5 19:29:31 2015] [<c01fc338>] (warn_alloc_failed+0xf8/0x120) from [<c01fe8bc>] (__alloc_pages_nodemask+0x65c/0x760)
[Thu Mar  5 19:29:31 2015] [<c01fe8bc>] (__alloc_pages_nodemask+0x65c/0x760) from [<c01fe9d0>] (__get_free_pages+0x10/0x24)
[Thu Mar  5 19:29:31 2015] [<c01fe9d0>] (__get_free_pages+0x10/0x24) from [<c022d1c8>] (kmalloc_order_trace+0x20/0xe4)
[Thu Mar  5 19:29:31 2015] [<c022d1c8>] (kmalloc_order_trace+0x20/0xe4) from [<c049fca8>] (_kgsl_sharedmem_page_alloc+0xb0/0x334)
[Thu Mar  5 19:29:31 2015] [<c049fca8>] (_kgsl_sharedmem_page_alloc+0xb0/0x334) from [<c049a810>] (kgsl_ioctl_gpumem_alloc+0x90/0x194)
[Thu Mar  5 19:29:31 2015] [<c049a810>] (kgsl_ioctl_gpumem_alloc+0x90/0x194) from [<c049a660>] (kgsl_ioctl+0x1dc/0x2d4)
[Thu Mar  5 19:29:31 2015] [<c049a660>] (kgsl_ioctl+0x1dc/0x2d4) from [<c024a818>] (do_vfs_ioctl+0x548/0x5bc)
[Thu Mar  5 19:29:31 2015] [<c024a818>] (do_vfs_ioctl+0x548/0x5bc) from [<c024a8c0>] (sys_ioctl+0x34/0x54)
[Thu Mar  5 19:29:31 2015] [<c024a8c0>] (sys_ioctl+0x34/0x54) from [<c0105dc0>] (ret_fast_syscall+0x0/0x30)
[Thu Mar  5 19:29:31 2015] Mem-info:
[Thu Mar  5 19:29:31 2015] Normal per-cpu:
[Thu Mar  5 19:29:31 2015] CPU    0: hi:  186, btch:  31 usd:   0
[Thu Mar  5 19:29:31 2015] CPU    1: hi:  186, btch:  31 usd:   0
[Thu Mar  5 19:29:31 2015] HighMem per-cpu:
[Thu Mar  5 19:29:31 2015] CPU    0: hi:   90, btch:  15 usd:   3
[Thu Mar  5 19:29:31 2015] CPU    1: hi:   90, btch:  15 usd:   0
[Thu Mar  5 19:29:31 2015] active_anon:45779 inactive_anon:52249 isolated_anon:0
 active_file:26981 inactive_file:26369 isolated_file:0
 unevictable:509 dirty:17 writeback:0 unstable:0
 free:3306 slab_reclaimable:4513 slab_unreclaimable:5328
 mapped:30545 shmem:12365 pagetables:3558 bounce:0
[Thu Mar  5 19:29:31 2015] Normal free:12288kB min:3104kB low:15436kB high:16212kB active_anon:123424kB inactive_anon:146648kB active_file:68952kB inactive_file:65664kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:603200kB mlocked:0kB dirty:68kB writeback:0kB mapped:83324kB shmem:30412kB slab_reclaimable:18052kB slab_unreclaimable:21312kB kernel_stack:5592kB pagetables:14232kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:2 all_unreclaimable? no
[Thu Mar  5 19:29:27 2015] slim reconfig done!
[Thu Mar  5 19:29:31 2015] lowmem_reserve[]:
[Thu Mar  5 19:29:31 2015]  0 1967 1967
[Thu Mar  5 19:29:31 2015] HighMem free:936kB min:244kB low:5392kB high:5716kB active_anon:59692kB inactive_anon:62348kB active_file:38972kB inactive_file:39812kB unevictable:2036kB isolated(anon):0kB isolated(file):0kB present:251864kB mlocked:2036kB dirty:0kB writeback:0kB mapped:38856kB shmem:19048kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:17 all_unreclaimable? no
[Thu Mar  5 19:29:31 2015] lowmem_reserve[]: 0 0 0
[Thu Mar  5 19:29:31 2015] Normal: 2892*4kB 46*8kB 22*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 12288kB
[Thu Mar  5 19:29:31 2015] HighMem: 150*4kB 22*8kB 2*16kB 0*32kB 0*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 936kB
[Thu Mar  5 19:29:31 2015] 76809 total pagecache pages
[Thu Mar  5 19:29:31 2015] 10694 pages in swap cache
[Thu Mar  5 19:29:31 2015] Swap cache stats: add 54530, delete 43836, find 116310/118194
[Thu Mar  5 19:29:31 2015] Free swap  = 481084kB
[Thu Mar  5 19:29:31 2015] Total swap = 627908kB
[Thu Mar  5 19:29:32 2015] 234240 pages of RAM
[Thu Mar  5 19:29:32 2015] 4534 free pages
[Thu Mar  5 19:29:32 2015] 27066 reserved pages
[Thu Mar  5 19:29:32 2015] 6860 slab pages
[Thu Mar  5 19:29:32 2015] 163985 pages shared
[Thu Mar  5 19:29:32 2015] 10692 pages swap cached
[Thu Mar  5 19:29:32 2015] kgsl: _kgsl_sharedmem_page_alloc: kmalloc (32772) failed

Is this due to the new memory management in Yliaavanlampi, or is it maybe a video driver issue? (kgsl is part of the GPU driver IIRC, did it get updated in Update 11?) Anything I can do to help identify/solve the issue?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by bilog
close date 2015-06-10 09:40:39.500457

Comments

I have the same issue. Worked before 1.1.2.16 (15), now crashes upon start.

oenone ( 2015-03-06 19:30:56 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2015-06-10 09:39:33 +0200

bilog gravatar image

The latest version of Threes seems to be working fine 1.1.4.29, I'll close this as resolved.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2015-03-06 13:02:22 +0200

Seen: 294 times

Last updated: Jun 10 '15