qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Linux: qbittorrent dumped core (QTBUG-117702)

Open Utini2000 opened this issue 2 years ago • 18 comments

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]: [[email protected]](mailto:[email protected]): Main process exited, code=dumped, status=11/SEGV
Jul 18 16:19:58 HTPC systemd[592]: [[email protected]](mailto:[email protected]): Failed with result 'core-dump'.
Jul 18 16:19:58 HTPC systemd[592]: [[email protected]](mailto:[email protected]): 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 avatar Jul 24 '23 20:07 Utini2000

@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.

Utini2000 avatar Jul 26 '23 17:07 Utini2000

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.

thalieht avatar Jul 26 '23 18:07 thalieht

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 avatar Jul 28 '23 16:07 Utini2000

@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.

Utini2000 avatar Jul 30 '23 09:07 Utini2000

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

This is a 
code block

luzpaz avatar Jul 30 '23 11:07 luzpaz

@luzpaz woopsie thanks!

Utini2000 avatar Jul 30 '23 13:07 Utini2000

Yep, still crashing again.

Utini2000 avatar Aug 01 '23 15:08 Utini2000

Searching for "qt.qpa.xcb: xcb_shm_create_segment() 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.

glassez avatar Aug 01 '23 16:08 glassez

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 avatar Aug 01 '23 16:08 Utini2000

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]: [email protected]: Main process exited, code=dumped, status=11/SEGV
Aug 03 16:26:42 HTPC systemd[592]: [email protected]: Failed with result 'core-dump'.
Aug 03 16:26:42 HTPC systemd[592]: [email protected]: Consumed 11h 15min 31.488s CPU time.

Utini2000 avatar Aug 04 '23 15:08 Utini2000

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

glassez avatar Aug 04 '23 16:08 glassez

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

xavier2k6 avatar Sep 27 '23 17:09 xavier2k6

@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 avatar Sep 29 '23 20:09 Utini2000

@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

Utini2000 avatar Sep 29 '23 21:09 Utini2000

@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.

luzpaz avatar Feb 11 '24 16:02 luzpaz

Closing - No further feedback given from OP to Qt Dev's upon their request, upstream Qt have closed bug report due to being incomplete.

If anybody else experiences this or similar issue with latest version then please open a new ticket.

xavier2k6 avatar Aug 15 '24 15:08 xavier2k6