telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.23k stars 5.2k forks source link

Out of memory running ./tdesktop/Telegram/build/prepare/linux.sh #27073

Closed elfmz closed 11 months ago

elfmz commented 11 months ago

Steps to reproduce

Ubuntu 20, Ryzen 7 5800U (16 Logical Threads), 32GB of RAM Cloned repository and ran ./tdesktop/Telegram/build/prepare/linux.sh After some time (~half of hour) build process comsumes all available memory and either fails either system becomes stuck requiring reboot

Expected behaviour

Build should complete

Actual behaviour

Build process comsumes all available memory and either fails either system becomes stuck requiring reboot

Operating system

Ubuntu 20

Version of Telegram Desktop

Current master

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

elfmz commented 11 months ago

I assume it would be possible to avoid by reducing CPU-s number used by build process, thus less tasks in parallel will use less RAM in total. Is there way to do this?

ilya-fedin commented 11 months ago

Yeah, it should be possible. Sadly, there's no configuration for that, it just calls cmake's --parallel and relies on the default for meson (in both cases leads to the ninja's default I suppose).