Deluge-gtk crashes with a segfault after running for some time

General support for problems installing or using Deluge
Post Reply
JohnTheCoolingFan
New User
New User
Posts: 4
Joined: Mon Apr 15, 2024 3:09 pm

Deluge-gtk crashes with a segfault after running for some time

Post by JohnTheCoolingFan »

When I leave deluge running for some time (over half an hour), at some point trying to interact with it make it not respond and crash with a segfault. Tail of the log with -L debug, unfortunately some messages in russian, and some parts censored:

Code: Select all

15:48:32 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: session_stats_alert
15:48:32 [DEBUG   ][deluge.core.alertmanager          :1622] state_update_alert: state updates for 58 torrents
15:48:32 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: state_update_alert
15:48:32 [DEBUG   ][deluge.core.alertmanager          :1622] Alerts queued: 1
15:48:32 [DEBUG   ][deluge.core.alertmanager          :1622] session_stats_alert: session stats (291 values): 62, 533032, 203635, 9119, 8526, 0, 1, 0, 0, 1297, 0, 0, 0, 0, 0, 6901101, 0, 0, 725, 15595, 16359, 501, 53142, 62, 65, 42093, 11550, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87600, 194370, 670, 0, 0, 63146, 206, 0, 424691, 850357658, 1307, 974, 10745218, 105257, 3020046, 24609675, 22653, 2757, 3835, 24951579, 26884, 0, 4483120, 6341, 7038, 2651, 86, 743855, 12937, 6901101, 0, 37349, 5915, 0, 0, 0, 0, 0, 205250, 9505, 250, 218490, 71, 203970, 0, 0, 0, 16871, 1565, 6846001, 9850, 298303, 0, 284452, 0, 16359, 5827, 300893, 11348, 250, 14606, 0, 0, 0, 305263, 0, 305263, 347075, 0, 6846090, 0, 0, 6846090, 0, 10086589467, 0, 0, 10086589467, 0, 0, 0, 0, 0, 0, 112054441004, 112307603397, 3785280052, 1596678, 0, 248491733, 3765442780, 120796, 0, 0, 349045, 21476, 447619, 1770, 53958304, 81824208, 51563, 1192, 20351, 0, 140231, 223116, 1907, 7112, 0, 0, 0, 0, 3769, 0, 23, 0, 0, 0, 0, 0, 280179, 475939, 28121192, 57657092, 627630, 1149032, 295551, 25013498, 1420081, 55055526, 35, 34849, 362847, 2161, 4791, 342786, 86590, 260189, 11680028, 6421756, 2446909, 829544, 389981, 536009, 1151078, 95003, 3, 0, 0, 0, 404348, 1351614, 383420, 628221, 220083, 146296, 23436, 46460, 381, 44, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 64, 0, 0, 0, 0, 75, 0, 0, 62, 0, 0, 0, 0, 0, 29, 100, 77, 0, 44, 0, 44, 6, 667, 0, 0, 0, 0, 0, 238, 0, 0, 0, 0, 0, 0, 10, 0, 0, 2147483647, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 377, 169, 160, 302, 0, 0, 255, 1, 0, 0, 0, 0, 0, 9, 47, 29, 9, 13, 3, 0
15:48:32 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: session_stats_alert
15:48:33 [DEBUG   ][deluge.core.alertmanager          :1622] Alerts queued: 1
15:48:33 [DEBUG   ][deluge.core.alertmanager          :1622] session_stats_alert: session stats (291 values): 62, 533038, 203637, 9119, 8526, 0, 1, 0, 0, 1297, 0, 0, 0, 0, 0, 6901245, 0, 0, 725, 15595, 16359, 501, 53142, 62, 65, 42093, 11550, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87600, 194372, 670, 0, 0, 63146, 206, 0, 424691, 850357658, 1307, 974, 10745218, 105258, 3020144, 24611152, 22653, 2757, 3835, 24952890, 26885, 0, 4483371, 6341, 7038, 2651, 86, 743879, 12937, 6901245, 0, 37349, 5915, 0, 0, 0, 0, 0, 205252, 9506, 250, 218493, 71, 203972, 0, 0, 0, 16872, 1565, 6846343, 9850, 298305, 0, 284454, 0, 16359, 5827, 300895, 11348, 250, 14606, 0, 0, 0, 305263, 0, 305263, 347075, 0, 6846432, 0, 0, 6846432, 0, 10086792406, 0, 0, 10086792406, 0, 0, 0, 0, 0, 0, 112060129684, 112313297754, 3785473832, 1596678, 0, 248495075, 3765636476, 120796, 0, 0, 349067, 21476, 447644, 1770, 53961151, 81830484, 51564, 1192, 20352, 0, 140248, 223122, 1907, 7112, 0, 0, 0, 0, 3769, 0, 23, 0, 0, 0, 0, 0, 280203, 475939, 28122617, 57660301, 627688, 1149090, 295551, 25014808, 1420116, 55058651, 35, 34850, 362865, 2161, 4791, 342786, 86590, 260192, 11680733, 6422187, 2447091, 829581, 389995, 536030, 1151144, 95003, 3, 0, 0, 0, 404371, 1351664, 383436, 628228, 220089, 146297, 23436, 46460, 381, 44, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 64, 0, 0, 0, 0, 75, 0, 0, 59, 0, 0, 0, 0, 0, 27, 97, 77, 0, 43, 0, 43, 6, 668, 0, 0, 0, 0, 0, 235, 0, 0, 0, 0, 0, 0, 10, 0, 0, 2147483647, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 377, 169, 160, 302, 0, 0, 258, 1, 0, 0, 0, 0, 0, 9, 44, 30, 9, 15, 3, 0
15:48:33 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: session_stats_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Alerts queued: 1
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] session_stats_alert: session stats (291 values): 62, 533066, 203645, 9119, 8528, 0, 1, 0, 0, 1297, 0, 0, 0, 0, 0, 6901506, 0, 0, 725, 15595, 16359, 501, 53145, 62, 65, 42096, 11550, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87603, 194385, 670, 0, 0, 63148, 206, 0, 424735, 850427772, 1307, 974, 10745971, 105263, 3020280, 24612419, 22654, 2757, 3835, 24954052, 26886, 0, 4483617, 6341, 7039, 2651, 86, 743911, 12937, 6901506, 0, 37349, 5915, 0, 0, 0, 0, 0, 205265, 9507, 250, 218507, 71, 203988, 0, 0, 0, 16873, 1565, 6846700, 9850, 298325, 0, 284473, 0, 16359, 5827, 300915, 11348, 250, 14606, 0, 0, 0, 305263, 0, 305263, 347075, 0, 6846789, 0, 0, 6846789, 0, 10087047928, 0, 0, 10087047928, 0, 0, 0, 0, 0, 0, 112065692606, 112318872784, 3785664680, 1596678, 0, 248506398, 3765825564, 120796, 0, 0, 349083, 21476, 447660, 1770, 53962990, 81834324, 51569, 1192, 20353, 0, 140255, 223124, 1907, 7112, 0, 0, 0, 0, 3770, 0, 23, 0, 0, 0, 0, 0, 280216, 475954, 28123867, 57663083, 627723, 1149130, 295551, 25015877, 1420180, 55061305, 35, 34851, 362875, 2161, 4791, 342808, 86594, 260205, 11681348, 6422515, 2447230, 829619, 390008, 536047, 1151212, 95003, 3, 0, 0, 0, 404393, 1351720, 383453, 628259, 220103, 146304, 23436, 46462, 381, 44, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 64, 0, 0, 0, 0, 82, 0, 0, 72, 0, 0, 0, 0, 0, 38, 107, 77, 0, 46, 0, 46, 7, 667, 0, 0, 0, 0, 0, 241, 0, 0, 0, 0, 0, 0, 10, 0, 0, 2147483647, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 377, 169, 160, 302, 0, 0, 258, 1, 26, 0, 547675, 0, 0, 21, 49, 40, 10, 1, 3, 0
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: session_stats_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Alerts queued: 1
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] session_stats_alert: session stats (291 values): 62, 533090, 203656, 9119, 8528, 0, 1, 0, 0, 1297, 0, 0, 0, 0, 0, 6901802, 0, 0, 725, 15595, 16359, 501, 53147, 62, 65, 42096, 11552, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87608, 194388, 670, 0, 0, 63151, 206, 0, 424765, 850475874, 1307, 974, 10746484, 105270, 3020410, 24613580, 22656, 2757, 3835, 24955096, 26890, 0, 4483853, 6341, 7040, 2651, 86, 743943, 12937, 6901802, 0, 37349, 5915, 0, 0, 0, 0, 0, 205268, 9507, 250, 218510, 71, 203994, 0, 0, 0, 16874, 1565, 6847067, 9850, 298335, 0, 284483, 0, 16359, 5827, 300926, 11350, 250, 14608, 0, 0, 0, 305263, 0, 305263, 347075, 0, 6847156, 0, 0, 6847156, 0, 10087170263, 0, 0, 10087170263, 0, 0, 0, 0, 0, 0, 112071595784, 112324785062, 3785858880, 1596678, 0, 248512675, 3766018956, 120796, 0, 0, 349117, 21490, 447680, 1770, 53966436, 81840053, 51571, 1192, 20354, 0, 140272, 223124, 1907, 7112, 0, 0, 0, 0, 3770, 0, 23, 0, 0, 0, 0, 0, 280227, 475994, 28124940, 57665761, 627753, 1149173, 295551, 25016845, 1420216, 55063894, 35, 34851, 362893, 2161, 4791, 342812, 86597, 260215, 11681880, 6422815, 2447369, 829661, 390023, 536074, 1151282, 95004, 3, 0, 0, 0, 404416, 1351784, 383466, 628276, 220109, 146306, 23437, 46463, 381, 44, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 64, 0, 0, 0, 0, 84, 0, 0, 82, 0, 0, 0, 0, 0, 63, 95, 76, 0, 43, 0, 43, 7, 667, 0, 0, 0, 0, 0, 243, 0, 6, 6, 0, 6, 0, 10, 0, 0, 2147483647, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 377, 169, 160, 302, 0, 0, 258, 1, 0, 0, 0, 0, 0, 37, 41, 24, 17, 2, 3, 0
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: session_stats_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Alerts queued: 8
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] state_update_alert: state updates for 56 torrents
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: state_update_alert
15:48:34 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (747a11e64144e253b6324b02674da470c989ce57)
15:48:34 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (747a11e64144e253b6324b02674da470c989ce57)
15:48:34 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (747a11e64144e253b6324b02674da470c989ce57)
15:48:34 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (747a11e64144e253b6324b02674da470c989ce57)
15:48:34 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (a40cf0a93580710b4f71b7068f408e55c968889a)
15:48:34 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (a40cf0a93580710b4f71b7068f408e55c968889a)
15:48:34 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (a40cf0a93580710b4f71b7068f408e55c968889a)
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Alerts queued: 1
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] session_stats_alert: session stats (291 values): 62, 533111, 203664, 9119, 8528, 0, 1, 0, 0, 1297, 0, 0, 0, 0, 0, 6901996, 0, 0, 725, 15595, 16366, 502, 53147, 62, 65, 42097, 11552, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87608, 194397, 670, 0, 0, 63151, 206, 0, 424765, 850475874, 1307, 974, 10746484, 105277, 3020556, 24614863, 22656, 2758, 3835, 24956291, 26892, 0, 4484060, 6341, 7040, 2651, 86, 743975, 12938, 6901996, 0, 37349, 5915, 0, 0, 0, 0, 0, 205277, 9507, 250, 218519, 71, 204006, 0, 0, 0, 16874, 1565, 6847381, 9850, 298349, 0, 284497, 0, 16366, 5827, 300940, 11350, 250, 14608, 0, 0, 0, 305263, 0, 305263, 347075, 0, 6847470, 0, 0, 6847470, 0, 10087687139, 0, 0, 10087687139, 0, 0, 0, 0, 0, 0, 112077071580, 112330272352, 3786045644, 1596678, 0, 248522224, 3766205832, 120796, 0, 0, 349134, 21494, 447693, 1770, 53968110, 81844048, 51573, 1192, 20354, 0, 140282, 223124, 1907, 7112, 0, 0, 0, 0, 3771, 0, 23, 0, 0, 0, 0, 0, 280242, 475994, 28126206, 57668107, 627801, 1149221, 295551, 25017924, 1420268, 55066123, 35, 34855, 362915, 2161, 4792, 342826, 86603, 260227, 11682552, 6423147, 2447465, 829682, 390032, 536109, 1151344, 95005, 3, 0, 0, 0, 404442, 1351855, 383480, 628299, 220119, 146316, 23437, 46464, 381, 44, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 64, 0, 0, 0, 0, 82, 0, 0, 74, 0, 0, 0, 0, 0, 45, 99, 76, 0, 43, 0, 43, 7, 665, 0, 0, 0, 0, 0, 218, 0, 0, 0, 0, 0, 0, 10, 0, 0, 2147483647, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 377, 169, 160, 302, 0, 0, 258, 1, 0, 0, 0, 0, 0, 25, 44, 33, 17, 7, 3, 0
15:48:34 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: session_stats_alert
15:48:35 [DEBUG   ][deluge.core.alertmanager          :1622] Alerts queued: 1
15:48:35 [DEBUG   ][deluge.core.alertmanager          :1622] file_error_alert: <REDACTED> file_mmap (/home/jtcf/Downloads/torrents/<REDACTED>) error: Невозможно выделить память
15:48:35 [DEBUG   ][deluge.core.alertmanager          :1622] Handling alert: file_error_alert
15:48:35 [DEBUG   ][deluge.core.torrent               :1622] State from lt was: seeding | Session is paused: False
Torrent state set from "Seeding" to "Seeding" (5037a0ed58e360a9cbf7e14e07fa7f6aebac9931)

** (deluge:2): WARNING **: 15:48:35.401: could not allocate closure

/app/lib/python3.11/site-packages/gi/overrides/GLib.py:612: Warning: timeout_add_full: assertion 'function != NULL' failed
  return GLib.timeout_add(priority, interval, function, *user_data)
16:39:39 [DEBUG   ][deluge.ui.gtk3.torrentview        :1622] on_button_press_event
16:39:39 [DEBUG   ][deluge.ui.gtk3.torrentview        :1622] on_selection_changed
16:39:39 [DEBUG   ][deluge.ui.gtk3.files_tab          :1622] Getting file list from core..
16:39:45 [DEBUG   ][deluge.ui.gtk3.torrentview        :1622] on_button_press_event
16:39:45 [DEBUG   ][deluge.ui.gtk3.torrentview        :1622] on_selection_changed
16:39:48 [DEBUG   ][deluge.ui.gtk3.files_tab          :1622] on_button_press_event
Gdk-Message: 16:39:48.692: Window 0x5578d3c38db0 is a temporary window without parent, application will not be able to position it on screen.

(deluge:2): Gdk-CRITICAL **: 16:39:48.835: gdk_wayland_window_handle_configure_popup: assertion 'impl->transient_for' failed

(deluge:2): Gdk-CRITICAL **: 16:39:48.835: ../gdk/wayland/gdkdisplay-wayland.c:1362: mmap'ping shared memory file failed: Невозможно выделить память
This is ridden with "Unable to allocate memory" messages, for file memory-mapping and for allocating other stuff.

Deluge on Gentoo Linux, installed via Flatpak:

Code: Select all

deluge-gtk 2.1.1
libtorrent: 2.0.9.0
Python: 3.11.10
OS: Linux 6.6.51-gentoo-dist
shinger
Seeder
Seeder
Posts: 134
Joined: Sat Jun 05, 2010 1:02 pm

Re: Deluge-gtk crashes with a segfault after running for some time

Post by shinger »

Hi John,

I also experience this when i click on the icon (Using Linux Fedora 40 with KDE Plasma). When i do open it with the terminal, it does not crash.

Could you try the open the flatpak version using the terminal? Not sure if it has something to do with wayland and wayland support?
===============================================================
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 24.04 LTS
Deluge: v2.1.2
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
JohnTheCoolingFan
New User
New User
Posts: 4
Joined: Mon Apr 15, 2024 3:09 pm

Re: Deluge-gtk crashes with a segfault after running for some time

Post by JohnTheCoolingFan »

Sorry for long time without a response, wasn't checking this forum. I've found the cause of my problem, which is dependency related. You see, the bug originates from a PyGObject bug that has been already fixed and released in 3.44.2. I've checked the version used in flatpak, and it's 3.40.1. So this bug would be fixed if the flatpak distributed version is rebuilt. I doubt the deluge team will do that, but they should despite there not being a new deluge release. Or if you install it via a regular package manager (as I am going to do), which will pull a fixed version. I've liked flatpak a lot but seeing it have issues like this is very sad.

If this can be brought to the maintainers' attention and they do update the pygobject version, it would be awesome and improve the deluge experience for flatpak users.

As for your problem, if you see messages like "could not allocate closure" in the stdout (I used log level info just in case) then you have the same problem.
JohnTheCoolingFan
New User
New User
Posts: 4
Joined: Mon Apr 15, 2024 3:09 pm

Re: Deluge-gtk crashes with a segfault after running for some time

Post by JohnTheCoolingFan »

Update on the situation: the problem has been fixed.

I've reported the issue on github, and it has been fixed. The package in flathub should be updated soon, so you can keep using the flatpak version. I personally will stick to the regular package.
mhertz
Moderator
Moderator
Posts: 2330
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge-gtk crashes with a segfault after running for some time

Post by mhertz »

Thanks buddy, you're appreciated! :)
Post Reply