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

Wayland problem


I found what generates the error, the explaination follows without any
solution :

Here is the message I received in the console when I run a program of
mine under wayland.
If it cans help in any way to understand what is going on.
Just for info here is what I do in first :

 
Public Sub _new() 'initialisations globales

 Application.MainWindow = Me 'fenêtre principale
 Try hLock = Lock User.home & "/." & Application.Title & "-" &
Application.Version & "-lock" '<-- blocage fichier démarrage

 If Error Then
 Message.Title = ("Attention!")
 Message(("Une seule instance du Progamme est
possible."))
 Quit '<------------------------------------' on peut
car le formulaire n'est pas encore lancé
 Endif

 Module_Settings.InitDefaultPath '<-------------'Initializing
the default path for storing settings
 $TextArea1 = New TextArea(Splitter1) As "TextArea1"
 $TextArea1.Tooltip = ("Ensemble des Méta Données du flux")
 $DrawingArea1 = New DrawingArea(Splitter1) As "DrawingArea1"
 $DrawingArea1.Tooltip = ("Zone de visionnage")
 $slider1 = New Slider(Me) As "slider1" 'slider pour déplacement
dans videos
 $mp = New MediaPlayer As "MediaPlayer1" 'mediaplayer lui-même
 $sapScreenShot = New Picture[] 'picture array d'images
sauvegardées
 $ecran = $DrawingArea1 'au démarrage est égal au drawingarea
 sDir = "" 'répertoire images
 sDirAudio = "" 'répertoire Audio
 $bChoix = True 'bascule sur stations radios pour commencer sur
radio
 TrayIcon1 = New TrayIcon As "TrayIcon1" 'instanciation du
TrayIcon à commenter si utilisation de l'IDE
 DefTrayIcon() 'permet d'avoir l'affichage de l'icône rapidement

End

Private Sub DefTrayIcon() '<------------------------------' définition
du TrayIcon

 TrayIcon1.Tag = "- Cliquer gauche :\tFenêtre.\n- Cliquer droit
:\tMenu.\n- Roulette :\t\tStations."
 TrayIcon1.Tooltip = TrayIcon1.Tag & "\n" & "- Radio :" & "\t" &
ComboBox1.Text
 TrayIcon1.Picture = Picture.Load("icon:/32/administrator")
 TrayIcon1.PopupMenu = "Menu1"
 TrayIcon1.Hide()
 TrayIcon1.Show()

End

The message of error itself :

X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0x337b7b0
Serial number of failed request: 34
Current serial number in output stream: 35

  
And the part that makes the Error :

You have to read this not what I send in the previous message :

  
Private Sub sIndVision() 'choix de la visionneuse

 If siInd = 7 Then
 $plugVis = Null
 $DrawingArea1.Clear
 Else
 $plugVis = New MediaControl($mp, $tipoPlug[siInd]) '<--
-----' that line does the problem, without it, it works fine except the
SkipTaskBar
   
 Endif

 $mp.Video.Visualisation = $plugVis
 Wait
 ToggleButton1.Value = True

End

  
[System]
Gambas=3.19.90 8a873f534 (master)
OperatingSystem=Linux
Distribution=KDE neon 6.0
Kernel=6.5.0-28-generic
Architecture=x86_64
Cores=4
Memory=5713M
Language=fr_FR.UTF-8
Platform=x11
Desktop=KDE
DesktopResolution=96
DesktopScale=8
WidgetTheme=breeze
Font=Noto Sans,11
[Programs]
appimage-builder=appimage-builder: 1.1.0
dpkg=Programme « dpkg » de gestion de paquets Debian version 1.21.1
(amd64).
gcc=gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
git=git version 2.34.1
msgmerge=msgmerge (GNU gettext-tools) 0.21
pngquant=2.12.2 (July 2019)
rpmbuild=RPM version 4.17.0
[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.13
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.29
GStreamer=libgstreamer-1.0.so.0.2003.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.29
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.118.0.0
Poppler=libpoppler.so.119.0.0
Poppler=libpoppler.so.134.0.0
Poppler=libpoppler.so.97.0.0
QT5=libQt5Core.so.5.15.13
QT6=libQt6Core.so.6.7.0
RSvg=librsvg-2.so.2.48.0
SDL=libSDL2-2.0.so.0.2800.5
SQLite3=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.neon.kde.org/ 
DEFAULTS_PATH=/usr/share/gconf/plasmax11.default.path
DESKTOP_SESSION=plasmax11
DISPLAY=:0
GB_GUI=gb.qt6
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-
2.0:<home>/.config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
HOME=<home>
INVOCATION_ID=caeabc5dccf54677b7cb6fc5aef93942
JOURNAL_STREAM=8:234480
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FORK_SLAVES=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=6
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
LC_ALL=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LIBVA_MESSAGING_LEVEL=1
LOGNAME=<user>
MANAGERPID=47317
MANDATORY_PATH=/usr/share/gconf/plasmax11.mandatory.path
MOZ_USE_XINPUT2=1
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bi
n:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT_ACCESSIBILITY=1
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_EXCLUDE_GENERIC_BEARER=1
QT_LOGGING_RULES=*.debug=false
QT_SCREEN_SCALE_FACTORS=LVDS-1=1;VGA-1=1;HDMI-1=1;DP-1=1;HDMI-2=1;HDMI-
3=1;DP-2=1;DP-3=1;
QT_WAYLAND_RECONNECT=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-
unix/47476,unix/<hostname>:/tmp/.ICE-unix/47476
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_PID=47392
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXfr7ORG/agent.47336
SYSTEMD_EXEC_PID=47524
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=/tmp/xauth_hPcmnY
XDG_CONFIG_DIRS=<home>/.config/kdedefaults:/etc/xdg/xdg-
plasmax11:/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/share/plasmax11:<home>/.local/share/flatpak/exports/
share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
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=32
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session5
XDG_SESSION_TYPE=x11
XDG_VTNR=2
_=/usr/bin/dbus-update-activation-environment
force_s3tc_enable=true


-- 
Cordialement
Philippe Valarcher

​
Unus Ex Altera

PNG image