termux-user-repository / tur

A place for all types of Termux packages.
Other
483 stars 87 forks source link

[Bug]: Chromium : Crash when entering the Google Login page #1182

Closed hansm629 closed 1 week ago

hansm629 commented 2 months ago

Problem description

When you enter the Google Login page Chromium browser is crashed.

The interesting thing is that there is no problem if it is a guest mode.

llvmpipe, virpipe, zink, and kgsl all have the same symptoms.

Chromium Ver : 125.0.6422.141

What steps will reproduce the bug?

Symptoms occur when you enter the Google Login page.

The error below is coming out.

[0908/235131.128511:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0908/235131.128990:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0908/235131.130112:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0908/235131.130317:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0908/235131.131777:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0908/235131.131851:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0908/235131.132030:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Segmentation fault

What is the expected behavior?

No response

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=15600
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.qvq.net.cn/termux/termux-main stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# x11-repo (sources.list.d/x11.list)
deb https://mirrors.qvq.net.cn/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.43.4
Android version:
14
Kernel build information:
Linux localhost 5.15.123-android13-8-28577532-abX916NKOS4BXG5 #1 SMP PREEMPT Thu Jul 11 04:25:20 UTC 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-X916N
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.widget versionCode:13
com.termux.x11 versionCode:14
com.termux.api versionCode:51
licy183 commented 2 months ago

I don't have enough time to debug chromium-related apps these days. I'll mark this as help wanted.

hansm629 commented 2 months ago

@kcubeterm Could you please help me?

EDLLT commented 2 months ago

@kcubeterm Could you please help me?

I faced a similar issue with chromium as well when I had applications dependent on the browser for logging in and redirecting back to the applicaton. The best solution in my case was to use Firefox instead

jorbig commented 2 months ago

Same problem here. The crash only doesn't occur on Google login pages when browsing as a Guest...

hansm629 commented 2 months ago

@knyipab Sir, hello. Could you possibly build the latest version of the Chromium browser? I would appreciate it.

knyipab commented 2 months ago

I'm not an expert at all to handle chromium-related issues provided its complexity. And more importantly, I use less chromium these days, as it's not working well with termux-x11 + gboard CJK IME, so unfortunately it's a low priority for me.

hansm629 commented 2 months ago

@knyipab Thank you for your response. This may not be related to the current issue, but when do you expect the release of LibreOffice?

I'm personally looking forward to it.

knyipab commented 2 months ago

Thanks for attention. It is recommended to comment on LibreOffice-related issue at PR #1217. In short, no progress made since first shown in PR #1217. It's because my computer/device setup restricts me from debugging and compiling large app efficiently. Hope that someone can continue the work. Unfortunately licy183 is probably too busy to offer help.

shiumano commented 2 months ago

The crash occurs on the Discord login page as well as on the Google login page. This problem is probably a compatibility issue between Chromium itself and Termux. I have tried running Chromium's deb package for Ubuntu and Thorium, and it crashes under the same conditions.

shiumano commented 2 months ago

I don't think it matters much, but I ran it in Wayland (Weston) just in case. It crashed normally.

licy183 commented 1 month ago

Chromium in Termux doesn't have feature libudev enabled, but accessing Google Login page in chromium checks HID Service which needs libudev to work properly.

In both Termux and Proot envs, libudev will not work properly because neither of them have systemd support. Maybe some wrappers of libudev (such as https://github.com/therealkenc/libudev-stub) will make chromium in proot work.

licy183 commented 1 month ago

Should be fixed by https://github.com/termux-user-repository/chromium-builder/pull/32.

It will take about a day to build chromium using GitHub Action...

hansm629 commented 1 month ago

@licy183 When will the pull request be completed~?

I’m anxiously waiting~ :)

licy183 commented 1 month ago

Ahhh... My vacation is over and I am still doing my internship. I don’t have enough network traffic to download chromium's source code.

jorbig commented 1 month ago

Hope someone (else) will pull this off in the near future!

hansm629 commented 1 month ago

@licy183 Even if it takes some time, I’ll wait patiently. Please fix it...😭

Firefox is great, but when watching videos on YouTube, llvmpipe, virgl, zink, and kgsl all show poor frame rates.

However, the Chromium browser, based on zink and kgsl, was able to smoothly decode YouTube videos up to 1440p@60fps and 4K@30fps. (Tested on Snapdragon 8 Gen2, Snapdragon 8 Gen3, and Exynos 2400)

EDLLT commented 1 month ago

@hansm629

Question, why do you bother using chromium within termux rather than the native android apps? Or if you want a browser with extension support, then kiwi browser(FOSS) is also an option

I personally only use the browsers within termux if some site is causing trouble on the native android apps

hansm629 commented 1 month ago

@EDLLT A browser that runs in the Termux XFCE4 computing environment is what really matters; an Android browser itself doesn't have any significance.

Switching from using Termux XFCE4 back to the Android home screen to launch a browser? That doesn't fit usability at all.

shiumano commented 1 month ago

@EDLLT If you have access to a keyboard and mouse, there's no better option than Termux:X11. Also, wouldn't it be nice to have developer tools in a split or separate window?

nscreated commented 1 week ago

My reason for wanting Chromium is that saving webpages as PWAs is a pretty good substitute for having a more robust app repository on Termux.

nscreated commented 1 week ago

I reinstalled Chromium and it still crashes on Google login screens. I get the same exact terminal output as the original bug report.

jorbig commented 1 week ago

@nscreated you don't need to reinstall. Just do pkg update && pkg upgrade -y I just did and the issue is solved! Thank you so much @licy183

nscreated commented 1 week ago

@nscreated you don't need to reinstall. Just do pkg update && pkg upgrade -y I just did and the issue is solved! Thank you so much @licy183

Oh right. Yes, after doing that, I am allllll goooood.

FYI anyone seeing this, here's a StackExchange on enabling Google account sync with Chromium. https://stackoverflow.com/questions/67459316/enabling-chromium-to-sync-with-google-account