Skip to content

Do not let the CPUTiming .so be unloaded#7

Merged
emrekultursay merged 1 commit intoandroid-graphics:mainfrom
emrekultursay:keepalive_cputiming_layer
Mar 12, 2026
Merged

Do not let the CPUTiming .so be unloaded#7
emrekultursay merged 1 commit intoandroid-graphics:mainfrom
emrekultursay:keepalive_cputiming_layer

Conversation

@emrekultursay
Copy link

Android Vulkan loader calls dlopen/dlclose/dlopen during the loading proces. This doesn't play nicely with Perfetto, so we get a crash.

This change adds a keep-alive mechanism (taken from AGI) that prevents the unloading of the .so file. It also adds some logging for dlopen/dlclose events to make it easier to debug in the future.

Android Vulkan loader calls dlopen/dlclose/dlopen during the loading
proces. This doesn't play nicely with Perfetto, so we get a crash.

This change adds a keep-alive mechanism (taken from AGI) that prevents
the unloading of the .so file.
@emrekultursay emrekultursay merged commit 5784c87 into android-graphics:main Mar 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants