env: Qt6.4 / macos 13 / x86-64
GammaRay 2.99.50
qt6 macos Attach list empty It seems that the running qt program cannot be detected
Activity
12I just adopted the latest The process list can be displayed, but cannot be selected or attached
Cannot select or attach
You can only attach to processes that were built using the exact same Qt version that GammaRay was built with.
Can you try to use one of the test apps i.e., assuming a build dir: GammaRay/build, the test app should be in GammaRay/build/testbin/minimalwidgetapplication. Launch the test app, then launch gammaray and try to attach to it.
appListViewDemo, also known as ListView, is the same as the version of GammaRay compilation. The same version cannot be selected or attached
The same QT version compiles the demo, which cannot be selected or attached
The same QT version compiles the demo
How do you know? Have you verified using a tool such ldd or whatever there is on mac? Also did you try to do what I suggested?
CC # otool -L GammaRayUI
GammaRayUI:
@rpath/libgammaray_launcher_ui_debug.3.0.0.dylib (compatibility version 3.0.0, current version 3.0.0)
@rpath/libgammaray_client_debug.3.0.0.dylib (compatibility version 3.0.0, current version 3.0.0)
@rpath/libgammaray_launcher_debug.3.0.0.dylib (compatibility version 3.0.0, current version 3.0.0)
@rpath/QtWidgets.framework/Versions/A/QtWidgets (compatibility version 6.0.0, current version 6.4.1)
@rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.4.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2299.30.112)
/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 306.3.4)
@rpath/libgammaray_common-qt6_4-x86_64_debug.3.0.0.dylib (compatibility version 3.0.0, current version 3.0.0)
@rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.4.1)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.36.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
CC #CC # otool -L appListViewDemo
appListViewDemo:
@rpath/QtQuick.framework/Versions/A/QtQuick (compatibility version 6.0.0, current version 6.4.1)
@rpath/QtQmlModels.framework/Versions/A/QtQmlModels (compatibility version 6.0.0, current version 6.4.1)
@rpath/QtQml.framework/Versions/A/QtQml (compatibility version 6.0.0, current version 6.4.1)
@rpath/QtNetwork.framework/Versions/A/QtNetwork (compatibility version 6.0.0, current version 6.4.1)
@rpath/QtOpenGL.framework/Versions/A/QtOpenGL (compatibility version 6.0.0, current version 6.4.1)
@rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.4.1)
@rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.4.1)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2299.30.112)
/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 306.3.4)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.36.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
CC #appListViewDemo is ListView (above)
I used the same qt version to compile the two, because the local computer has only one qt version
qt 6.4
qt5 windows show same issue
Hello, joining this discussion later, but I still hope I can contribute.
For mac it is important to make sure both the gammarayProbe and the app are actually compiled with the same ABI.
So far so good.
In addition, it is important, that release & debug do not produce the same ABI in macos.
I am unsure if it was the case here, but I observed on macos, that the probe compiled release cannot inspect a program compiled in debug and vise-versa.
You can compile a gammaray Probe in release with the cmake Options cmake -DCMAKE_RELEASE_TYPE=Release -DGAMMARAY_PROBE_ONLY_BUILD=ON -DGAMMARAY_BUILD_UI=OFF
Hi, can you try to reproduce this with latest
masterbranch?