Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

WINE applications do not produce any trace #871

Open
Hi-Angel opened this issue May 3, 2023 · 2 comments
Open

WINE applications do not produce any trace #871

Hi-Angel opened this issue May 3, 2023 · 2 comments

Comments

@Hi-Angel
Copy link

Hi-Angel commented May 3, 2023

Initially I was trying to figure out a problem with invisible WOG menus in an old WINE/Windows game "Heroes Ⅲ: In The Wake Of Gods". After apitrace trace wine h3wog.exe I found out though there's no trace files. I tried both 32 and 64 bit apitrace.

Further experimenting shows that this isn't specific to Heroes Ⅲ, apitrace is unable to record even plain winecfg.

Tested both with latest release and latest master as of 538c5d3

Steps to reproduce

We run winecfg under apitrace, and once it showed up press Escape to close the window. Then check for trace files.

A completely new WINEPREFIX is used to make sure there's no dxvk or nine or anything like that.

 λ mkdir foo && cd foo
 λ WINEPREFIX=~/.winetest WINEDEBUG=-all ~/Projects/apitrace/build/apitrace trace winecfg
apitrace: loaded into /usr/bin/bash
apitrace: loaded into /usr/bin/basename
apitrace: unloaded from /usr/bin/basename
apitrace: loaded into /usr/bin/dirname
apitrace: unloaded from /usr/bin/dirname
ERROR: ld.so: object '/home/constantine/Projects/apitrace/build/wrappers/glxtrace.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/constantine/Projects/apitrace/build/wrappers/glxtrace.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
apitrace: loaded into /usr/bin/wineserver
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: unloaded from /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
ERROR: ld.so: object '/home/constantine/Projects/apitrace/build/wrappers/glxtrace.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: loaded into /usr/bin/wine64-preloader
apitrace: unloaded from /usr/bin/wine64-preloader
apitrace: unloaded from /usr/bin/wine64-preloader
 λ apitrace: unloaded from /usr/bin/wine64-preloader
apitrace: unloaded from C:\windows\system32\rpcss.exe
apitrace: unloaded from /usr/bin/wine64-preloader
apitrace: unloaded from /usr/bin/wineserver
 λ ls
 λ

Expected

The ls at the end would show created trace files.

Actual

The ls at the end shows nothing.

Additional information

  • OS: Archlinux

  • Apitrace tested: 11.1-1 from distro (both 64 and 32 bit) and master build as of 538c5d3 (both 64 and 32 bit)

    Manual build has the following options:

    • 64 bit: cmake . -Bbuild -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS=-fuse-ld=mold -DENABLE_GUI="no"
    • 32 bit: CC='gcc -m32' CXX='g++ -m32' PKG_CONFIG_PATH='/usr/lib32/pkgconfig' cmake . -Bbuild32 -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS=-fuse-ld=mold -DLIB_SUFFIX=32 -DENABLE_GUI="no" -DBUILD_TESTING="no"
  • Mesa: 23.0.3

  • Wine: 8.7

@Hi-Angel
Copy link
Author

Hi-Angel commented May 3, 2023

Idk if that's related, but I just tried using a Windows version of apitrace, and got the same result. I ran it as wine ~/Downloads/apitrace-11.1-win32/bin/apitrace.exe trace ./h3wog.exe, and then ^C-ed the game once it hanged. Afterwards ls *trace* gives "no matches" error.

@OlivierFRDierick
Copy link

OlivierFRDierick commented Jul 11, 2023

Hello @Hi-Angel,
In my case the trace files are created in the user's Desktop directory, which can be found in the wineprefix through the symbolic link at drive_c/users/username/Desktop. Can you check that?
Regards.

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

No branches or pull requests

2 participants