panzi / qjoypad

fork of qjoypad http://qjoypad.sourceforge.net/
GNU General Public License v2.0
117 stars 24 forks source link

qjoypad tray icon closes when I press a button on the controller #57

Open luisgflores opened 8 months ago

luisgflores commented 8 months ago

Hello! Thank you for this great project. I installed it on Raspbian using the default APT sources. My third-party PS3 controller gets recognized and I can assign a layout, but then when I try to actually use the controller by pressing a button, the tray icon closes. Where can I find more useful information?

robbi-blechdose commented 6 months ago

Could you try running the program from the command line and posting the log here?

cbnathanael commented 4 months ago

The same thing happens to me, with an 8Bitdo SN30 Pro connected with bluetooth. From the terminal, it just crashes with a Segmentation Fault. Editing the profile, however, works just fine, and it sees the inputs without a problem. Only after loading a profile and pushing a button/stick does it crash.

I'm attempting to use this on a Raspberry Pi 4, Debian 12 (Bookworm), no special configs or anything.

robbi-blechdose commented 4 months ago

Could you run the program via gdb to figure out the source of the segfault? I can't reproduce the issue myself I'm afraid

cbnathanael commented 4 months ago

Looks like it's a Wayland issue. I didn't realize the Pi4 defaulted to that.

I switched back to X11 and qjoypad seems to be working normally.

I'm also running qjoypad after compiling it rather than whatever version is in the apt repos.


(No debugging symbols found in qjoypad)
(gdb) run
Starting program: /usr/bin/qjoypad 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ff2958100 (LWP 9305)]
[New Thread 0x7fea148100 (LWP 9306)]
[New Thread 0x7ff10b9100 (LWP 9319)]
[Thread 0x7ff10b9100 (LWP 9319) exited]
[New Thread 0x7ff10b9100 (LWP 9320)]
[New Thread 0x7ff08a9100 (LWP 9321)]
[Thread 0x7ff10b9100 (LWP 9320) exited]
[New Thread 0x7ff10b9100 (LWP 9322)]
[New Thread 0x7febf05100 (LWP 9323)]
[Thread 0x7ff08a9100 (LWP 9321) exited]
[Thread 0x7ff10b9100 (LWP 9322) exited]
[New Thread 0x7ff10b9100 (LWP 9324)]
[New Thread 0x7ff08a9100 (LWP 9325)]
[Thread 0x7ff10b9100 (LWP 9324) exited]
[Thread 0x7febf05100 (LWP 9323) exited]
[Thread 0x7ff08a9100 (LWP 9325) exited]
[New Thread 0x7ff08a9100 (LWP 9326)]
[New Thread 0x7febf05100 (LWP 9328)]
[New Thread 0x7ff10b9100 (LWP 9329)]
[Thread 0x7febf05100 (LWP 9328) exited]
[New Thread 0x7febf05100 (LWP 9330)]
[New Thread 0x7feb545100 (LWP 9331)]
[Thread 0x7febf05100 (LWP 9330) exited]
[Thread 0x7ff10b9100 (LWP 9329) exited]
[New Thread 0x7ff10b9100 (LWP 9332)]
[New Thread 0x7febf05100 (LWP 9333)]
[Thread 0x7feb545100 (LWP 9331) exited]
[Thread 0x7ff10b9100 (LWP 9332) exited]
[Thread 0x7febf05100 (LWP 9333) exited]

(qjoypad:9303): GLib-GObject-CRITICAL **: 06:56:25.762: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[New Thread 0x7febf05100 (LWP 9334)]
[New Thread 0x7ff10b9100 (LWP 9335)]
[Thread 0x7febf05100 (LWP 9334) exited]
[New Thread 0x7febf05100 (LWP 9336)]
[New Thread 0x7feb545100 (LWP 9337)]
[Thread 0x7febf05100 (LWP 9336) exited]
[Thread 0x7ff10b9100 (LWP 9335) exited]
[New Thread 0x7ff10b9100 (LWP 9338)]
[New Thread 0x7febf05100 (LWP 9339)]
[Thread 0x7feb545100 (LWP 9337) exited]
[Thread 0x7ff10b9100 (LWP 9338) exited]
[Thread 0x7febf05100 (LWP 9339) exited]
[New Thread 0x7febf05100 (LWP 9342)]
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
libpng warning: iCCP: known incorrect sRGB profile

Thread 1 "qjoypad" received signal SIGSEGV, Segmentation fault.
0x0000007ff774a254 in XQueryExtension ()
   from /lib/aarch64-linux-gnu/libX11.so.6```