KDAB / GammaRay

GammaRay is a tool to poke around in a Qt-application and also to manipulate the application to some extent.
https://www.kdab.com/gammaray
Other
1.63k stars 283 forks source link

Crash when invoke method #1001

Closed Guitronic closed 4 months ago

Guitronic commented 4 months ago

On the latest version, Gammaray crashes when invoking a method, on version 3.0.93 gammaray does not crash but indicates "Invocation failed.."

Waqar144 commented 4 months ago

Hi, thanks for reporting.

Can you share a minimal app and steps needed to reproduce the crash? I can't reproduce it with our https://github.com/KDAB/GammaRay/blob/3.1/tests/targets/minimalwidgetapplication.cpp

Guitronic commented 4 months ago

I tested well with your application, if I invoke the method "void click()" in "Objects" I get the message "Invocation failed: Invalid object, probably got deleted in the meantime." and gammaray crashes after a few seconds. If I invoke the same method in "Widgets" I get the message "Invocation failed.." and crashes after a few seconds. I use gammaray version 3.1.1 recompiled this morning with Qt 6.6.3 under GCC 64bits.

Degub message: QMetaMethod::invoke: cannot convert formal parameter 0 from GammaRay::MethodArgument in call to QAbstractButton::click()

Waqar144 commented 4 months ago

Can you try with latest 3.1?

Guitronic commented 4 months ago

Can you try with latest 3.1?

Ok with your correction everything seems to work. A big thank you to you.