Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Zeal can't run after the first launch. #1659

Open
DuilioPerez opened this issue Sep 17, 2024 · 4 comments
Open

[Bug]: Zeal can't run after the first launch. #1659

DuilioPerez opened this issue Sep 17, 2024 · 4 comments

Comments

@DuilioPerez
Copy link

I've installed Zeal today. I built it from source for Android (Termux) using Qt5. But after the first launch and close of the application, it can't run again. Here is a screenshot:
Screenshot_2024-09-16_20-11-24

Some additional information:

  • Android:
         -o          o-
          +hydNNNNdyh+
        +mMMMMMMMMMMMMm+
      `dMMm:NMMMMMMN:mMMd`
      hMMMMMMMMMMMMMMMMMMh
  ..  yyyyyyyyyyyyyyyyyyyy  ..
.mMMm`MMMMMMMMMMMMMMMMMMMM`mMMm.
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   u0_a289@localhost
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   -----------------
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   OS: Android 11 aarch64
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   Host: samsung SM-A225M
-MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM-   Kernel: 4.14.186-22735277
 +yy+ MMMMMMMMMMMMMMMMMMMM +yy+    Uptime: 13 hours, 26 mins
      mMMMMMMMMMMMMMMMMMMm         Packages: 682 (dpkg), 1 (pkg)
      `/++MMMMh++hMMMM++/`         Shell: bash 5.2.32
          MMMMo  oMMMM             CPU: MT6769V/CT (8) @ 1.800GHz
          MMMMo  oMMMM             Memory: 2964MiB / 3714MiB
          oNMm-  -mMNs
  • Termux:
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=19781
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://packages-cf.termux.dev/apt/termux-main/ stable main
# glibc-repo (sources.list.d/glibc.list)
deb https://packages-cf.termux.dev/apt/termux-glibc/ glibc stable
# 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://packages-cf.termux.dev/apt/termux-x11/ x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.43.5
Android version:
11
Kernel build information:
Linux localhost 4.14.186-22735277 #1 SMP PREEMPT Sat Feb 19 02:14:57 KST 2022 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-A225M
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.x11 versionCode:15
com.termux.styling versionCode:32
@DuilioPerez
Copy link
Author

I've read the application's code (I just know a little bit about Qt) and the problems seems to be with the secondary instance. Even if I close the applicattion and open it again, it is saw as secondary instance by the code, and there it is the issue.

@trollixx
Copy link
Member

Interesting. Probably on Android Zeal doesn't clean up the local socket used to ensure that only one instance is running. It's probably unnecessary as OS should not allow multiple instances anyway.

@DuilioPerez
Copy link
Author

DuilioPerez commented Sep 18, 2024

It's seems it is a qt compilation limitation in that platform. I've send a package request to Termux repository, you can see it here.

@DuilioPerez
Copy link
Author

Another important thing to know is that Termux is like a reduced Linux distribution. It have its limitation because it is based on bionic (Android C/C++ libraries) instead of libgc (GNU C/C++ libraries). But it should work. For some reason, detects as a secondary instance when it is a primary instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants