Search Unity

glClientWaitSync: Expected application to have kicked everything until job: x

Discussion in 'General Graphics' started by Verpous, Dec 29, 2021.

  1. Verpous

    Verpous

    Joined:
    Apr 7, 2017
    Posts:
    4
    When running our game on the Samsung Galaxy A12, I'm getting the error
    glClientWaitSync: Expected application to have kicked everything until job: x (possibly by calling glFlush)
    every frame, where x is a different number each time. Here it is in Android Logcat: upload_2021-12-29_11-55-23.png
    This error only occurs on this device (from the ones we've tested) and only when using OpenGLES3 (this device doesn't support Vulkan). Googling it gives literally no results. The horror. Help!
     
  2. Slowlooter

    Slowlooter

    Joined:
    Mar 12, 2021
    Posts:
    1
    Hi. Did you manage to solve the problem?
     
  3. Verpous

    Verpous

    Joined:
    Apr 7, 2017
    Posts:
    4
    Nope, we are letting it slide for now. We don't even know if it's harmful in any way.
     
  4. vladrybak

    vladrybak

    Joined:
    Aug 30, 2013
    Posts:
    108
    We have a crash after 5-7 minutes app running on devices where this error spams. (Nokia C30, Vivo Y12)
    It's also spamming in empty unity URP project, but there is no crash.
    After 5 minutest on empty project this log changes to another spamming log
    E IMGSRV : :1248: CBUF_GetBufferSpace: Run out of space in the CBUF:SCISSOR buffer, with no outstanding HW ops
    E IMGSRV : :3103: PrepareToDrawSetupDrawSurfaceScissor failed
    E IMGSRV : :2503: DoClear: Can't prepare to draw
    But my project is just crashes
    java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2021.2.10f1 (ee872746220e)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Build fingerprint: 'vivo/1904_RU/1904:11/RP1A.200720.012/compiler1222175223:user/release-keys'
    Revision: '0'
    ABI: 'arm64'
    Timestamp: 2022-03-11 18:23:01+0500
    pid: 7939, tid: 8158, name: Thread-105 >>> com.lucysville.merge <<<
    uid: 10822
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    Cause: null pointer dereference
    x0 b40000781351e2c0 x1 0000000000000000 x2 b4000075e882ffa8 x3 0000000000000002
    x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 b400007813554138
    x8 0000000000000000 x9 b4000075e89c8600 x10 0000000000001702 x11 b400007813521820
    x12 000000002f297fa0 x13 b4000078134ff2b0 x14 b40000781589eec0 x15 0000000090000002
    x16 000000780552cb28 x17 00000078a958a7f0 x18 00000076991ca000 x19 0000000000000000
    x20 b40000781351e2c0 x21 b4000075e882ffa8 x22 0000000000000001 x23 0000000000000000
    x24 b400007813525918 x25 b400007813525900 x26 0000000000010000 x27 0000000000000000
    x28 0000000000002713 x29 0000007699a69550
    sp 0000007699a69520 lr 00000078046e6824 pc 00000078047200cc

    backtrace:
    #00 pc 000000000019b0cc /vendor/lib64/egl/libGLESv2_mtk.so (BuildId: 0766026ea47432c88b0df4b920c12ffd)
    #01 pc 0000000000161820 /vendor/lib64/egl/libGLESv2_mtk.so (BuildId: 0766026ea47432c88b0df4b920c12ffd)

    at libGLESv2_mtk.0x19b0cc(Native Method)
    at libGLESv2_mtk.0x161820(Native Method)

    I tried to parse this crash with ndk-stack but have no idea where can I get unstrippet /libGLESv2_mtk.so lib.
     
  5. doarp

    doarp

    Joined:
    Sep 24, 2019
    Posts:
    147
    getting a similar error with the same spam error:

    Code (CSharp):
    1.  
    2. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime FATAL EXCEPTION: UnityMain
    3. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime Process: , PID: 21551
    4. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    5. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime Version '2021.3.2f1 (d6360bedb9a0)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
    6. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime Build fingerprint: 'samsung/a03snnxx/a03s:11/RP1A.200720.012/A037FXXU1AVC1:user/release-keys'
    7. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime Revision: '0'
    8. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime ABI: 'arm'
    9. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime Timestamp: 2022-05-22 19:11:40+0300
    10. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime pid: 21551, tid: 23239, name: Thread-62  >>> <<<
    11. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime uid: 10335
    12. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    13. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime Cause: null pointer dereference
    14. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     r0  00000000  r1  da56980c  r2  00000000  r3  00000000
    15. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     r4  00000011  r5  9b18be70  r6  c5ef35e8  r7  9d0a0d88
    16. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     r8  ac3b0c30  r9  e6e8625c  r10 ac3411fc  r11 ac340c68
    17. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     ip  b4b64af8  sp  ac340c00  lr  da569810  pc  b497bd00
    18. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime
    19. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime backtrace:
    20. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #00 pc 003d5d00  /data/app/~~PeO_VBvopieON5DKofCnHA==/-4K4asCHQEbylXdYVgXWwjA==/lib/arm/libmonobdwgc-2.0.so (mono_object_handle_isinst+364)
    21. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime
    22. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime managed backtrace:
    23. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #00 (wrapper managed-to-native) object:__icall_wrapper_mono_marshal_isinst_with_cache (object,intptr,intptr)
    24. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #01 (wrapper castclass) object:__castclass_with_cache (object,intptr,intptr)
    25. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #02 System.Runtime.CompilerServices.ConditionalWeakTable`2/Enumerator<TKey_REF, TValue_REF>:MoveNext () <0x117>
    26. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #03 System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1<int>:Trim () <0x19b>
    27. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #04 System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1<int>:Gen2GcCallbackFunc (object) <0x3b>
    28. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #05 System.Gen2GcCallback:Finalize () <0x7f>
    29. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime       #06 (wrapper runtime-invoke) object:runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr)
    30. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime
    31. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at libmonobdwgc-2.mono_object_handle_isinst(mono_object_handle_isinst:364)
    32. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at System.Object.__icall_wrapper_mono_marshal_isinst_with_cache (object,intptr,intptr)(Native Method)
    33. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at System.Object.__castclass_with_cache (object,intptr,intptr)(Native Method)
    34. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at System.Runtime.CompilerServices.ConditionalWeakTable.Enumerator<TKey_REF,TValue_REF>.MoveNext ()(0x117:279)
    35. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at System.Buffers.TlsOverPerCoreLockedStacksArrayPool<System.Int32>.Trim ()(0x19b:411)
    36. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at System.Buffers.TlsOverPerCoreLockedStacksArrayPool<System.Int32>.Gen2GcCallbackFunc (object)(0x3b:59)
    37. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at System.Gen2GcCallback.Finalize ()(0x7f:127)
    38. 2022/05/22 19:11:41.271 21551 23211 Error AndroidRuntime     at System.Object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr)(Native Method)
     
  6. doarp

    doarp

    Joined:
    Sep 24, 2019
    Posts:
    147
    Happens with Mono builds but not with IL2CPP builds
     
  7. JoJoJoX

    JoJoJoX

    Joined:
    Jun 23, 2022
    Posts:
    52
    same here
     
  8. JoJoJoX

    JoJoJoX

    Joined:
    Jun 23, 2022
    Posts:
    52
    It will crash after a few minutes...
    need HELP!~
     
  9. CastryGames

    CastryGames

    Joined:
    Oct 1, 2014
    Posts:
    77
    same problemmm help
     
  10. th-rainie

    th-rainie

    Joined:
    Feb 2, 2018
    Posts:
    1
    same problem !!! in PowerVR Rogue GE8322 and PowerVR Rogue GE8320...
    help~~
     
  11. Melnikovv

    Melnikovv

    Joined:
    Oct 21, 2016
    Posts:
    8
    This is probably due to some shader. Delete or change some shaders and test on device.
     
  12. VladPrichina

    VladPrichina

    Joined:
    Mar 19, 2020
    Posts:
    4
  13. chenjien

    chenjien

    Joined:
    Jul 28, 2021
    Posts:
    2
    08-10 11:22:19.606 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35366 (possibly by calling glFlush)
    08-10 11:22:19.622 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.626 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35371 (possibly by calling glFlush)
    08-10 11:22:19.653 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.664 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35376 (possibly by calling glFlush)
    08-10 11:22:19.684 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.692 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35381 (possibly by calling glFlush)
    08-10 11:22:19.718 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.724 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35386 (possibly by calling glFlush)
    08-10 11:22:19.751 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.758 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35391 (possibly by calling glFlush)
    08-10 11:22:19.784 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.790 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35396 (possibly by calling glFlush)
    08-10 11:22:19.817 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.827 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35401 (possibly by calling glFlush)
    08-10 11:22:19.849 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
    08-10 11:22:19.858 344 608 E IMGSRV : :473: glClientWaitSync: Expected application to have kicked everything until job: 35406 (possibly by calling glFlush)
    08-10 11:22:19.884 684 7029 E [GrallocExtra-ERROR]: gralloc_extra_query:92 gralloc_extra_query with NULL handle: 0x0
     
  14. AlkisFortuneFish

    AlkisFortuneFish

    Joined:
    Apr 26, 2013
    Posts:
    973
  15. doarp

    doarp

    Joined:
    Sep 24, 2019
    Posts:
    147
    Same here, not fixed in 2021.3.14
     
  16. JoJoJoX

    JoJoJoX

    Joined:
    Jun 23, 2022
    Posts:
    52
    Graphic API set `OpenGLES 3.0` as first choice,
    then `Vulkan`
    then `OpenGLES 2.0`
    if it is possible for your project, remove `OpenGLES 2.0`(our project has deleted it!)
     
  17. damelin

    damelin

    Joined:
    Jul 3, 2012
    Posts:
    65
    Did it fixed the warnings and crashes for you? Or you are just "guessing" some potential solutions?
     
  18. AlkisFortuneFish

    AlkisFortuneFish

    Joined:
    Apr 26, 2013
    Posts:
    973
    We don't support GLES2.0, never have done on this project, this has no effect.
     
  19. JoJoJoX

    JoJoJoX

    Joined:
    Jun 23, 2022
    Posts:
    52
    we dont have this error now(using Unity 2021.3.14f1)
     
  20. eggbbq

    eggbbq

    Joined:
    Jun 7, 2022
    Posts:
    15
    This bug is not fixed:
    https://issuetracker.unity3d.com/is...ilt-on-a-device-with-powervr-rogue-ge8320-gpu

    Testing devices:
    1. Samsung Galaxy A12
    2. Realme C11

    Testing result (Linear):
    1. Not Fixed in 2021.3.13f1c1
    2. Not Fixed in 2021.3.14f1c1
    3. Not Fixed in 2021.3.16f1c1
    4. Not Fixed in 2021.3.19f1c1
    5. Not Fixed in 2022.2.8f1c1

    Solution (Gamma):
    When i switch to Gamma color space and OpenGL ES2.0, this bug disappeared on Samsung Galaxy A12 and Realme C11.

    My project needs linear color space!
    But there's no choices. So many crashes and ANR makes rating down!
     
    Last edited: Mar 9, 2023
  21. chisolo

    chisolo

    Joined:
    May 4, 2023
    Posts:
    2
    Hi, I am facing this issue too. May I know that whether you are using URP or build-in?
     
  22. JoJoJoX

    JoJoJoX

    Joined:
    Jun 23, 2022
    Posts:
    52
    we use built-in one
     
  23. eggbbq

    eggbbq

    Joined:
    Jun 7, 2022
    Posts:
    15
    URP
     
  24. rehanbhutta25

    rehanbhutta25

    Joined:
    Nov 16, 2023
    Posts:
    1
    Same Problem Not ficed here in 2021.3.16.
     
  25. rastleks

    rastleks

    Joined:
    Jul 17, 2014
    Posts:
    49
    Still not fixed in 2021.3.29f1
     
  26. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,643
    I have it too on some ogl devices with 2022.3.x