termux / termux-x11

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

Crash on direct touch mode #416

Closed lin-calvin closed 1 year ago

lin-calvin commented 1 year ago

after set Input mode to direct touch mode, Termux-x11's Xwayland crashes with following logs

(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(EE) [dix] Lorie touch: unable to find touch point 0
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(EE) [dix] Lorie touch: unable to find touch point 0
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(EE) [dix] Lorie touch: unable to find touch point 0
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:997 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(EE) BUG: triggered 'if (!b || !v)'
(EE) BUG: /home/runner/work/termux-x11/termux-x11/app/src/main/cpp/xserver/Xi/exevents.c:1012 in UpdateDeviceState()
(Then x11 clients lose connection to termuxx11)
twaik commented 1 year ago

Do you use the latest artifact?

twaik commented 1 year ago

And termux-x11 does not use Xwayland.

lin-calvin commented 1 year ago

Do you use the latest artifact?

yes,I downloaded it from https://github.com/termux/termux-x11/actions/runs/5763926937

twaik commented 1 year ago

Unfortunately I can not reproduce this on the latest build. Can you give some details?

twaik commented 1 year ago

Are you still there?

lin-calvin commented 1 year ago

Are you still there?

sure

twaik commented 1 year ago

Can you give some details?

lin-calvin commented 1 year ago

Unfortunately I can not reproduce this on the latest build. Can you give some details?

such as system envionments? I am using xfce4 as X clients inside a proot. It will crash after 1-2 seconds from set input mode to direct touch

twaik commented 1 year ago

app-arm64-v8a-debug.zip I need log of this build.

lin-calvin commented 1 year ago

app-arm64-v8a-debug.zip I need log of this build.

where could i found the logs?

twaik commented 1 year ago

termux-x11 will print something that you should report.

lin-calvin commented 1 year ago

termux-x11 will print something that you should report.

touch event: type 20 id 5 x 0 y 0
touch event: type 20 id 6 x 0 y 0
touch event: type 20 id 7 x 0 y 0
touch event: type 20 id 8 x 0 y 0
touch event: type 20 id 9 x 0 y 0
touch event: type 19 id 0 x 741 y 1296
touch event: type 20 id 1 x 0 y 0
touch event: type 20 id 2 x 0 y 0
touch event: type 20 id 3 x 0 y 0
touch event: type 20 id 4 x 0 y 0
touch event: type 20 id 5 x 0 y 0
touch event: type 20 id 6 x 0 y 0
touch event: type 20 id 7 x 0 y 0
touch event: type 20 id 8 x 0 y 0
touch event: type 20 id 9 x 0 y 0
touch event: type 19 id 0 x 741 y 1297
touch event: type 20 id 1 x 0 y 0
touch event: type 20 id 2 x 0 y 0
touch event: type 20 id 3 x 0 y 0
touch event: type 20 id 4 x 0 y 0
touch event: type 20 id 5 x 0 y 0
touch event: type 20 id 6 x 0 y 0
touch event: type 20 id 7 x 0 y 0
touch event: type 20 id 8 x 0 y 0
touch event: type 20 id 9 x 0 y 0
touch event: type 19 id 0 x 741 y 1297
touch event: type 20 id 0 x 741 y 1297

but a interesting fact, this build works fine😂

twaik commented 1 year ago

It is pretty weird, this build is the latest one with the only change (that prints that line).

twaik commented 1 year ago

Ok, I see no type 18 events which are required for input. Fixing this now.

twaik commented 1 year ago

Can you reproduce this with the latest build? Do not forget to restart X server after installing new apk.

twaik commented 1 year ago

Are you still here?

twaik commented 1 year ago

@calvinweb

lin-calvin commented 1 year ago

Are you still here? It was mid night in China at that time😂

lin-calvin commented 1 year ago

Can you reproduce this with the latest build? Do not forget to restart X server after installing new apk.

I will try it

lin-calvin commented 1 year ago

Can you reproduce this with the latest build? Do not forget to restart X server after installing new apk.

I will try it

It works!