telegramdesktop / tdesktop

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

Telegram Desktop can't start on Windows 11: Crash log size: 332 due to font? #27609

Open kmnb6842 opened 7 months ago

kmnb6842 commented 7 months ago

Steps to reproduce

1.Open Telegram Desktop. Nothing happend 2.reinstalling and reinstalling older version don't work either

Expected behaviour

Open Telegam successfully

Actual behaviour

Nothing happend. ( At first, sorry for poor English ) I have check all the way to fix this problem until I found this post: https://github.com/telegramdesktop/tdesktop/issues/27426

It tells that:

Qt (the underlying toolkit tdesktop is built upon) is unable to work with gigabytes of fonts installed. You have to remove them if you want to use tdesktop.

And once I remove some fonts I recent installed, Telegram Desktop start successfully.

I don't know why Telegram Desktop won't start due to some fonts. Is any possible to launch Telegram when these fonts installed?

Operating system

Windows 11

Version of Telegram Desktop

4.15.2

Installation source

Static binary from official website

Crash ID

332

Logs

[2024.03.17 16:53:01] Launched version: 4015002, install beta: [FALSE], alpha: 0, debug mode: [FALSE]
[2024.03.17 16:53:01] Executable dir: C:/Users/Lynn/AppData/Roaming/Telegram Desktop/, name: Telegram.exe
[2024.03.17 16:53:01] Initial working dir: C:/Users/Lynn/AppData/Roaming/Telegram Desktop/
[2024.03.17 16:53:01] Working dir: C:/Users/Lynn/AppData/Roaming/Telegram Desktop/
[2024.03.17 16:53:01] Command line: C:\Users\Lynn\AppData\Roaming\Telegram Desktop\Telegram.exe
[2024.03.17 16:53:01] Executable path before check: C:/Users/Lynn/AppData/Roaming/Telegram Desktop/Telegram.exe
[2024.03.17 16:53:01] Logs started
[2024.03.17 16:53:01] App Info: Shortcut validated at "C:/Users/Lynn/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Telegram Desktop/Telegram.lnk"
[2024.03.17 16:53:01] AppUserModelID: Telegram.TelegramDesktop
[2024.03.17 16:53:01] Connecting local socket to Global\a01189529ee9a9a11d4cc46d7c5aa7b4-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2024.03.17 16:53:01] This is the only instance of Telegram, starting server and app...
[2024.03.17 16:53:01] Moved logging from 'C:/Users/Lynn/AppData/Roaming/Telegram Desktop/log_start0.txt' to 'C:/Users/Lynn/AppData/Roaming/Telegram Desktop/log.txt'!
[2024.03.17 16:53:01] Opened 'C:/Users/Lynn/AppData/Roaming/Telegram Desktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 332
[2024.03.17 16:53:01] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2024.03.17 16:53:01] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2024.03.17 16:53:01] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2024.03.17 16:53:01] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'

Temporary Solution

One of my friends told me he doesn't encounter this bug. Maybe because he change Telegram Desktop's Language to Tranditional Chinese(made by 3rd party). I tried it and works like a charm. Click this link to set Telegram to Traditional Chinese -> https://t.me/setlanguage/zh-hant-beta

I don't know why this way could work, but hope this solution could help someone who encounter same bug like mine.

ilya-fedin commented 7 months ago

I don't know why Telegram Desktop won't start due to some fonts.

Well, the message you quoted answers this: because Qt can't handle that

Is any possible to launch Telegram when these fonts installed?

No, there's no known way, sorry. You have to either delete those fonts or switch to a client based on other technologies (Telegram Electron, Unigram)

Aokromes commented 7 months ago

maybe you can find if it's one specific font, because i tried to reproduce this installing 2 GB of fonts and telegram desktop still runs.

kmnb6842 commented 7 months ago

thanks for your replies! I have tried installing and removing recent font one by one to test the issue.

Eventually, I found the font that cause this bug. It's called " jfjinxuanlatte2.0-bold.ttf", a traditional Chinese font.

hope somebody facing the same problem could see this post.

Aokromes commented 7 months ago

thanks for your replies! I have tried installing and removing recent font one by one to test the issue.

Eventually, I found the font that cause this bug. It's called " jfjinxuanlatte2.0-bold.ttf", a traditional Chinese font.

hope somebody facing the same problem could see this post.

can you try that font with for example qbittorrent to see if it has the same issue?

kmnb6842 commented 7 months ago

thanks for your replies! I have tried installing and removing recent font one by one to test the issue. Eventually, I found the font that cause this bug. It's called " jfjinxuanlatte2.0-bold.ttf", a traditional Chinese font. hope somebody facing the same problem could see this post.

can you try that font with for example qbittorrent to see if it has the same issue?

I have tried installing that font and running qbittorrent, and qbittorrent launch successfully!

ilya-fedin commented 7 months ago

Qt 5 edition or Qt 6 edition?

kmnb6842 commented 7 months ago

Qt 5 edition or Qt 6 edition?

I tried qbittorrent v4.6.3, I guess it's Qt 6 edition image

ilya-fedin commented 7 months ago

tdesktop uses Qt 5 on Windows. Qt frequenttly has a different behavior even in patch versions so comparing to a different major versions doesn't really have sense.

Aokromes commented 7 months ago

thanks for your replies! I have tried installing and removing recent font one by one to test the issue. Eventually, I found the font that cause this bug. It's called " jfjinxuanlatte2.0-bold.ttf", a traditional Chinese font. hope somebody facing the same problem could see this post.

can you try that font with for example qbittorrent to see if it has the same issue?

I have tried installing that font and running qbittorrent, and qbittorrent launch successfully!

try qt5 version. https://www.fosshub.com/qBittorrent-old.html?dwl=qbittorrent_4.5.5_lt20_qt5_x64_setup.exe

john-preston commented 7 months ago

@kmnb6842 Can you please contact me at https://t.me/preston and send me this font? I'd like to reproduce the crash, maybe there is a workaround possible.

kmnb6842 commented 7 months ago

try qt5 version. https://www.fosshub.com/qBittorrent-old.html?dwl=qbittorrent_4.5.5_lt20_qt5_x64_setup.exe

Hello, thanks for the link. I have tried the qt5 version. And the result is I CANNOT run qBittorrent(qt5) with this font installed.

kmnb6842 commented 7 months ago

@kmnb6842 Can you please contact me at https://t.me/preston and send me this font? I'd like to reproduce the crash, maybe there is a workaround possible.

Sure, I have send the font through Telegram(after I uninstalled the font). wish you could reproduce the crash :)

kmnb6842 commented 7 months ago

I have updated the temporary solution in the article. hope it could help.