SUMMARY *** mathematica palettes not working in kde/wayland whereas they work on kde/X and on gnome/wayland *** STEPS TO REPRODUCE 1. install mathematica on kde/wayland 2. Click on mathematica palettes (https://reference.wolfram.com/language/howto/UsePalettes.html) to enter some equations into the mathematica notebook. OBSERVED RESULT Nothing happens. No text appears in the mathematica notebook. EXPECTED RESULT Text should appear in the mathematica notebook. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION The mathematica palettes do not work in kde/wayland but they do work on kde/X . I also installed mathematica in a gnome/wayland virtualbox : The palettes work fine. How could I provide you with more information to debug this problem?? Is there a way to see what's happening when I click on a palette ?
Can you run Mathematica with the WAYLAND_DEBUG=1 environment variable applied? For example, open a terminal window and enter `WAYLAND_DEBUG=1 [command used to launch Mathematica]` Then reproduce the bug and attach a file with the full output of that command (it will be very long) to this bug report. Thanks!
Created attachment 160925 [details] run with WAYLAND_DEBUG=1 Each time I click on the palette, a sequence like this one is logged : [2647067.295] -> wl_surface@52.frame(new id wl_callback@46) [2647067.345] -> wl_surface@52.attach(wl_buffer@60, 0, 0) [2647067.363] -> wl_surface@52.damage_buffer(340, 0, 10, 452) [2647067.376] -> wl_surface@52.commit() [2647068.930] wl_display@1.delete_id(46) [2647068.980] wl_buffer@38.release() [2647068.995] wl_callback@46.done(30374742) but no input appears on the main window. Do you want me to sent you the log using gnome in the virtualbox (no bug in this case) ?
I clicked many times on the palette, therefore it should be easy to correlate these clicks with the log.
I found out that mathematica under gnome is using xwayland ! When I force mathematica to use wayland under gnome the bug is back. DISPLAY='' /usr/local/Wolfram/Mathematica/13.3/Executables/mathematica At least, I can workaround the bug to use mathematica under kde with: QT_QPA_PLATFORM=xcb /usr/local/bin/mathematica The net result may be that mathematica is not ready for wayland, even if it is based on QT5?
Yep, that would suggest that the bug is in Mathematica itself. I'd recommend reporting it to the app's developers.
OK then, sorry for the noise and thanks for the swift answers!
No problem, my pleasure!