flathub / org.racket_lang.Racket

https://flathub.org/apps/details/org.racket_lang.Racket
2 stars 2 forks source link

DrRacket does not open in Wayland session #11

Open neutronleak opened 3 months ago

neutronleak commented 3 months ago

DrRacket does not open. I noticed there's already a separate issue report for the problem, but it was already resolved & closed.

Running

flatpak run org.racket_lang.Racket

in Fedora Kinoite 40 KDE Plasma (Wayland) session, in Konsole, produces

Gdk: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed Window->C: argument is not non-null `Window' pointer argument: #f context...: /app/share/racket/pkgs/gui-lib/mred/private/wx/gtk/dc.rkt:56:2 /app/share/racket/collects/racket/private/class-internal.rkt:3655:0: continue-make-object /app/share/racket/collects/racket/private/class-internal.rkt:3629:0: do-make-object/real-class /app/share/racket/pkgs/gui-lib/framework/splash.rkt:196:3 /app/share/racket/pkgs/gui-lib/framework/splash.rkt:76:5 /app/share/racket/pkgs/gui-lib/mred/private/wx/common/queue.rkt:436:6 /app/share/racket/pkgs/gui-lib/mred/private/wx/common/queue.rkt:487:32 /app/share/racket/collects/racket/private/more-scheme.rkt:148:2: call-with-break-parameterization /app/share/racket/pkgs/gui-lib/mred/private/wx/common/queue.rkt:371:11: eventspace-handler-thread-proc

No loading splash nor any other windows opened. I quite soon stopped the process with Ctrl-C:

^Cuser break context...: /app/share/racket/collects/racket/contract/private/arrow-val-first.rkt:555:3 body of "/app/share/racket/pkgs/drracket/drracket/private/drracket-normal.rkt" body of "/app/share/racket/pkgs/drracket/drracket/drracket.rkt"

I then opened KDE Settings / Flatpak-permissions and disabled permission to use Wayland. Next I retried the flatpak command above, and the DrRacket loading splash screen opened instantly and the program advanced to the main window shortly after. It would seem the GUI framework used does not like Wayland.

capfredf commented 2 months ago

Sorry for the rather late reply. I can't reproduce the issue on Aeon.

IME, the majority of issues posted come down to distro-specific flatpak setup.

In the meantime, you can install Racket using the official linux installer in your toolbox or distrobox.

neutronleak commented 2 months ago

The application works fine when forced to use X11, but it does leave me wondering where the issue is.

I tried Aeon on qemu, and DrRacket does indeed work there. I then tested Kalpa on qemu, and I got the exact same error as I reported above. I thought it could be that DrRacket just doesn't like KDE Plasma on Wayland, but Fedora's own package (8.13) in toolbox starts normally too?! So, my final guess is that there's something going on with Flatpak...

capfredf commented 2 months ago

There are too many moving parts that I don't fully understand here. Flatpak (Dr)Racket used to have some performance issues on some distro that had a relatively old flatpak environment. When those distro updated their Flatpak environments, those issues just went away.

On 8/25/24 09:50, neutronleak wrote:

The application works fine when forced to use X11, but it does leave me wondering where the issue is.

I tried Aeon on qemu, and DrRacket does indeed work there. I then tested Kalpa on qemu, and I got the exact same error as I reported above. I thought it could be that DrRacket just doesn't like KDE Plasma on Wayland, but Fedora's own package (8.13) in toolbox starts normally too?! So, my final guess is that there's something going on with Flatpak...

— Reply to this email directly, view it on GitHub https://github.com/flathub/org.racket_lang.Racket/issues/11#issuecomment-2308853615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD5HCUDG2EP2WFAXV447V3ZTHOKHAVCNFSM6AAAAABLNIVOY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYHA2TGNRRGU. You are receiving this because you commented.Message ID: @.***>