Skip to content

GammaRay 3.1.0 on Windows for Qt 5.15 inspection #1074

@zoell

Description

@zoell

Hi Guys, I want to inspect an app that was built with Qt 5.15 so I built GammaRay 3.1.0 on Windows, but when I start the launcher and select my app to launch it starts GammaRay which starts my app and after that I guess it would start the client but the client gives a message after like 1-2 minutes that the connection was refused.

This is in the Qt Application Output tab:

08:54:27: Starting D:\GammaRayBuild\GammaRay\build\Desktop_Qt_5_15_0_MinGW_64_bit-Release\bin\gammaray-launcher.exe...
Startup: gammaray-launcher
QString GammaRay::ProbeABIDetector::qtCoreForProcess(quint64) const Error: snapshot != INVALID_HANDLE_VALUE failed: The paging file is too small for this operation to complete.
QString GammaRay::ProbeABIDetector::qtCoreForProcess(quint64) const Error: snapshot != INVALID_HANDLE_VALUE failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
QString GammaRay::ProbeABIDetector::qtCoreForProcess(quint64) const Error: snapshot != INVALID_HANDLE_VALUE failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
QString GammaRay::ProbeABIDetector::qtCoreForProcess(quint64) const Error: snapshot != INVALID_HANDLE_VALUE failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
Detaching: D:/GammaRayBuild/GammaRay/build/Desktop_Qt_5_15_0_MinGW_64_bit-Release/bin/gammaray.exe --no-inprocess --probe qt5_15-GNU-x86_64 --listen tcp://127.0.0.1 F:/Install/My APP/mapp.exe
Working Directory: D:/GammaRayBuild/GammaRay/build/Desktop_Qt_5_15_0_MinGW_64_bit-Release/bin
Detected ABI qt5_15-GNU-x86_64, using ABI qt5_15-GNU-x86_64.
[mp3 @ 00000000172d4d80] Estimating duration from bitrate, this may be inaccurate
08:59:19: The command "D:\GammaRayBuild\GammaRay\build\Desktop_Qt_5_15_0_MinGW_64_bit-Release\bin\gammaray-launcher.exe" finished successfully.

For this I installed Qt 5.15 with MinGW and have the latest CMake. I tried the MSVC way but there were huge amount of issues and problems during build that I am unable to fix.

What I did to build is I checked out the code and switched to tag 3.1.0 and imported the CMakeLists.txt into Qt Creator and added the Release build config.

There was one issue I had to fix however. Qt has this file here:
Qt\5.15.0\mingw81_64\lib\cmake\Qt5AttributionsScannerTools\Qt5AttributionsScannerToolsConfig.cmake

And had some problems with this:

    set(imported_location "${_qt5_qattributionsscannertools_install_prefix}/bin/qtattributionsscanner")
    _qt5_AttributionsScannerTools_check_file_exists(${imported_location})

Since the qtattributionsscanner file is not there, so I changed that to qtattributionsscanner.exe and it allowed me to build.

Wondering what else I can try? Looks like GammaRay is not listening for some reason?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions