termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
2.15k stars 314 forks source link

Input not working #349

Closed xDoge26 closed 1 year ago

xDoge26 commented 1 year ago
root@localhost:~# (EE) BUG: triggered 'if (!iclients)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData()
(EE) BUG: triggered 'if (!iclients)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData()
(EE) BUG: triggered 'if (!iclients)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData()
(EE) BUG: triggered 'if (!iclients)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData()
(EE) BUG: triggered 'if (!iclients)'                       (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData()
twaik commented 1 year ago

I can not reproduce it. How did you get this?

xDoge26 commented 1 year ago

Im trying to run Touhou using box86 + wine . It works fine with avnc

You can use this to install box86/box64

twaik commented 1 year ago

Wine itself will not trigger error like this. Can you reproduce the error and tell me what exactly is needed to get this?

xDoge26 commented 1 year ago
  1. Install proot ubuntu xfce box86_64 using this script
    https://github.com/xDoge26/proot-setup#11-proot-ubuntu
    https://github.com/xDoge26/proot-setup#2-install-xfce
    https://github.com/xDoge26/proot-setup#3-install-box86box64

    1.1 login

    proot-distro login ubuntu --shared-tmp --no-sysvipc

    2 In proot , launch termux x11 , xfce4

    termux-x11 &
    DISPLAY=:0 startxfce4 &

    3 launch game

    WINEDEBUG=-all DISPLAY=:0 box86 wine /path/to/the/touhou_luna_nights.exe
twaik commented 1 year ago

Again. Wine itself will not produce input-related bug. Can you reproduce this?

xDoge26 commented 1 year ago
``` root@localhost:~# WINEDEBUG=-all DISPLAY=:0 box86 wine /sdcard/Documents/TouhouLunaNights/touhou_luna_nights.exe Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 8 2023 06:51:13 Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 8 2023 06:51:13 Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096 Running on Kryo V2 Cortex-A73 with 8 Cores Params database has 24 entries Box64 with Dynarec v0.2.3 e0dc494e built on Jun 14 2023 06:58:59 Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/ Using default BOX64_PATH: ./:bin/ Counted 34 Env var Looking for /root/wine/bin/wineserver Rename process to "wineserver" Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096 Running on Kryo V2 Cortex-A73 with 8 Cores Params database has 24 entries Box64 with Dynarec v0.2.3 e0dc494e built on Jun 14 2023 06:58:59 BOX64: Wine preloader detected, loading "/root/wine/bin/wine64" directly BOX64: Wine64 detected, WINEPRELOADRESERVE="000400000-000438000" Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/ Using default BOX64_PATH: ./:bin/ Counted 36 Env var Looking for /root/wine/bin/wine64 argv[1]="C:\windows\system32\conhost.exe" argv[2]="--unix" argv[3]="--width" argv[4]="59" argv[5]="--height" argv[6]="34" argv[7]="--server" argv[8]="0x10" Rename process to "wine64" Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Using emulated /root/wine/bin/../lib/wine/x86_64-unix/ntdll.so Using emulated /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 Using emulated /root/wine/lib/wine/x86_64-unix/libwine.so.1 Using emulated /root/wine/lib/wine/x86_64-unix/win32u.so Using native(wrapped) libm.so.6 Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 steamfile:Z:\sdcard\Documents\TouhouLunaNights/steam_appid. txt Steam being initialised with appId 851100 Steam_Init [3]+ Stopped WINEDEBUG=-all DISPLAY=:0 box86 wine /sdcard/Documents/TouhouLunaNights/touhou_luna_nights.exe root@localhost:~# Steam - SteamAPI_RestartAppIfNecessary Steam - Steamworks_InitCEGLibrary Steam - SteamAPI_InitSafe SUCCESS! SUCCESS! Setting breakpad minidump AppID = 851100 Steam_SetMinidumpSteamID: Caching Steam ID: 7656119478937 1904 [API loaded no] Steam - SteamApps()->BIsSubscribed() Steam - SteamClient()->SetWarningMessageHook() Steam - Steamworks_SelfCheck() Steam - Steam_UserStats_Init() Steam - Steam_RemoteStorage_Init() Steam - Steam_Screenshots_Init() Steam - Steam_Friends_Init() Steam - Steam_UGC_Init() Logged in steam user id 1124073472 Found 0 subscribed items g_bSteamInitialised being set to trueSteam_Init LoadSteamLib and _steamInit both ok Using emulated /root/wine/lib/wine/x86_64-unix/winex11.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1 Attempting to set gamepadcount to 12 DirectX11: Using hardware device Collision Event time(microsecs)=2188 Total memory used = 53161081(0x032b2c79) bytes **********************************. Entering main loop. **********************************. Received stats and achievements from Steam Resizing swap chain... (xfsettingsd:17654): xfsettingsd-WARNING **: 08:49:46.737: Failed to show notification: Sticky keys (Sticky keys are disabled). (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() root@localhost:~# (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() create stream 300000 (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() (EE) BUG: triggered 'if (!iclients)' (EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1392 in RetrieveTouchDeliveryData() ```
twaik commented 1 year ago

Are you using touchscreen touch mode? Or something simillar?

xDoge26 commented 1 year ago

the issue only appear after title screen appear

twaik commented 1 year ago

Again. Are you using touchscreen touch mode? Or something simillar?

xDoge26 commented 1 year ago

yep im using touchscreen mode but im trying to send keyboard input

twaik commented 1 year ago

I can write some extra code with checks for this but I must know what exactly happens. I need at least log with TERMUX_X11_DEBUG=1 enabled.

xDoge26 commented 1 year ago

Here x11.txt

twaik commented 1 year ago

Can you make one more log like this with "native" resolution mode?

xDoge26 commented 1 year ago

Quite late , but here , native resolution x11.txt

twaik commented 1 year ago

There are no lines like this ((EE) BUG: triggered 'if (!iclients)').

xDoge26 commented 1 year ago

My bad , i forget to install this

x11.txt

twaik commented 1 year ago

Everything seems to be fine, I simply do not get why it happens...

twaik commented 1 year ago

Can you reproduce this on the latest build?

xDoge26 commented 1 year ago

x11.txt

Still doesnt work with x and z

twaik commented 1 year ago

Still doesnt work with x and z

It seems to be a different issue, not related to the current one. Maybe that is a bug in the wine itself.

Does touchscreen input work now?

xDoge26 commented 1 year ago

It works