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

qt6 macos Attach list empty #750

Open
ccworld1000 opened this issue Dec 20, 2022 · 12 comments
Open

qt6 macos Attach list empty #750

ccworld1000 opened this issue Dec 20, 2022 · 12 comments

Comments

@ccworld1000
Copy link

ccworld1000 commented Dec 20, 2022

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

Screenshot 2022-12-20 at 11 26 56

Screenshot 2022-12-20 at 11 26 45

@Waqar144
Copy link
Contributor

Waqar144 commented Jan 4, 2023

Hi, can you try to reproduce this with latest master branch?

@ccworld1000
Copy link
Author

Screenshot 2023-01-07 at 08 20 47

I just adopted the latest
The process list can be displayed, but cannot be selected or attached

@ccworld1000
Copy link
Author

Cannot select or attach

@Waqar144
Copy link
Contributor

Waqar144 commented Jan 9, 2023

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.

@ccworld1000
Copy link
Author

ccworld1000 commented Jan 10, 2023

Screenshot 2023-01-10 at 15 04 21

appListViewDemo, also known as ListView, is the same as the version of GammaRay compilation.
The same version cannot be selected or attached

@Waqar144

@ccworld1000
Copy link
Author

The same QT version compiles the demo, which cannot be selected or attached

@Waqar144
Copy link
Contributor

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?

@ccworld1000
Copy link
Author

ccworld1000 commented Jan 11, 2023

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)

@Waqar144

@ccworld1000
Copy link
Author

I used the same qt version to compile the two, because the local computer has only one qt version

@ccworld1000
Copy link
Author

qt 6.4

@zj951555793
Copy link

qt5 windows show same issue

@chsterz
Copy link
Contributor

chsterz commented Nov 12, 2024

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

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

4 participants