Search Unity

[FIXED] Memory issues on Android since 2018.3.0f2

Discussion in 'Android' started by Nieles_GH, Dec 17, 2018.

  1. hearstzhang

    hearstzhang

    Joined:
    Apr 1, 2019
    Posts:
    17
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    @hearstzhang It has been fixed in 2018.3.7f1.
    I'll check why the information on the issue tracker is incorrect.
     
  3. G1NurX

    G1NurX

    Joined:
    Dec 25, 2012
    Posts:
    69
    I'm curious, too. This bug leads to high crash rate and very very very hard to reproduce it.
    We see quite a lot of these crash using 2018.3.8
     
  4. gbyh

    gbyh

    Joined:
    Apr 19, 2014
    Posts:
    5
    @aleksandrk
    We have been experiencing the native crashes a long time since we upgrade our Unity version to 2018.3.8f1.
    It's very hard to reproduce from our project,so we haven't submitted the bug-report to Unity.
    The crashes only occur in the adreno devices(Asus Z01KD, HTC U 1U, VIVO 1723 etc.)

    Crash logs:
    Code (CSharp):
    1. signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 1cf79d10 Build fingerprint: 'asus/WW_Z01KDA/ASUS_Z01KDA:8.0.0/OPR1.170623.032/15.0610.1905.28-0:user/release-keys' Revision: '0' pid: 2479, tid: 2602, name: UnityGfxDeviceW >>> com.xxxx.google <<< r0 48e1b285 r1 48e09801 r2 0001ffff r3 4a63e800 r4 1cf79d10 r5 154d8000 r6 0000e280 r7 00000002 r8 07140002 r9 00000000 sl 00000050 fp 00000000 ip 154d2000 sp 5727ed10 lr 4a63e800 pc 6fdf721a cpsr 7e959d10
    2.  
    3. 1 libGLESv2_adreno.A5xContext::HwPatchForDirectRendering(EsxRenderBucket*, EsxLinkedList*, unsigned int)(HwPatchForDirectRendering:4329)
    4. 2 libGLESv2_adreno.EsxContext::ProcessAndSubmitRendering(EsxFlushReason)(ProcessAndSubmitRendering:4588)
    5. 3 libGLESv2_adreno.EsxCmdMgr::Flush(EsxFlushReason)(Flush:686)
    6. 4 libGLESv2_adreno.EsxMemPoolGeneral::GetMemory(unsigned long long, EsxMemType, unsigned int, EsxMemPoolGeneralAllocation*)(GetMemory:540)
    7. 5 libGLESv2_adreno.EsxGfxMem::Init(EsxGfxMemCreateData*)(Init:832)
    8. 6 libGLESv2_adreno.EsxGfxMem::Create(EsxGfxMemCreateData*)(Create:48)
    9. 7 libGLESv2_adreno.EsxMemPool::AllocateMemory()(AllocateMemory:90)
    10. 8 libGLESv2_adreno.EsxMemPool::GetMemory(int)(GetMemory:36)
    11. 9 libGLESv2_adreno.EsxChunkedMemPool::GetChunkedMemPoolSpaceAligned(unsigned int, unsigned int, unsigned int**, unsigned long long*)(GetChunkedMemPoolSpaceAligned:56)
    12. 10 libGLESv2_adreno.A5xContext::WriteTexMemObjsRegs(unsigned int*, int, int)(WriteTexMemObjsRegs:1138)
    13. 11 libGLESv2_adreno.A5xContext::WriteDepthStencilTexStateGroup(EsxCmdBufType)(WriteDepthStencilTexStateGroup:218)
    14. 12 libGLESv2_adreno.A5xContext::ValidateState(EsxDrawDescriptor const*)(ValidateState:5860)
    15. 13 libGLESv2_adreno.A5xContext::HwValidateGfxState(EsxDrawDescriptor const*)(HwValidateGfxState:4)
    16. 14 libGLESv2_adreno.EsxContext::ValidateGfxState(EsxDrawDescriptor const*)(ValidateGfxState:2172)
    17. 15 libGLESv2_adreno.EsxContext::DrawElementsInstanced(EsxPrimType, unsigned int, EsxPixType, void const*, unsigned int, int)(DrawElementsInstanced:662)
    18. 16 libGLESv2_adreno.EsxGlApiParamValidate::GlDrawElements(EsxDispatch*, unsigned int, int, unsigned int, void const*)(GlDrawElements:192)
    19. 17 libGLESv2_adreno.glDrawElements(glDrawElements:42)
    Code (CSharp):
    1. signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr a272fea0 Build fingerprint: 'OPPO/CPH1879/CPH1879:8.1.0/OPM1.171019.026/1558516915:user/release-keys' Revision: '0' pid: 3597, tid: 3721, name: UnityGfxDeviceW >>> com.xxxx.google <<< r0 48a9e402 r1 71600000 r2 00000000 r3 c7207430 r4 a272fea0 r5 00000000 r6 ebb4f000 r7 00000007 r8 c745df7c r9 00000004 sl 00000004 fp 00000001 ip 00000002 sp c66ff410 lr 00000000 pc df1369d0 cpsr ee84bd10
    2.  
    3. 1 libGLESv2_adreno.A6xContext::WriteTexMemObjsRegs(unsigned int*, int)(WriteTexMemObjsRegs:291)
    4. 2 libGLESv2_adreno.A6xContext::ValidateState(EsxDrawDescriptor const*)(ValidateState:3394)
    5. 3 libGLESv2_adreno.A6xContext::HwValidateGfxState(EsxDrawDescriptor const*)(HwValidateGfxState:4)
    6. 4 libGLESv2_adreno.EsxContext::ValidateGfxState(EsxDrawDescriptor const*)(ValidateGfxState:1844)
    7. 5 libGLESv2_adreno.EsxContext::DrawElementsInstanced(EsxPrimType, unsigned int, EsxPixType, void const*, unsigned int, int)(DrawElementsInstanced:652)
    8. 6 libGLESv2_adreno.EsxGlApiParamValidate::GlDrawElements(EsxDispatch*, unsigned int, int, unsigned int, void const*)(GlDrawElements:178)
    9. 7 libGLESv2_adreno.glDrawElements(glDrawElements:40)
     
    Last edited: Jul 16, 2019
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    @gbyh Unfortunately it's very hard to do anything about these without a reproduction case.
     
  6. gbyh

    gbyh

    Joined:
    Apr 19, 2014
    Posts:
    5
    Hey we have met the same issue with you.Have you solved the problem or submitted a bug report for this through the bug reporter tool?
     
    Last edited: Jul 16, 2019
  7. hearstzhang

    hearstzhang

    Joined:
    Apr 1, 2019
    Posts:
    17
    Well, it seems exists in a newer build of 2018.4 series (for us, it's 2018.4.2f1) which I can not tell you why it happened. But after we abandoned old artist resources and codes and switch to new ones, this problem solved. I'll see if it works forever.

    Thanks for your help anyway.
     
  8. G1NurX

    G1NurX

    Joined:
    Dec 25, 2012
    Posts:
    69
    For such a high crash rate bug, I think Unity could do something.
    This bug exists for quite a long time. Unity already has a crash report module. Unity backtraces callstack when crashing and logs version, build type, registers, memory nearby addresses stored in registers. Why do not print out memory usage, especially graphics memory usage?
    As I know, the crash was caused by mmap failure in adreno driver. Why do not cooperate with Qualcomm to gather memory allocation size, failure reason to adb console?
    Adreno DOes log debug information to kmsg, which needs a rooted device. This bug crashes very often while developers do not have any clue to reproduce it.
     
    Last edited: Aug 9, 2019
  9. musspell

    musspell

    Joined:
    Oct 17, 2015
    Posts:
    7
    I'm still getting this issue in Unity 2018.4.1f1 as well.
    Can you confirm if the bug is really fixed in this version?

    https://issuetracker.unity3d.com/is...dmem-alloc-ioctl-failed-on-adreno-gpu-devices

    2019-08-08 13:42:49.350 7757-7757/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.aqupepgames.projectpepe, PID: 7757
    java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 066af980
    Build fingerprint: 'motorola/albus/albus:8.0.0/OPSS27.76-12-25-23/22:user/release-keys'
    Revision: 'p400'
    pid: 7757, tid: 7827, name: UnityGfxDeviceW >>> com.aqupepgames.projectpepe <<<
    r0 00000000 r1 48e09401 r2 48e1c602 r3 00000000
    r4 88ab7e40 r5 40e70101 r6 88abaaf0 r7 066af980
    r8 00000071 r9 00000000 sl 48e1b101 fp 48e70001
    ip 00000005 sp 87f7f428 lr a05fe42b pc a05fe320 cpsr aed7ad10

    at libGLESv2_adreno.A5xContext::WriteDepthStencilTexStateGroup(EsxCmdBufType)(WriteDepthStencilTexStateGroup:153)
    at libGLESv2_adreno.A5xContext::ValidateState(EsxDrawDescriptor const*)(ValidateState:5860)
    at libGLESv2_adreno.A5xContext::HwValidateGfxState(EsxDrawDescriptor const*)(HwValidateGfxState:4)
    at libGLESv2_adreno.EsxContext::ValidateGfxState(EsxDrawDescriptor const*)(ValidateGfxState:2172)
    at libGLESv2_adreno.EsxContext::DrawElementsInstanced(EsxPrimType, unsigned int, EsxPixType, void const*, unsigned int, int)(DrawElementsInstanced:662)
    at libGLESv2_adreno.EsxGlApiParamValidate::GlDrawElements(EsxDispatch*, unsigned int, int, unsigned int, void const*)(GlDrawElements:192)
    at libGLESv2_adreno.glDrawElements(glDrawElements:42)
    at libunity.007310e4(Native Method)
    at libunity.00731298(Native Method)
    at libunity.001db29c(Native Method)
    at libunity.00735e94(Native Method)
    at libunity.007d8df8(Native Method)
    at libunity.007d9710(Native Method)
    at libunity.007d1908(Native Method)
    at libunity.0034f43c(Native Method)
    at libc.__pthread_start(void*)(__pthread_start:22)
    at libc.__start_thread(__start_thread:32)

    Thanks!
     
  10. trooper

    trooper

    Joined:
    Aug 21, 2009
    Posts:
    748
    @aleksandrk I don't have a repro but I do have a bugsee report with video / full log, would that be of any use?

    upload_2019-11-29_10-16-30.png
     
  11. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    @trooper if we don't have a way to reproduce the issue, how can we reliably fix it? :)
    The issue that this thread was initially about was fixed. It's possible to get the same error if you just run out of memory on the device, which can only be fixed by reducing the app's memory consumption.
    Side note: to run out of memory doesn't necessarily mean that there's no free memory left. It may mean that there is no contiguous region left to satisfy an allocation request.
     
  12. trooper

    trooper

    Joined:
    Aug 21, 2009
    Posts:
    748
    My issue is likely running out of memory then.
     
  13. Inc8877

    Inc8877

    Joined:
    Dec 14, 2018
    Posts:
    13
    Unity 2019.3.0 URP
    Android 9
    ОnPLus 5T
    The problem is all unsolved, I tried many settings and constantly get errors, it was also tested on OnePlus 6T, there were strong artifacts and the application crashed.

    2020-02-06 21:25:34.810 21681-21811/com.CompanyName.ProjectName E/Adreno-GSL: <gsl_memory_alloc_pure:2236>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2020-02-06 21:25:34.814 21681-21811/com.CompanyName.ProjectName W/Adreno-GSL: <sharedmem_gpuobj_alloc:2461>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
     
  14. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    @Inc8877 can you submit a new bug report?
    for all I know, the original issue was solved. The fact that you're getting out-of-memory errors doesn't mean this is the same bug :)
     
    zyonneo likes this.
  15. Inc8877

    Inc8877

    Joined:
    Dec 14, 2018
    Posts:
    13
    I tested the application on 2019.20, 2019.3.0, 2020 alpha, the problem was observed everywhere.
    Description of the problem:
    Applications start up normally, but after 20 transitions between scenes, the screen turns black, and the interface displays correctly. I tried to change the quality level of the graphics while playing on Android and this sometimes helps, the screen displays correctly again, but after switching to a new scene it is black again. I tried to create a test APK with light scenes in a new project and switch them to cause a problem, but the problem was not caused. I have an assumption that the whole thing is in Google AdMob, because sometimes the screen breaks after showing ads. Perhaps the leak is caused by Interstitial Ad, I read that this is often a memory leak problem. By the way, Unity broke, my interface icons were distorted, and the canvas in the Editor Scene View stopped displaying.
    ---
    I don’t want to criticize Unity in advance for problems, so I’ll completely clean my Mac and install all the necessary components, after which I will test different options for AdMob to work, if the problem persists, I will definitely make a Bug Report.
     
    Last edited: Feb 7, 2020
  16. trooper

    trooper

    Joined:
    Aug 21, 2009
    Posts:
    748
    @aleksandrk We've significantly improved our memory usage in textures, mesh and managed heap and we're still getting this crash randomly. All profilers are showing 700mb or more free at the time of the crash.

    The same game runs on iPhone 6 (1GB of memory) with identical textures sizes.

    It's only happening on moto/lg devices and the only device we have in house that does it is a moto g6 with 3gb of memory.

    Unity never logs memory pressure messages.

    There's no way we can cut down this project to create a reproducible without significant costs, is there a way a unity tech can use our plastic repo instead?
     
  17. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    @trooper yes, it's possible to have a separate link/instructions for downloading your project in the bugreport.
     
  18. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
    I have created an app which uses a custom plugin to open the gallery.Once the image is retrieved it is converted to a string using Convert.ToBase64String and then saved into a .json file along with other images and text data.I reconvert them using Convert.FromBase64String to byte array and load them back as texture to images.It saves and displays images along with some text data.I have saved a lot of .json files.

    The app crashes when I show the data.I open the saved .json files and displays the images and text a few times suddenly it does not read any images and crashes.I used terminal and added android-sdk tools path and used command 'adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG' to get errors.While app is crashing I am getting these lines shown below.
    Code (CSharp):
    1. 02-17 17:34:27.854  1520  5378 I ActivityManager: Process com.samsung.mlp (pid 30795) has died: cch+6CEM (380,378)
    2. 02-17 17:34:27.913  1520  7079 I ActivityManager: Process com.samsung.storyservice (pid 30823) has died: cch+6CEM (383,378)
    3. 02-17 17:34:28.470  1520  7079 W ActivityManager: crash : com.Test.LearningProjects,0
    4. 02-17 17:34:28.472  1520  7079 W ActivityManager:   Force finishing activity com.Test.LearningProjects/com.unity3d.player.UnityPlayerActivity
    5. 02-17 17:34:28.493  1520  1805 D ActivityManager: package  com.samsung.android.lool, user - 0 is SDcard whitelisted
    6. 02-17 17:34:28.528  1520  1805 I ActivityManager: Start proc 30899:com.samsung.android.lool/1000 for broadcast com.samsung.android.lool/com.samsung.android.sm.common.SmartManagerReceiver
    7. 02-17 17:34:28.541  1520  1817 I ActivityManager: Showing crash dialog for package com.Test.LearningProjects u0
    8. 02-17 17:34:28.608  1520  9837 D PackageManager: getSelectedMetaData : packageName(com.Test.LearningProjects) or Metadata strings {[Ljava.lang.String;@620f3e2}
    9. 02-17 17:34:28.639  1520  9834 I ActivityManager: DSS on for com.samsung.android.lool and scale is 1.0
    10. 02-17 17:34:28.840  1520  9837 D ActivityManager: package  com.samsung.android.lool, user - 0 is SDcard whitelisted
    11. 02-17 17:34:28.869  1520  9837 I ActivityManager: Start proc 30927:com.samsung.android.sm.provider/1000 for content provider com.samsung.android.lool/com.samsung.android.sm.database.SmProvider
    12. 02-17 17:34:28.869  1520  7007 I ActivityManager: Process com.samsung.dcmservice (pid 30846) has died: cch+6CEM (319,393)
    13. 02-17 17:34:28.899  1520  7007 I ActivityManager: DSS on for com.samsung.android.lool and scale is 1.0
    14. 02-17 17:34:28.977  1520  1805 W ActivityManager: Activity pause timeout for ActivityRecord{34f268d u0 com.Test.LearningProjects/com.unity3d.player.UnityPlayerActivity t219 f}
    15. 02-17 17:34:28.990  1520  1805 D ActivityManager: isScaleDownAnimationEnabled() : true
    16. 02-17 17:34:28.990  1520  1805 D ActivityManager: clearAppIconInfo()
    17. 02-17 17:34:28.990  1520  1805 D ActivityManager: applyOptionsLocked, ANIM_CUSTOM_SCALE_DOWN
    18. 02-17 17:34:29.125  1520  5378 D ActivityManager: post active user change for 0 fullscreen true isHomeActivity() true
    19. 02-17 17:34:29.248  1520  9837 I ActivityManager: Process com.samsung.enhanceservice (pid 30867) has died: cch+6CEM (302,392)
    20. 02-17 17:34:29.431  1520  9837 I ActivityManager: Process com.samsung.android.mobileservice (pid 26806) has died: cch+6CEM (306,377)
    21. 02-17 17:34:32.504 30688 30688 W Unity   : Timeout while trying to pause the Unity Engine.
    I have created an app which uses a custom plugin to open the gallery.Once the image is retrieved it is converted to a string using Convert.ToBase64String and then saved into a .json file along with other images and text data.I reconvert them using Convert.FromBase64String to byte array and load them back as texture to images.It saves and displays images along with some text data.I have saved a lot of .json files.

    The app crashes when I show the data.I open the saved .json files and displays the images and text a few times suddenly it does not read any images and crashes.I used terminal and added android-sdk tools path and used command 'adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG' to get errors.While app is crashing I am getting these lines shown below.

    02-17 17:34:27.854 1520 5378 I ActivityManager: Process com.samsung.mlp (pid 30795) has died: cch+6CEM (380,378)
    02-17 17:34:27.913 1520 7079 I ActivityManager: Process com.samsung.storyservice (pid 30823) has died: cch+6CEM (383,378)
    02-17 17:34:28.470 1520 7079 W ActivityManager: crash : com.Test.LearningProjects,0
    02-17 17:34:28.472 1520 7079 W ActivityManager: Force finishing activity com.Test.LearningProjects/com.unity3d.player.UnityPlayerActivity
    02-17 17:34:28.493 1520 1805 D ActivityManager: package com.samsung.android.lool, user - 0 is SDcard whitelisted
    02-17 17:34:28.528 1520 1805 I ActivityManager: Start proc 30899:com.samsung.android.lool/1000 for broadcast com.samsung.android.lool/com.samsung.android.sm.common.SmartManagerReceiver
    02-17 17:34:28.541 1520 1817 I ActivityManager: Showing crash dialog for package com.Test.LearningProjects u0
    02-17 17:34:28.608 1520 9837 D PackageManager: getSelectedMetaData : packageName(com.Test.LearningProjects) or Metadata strings {[Ljava.lang.String;@620f3e2}
    02-17 17:34:28.639 1520 9834 I ActivityManager: DSS on for com.samsung.android.lool and scale is 1.0
    02-17 17:34:28.840 1520 9837 D ActivityManager: package com.samsung.android.lool, user - 0 is SDcard whitelisted
    02-17 17:34:28.869 1520 9837 I ActivityManager: Start proc 30927:com.samsung.android.sm.provider/1000 for content provider com.samsung.android.lool/com.samsung.android.sm.database.SmProvider
    02-17 17:34:28.869 1520 7007 I ActivityManager: Process com.samsung.dcmservice (pid 30846) has died: cch+6CEM (319,393)
    02-17 17:34:28.899 1520 7007 I ActivityManager: DSS on for com.samsung.android.lool and scale is 1.0
    02-17 17:34:28.977 1520 1805 W ActivityManager: Activity pause timeout for ActivityRecord{34f268d u0 com.Test.LearningProjects/com.unity3d.player.UnityPlayerActivity t219 f}
    02-17 17:34:28.990 1520 1805 D ActivityManager: isScaleDownAnimationEnabled() : true
    02-17 17:34:28.990 1520 1805 D ActivityManager: clearAppIconInfo()
    02-17 17:34:28.990 1520 1805 D ActivityManager: applyOptionsLocked, ANIM_CUSTOM_SCALE_DOWN
    02-17 17:34:29.125 1520 5378 D ActivityManager: post active user change for 0 fullscreen true isHomeActivity() true
    02-17 17:34:29.248 1520 9837 I ActivityManager: Process com.samsung.enhanceservice (pid 30867) has died: cch+6CEM (302,392)
    02-17 17:34:29.431 1520 9837 I ActivityManager: Process com.samsung.android.mobileservice (pid 26806) has died: cch+6CEM (306,377)
    02-17 17:34:32.504 30688 30688 W Unity : Timeout while trying to pause the Unity Engine.

    I have connected to AndroidStudio and from its logcat I get the following messages.Not sure whether these are the errors.How to know what are the errors.

    Code (CSharp):
    1. 2020-02-17 18:02:01.035 1520-2395/? D/InputReader: Input event(6): value=1 when=10645783383000
    2. 2020-02-17 18:02:01.035 1520-2395/? D/InputReader: Input event(6): value=1 when=10645783383000
    3. 2020-02-17 18:02:01.035 1520-2395/? I/InputReader: Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.541 ] when=10645783383000
    4. 2020-02-17 18:02:01.036 1520-2394/? I/InputDispatcher: Delivering touch to (2221): action: 0x0, toolType: 1
    5. 2020-02-17 18:02:01.036 2221-2221/? D/ViewRootImpl@66c83d2[UnityPlayerActivity]: ViewPostIme pointer 0
    6. 2020-02-17 18:02:01.149 31580-31621/? D/ContactsProvider_EventLog: contents_sample_state: [CONTACT contacts(6) data(12) accounts({vnd.sec.contact.phone (1)=6}) accounts deleted({}) calls([]) countryIso(IN) userId(0)  ]
    7.   contents_sample_state: [ agr({[1]=6})  ]
    8.   contents_sample_state: [ actCnt({android.process.acore(31580)=1})  ]
    9.   contents_sample_state: [PROFILE contacts(0) data(0) accounts({})  ]
    10.   contents_sample_state: [SAPROFILE contacts(1) data(1) accounts({vnd.sec.contact.phone (1)=1})  ]
    11. 2020-02-17 18:02:01.153 31580-31621/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 0Kb duration : 2ms lastUpdatedAfter : 60094 ms mFlush_time_threasold : 2000 mCurrentSize : 473
    12. 2020-02-17 18:02:01.178 1520-5409/? D/SSRM:r: SIOP:: AP = 450, PST = 440 (W:6), BAT = 339, CHG = 399
    13. 2020-02-17 18:02:01.193 1033-30476/? V/APM_AudioPolicyManager: getAudioPolicyConfig: audioParam;outDevice
    14. 2020-02-17 18:02:01.193 1033-30476/? V/APM_AudioPolicyManager: getNewOutputDevice() selected device 0
    15. 2020-02-17 18:02:01.193 1033-30476/? V/APM_AudioPolicyManager: ### curdevice : 2
    16. 2020-02-17 18:02:01.193 1033-30476/? V/APM_AudioPolicyManager: getAudioPolicyConfig: audioParam;outDevice
    17. 2020-02-17 18:02:01.194 1033-30476/? V/APM_AudioPolicyManager: getNewOutputDevice() selected device 0
    18. 2020-02-17 18:02:01.194 1033-30476/? V/APM_AudioPolicyManager: ### curdevice : 2
    19. 2020-02-17 18:02:01.195 1033-30476/? V/APM_AudioPolicyManager: getAudioPolicyConfig: audioParam;outDevice
    20. 2020-02-17 18:02:01.195 1033-30476/? V/APM_AudioPolicyManager: getNewOutputDevice() selected device 0
    21. 2020-02-17 18:02:01.195 1033-30476/? V/APM_AudioPolicyManager: ### curdevice : 2
    22. 2020-02-17 18:02:01.198 1520-2395/? D/InputReader: Input event(6): value=0 when=10645947971000
    23. 2020-02-17 18:02:01.198 1520-2395/? D/InputReader: Input event(6): value=0 when=10645947971000
    24. 2020-02-17 18:02:01.200 1520-2395/? I/InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=10645947971000
    25. 2020-02-17 18:02:01.201 1520-2394/? I/InputDispatcher: Delivering touch to (2221): action: 0x1, toolType: 1
    26. 2020-02-17 18:02:01.203 2221-2221/? D/ViewRootImpl@66c83d2[UnityPlayerActivity]: ViewPostIme pointer 1
    27. 2020-02-17 18:02:01.208 1033-30476/? V/APM_AudioPolicyManager: getAudioPolicyConfig: audioParam;activeStream
    28. 2020-02-17 18:02:01.208 1033-30476/? V/APM_AudioPolicyManager: ### active stream : 8
    29. 2020-02-17 18:02:01.209 1520-5409/? D/AudioService: active stream is 0x8
    30. 2020-02-17 18:02:01.231 1033-30476/? V/APM_AudioPolicyManager: getAudioPolicyConfig: audioParam;activeStream
    31. 2020-02-17 18:02:01.231 1033-30476/? V/APM_AudioPolicyManager: ### active stream : 8
    32. 2020-02-17 18:02:01.231 1520-5409/? D/AudioService: active stream is 0x8
    33. 2020-02-17 18:02:01.231 1520-5409/? D/AudioService: GetAppDevice, uid=1000
    34. 2020-02-17 18:02:01.231 1520-5409/? D/AudioService: getStreamVolume 3 index 70
    35. 2020-02-17 18:02:01.448 2221-2265/? W/Adreno-GSL: <sharedmem_gpuobj_alloc:2337>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    36. 2020-02-17 18:02:01.451 1520-1981/? W/StorageManager: getStorageFullBytes DEFAULT_FULL_THRESHOLD_BYTES : 20971520, threadhold : 20971520
    37. 2020-02-17 18:02:01.452 1520-1981/? W/StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 1272704614, maxLowBytes : 524288000
    38. 2020-02-17 18:02:01.455 1520-1981/? W/DeviceStorageMonitorService: updateBroadcasts(/data) oldLevel:0, newLevel:0, seq:1
    39. 2020-02-17 18:02:01.456 1520-1981/? W/DeviceStorageMonitorService: updateBroadcasts_filenode(/data) fn_oldLevel:0, fn_newLevel:0, seq:1
    40. 2020-02-17 18:02:01.457 2221-2265/? E/Adreno-GSL: <gsl_memory_alloc_pure:2203>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    41. 2020-02-17 18:02:01.459 2221-2265/? W/Adreno-GSL: <sharedmem_gpuobj_alloc:2337>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    42. 2020-02-17 18:02:01.467 2221-2265/? E/Adreno-GSL: <gsl_memory_alloc_pure:2203>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    43. 2020-02-17 18:02:01.707 739-739/? I/android.hardware.wifi@1.0-service: getLinkLayerStats
    My doubt is it is because of the conversion.If I take small size images[already converted and saved into .json file] it gets loaded quickly but if I choose from camera gallery[which is converted and saved into .json file] it takes some time to load.Is it because of the conversion after showing a couple of images it hangs and crashes.Maybe it is still hanging on the background while I display other set of images?I have saved a .json file which consists of three images from camera gallery.The size of that .json file is round 8mb.Saving json sample file.https://codeshare.io/5XMbml
     
  19. akiraddd

    akiraddd

    Joined:
    Jan 9, 2015
    Posts:
    8
    Quick question...is anyone who is experiencing the "Adreno-GSL: <gsl_memory_alloc_pure:2297>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed." using Unity terrain in their project?

    I've encountered this crash inducing bug when packaging to my Galaxy S9 from 2019.1.8f1 and it has continued to happen since we upgraded to 2019.2.7f2...but the issue hadn't really started until we began using Unity terrain in our project. We have been addressing memory issues that had been crashing IOS, but we have those largely under control...but my S9 is super unstable...and usually crashes shortly after terrain starts rendering.