Deluge Crash when attempting to move torrent download location (GDK error)

General support for problems installing or using Deluge
Post Reply
headlessNik
New User
New User
Posts: 3
Joined: Sat Jul 09, 2022 5:38 pm

Deluge Crash when attempting to move torrent download location (GDK error)

Post by headlessNik »

Several week ago, Deluge began crashing when attempting to move a torrent's download location.

$deluge:

Code: Select all

(deluge:8223): Gdk-WARNING **: 03:24:52.691: Window 0x5631fb407890 is already mapped at the time of grabbing. gdk_seat_grab() should be used to simultanously grab input and show this popup. You may find oddities ahead.
[...] #this message repeats hundreds of times until Deluge window disappears
(deluge:8223): Gdk-WARNING **: 03:24:53.373: Window 0x5631fb407890 is already mapped at the time of grabbing. gdk_seat_grab() should be used to simultanously grab input and show this popup. You may find oddities ahead.
Gdk-Message: 03:24:53.373: Lost connection to Wayland compositor.
log -L debug:

Code: Select all

03:23:50 [DEBUG   ][deluge_label.gtkui.label_config   :50  ] options={}
03:23:50 [DEBUG   ][deluge.ui.gtk3.torrentview        :824 ] on_selection_changed
03:23:50 [DEBUG   ][deluge.ui.gtk3.torrentview        :824 ] on_selection_changed
03:23:59 [DEBUG   ][deluge.ui.gtk3.gtkui              :292 ] RPC: Sent 4.3 KiB (0.0 KiB/s) Recv 4.3 KiB (0.0 KiB/s)
03:24:09 [DEBUG   ][deluge.ui.gtk3.gtkui              :292 ] RPC: Sent 7.3 KiB (0.3 KiB/s) Recv 7.3 KiB (0.3 KiB/s)
03:24:19 [DEBUG   ][deluge.ui.gtk3.gtkui              :292 ] RPC: Sent 10.1 KiB (0.3 KiB/s) Recv 10.1 KiB (0.3 KiB/s)
03:24:29 [DEBUG   ][deluge.ui.gtk3.gtkui              :292 ] RPC: Sent 13.4 KiB (0.3 KiB/s) Recv 13.4 KiB (0.3 KiB/s)
03:24:39 [DEBUG   ][deluge.ui.gtk3.gtkui              :292 ] RPC: Sent 16.5 KiB (0.3 KiB/s) Recv 16.5 KiB (0.3 KiB/s)
03:24:41 [DEBUG   ][deluge.ui.gtk3.torrentview        :798 ] on_button_press_event
03:24:41 [DEBUG   ][deluge.ui.gtk3.torrentview        :824 ] on_selection_changed
03:24:44 [DEBUG   ][deluge.ui.gtk3.menubar            :354 ] on_menuitem_move_activate
03:24:44 [DEBUG   ][deluge.ui.gtk3.menubar            :360 ] show_move_storage_dialog
03:24:49 [DEBUG   ][deluge.ui.gtk3.gtkui              :292 ] RPC: Sent 19.5 KiB (0.3 KiB/s) Recv 19.7 KiB (0.3 KiB/s)
I use Deluge in ThinClient mode via SSH Tunnel

Deluge version 2.1.0-0~202206282059~ubuntu22.04.1
Ubuntu 22.04 LTS (kernel 5.15.0)

Any guidance is appreciated, I've tried everything I and Google could think of...
theirongiant
New User
New User
Posts: 3
Joined: Sun Oct 30, 2022 5:48 am

Re: Deluge Crash when attempting to move torrent download location (GDK error)

Post by theirongiant »

Bumping this topic to report the same issue on MacOS, Deluge 2.1.1 compiled via HomeBrew on Big Sur 11.7.1 on an Intel Mac Mini 2018.

As soon as I clicked 'Move Torrent Location' from the popup menu, the application crashed. Now it crashes shortly after launch with Segmentation Fault 11.

When launching, MacOS asks: "The last time you opened Python, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?" The options are [Don't Reopen] and [Reopen]. Either choice leads to an instant crash with Segmentation Fault 11.

This appears to be unrecoverable and now Deluge is unusable. I'm glad I am not depending on this client as my primary.

I've already gone into the ~/.config/deluge folder and deleted the following files in an attempt to force Deluge to use the .bak backup copies and restore order. No effect.

- torrents.state
- torrents.fastresume
- gt3kui.conf
- core.conf
- the most recent .torrent file

Any ideas? Has this been filed in TRAC yet?
theirongiant
New User
New User
Posts: 3
Joined: Sun Oct 30, 2022 5:48 am

Re: Deluge Crash when attempting to move torrent download location (GDK error)

Post by theirongiant »

Here are some more detailed logs from the Mac. It may be a kind of sandbox violation.

On closer inspection I see a "stability" crash caused by macOS. This means the app (Python) is not using a core framework correctly and Mac is taking the application down.

Code: Select all

2022-10-29 22:39:57.454136-0700 0x971      Error       0x0                  0      0    kernel: (Sandbox) Sandbox: logd_helper(360) deny(1) file-read-data /usr/local/Cellar/libtorrent-rasterbar/2.0.8/lib/python3.10/site-packages/libtorrent.cpython-310-darwin.so
2022-10-29 22:39:57.454582-0700 0x971      Error       0x0                  0      0    kernel: (Sandbox) Sandbox: logd_helper(360) deny(1) file-read-data /usr/local/Cellar/pygobject3/3.42.2_1/lib/python3.10/site-packages/gi/_gi.cpython-310-darwin.so
2022-10-29 22:39:57.455004-0700 0x971      Error       0x0                  0      0    kernel: (Sandbox) Sandbox: logd_helper(360) deny(1) file-read-data /usr/local/Cellar/pygobject3/3.42.2_1/lib/python3.10/site-packages/gi/_gi_cairo.cpython-310-darwin.so
2022-10-29 22:39:57.456228-0700 0x971      Error       0x0                  0      0    kernel: (Sandbox) Sandbox: logd_helper(360) deny(1) file-read-data /usr/local/Cellar/py3cairo/1.21.0_1/lib/python3.10/site-packages/cairo/_cairo.cpython-310-darwin.so
2022-10-29 22:39:57.464684-0700 0x24c8b6   Default     0x0                  125    2    launchservicesd: [com.apple.launchservices:cas] CHECKIN:0x0-0x601601 78863 org.python.python
2022-10-29 22:39:57.474165-0700 0x24c977   Default     0x294cd1             158    0    tccd: [com.apple.TCC:access] AUTHREQ_ATTRIBUTION: msgID=78863.1, attribution={responsible={identifier=com.apple.Terminal, pid=498, auid=505, euid=505, responsible_path=/System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal, binary_path=/System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal}, requesting={identifier=<ID of InvalidCode>, pid=78863, auid=505, euid=505, binary_path=/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python}, },
2022-10-29 22:39:57.489027-0700 0x24c3b5   Default     0x29379c             158    0    tccd: [com.apple.TCC:access] AUTHREQ_ATTRIBUTION: msgID=157.1634, attribution={responsible={identifier=com.apple.Terminal, pid=498, auid=505, euid=505, responsible_path=/System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal, binary_path=/System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal}, accessing={identifier=<ID of InvalidCode>, pid=78863, auid=505, euid=505, binary_path=/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python}, requesting={identifier=com.apple.WindowServer, pid=157, auid=88, euid=88, binary_path=/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer}, },
2022-10-29 22:39:57.489035-0700 0x24c3b5   Default     0x29379c             158    0    tccd: [com.apple.TCC:access] requestor: identifier=com.apple.WindowServer, pid=157, auid=88, euid=88, binary_path=/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer is checking access for accessor identifier=<ID of InvalidCode>, pid=78863, auid=505, euid=505, binary_path=/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
2022-10-29 22:39:57.528611-0700 0x221e05   Default     0x0                  385    0    distnoted: [com.apple.distnoted:diagnostic] register name: com.apple.xctest.FakeForceTouchDevice object: org.python.python token: 1b00000012 pid: 78863
2022-10-29 22:39:58.732591-0700 0x221e05   Default     0x0                  385    0    distnoted: [com.apple.distnoted:diagnostic] register name: com.apple.nsquiet_safe_quit_give_reason object: org.python.python token: 2d00000024 pid: 78863
2022-10-29 22:39:59.383632-0700 0x971      Default     0x0                  0      0    kernel: (Sandbox) Sandbox: 1 duplicate report for logd_helper deny(1) file-read-data /usr/local/Cellar/py3cairo/1.21.0_1/lib/python3.10/site-packages/cairo/_cairo.cpython-310-darwin.so
2022-10-29 22:40:01.233698-0700 0x24c5e5   Default     0x0                  715    7    ReportCrash: (CoreAnalytics) [com.apple.CoreAnalytics.stability-event:event-send] Sending event: com.apple.stability.crash {"appVersion":"3.10.8","bundleID":"org.python.python","exceptionType":1,"incidentID":"73AF8934-6B4D-44B4-9970-289F36CC77D3","logwritten":1,"process":"Python","responsibleApp":"Terminal"}
2022-10-29 22:40:01.233849-0700 0x24cb71   Default     0x0                  159    7    analyticsd: [com.apple.CoreAnalytics.stability-event:event-recv] Received event: com.apple.stability.crash {"appVersion":"3.10.8","bundleID":"org.python.python","exceptionType":1,"incidentID":"73AF8934-6B4D-44B4-9970-289F36CC77D3","logwritten":1,"process":"Python","responsibleApp":"Terminal"}
2022-10-29 22:40:01.233935-0700 0x24cb71   Default     0x0                  159    7    analyticsd: [com.apple.CoreAnalytics.stability-event:event-aggregated] Aggregated. Transform: StabilityCrashNumerator3WithIncidentID Dirty: 1 Event: com.apple.stability.crash {"appVersion":"3.10.8","bundleID":"org.python.python","exceptionType":1,"incidentID":"73AF8934-6B4D-44B4-9970-289F36CC77D3","logwritten":1,"process":"Python","responsibleApp":"Terminal","timestamp":1667108401223770}
2022-10-29 22:40:01.234073-0700 0x24cb71   Default     0x0                  159    7    analyticsd: [com.apple.CoreAnalytics.stability-event:event-aggregated] Aggregated. Transform: StabilityCrashNumerator3 Dirty: 1 Event: com.apple.stability.crash {"appVersion":"3.10.8","bundleID":"org.python.python","exceptionType":1,"incidentID":"73AF8934-6B4D-44B4-9970-289F36CC77D3","logwritten":1,"process":"Python","responsibleApp":"Terminal","timestamp":1667108401223770}
2022-10-29 22:40:01.234188-0700 0x24cb71   Default     0x0                  159    7    analyticsd: [com.apple.CoreAnalytics.stability-event:event-aggregated] Aggregated. Transform: StabilityCrashNumerator3WithBundleVersion Dirty: 1 Event: com.apple.stability.crash {"appVersion":"3.10.8","bundleID":"org.python.python","exceptionType":1,"incidentID":"73AF8934-6B4D-44B4-9970-289F36CC77D3","logwritten":1,"process":"Python","responsibleApp":"Terminal","timestamp":1667108401223770}

Last edited by theirongiant on Sun Oct 30, 2022 6:17 am, edited 1 time in total.
theirongiant
New User
New User
Posts: 3
Joined: Sun Oct 30, 2022 5:48 am

Re: Deluge Crash when attempting to move torrent download location (GDK error)

Post by theirongiant »

This looks like a crash possibly related to Python / Deluge's use of GPU acceleration (Metal framework).

I'm attaching a complete crash log snippet with debug enabled. If you want to reproduce this, run the following command in a separate Terminal window as you launch deluge and then attempt to right-click a torrent and select 'Move download location...'

Code: Select all

log stream --debug --info --predicate 'process == "Python" or eventMessage contains "Python" or eventMessage contains "python"'
Attachments
deluge-python-crash.txt.zip
(71.1 KiB) Downloaded 70 times
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge Crash when attempting to move torrent download location (GDK error)

Post by mhertz »

Sorry no help sadly, and just wanted to say I cannot reproduce on arch, Ubuntu 21.10 VM or win10 VM. As you say, could be some gpu related stuff possibly, as atleast not general deluge issue seemingly. Sorry couldn't help you with his.

Edit: Your first error mentions shortly Wayland also, and I then came to think about having setup my ubuntu VM to use a .xinitrc file to load my WM, so is under xorg is what I refer to, but anyway as also fails on Mac which uses something else, quartz or whatever, then neither that presumably.

Edit2: Googling it shows possibly Wayland related in fact, atleast somewhat sounding related(some parts), for Linux case, so try use xorg.

https://dev.deluge-torrent.org/ticket/3407
basher
Leecher
Leecher
Posts: 91
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: Deluge Crash when attempting to move torrent download location (GDK error)

Post by basher »

Which plugins, if any, are you using? Could you try reproducing with all plugins disabled?
LabelPlus plugin just received a fix for a segmentation fault, in case you've been using this plugin.
Last edited by basher on Sat Nov 05, 2022 1:20 pm, edited 1 time in total.
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge Crash when attempting to move torrent download location (GDK error)

Post by mhertz »

Good thinking basher :)

@theirongiant, sorry, I just tested deluge in a wayland session on my ubuntu VM, and works for changing download location, and the link I posted to ticket I expected related was wrong sorry, as I could reproduce the crashing issue of ticket, but not yours. Not more time now, so will let you test the good suggestion of basher, if applicable.
Post Reply