[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wayland again


is XInitthreads() wanting to do an X specific thing?

if it uses gb.desktop.x11 or is doing something else X11 specific via
library calls then that could be why it fails with wayland.
(i will have time to check the program later)

Respects
Bruces

On Sun, 8 Nov 2026 at 09:31, valaquarus <valaquarus@xxxxxxxxx> wrote:

> Le dimanche 08 novembre 2026 à 08:27 +0000, Bruce Steers a écrit :
>
> As usual you must post a project that produces the bug.
>
> It's possibly a code error.
>
> This is not correct...
> If XInitThreads() == 0
>
> == Is for string comparison not integer values and will not be working as
> you expect.
>
> It's probably not why your code is failing though so post a sample project
> so we can see what else is happening to cause the problem.
>
> The IDE creates many DrawingArea objects and that works without crashing
> yes?
>
> So it's not simply creating a DrawingArea in Wayland that's an issue. It
> must be something else.
>
>
> Respects
> BruceS
>
> On Sun, 8 Nov 2026, 07:56 valaquarus, <valaquarus@xxxxxxxxx> wrote:
>
> Howdy everyone,
> I just tested several of my programs in wayland, just to see.
> Several do not even start with an error I dont understand :
>
>
> It just stop in the first steps, here :
>
> Public Sub _new()
>
> $hDrawingArea = New DrawingArea(Me) As "player" '<--------------------'
> this declaration seems to not fit wayland
> $hDrawingArea.Cached = True '<----------------------------------------------------'
> for that, this is false
> If XInitThreads() == 0 Then Error.Raise(("Quelque chose ne va pas!"))
> $inst = libvlc_new(0, Null)
> $id = $hDrawingArea.Id '<-----------------------------------------------------------'
> for that, this is false
>
> End
>
> Here is my system :
>
> [System]
> Gambas=3.22.99 b18a253 (master)
> OperatingSystem=Linux
> Distribution=Manjaro Linux
> Kernel=7.2.9-1-MANJARO
> Architecture=x86_64
> Cores=4
> Memory=5713M
> Language=fr_FR.UTF-8
> Platform=x11
> Desktop=KDE
> DesktopResolution=96
> DesktopScale=8
> WidgetTheme=breeze
> Font=DejaVu Sans,11
> DarkTheme=False
> [Programs]
> appimage-builder=appimage-builder: 1.1.1.dev32+g2709a3b
> clang=clang version 23.1.1
> dpkg=Programme « dpkg » de gestion de paquets Debian version 1.23.11-dirty
> (amd64).
> gcc=gcc (GCC) 16.2.1 20260810
> git=git version 2.56.0
> msgmerge=msgmerge (GNU gettext-tools) 1.0
> pngquant=3.0.3
> rpmbuild=RPM version 6.0.1
> trans=Translate Shell 0.9.7.1-git:faff2c9
> [Libraries]
> Cairo=libcairo.so.2.11806.6
> Curl=libcurl.so.4.8.0
> DBus=libdbus-1.so.3.38.3
> GDK3=libgdk-3.so.0.2420.32
> GStreamer=libgstreamer-1.0.so.0.2807.0
> GTK+3=libgtk-3.so.0.2420.32
> OpenGL=libGL.so.1.7.0
> Poppler=libpoppler.so.163.0.0
> QT5=libQt5Core.so.5.15.19
> QT6=libQt6Core.so.6.11.2
> RSvg=librsvg-2.so.2.62.4
> SDL=libSDL2-2.0.so.0.3200.74
> SQLite3=libsqlite3.so.3.53.4
> [Environment]
> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
> DEBUGINFOD_URLS=https://debuginfod.archlinux.org
> DESKTOP_SESSION=plasmax11
> DISPLAY=:0
> DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
> GB_GUI=gb.gtk3
> GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.config/gtkrc-2.0
> GTK3_MODULES=xapp-gtk3-module
> GTK_MODULES=canberra-gtk-module
> GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
> HOME=<home>
> ICEAUTHORITY=/run/user/1000/iceauth_ziZWNK
> INVOCATION_ID=efe31cbf7177405ba0c9d6aa5bacfd8e
> JOURNAL_STREAM=10:12480
> KDE_APPLICATIONS_AS_SCOPE=1
> KDE_FULL_SESSION=true
> KDE_SESSION_UID=1000
> KDE_SESSION_VERSION=6
> LANG=fr_FR.UTF-8
> LANGUAGE=fr_FR.UTF-8
> LC_ADDRESS=fr_FR.UTF-8
> LC_IDENTIFICATION=fr_FR.UTF-8
> LC_MEASUREMENT=fr_FR.UTF-8
> LC_MONETARY=fr_FR.UTF-8
> LC_NAME=fr_FR.UTF-8
> LC_NUMERIC=fr_FR.UTF-8
> LC_PAPER=fr_FR.UTF-8
> LC_TELEPHONE=fr_FR.UTF-8
> LC_TIME=fr_FR.UTF-8
> LOGNAME=<user>
> MAIL=/var/spool/mail/<user>
> MANAGERPID=753
> MANAGERPIDFDID=180
>
> MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service
> /session.slice/plasma-plasmashell.service/memory.pressure
> MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
> MOTD_SHOWN=pam
> OLDPWD=<home>
> PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
>
> PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
> PWD=<home>
> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
> QT_LOGGING_RULES=*.debug=false
> QT_WAYLAND_RECONNECT=1
>
> SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/845,unix/<hostname>:/tmp/.ICE-unix/845
> SHELL=/usr/bin/zsh
> SYSTEMD_EXEC_PID=861
> TZ=:/etc/localtime
> USER=<user>
> VSSCRIPT_PATH=/usr/lib/python3.14/site-packages/vapoursynth/libvsscript.so
> XAUTHORITY=/tmp/xauth_nlsyHh
>
> XDG_CONFIG_DIRS=<home>/.config/kdedefaults:/etc/xdg:/usr/share/manjaro-kde-settings/xdg
> XDG_CURRENT_DESKTOP=KDE
> XDG_MENU_PREFIX=plasma-
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_SESSION_CLASS=user
> XDG_SESSION_DESKTOP=KDE
> XDG_SESSION_ID=2
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
> XDG_SESSION_TYPE=x11
> XDG_VTNR=2
>
> Have a good day.
>
>
> Bonjour Bruce,
> You are right.
> The program is one the forge of gambas. It is called LMClass.
>
> I did a step by step, it send me the same error as in the image and
> continue without openning the base with all the radios even if the form
> opened correctly.
> It is a program that works fine in X11 that is why I thought that wayland
> was the problem.
> I did change this If XInitThreads() == 0 that comes from a code Vuott gave
> me by this If XInitThreads() = 0 as you explained.
>
> --
>
> valaquarus <valaquarus@xxxxxxxxx>
>

PNG image


References:
Wayland againvalaquarus <valaquarus@xxxxxxxxx>
Re: Wayland againBruce Steers <bsteers4@xxxxxxxxx>
Re: Wayland againvalaquarus <valaquarus@xxxxxxxxx>