qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
25.92k stars 3.82k forks source link

Linux: qbittorrent dumped core (QTBUG-117702) #19367

Open Utini2000 opened 11 months ago

Utini2000 commented 11 months ago

qBittorrent & operating system versions

qBittorrent: 4.5.4 Arch Linux, Linux Kernel, all latest packages

What is the problem?

qBittorrent randomly crashes. According to journalctl the core is being dumped:

Jul 16 10:51:39 HTPC systemd[592]: Starting qBittorrent...
Jul 16 10:51:39 HTPC systemd[592]: Started qBittorrent.
Jul 16 10:51:39 HTPC qbittorrent[902]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 16 10:51:39 HTPC qbittorrent[902]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 16 10:51:39 HTPC qbittorrent[902]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 16 10:51:39 HTPC qbittorrent[902]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 16 10:51:42 HTPC qbittorrent[902]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 18 16:17:58 HTPC qbittorrent[902]: qt.qpa.xcb: xcb_shm_create_segment() can't be called for size 17170170384, maximumallowed size is 4294967295
Jul 18 16:19:56 HTPC systemd-coredump[20683]: Process 902 (qbittorrent) of user 1000 dumped core.
#46 0x000055b0e2bff523 _ZN11Application4execERK5QListI7QStringE (qbittorrent + 0x1ab523)
#47 0x000055b0e2bd4656 main (qbittorrent + 0x180656)
#50 0x000055b0e2bf48a5 _start (qbittorrent + 0x1a08a5)
Jul 18 16:19:58 HTPC systemd[592]: [app-qbittorrent@autostart.service](mailto:app-qbittorrent@autostart.service): Main process exited, code=dumped, status=11/SEGV
Jul 18 16:19:58 HTPC systemd[592]: [app-qbittorrent@autostart.service](mailto:app-qbittorrent@autostart.service): Failed with result 'core-dump'.
Jul 18 16:19:58 HTPC systemd[592]: [app-qbittorrent@autostart.service](mailto:app-qbittorrent@autostart.service): Consumed 11h 51min 56.181s CPU time.
Jul 20 16:37:38 HTPC systemd[592]: Started qBittorrent - BitTorrent client.
Jul 20 16:37:38 HTPC qbittorrent[29067]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 20 16:37:38 HTPC qbittorrent[29067]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 20 16:37:38 HTPC qbittorrent[29067]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 20 16:37:38 HTPC qbittorrent[29067]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 20 16:37:40 HTPC qbittorrent[29067]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 21 15:43:00 HTPC qbittorrent[29067]: qt.qpa.xcb: xcb_shm_create_segment() can't be called for size 17170170384, maximumallowed size is 4294967295
Jul 21 15:44:59 HTPC systemd-coredump[39653]: Process 29067 (qbittorrent) of user 1000 dumped core.
#46 0x000055e66ec36523 _ZN11Application4execERK5QListI7QStringE (qbittorrent + 0x1ab523)
#47 0x000055e66ec0b656 main (qbittorrent + 0x180656)
#50 0x000055e66ec2b8a5 _start (qbittorrent + 0x1a08a5)
Jul 21 15:45:00 HTPC systemd[592]: app-org.qbittorrent.qBittorrent-3008ad5acac04596a6d294cf3a027ee2.scope: Consumed 5h 10min 59.375s CPU time.
Jul 21 16:13:16 HTPC systemd[592]: Started qBittorrent - BitTorrent client.
Jul 21 16:13:16 HTPC qbittorrent[39876]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 21 16:13:16 HTPC qbittorrent[39876]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 21 16:13:16 HTPC qbittorrent[39876]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 21 16:13:16 HTPC qbittorrent[39876]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
Jul 21 16:13:18 HTPC qbittorrent[39876]: The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'
username@HTPC:

Steps to reproduce

Start qBittorrent and wait

Additional context

No response

Log(s) & preferences file(s)

settings.zip

Utini2000 commented 11 months ago

@PriitUring where should I move which settings to? I couldn't find anything regarding legacy data directory and recommended new place?

I usually update quite frequently on Arch. So I guess just the version right before the current release.

thalieht commented 11 months ago

where should I move which settings to

The legacy data directory '/home/username/.local/share/data/qBittorrent' is used. It is recommended to move its content to '/home/username/.local/share/qBittorrent'

Although probably unrelated to the crash. Btw you didn't provide Qt, libtorrent versions.

Utini2000 commented 11 months ago

Okay I moved everything from: '/home/username/.local/share/data/qBittorrent' To: '/home/username/.local/share/qBittorrent'

qBittorrent started with all settings/torrents intact and re-created the old folder but only with "logs" as content. That is probably because I had manually selected that path for logs. I also changed this in settings now to the new path.

libtorrent-rasterbar 1:2.0.9-1 qtdiag: Qt 5.15.10 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.1.1 20230429) on "xcb" OS: Arch Linux [linux version 6.4.3-arch1-1] qt6-base-6.5.1-5 qt5-base 5.15.10+kde+r130-1

Utini2000 commented 11 months ago

@PriitUring Yes, sadly :(

Jul 28 18:47:25 HTPC systemd[592]: Started qBittorrent - BitTorrent client.
Jul 28 18:56:00 HTPC qbittorrent[128752]:   OpenType support missing for "Droid Sans", script 11
Jul 29 09:58:48 HTPC qbittorrent[128752]: qt.qpa.xcb: xcb_shm_create_segment() can't be called for size 17170170384, maximumallowed size is 4294967295
Jul 29 10:00:50 HTPC systemd-coredump[137367]: Process 128752 (qbittorrent) of user 1000 dumped core.
                                               #46 0x000055b684410523 _ZN11Application4execERK5QListI7QStringE (qbittorrent + 0x1ab523)
                                               #47 0x000055b6843e5656 main (qbittorrent + 0x180656)
                                               #50 0x000055b6844058a5 _start (qbittorrent + 0x1a08a5)
Jul 29 10:00:51 HTPC systemd[592]: app-org.qbittorrent.qBittorrent-839e4a9f755e43cca95cdd97e6cdd142.scope: 
Consumed 3h 39min 48.535s CPU time.
luzpaz commented 11 months ago

JFYI, @Utini2000 three ticks (```) are needed for markdown code blocks

This is a 
code block
Utini2000 commented 11 months ago

@luzpaz woopsie thanks!

Utini2000 commented 11 months ago

Yep, still crashing again.

glassez commented 11 months ago

Searching for _"qt.qpa.xcb: xcb_shm_createsegment() can't be called for size 17170170384, maximumallowed size is 4294967295" returns multiple similar problems of different Qt based applications. IIRC, it is related to screen scaling. Some people suggests export QT_AUTO_SCREEN_SCALE_FACTOR=0 as a solution.

Utini2000 commented 11 months ago

Hmm I have scaling at default (100% in KDE) but I am running 1080p on a 4k TV screen. Anyway, I added QT_AUTO_SCREEN_SCALE_FACTOR=0 to /etc/environment and rebooted.

I will report back :)

Utini2000 commented 11 months ago

still crashing :/

Aug 01 18:18:11 HTPC systemd[592]: Starting qBittorrent...
Aug 01 18:18:11 HTPC systemd[592]: Started qBittorrent.
Aug 03 16:24:45 HTPC qbittorrent[895]: qt.qpa.xcb: xcb_shm_create_segment() can't be called for size 17170170384, maximumallowed size is 4294967295
Aug 03 16:26:41 HTPC systemd-coredump[14913]: Process 895 (qbittorrent) of user 1000 dumped core.
                                              #46 0x000055c616da3523 _ZN11Application4execERK5QListI7QStringE (qbittorrent + 0x1ab523)
                                              #47 0x000055c616d78656 main (qbittorrent + 0x180656)
                                              #50 0x000055c616d988a5 _start (qbittorrent + 0x1a08a5)
Aug 03 16:26:42 HTPC systemd[592]: app-qbittorrent@autostart.service: Main process exited, code=dumped, status=11/SEGV
Aug 03 16:26:42 HTPC systemd[592]: app-qbittorrent@autostart.service: Failed with result 'core-dump'.
Aug 03 16:26:42 HTPC systemd[592]: app-qbittorrent@autostart.service: Consumed 11h 15min 31.488s CPU time.
glassez commented 11 months ago

Anyway it looks like Qt issue. Could you report it to Qt?

xavier2k6 commented 9 months ago

@Utini2000 Did you create a report with Qt & can you post Qt ticket reference here please?

Utini2000 commented 9 months ago

@xavier2k6 @glassez no I am sorry, I didn't have the time yet and even forgot about it in the mean time. Qbittorrent is still crashing though. I will try to create an account + ticket at QT issue tracker some time soon.

Utini2000 commented 9 months ago

@xavier2k6 @glassez okay nevermind. I did a quick one but I have no idea if this is the correct place and the correct section to report. Link: https://bugreports.qt.io/browse/QTBUG-117702

luzpaz commented 4 months ago

@Utini2000 per upstream:

utini2000 I didn't manage to reproduce the issue locally. But could you have a try with https://codereview.qt-project.org/c/qt/qtbase/+/518935 in your local build of qt libs? Thanks.