When running android build at Mi Note 2 phone, I get super slow fps like 10+ only and the android logcat keep spamming Error SwappyVk: Failed to wait for fence 2.
@JussiKnuuttila Any new update for this issue? Zero update since 29 Jun. Can u help me get Vulkan team look at this issue as it most likely caused by Vulkan related bug. I also updated multiple phone testing results at this case.
Have you reported this as a bug using the bug reporter? If not, please do so so that we are able to track it and try to reproduce it.
@joelv Ya. Case 1346761. I ady put case number at thread title long time ago. Btw I also get a reply from other thread mentions that it’s very likely related to this issue. If it’s the same issue and can’t backport to 2020 LTS, will Entities package compatibility moves to 2021.2.x as soon as possible along with Hybrid Renderer package? With this issue I will not able to ship my title.
Sorry, brain is a bit slow today =)
I see that the bug is being investigated by initial QA now.
Hi @joelv @JussiKnuuttila Just let u know the bug has been successfully reproduced by QA. Unity Issue Tracker - [Android][Hybrid Renderer][Vulkan] Error SwappyVk: "Failed to wait for fence 2"
@JussiKnuuttila Which Unity 2020.3 LTS version will fix this issue?
We do not yet know since the bug itself has not been fixed yet. I can’t give a better estimate than that sadly.
@joelv Actually is that Hybrid Renderer specific bug or Vulkan bug?
Hi @joelv . Seems like next version of Hybrid Renderer will move to Unity 2021.2. Can u check whether the bug is still reproducible?
@optimise Can you check if you have “Optimized Frame Pacing” checked in the android build settings. If so, can you try to disable it and test if you get any different behaviour?
@joelv Alright now no more error spamming but the frame rate still very low like before. I guess now it’s hybrid renderer performance issue since the same scene perform so much better at regular game object scene.
Right. Yeah it’s still experimental and with the pandemic and everything it’s a bit harder for us devs to test and profile on all hardware types. We will expand the set of devices we test on going forward and will try to iron out any performance problems.
Also getting this with a game crash, at a very specific position in the level, looking at something that may cause it.
2022.05.24 17:19:46.133 25269 25493 Error SwappyVk Failed to wait for fence 2
Info:
Device: Redmi Note 9 Pro
Unity Version: 2021.3.3f1 LTS
Note: My framrate is very good! Remaining at max 59-60 fps as it is capped there. I realized this performance jump some unity sub versions ago. Good job on that!
Test:
As @joelv the test with
“Optimized Frame Pacing” off.
Resulted in a more detailed error message:
2022.05.24 17:38:38.411 32173 32385 Info Choreographer Skipped 67 frames! The application may be doing too much work on its main thread.
Followed by:
2022.05.24 17:38:38.526 32173 32295 Error CRASH pid: 32173, tid: 32295, name: Job.Worker 1 >>> com.pseudo.bundle<<<
2022.05.24 17:38:38.526 32173 32294 Error CRASH Cause: null pointer dereference
2022.05.24 17:38:38.526 32173 32294 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30
2022.05.24 17:38:38.526 32173 32294 Error CRASH Cause: null pointer dereference
NOTE: It might not be related and was just hidden by “Optimized Frame Pacing”.
Facing Same problem, Any updates regarding it? @joelv .
only appears with Android Builds as slow lagging frames before screen blackens and stop or crash. I started to get this issue only after I upgraded from 2020.3.9 to 2020.3.11f in order to use VFX graph in my game. What am I doing wrong? Any suggestions? Any workarounds?
using:
Unity 2021.3.11f
2022/11/05 20:24:38.535 6352 6586 Error SwappyVk Failed to vkQueueSubmit 5
2022/11/05 20:24:38.535 6352 7136 Error SwappyVk Failed to wait for fence 2
2022/11/05 20:24:38.594 6352 6513 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/11/05 20:24:38.594 6352 6513 Error CRASH Version '2021.3.11f1 (0a5ca18544bf)', Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'
2022/11/05 20:24:38.594 6352 6513 Error CRASH Build fingerprint: 'samsung/starqltesq/starqltesq:10/QP1A.190711.020/G960USQS7DTE1:user/release-keys'
2022/11/05 20:24:38.594 6352 6513 Error CRASH Revision: '14'
2022/11/05 20:24:38.594 6352 6513 Error CRASH ABI: 'arm'
2022/11/05 20:24:38.594 6352 6513 Error CRASH Timestamp: 2022-11-05 20:24:38+0300
2022/11/05 20:24:38.594 6352 6513 Error CRASH pid: 6352, tid: 6513, name: UnityMain >>> com.robotec.racetrack <<<
2022/11/05 20:24:38.594 6352 6513 Error CRASH uid: 10551
2022/11/05 20:24:38.594 6352 6513 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x70
2022/11/05 20:24:38.594 6352 6513 Error CRASH Cause: null pointer dereference
2022/11/05 20:24:38.594 6352 6513 Error CRASH r0 00000070 r1 00000008 r2 d748a300 r3 00000000
2022/11/05 20:24:38.594 6352 6513 Error CRASH r4 00000008 r5 00000000 r6 00000070 r7 b93484e8
2022/11/05 20:24:38.594 6352 6513 Error CRASH r8 00000000 r9 b93486c0 r10 b567ffe8 r11 00000000
2022/11/05 20:24:38.594 6352 6513 Error CRASH ip bb72fb38 sp b93484d8 lr bb396731 pc eadf851c
What did you do to solve this issue? Did you find any workaround?
I never did. I am working on another project now.
This is still a major issue for me. Any news on this error?
2024/02/26 23:49:48.552 20442 20575 Verbose SwappyVk SwappyVk initialized for VkDevice 0x71f2adcd60 using VK_GOOGLE_display_timing on Android
2024/02/26 23:49:48.552 20442 20575 Info SwappyVk Returning refresh duration of 16666666 nsec (approx 60.000002 Hz)
2024/02/26 23:49:48.553 20442 20574 Warn Adreno-GSL <gsl_ldd_control:549>: ioctl fd 82 code 0xc040094a (IOCTL_KGSL_GPU_COMMAND) failed: errno 35 Resource deadlock would occur
2024/02/26 23:49:48.553 20442 20574 Warn Adreno-GSL <log_gpu_snapshot:458>: panel.gpuSnapshotPath is not set.not generating user snapshot
2024/02/26 23:49:48.555 20442 20574 Error SwappyVk Failed to vkQueueSubmit 5
2024/02/26 23:49:48.555 20442 21408 Error SwappyVk Failed to wait for fence 2
2024/02/26 23:49:48.567 20442 20574 Warn Adreno-GSL <gsl_ldd_control:549>: ioctl fd 82 code 0xc040094a (IOCTL_KGSL_GPU_COMMAND) failed: errno 35 Resource deadlock would occur
2024/02/26 23:49:48.567 20442 20574 Warn Adreno-GSL <log_gpu_snapshot:458>: panel.gpuSnapshotPath is not set.not generating user snapshot