termux / termux-x11

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

[Bug]: Termux-x11 freezes #516

Closed jamesgarry1 closed 5 months ago

jamesgarry1 commented 9 months ago

Problem description

Android: 10 Termux: 0.118.0 Termux-x11: 1.03.00 Termux-x11 is a wonderful project and there is one thing that pisses me off After 7 seconds termux-x11 freezes and unfreezes when i press the circle on my phone bar/close the keyboard and freezes again

What steps will reproduce the bug?

I dont know how to reproduce the bug it happens randomly In the past I removed contents of /tmp/ and it got fixed This time i tried to remove the contents of /tmp/ it didn't work

What is the expected behavior?

No response

RalfWerner commented 9 months ago

"one thing that pisses me off" and "I dont know how to reproduce the bug it happens randomly"

The developer cannot find a solution with this information. Try to find a repeatable scene, describe it and enter your device type and manufacturer.

jamesgarry1 commented 9 months ago

Manufacturer is huawei Device is P40 Lite

twaik commented 9 months ago

Try -legacy-drawing option, I hope it will help.

RalfWerner commented 9 months ago

I had a similar problem with my Huawei Y7 3-4 years ago, that I tried to solve with @twaik for several months. At that time I called it SSM = "Stupid Stalled Mode", which never occurred when I had connected a power cable (very stupid). The problem could not be repeated on my other devices (non Huawei) and @twaik had no such device, so that we gave up after a half year. There are no problems with the Xvnc Server. Maybe that's an alternative for you, when it not solved by -legacy-drawing.

twaik commented 9 months ago

I had a similar problem with my Huawei Y7 3-4 years ago

Irrelevant, new version uses different technology.

RalfWerner commented 9 months ago

Irrelevant, new version uses different technology.

I will check that - thanks for the hint :)

jamesgarry1 commented 9 months ago

-legacy-drawing Does not fix the problem

jamesgarry1 commented 9 months ago

I will try to clear the cache of both apps

jamesgarry1 commented 9 months ago

Clearing cache was the solution

jamesgarry1 commented 9 months ago

Nevermind, after clearing the cache it didn't resolve the issue

twaik commented 9 months ago

Try to disable battery restrictions for both apps.

jamesgarry1 commented 9 months ago

I fixed the problem the problem was i didnt put termux in the background

RalfWerner commented 9 months ago

termux in the background

What does it mean? Both Apps has to be aktiv!

RalfWerner commented 9 months ago

As promised, my Huawei Check: My SSM Problem above also exists with the current X11 version. I rarely use them because it does not use reasonable gesture control as with ekeys and there are other problems. For example, fluxbox does'nt work in direct mode. Nothing is displayed on the Huawei without -legacy-drawing, but with all my other devices and when the power cable is connected, the work can be continued, but I will switch back to ekeys, because it is much easier to use.

I do not provide screenshots because you @twaik don't have an appropriate device. but a remark: In README (Simulated touchscreen mode) is . "Long" tap for mouse holding. You can copy this line in (Touchpad emulation mode) ekeys do it without "Long". So *reasonable** gestures can implemented.

jamesgarry1 commented 8 months ago

By the way this was a duplicate to #501 and i cannot seem to use termux-x11 without it freezing even with legacy drawing

jamesgarry1 commented 8 months ago

The solution in the 501th issue seem to fix the issue

twaik commented 5 months ago

Is this issue still reproducible witth latest build? Without -legacy-drawing flag.

jamesgarry1 commented 5 months ago

Yeah i think its because of low battery mode but i dont care about termux x11 anymore because i got a IOS

ImNotTheChiku35 commented 5 months ago

Turn on "Allow background activity" for Termux? it work for me

twaik commented 5 months ago

Closing in prior to termux/termux-app#3903