E/Swappy endless logs

2020-07-22 18:23:10.375 17953-18035/space.spherience.app E/Swappy::EGL: Timeout waiting for fence
2020-07-22 18:23:10.380 17953-18030/space.spherience.app E/Swappy::EGL: Failed to get sync status
2020-07-22 18:23:10.380 17953-18030/space.spherience.app E/Swappy::EGL: Failed to destroy sync fence
2020-07-22 18:23:11.011 17953-18035/space.spherience.app E/Swappy::EGL: Timeout waiting for fence
2020-07-22 18:23:11.016 17953-18030/space.spherience.app E/Swappy::EGL: Failed to get sync status
2020-07-22 18:23:11.016 17953-18030/space.spherience.app E/Swappy::EGL: Failed to destroy sync fence
2020-07-22 18:23:11.071 17953-18035/space.spherience.app E/Swappy::EGL: Timeout waiting for fence
2020-07-22 18:23:11.074 17953-18030/space.spherience.app E/Swappy::EGL: Failed to get sync status
2020-07-22 18:23:11.074 17953-18030/space.spherience.app E/Swappy::EGL: Failed to destroy sync fence

so this is repeating about every 50 ms (probably the current framerate). I have no idea what E/Swappy is or what this could mean. The app works fine, but the logs look bad.

Any ideas?

Swappy is used to implement “Optimized Frame Pacing” (checkbox in PlayerSettings). You can disable it there.

What’s the version of Unity where you get these errors?

Thanks Florian!
I’m using 2019.3.13f1

Swappy got updated in 2019.3.14f1, so it’s possible that the issue is already fixed there.

not fixed 2019.4.1f1

Do you get this with any device or does it depend on a specific device or Android version?

It’s also happening for me on the Samsung Galaxy S9+ with optimized frame pacing enabled - only for each frame that is below 30FPS when setting a 30FPS target

I’ve only used a Galaxy A30. I haven’t tested other devices yet.

If I use Auto Graphics API the errors go away. I don’t know enough to tell you what’s going on. Maybe you can explain it to me, but you don’t have to. I’m just trying to find the best settings to build to Android.

That would suggest that it might be a problem with Vulkan, so not the same issue. But then you should not get an EGL errors.

1 Like

Hi @florianpenzkofer , I have this issue on Android 12, all devices are Samsung S22, S22+ and S22 Ultra. Unity 2020.3.38.

0
vulkan.samsung.so.1
(Missing UUID 3c3f650bfd63758b76be354f30896f41c5962e82)
1
libGLESv2_samsung.so
(Missing UUID a637a476c6448ffa)
2
libGLESv2_samsung.so
(Missing UUID a637a476c6448ffa)
3
libGLESv2_samsung.so
(Missing UUID a637a476c6448ffa)
4
libGLESv2_samsung.so
(Missing UUID a637a476c6448ffa)
5
libGLESv2_samsung.so
(Missing UUID a637a476c6448ffa)
6
libGLESv2_samsung.so
(Missing UUID a637a476c6448ffa)
7
libGLESv2_samsung.so
(Missing UUID a637a476c6448ffa)
8
libunity.so
swappy::EGL::FenceWaiter::threadMain()
9
libc.so
(Missing UUID 1001969d8caf747bff324cbb95af4b2e)

Should I disable “optimized frame pacing” or Vulkan in “Auto Graphics API” to only support OpenGl 2 and 3?