KDAB / hotspot

The Linux perf GUI for performance analysis.
4.16k stars 257 forks source link

hotsport --exportTo stuck #613

Closed dionysus1016 closed 7 months ago

dionysus1016 commented 7 months ago

Describe the bug I am trying to use hotspot --exportTo feature to export perf result, I run this command in SOC that doesn't have any UI components installed (the SOC runs special linux OS). hotspot stuck at the beginging, here is callstack: (gdb) thread apply all bt

Thread 1 (Thread 0xffff9e0fc6e0 (LWP 3046626)):

0 0x0000ffff9f00ffb4 in ppoll () from /lib/aarch64-linux-gnu/libc.so.6

1 0x0000ffff9f69fb84 in qt_safe_poll(pollfd, unsigned long, timespec const) () from /data/user/hotspot/hotspot_1.4.80_orin/qt515/libQt5Core.so.5

2 0x0000ffff9f6a1694 in QEventDispatcherUNIX::processEvents(QFlags) () from /data/user/hotspot/hotspot_1.4.80_orin/qt515/libQt5Core.so.5

3 0x0000ffff9f64263c in QEventLoop::exec(QFlags) () from /data/user/hotspot/hotspot_1.4.80_orin/qt515/libQt5Core.so.5

4 0x0000ffff9f64b280 in QCoreApplication::exec() () from /data/yejun/hotspot/hotspot_1.4.80_orin/qt515/libQt5Core.so.5

5 0x0000aaaab64aa480 in main ()

Anything I can do to resolve this issue?

milianw commented 7 months ago

are any other threads running? is the hotspot-perfparser process running in the background? get thread apply all bt for both processes.

I cannot reproduce this behavior here.

GitMensch commented 7 months ago

That's using the old hotspot version, we explicit made changes to make this work. I suggest to recheck with a current dev snapshot (self-compiled as the appimage only support x86_64) and think this should work fine.

milianw commented 7 months ago

Please try this with the appimage attached to https://github.com/KDAB/hotspot/releases/tag/v1.5.0 again and reopen if you can reproduce the error there.