This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MGD: Can't capture OpenGL ES trace but Vulkan works

Hi,

MGD does not capture GLES calls. For Vulkan it works straitforward (had to copy libGLES_mali.so as a libVkLayerLayerMGD.so in app's folder to make it working)

When run mgddaemon on command line below error is printed

$ adb shell mgddaemon
1528380971677: mgd_daemon[22207]: [22207]:INFO: Main: The MGD daemon is starting
Daemon is version: D016
Socket is: \0mgddaemon
1528380971732: mgd_daemon[22207]: [22207]:INFO: DuplicateLibraryDetector: First interceptor loaded
1528380971768: mgd_daemon[22207]: [22207]:INFO: PassThroughClApi: Found the following libraries for 'cl': {/vendor/lib/egl//libGLES_mali.so}
1528380971769: mgd_daemon[22207]: [22207]:INFO: PassThroughEglApi: Found the following libraries for 'egl': {/vendor/lib/egl//libGLES_mali.so}
1528380971770: mgd_daemon[22207]: [22207]:INFO: PassThroughGlesApi: Found the following libraries for 'gles': {/vendor/lib/egl//libGLES_mali.so}
1528380971777: mgd_daemon[22207]: [22207]:ERROR: SocketMessagePort: Unable to connect socket: Unable to connect socket: errno = 111
1528380971777: mgd_daemon[22207]: [22207]:WARNING: GatorConnection: Not connected to gatord, the application will run normally but Streamline will not collect annotations. To collect annotations, please verify you are running gatord 5.22 or later and that SELinux is disabled.
1528380971779: mgd_daemon[22207]: [22207]:ERROR: Interceptor: MGD failed to read the process whitelist file: No reason provided. (Does the file exist & have correct permissions?)
1528380971779: mgd_daemon[22207]: [22207]:ERROR: Interceptor: Unable to create message port - using null
1528380971779: mgd_daemon[22207]: [22207]:INFO: MarshallerBase: Connecting to daemon. Sending header...
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Interceptor loaded for 22207: mgddaemon
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Not activating tracing
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Shutdown
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Host detached
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: API TRACING: Disabled
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: ASSET TRACKING: Enabled
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: API TRACING: Disabled
1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: ASSET TRACKING: Disabled
1528380971822: mgd_daemon[22207]: [22207]:DEBUG: DeviceInfo: GL_VENDOR = ARM, GL_RENDERER = Mali-CONFIDENTIAL, GL_VERSION = OpenGL ES 3.2 v1.r10p0-01rel0.aeed42a9dadf5852db6f84a6faf084b9
1528380971824: mgd_daemon[22207]: [22207]:INFO: HostConnection: Initializing host connection
1528380971824: mgd_daemon[22207]: [22207]:INFO: InterceptorListener: Initializing interceptor listener
1528380971824: mgd_daemon[22207]: [22207]:INFO: Daemon: Daemon initializing
1528380971825: mgd_daemon[22207]: [22223]:INFO: InterceptorListener: Interceptor Listener waiting for connections
1528380971825: mgd_daemon[22207]: [22222]:INFO: HostConnection: Host connection listening
1528380971825: mgd_daemon[22207]: [22224]:INFO: Daemon: Daemon running
1528380971825: mgd_daemon[22207]: [22224]:INFO: Daemon: Daemon is version: D016

I did setenforce 0 but it did not help. I followed the guidelines and tried various methods e.g. mv libGLES_mali.so from /system to /vendor and also putting in app's folder.

Can you explain the exact problem and if possible solution please.