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

Telegram Desktop unable to launch #2581

Open
3 tasks done
ohmyboroda opened this issue Apr 23, 2024 · 3 comments
Open
3 tasks done

Telegram Desktop unable to launch #2581

ohmyboroda opened this issue Apr 23, 2024 · 3 comments
Labels
Upstream Bug something isn't working that can only be fixed upstream

Comments

@ohmyboroda
Copy link

ohmyboroda commented Apr 23, 2024

Confirmations

What happened?

Telegram Desktop unable to launch after successful install

Description

An error occurs when trying to lauch the application on fresh installed system

latpak run org.telegram.desktop
: Unsupported system page size
: Unsupported system page size
: Unsupported system page size
../glib/gprintf.c:349: failed to allocate memory

What are your system specs (run the following command in your terminal)?

OS: Debian GNU/Linux 12 (bookworm)
OS architecture: 64-bit
Last updated Pi-Apps on: 04/22/2024
Latest Pi-Apps version: 04/22/2024
Kernel: aarch64 6.6.20+rpt-rpi-2712
Device model: Raspberry Pi 5 Model B Rev 1.0
SOC identifier: bcm2712
Cpu name: Cortex-A76
Ram size: 8.04 GB
Raspberry Pi OS image version: 2024-03-15
Language: en_US.UTF-8

(Recommended) Error log? Terminal output? Debug messages?

BEGINNING OF LOG FILE:
-----------------------

Will install these packages: flatpak 
Creating an empty apt-package to install the necessary apt packages...
It will be named: pi-apps-ed855a59
Depends: flatpak
Running sudo apt update...
Hit:1 http://archive.raspberrypi.com/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
All packages are up to date.
apt update complete.
Installing the pi-apps-ed855a59 package...
The following additional packages will be installed:
  flatpak libmalcontent-0-0 libostree-1-1
Suggested packages:
  malcontent-gui
The following NEW packages will be installed:
  flatpak libmalcontent-0-0 libostree-1-1 pi-apps-ed855a59
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
After this operation, 8,673 kB of additional disk space will be used.
Get:1 /tmp/pi-apps-ed855a59.deb pi-apps-ed855a59 all 1.0 [748 B]
Get:2 http://deb.debian.org/debian bookworm/main arm64 libmalcontent-0-0 arm64 0.11.0-4 [20.4 kB]
Get:3 http://deb.debian.org/debian bookworm/main arm64 libostree-1-1 arm64 2022.7-2 [284 kB]
Get:4 http://deb.debian.org/debian-security bookworm-security/main arm64 flatpak arm64 1.14.4-1+deb12u1 [1,318 kB]
Fetched 1,622 kB in 0s (7,358 kB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 128784 files and directories currently installed.)

Unpacking libmalcontent-0-0:arm64 (0.11.0-4) ...

Unpacking libostree-1-1:arm64 (2022.7-2) ...

Unpacking flatpak (1.14.4-1+deb12u1) ...

Unpacking pi-apps-ed855a59 (1.0) ...

Apt finished.
Package installation complete.
Flatpak: Adding flathub remote... Done
Flatpak: installing org.telegram.desktop... Done


# Error when trying to launch the application 
flatpak run org.telegram.desktop
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
../glib/gprintf.c:349: failed to allocate memory

Upstream Bugs

jemalloc/jemalloc#2639
telegramdesktop/tdesktop#27801

@ohmyboroda ohmyboroda added the bug Something isn't working label Apr 23, 2024
@theofficialgman
Copy link
Collaborator

theofficialgman commented Apr 23, 2024

looks like telegram flatpak is built with an incorrectly configured build of jemalloc that does not support 16K pagesize. this is an upstream bug that you should report at https://github.com/telegramdesktop/tdesktop/issues . Once you have reported the bug upstream please drop a link here to it.

In the meantime, you can switch to the 4K pagesize kernel to run telegram without a fix from upstream -> raspberrypi/bookworm-feedback#107 (comment)

@theofficialgman theofficialgman added Upstream Bug something isn't working that can only be fixed upstream and removed bug Something isn't working labels Apr 23, 2024
@ohmyboroda
Copy link
Author

looks like telegram flatpak is built with an incorrectly configured build of jemalloc that does not support 16K pagesize. this is an upstream bug that you should report at https://github.com/telegramdesktop/tdesktop/issues . Once you have reported the bug upstream please drop a link here to it.

In the meantime, you can switch to the 4K pagesize kernel to run telegram without a fix from upstream -> raspberrypi/bookworm-feedback#107 (comment)

reported: telegramdesktop/tdesktop#27801
thanks for quick solution

@ohmyboroda
Copy link
Author

they redirected onwards
telegramdesktop/tdesktop#27801 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream Bug something isn't working that can only be fixed upstream
Projects
None yet
Development

No branches or pull requests

2 participants