mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
Venus: fix the render server's destroyed-mutex abort; fetch Venus in local builds The render server aborted with "pthread_mutex_lock called on a destroyed mutex" whenever a context died while its device still had objects. vkr_device_destroy destroys dev->object_mutex before the loop that frees those objects, and each vkr_device_remove_object in that loop locks the mutex. glibc tolerates this; bionic's FORTIFY aborts, and every client of that server goes down with it. The mutex is now destroyed after the loop (virglrenderer 1.3.0 and main share the bug). tools/build_local.sh now fetches the Venus component by tools/venus/release.env, as build.yml does. It unpacks the component after assets/linuxfs is rebuilt, so the Mali compatibility layer stays in the APK. DROIDDECK_VENUS_TZST points it at a locally built venus.tzst. The unpacked binaries are git-ignored. Seen on a Pixel 10a (Tensor G4, Mali-G715, Android 17 beta): Steam Big Picture reaches its login screen on the Mali (Venus) route. Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com> Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>