Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draw calls missing in apitrace (regression) #240

Closed
linkmauve opened this issue Mar 2, 2021 · 5 comments
Closed

Draw calls missing in apitrace (regression) #240

linkmauve opened this issue Mar 2, 2021 · 5 comments

Comments

@linkmauve
Copy link

dbfa4b2 is the first bad commit.

This happens with apitrace master, gtk4-demo records everything (?) except draw calls like glDrawArrays().

@batesj
Copy link

batesj commented Mar 5, 2021

It looks like before that commit, there was a bug that caused libGL.so to always be used even if libOpenGL.so was present. After the commit, libOpenGL.so will be used if it is found, else libGL.so will be used.

@ya-isakov
Copy link
Contributor

ya-isakov commented Mar 5, 2021

@linkmauve could you please check, if there is libOpenGL.so.0 in your system libraries (I have it in /usr/lib64), and move it somewhere else to test, if it will fix your issue? My guess is that apitrace doesn't support libglvnd.

@ya-isakov
Copy link
Contributor

ya-isakov commented Mar 5, 2021

Also it is worthy to check if setting TRACE_LIBGL=libOpenGL.so.0 will help or not. This will work only if you move libOpenGL.so.0 back.

@evelikov
Copy link

@ya-isakov libglvnd should just work, even if libepoxy uses libOpenGL.so while apitrace does libGL.so. Albeit small, there's a possibility of this might be a libglvnd bug in itself.

If it were me, first I would check if apitrace wraps dlsym and {egl,glX}GetProcAddress to intercept all GL dispatch (glDrawArray or otherwise) and see in which library we end on the problematic call(s).

@ebassi
Copy link
Collaborator

ebassi commented May 21, 2021

Commit was reverted, and I released 1.5.8.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants