https://bugs.winehq.org/show_bug.cgi?id=45813
Bug ID: 45813 Summary: Unimplemented DLL issues using Orbit Profiler Product: Wine Version: 3.15 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jimbo1qaz@gmail.com Distribution: ---
I tried using 64-bit ORBIT_PROFILER_1.0.2 in a 64-bit .wine to debug a 32-bit EXE (https://github.com/jimbo1qaz/j0CC-FamiTracker/releases/tag/j0.6.0a).
When Orbit Profiler attaches to j0CC-Famitracker, j0CC (not Orbit) crashes with some unimplemented .?_Winerror_message@std@@YAKKPADK@ (error only visible in debug build, not in release)
Installing winetricks -q vcrun2017, that crash is fixed. But instead, when attaching Orbit Debugger crashes with Unhandled exception: unimplemented function ADVAPI32.dll.TraceSetInformation called in 64-bit code (0x000000007bc5bf2c).
Enabling DLL override and copying a 64-bit advapi32.dll into the program directory from Windows 10 x64 system32 results in orbit.exe eating one cpu core without opening its GUI.
I've reproduced the first two in a clean WINEPROFILE.
wine-staging 3.15, I can't test wine-devel until I reboot to a live USB, because I locked myself out of sudoers with usermod.
https://bugs.winehq.org/show_bug.cgi?id=45813
--- Comment #1 from jimbo1qaz jimbo1qaz@gmail.com --- i'm trying to use a profiler (i meant profiler not debugger, woops) to find out why j0CC is eating 10x more CPU on Wine compared to Windows 10 (eats >50% of a core and spins up my CPU fan).
https://bugs.winehq.org/show_bug.cgi?id=45813
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Unimplemented DLL issues |Orbit Profiler crashes due |using Orbit Profiler |to unimplemeneted function | |advapi32.TraceSetInformatio | |n() Component|-unknown |advapi32
--- Comment #2 from Zebediah Figura z.figura12@gmail.com --- I don't think that native advapi32.dll can be expected to work at all.
https://bugs.winehq.org/show_bug.cgi?id=45813
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to jimbo1qaz from comment #0)
When Orbit Profiler attaches to j0CC-Famitracker, j0CC (not Orbit) crashes with some unimplemented .?_Winerror_message@std@@YAKKPADK@ (error only visible in debug build, not in release)
I guess this deserves its own bugrepoert. I`ll open one
https://bugs.winehq.org/show_bug.cgi?id=45813
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 62287 --> https://bugs.winehq.org/attachment.cgi?id=62287 patch, add stub
The attached patch fixes the crash. I could reproduce the crash by selectin process -> capture --> press ``x-key``
I doubt if the capture after this patch does anything useful, but I think that`s more likely due to all the other eventlog calls that appear in the console:
StartTraceW stub OpenTraceW stub ProcessTrace stub...
https://bugs.winehq.org/show_bug.cgi?id=45813
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL| |https://github.com/pierricg | |immig/orbitprofiler/release | |s Hardware|x86 |x86-64 Keywords| |download Ever confirmed|0 |1
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- confirming
https://bugs.winehq.org/show_bug.cgi?id=45813
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b80780ad0fbeba3853ebf2b9bb3 | |9dc20bce7044d Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #6 from Louis Lenders xerox.xerox2000x@gmail.com --- Crash is fixed by b80780ad0fbeba3853ebf2b9bb39dc20bce7044d
sha1sum orbit.exe 2f677f97355b6c27fdb1ffcab53845a6a2918d4f orbit.exe
https://bugs.winehq.org/show_bug.cgi?id=45813
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.17.