#959

GammaRay: Failed to load: ..\gammaray\plugins\gammaray\3.0\qt6_5-GNU-x86_64d\gammaray_probed.dll

Openmml-0104opened 2y ago

Successfully compile and run the launcher on Windows 10 using Qt6.5.3,but Attach failed. The console has the following prompt:

There is no error reported on the Self Test page:

Use default cmake optionals

cmake -G Ninja -DCMAKE_INSTALL_PREFIX="H:/Downloads/gammaray" -DCMAKE_PREFIX_PATH="D:/Qt/6.5.3/mingw_64" ../

The system environment variable PATH setting:

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;D:\Qt\6.5.3\mingw_64\bin;D:\Qt\Tools\CMake_64\bin;D:\Qt\Tools\Ninja;D:\Qt\Tools\mingw1120_64\bin;

Activity

8
kpopv2y ago

As suggested in #983, I've tried procmon to see where it is failing for me (cf. #960). In my case, gammaray_probed.dll can be found. It fails to access some paths within a target directory (cf. paths.cpp pluginPaths / addPluginPath), but I'm unsure if those are required:

  • QueryOpen plugins\gammaray\3.0\qt5_15-GNU-x86_64d\gammaray_probed.dll SUCCESS
  • QueryOpen plugins\gammaray\3.0\qt5_15-GNU-x86_64d\target\3.0\qt5_15-GNU-x86_64d PATH NOT FOUND
  • QueryOpen plugins\gammaray\3.0\qt5_15-GNU-x86_64d\target NAME NOT FOUND
  • QueryOpen bin\gammaray\3.0\qt5_15-GNU-x86_64d\target PATH NOT FOUND
  • QueryOpen bin\gammaray-target NAME NOT FOUND

After that, my application is started, bot no GammaRay window is shown.

Attached is the full log 960 procmon.zip

mml-01042y ago

Here is the gammaray.exe process log listened by procmon PM-Logfile.zip

Run program gammaray-launcher first,and launch a test qt program on the launch page

Same as your comment:

After that, my application is started, bot no GammaRay window is shown.

kpopv2y ago

Building the same sources with MSVC does result in a working GammaRay.

ljhcage1y ago

I am currently also trying to use GammaRay in a Windows environment. I have already tried both Mingw and llvm-mingw, but neither has been able to successfully load probeDll, which seems to be a similar issue. Has there been any new progress or solutions to this problem since the last update?

Environment:

  • Operating System: Windows 10
  • GammaRay Version: 3.1.0
  • GDB Version: 11.2
  • LLDB Version: 15.0.0

Stuck at:

Unable to use dlopen in the gdb/lldb command line to load probeDll at runtime.

d0299401y ago

Same for me: Compiled gammaray with QT 6.8.2 and mingw. Building and installing succeeded. When I launch Gammaray and try to attach a qt program developed with QT 6.8.2 gammaray crashes. "Something" with gammaray_probed.dll.

Building gammaray with MSVC 2022, there is no such problem. No crash.

BTW: Building on Ubuntu/Kubuntu and Debian no problem. No crash.

gitniule1y ago

Same for me , build and install successfully , gammaray are launched normally , but crash when attach any pid without error report 。 windows 10 : QT 6.8.3 && mingw1310_64

mohab19891y ago

same problem here on windows 11 with QT 6.8.2 and gcc.exe 13.1.0, i tried following the tutorial on youtube https://youtu.be/GefC1-W6TO0?si=j1V119UtDj4Gb7bM.

gamma ray runs, but once i launch the app, the app runs, but gamma ray exits with code 0

iamsergio1y ago

Some progress:

  • There's now CI for MinGW and LLVM-MinGW
  • Probe detection for LLVM-MinGW has been fixed in latest master branch
  • Got it running fine with a minimal QtWidgets example, but can repro with QtQuick: app launches but no gammaray UI

Is anyone having problems with QtWidgets ? There's probably more than one bug reported here