'sabnzbdplus' received an X Window System error - Kubuntu

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Onno
Newbie
Newbie
Posts: 5
Joined: July 24th, 2021, 3:49 am

'sabnzbdplus' received an X Window System error - Kubuntu

Post by Onno »

Hi there.

After quite a lot of hours trying to install Sabnzbd I just end up with this message:

(sabnzbdplus:10044): Gdk-ERROR **: 11:05:33.946: The program 'sabnzbdplus' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 3396 error_code 3 request_code 18 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Traceer/breekpunt-instructie (geheugendump gemaakt)

I'm using Kubuntu (20,04) and was trying not to install a beta version (by following the intructions on SABnzbd WIKI page), but it did it anyway. Have used SABnzbd before (in Ubuntu) and that worked just fine and was really ease setting up. Here I'm just lost.

Anyone a solution? Would be much appreciated.

Onno
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by sander »

Easy & ugly workaround: disable On Screen Notifications at http://127.0.0.1:8080/sabnzbd/config/no ... osd_enable


Solution: Google your text, and work down from there

The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 3396 error_code 3 request_code 18 (core protocol) minor_code 0)
Onno
Newbie
Newbie
Posts: 5
Joined: July 24th, 2021, 3:49 am

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by Onno »

Thanks for the quick reply. I'ḿ afraid Iḿ not only a newbie on this forum, but an ICT nitwit as well. Using your link just gave the message "connection refused".
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by sander »

Ah. Go to the webinterface of SABnzbd, then Config -> Notifications -> NotifyOSD
Onno
Newbie
Newbie
Posts: 5
Joined: July 24th, 2021, 3:49 am

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by Onno »

Well the problem is that I can't get to the webinterface. After installing it's starts the setup wizard, but after selecting the language I get the message above. Sometimes I can go to the next step, but then I get the messsage above also. Going directly to the website interface doesn't work either. Bit stuck here.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by sander »

Really? Can you do this:

Open a terminal
type 'sabnzbdplus -b1 -l2' plus <ENTER>
If SABnzbd really crashed, post the terminal output here, or on pastebin.
Onno
Newbie
Newbie
Posts: 5
Joined: July 24th, 2021, 3:49 am

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by Onno »

This is the terminal output:

sabnzbdplus -b1 -l2
2021-07-25 20:46:52,371::INFO::[sabnzbdplus:1179] --------------------------------
2021-07-25 20:46:52,410::INFO::[sabnzbdplus:1180] sabnzbdplus-3.4.0Beta1
2021-07-25 20:46:52,411::INFO::[sabnzbdplus:1190] Commit = 92b023599bad0d0b68d72e7cf46ab18178190d7e
2021-07-25 20:46:52,411::INFO::[sabnzbdplus:1192] Full executable path = /usr/bin/sabnzbdplus
2021-07-25 20:46:52,411::INFO::[sabnzbdplus:1193] Arguments = "/usr/bin/sabnzbdplus" "-b1" "-l2"
2021-07-25 20:46:52,411::INFO::[sabnzbdplus:1194] Python-version = 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0]
2021-07-25 20:46:52,412::INFO::[sabnzbdplus:1195] Dockerized = False
2021-07-25 20:46:52,412::INFO::[sabnzbdplus:1196] CPU architecture = x86_64
2021-07-25 20:46:52,483::INFO::[sabnzbdplus:1199] Platform = posix - Linux-5.8.0-63-generic-x86_64-with-glibc2.29
2021-07-25 20:46:52,483::INFO::[sabnzbdplus:1205] Preferred encoding = UTF-8
2021-07-25 20:46:52,483::INFO::[sabnzbdplus:1217] SSL version = OpenSSL 1.1.1f 31 Mar 2020
2021-07-25 20:46:52,517::INFO::[sabnzbdplus:1226] Certifi version = 2019.11.28
2021-07-25 20:46:52,517::INFO::[sabnzbdplus:1227] Loaded additional certificates from /etc/ssl/certs/ca-certificates.crt
2021-07-25 20:46:52,734::DEBUG::[sabnzbdplus:1236] Available certificates = {'x509': 129, 'crl': 0, 'x509_ca': 129}
2021-07-25 20:46:52,735::DEBUG::[sabnzbdplus:1239] Local IPv4 address = 10.106.86.235
2021-07-25 20:46:53,143::DEBUG::[sabnzbdplus:1240] Public IPv4 address = 185.65.134.233
2021-07-25 20:46:53,144::DEBUG::[sabnzbdplus:1241] IPv6 address = None
2021-07-25 20:46:53,406::DEBUG::[sabnzbdplus:1244] CPU Pystone available performance = 69597
2021-07-25 20:46:53,424::DEBUG::[sabnzbdplus:1245] CPU model = Intel(R) Core(TM)2 Duo CPU T6400 @ 2.00GHz
2021-07-25 20:46:53,424::INFO::[sabnzbdplus:1247] Using INI file /home/onno/.sabnzbd/sabnzbd.ini
2021-07-25 20:46:53,424::DEBUG::[filesystem:584] Applying permissions 0o775 (octal) to /home/onno/Downloads/incomplete
2021-07-25 20:46:53,721::DEBUG::[__init__:968] [sabnzbd.bpsmeter.read] Loading data for totals10.sab
2021-07-25 20:46:53,721::INFO::[__init__:923] [sabnzbd.load_admin] /home/onno/.sabnzbd/admin/totals10.sab missing
2021-07-25 20:46:53,722::DEBUG::[bpsmeter:186] Setting default BPS meter values
2021-07-25 20:46:54,067::DEBUG::[downloader:258] Initializing downloader
2021-07-25 20:46:54,068::DEBUG::[downloader:445] Sleep time: 0.001000 seconds
2021-07-25 20:46:54,068::DEBUG::[decoder:65] Initializing decoders
2021-07-25 20:46:54,068::DEBUG::[decoder:113] Initializing decoder Thread-6
2021-07-25 20:46:54,068::DEBUG::[decoder:113] Initializing decoder Thread-7
2021-07-25 20:46:54,069::DEBUG::[decoder:113] Initializing decoder Thread-8
2021-07-25 20:46:54,069::INFO::[postproc:135] Loading postproc queue
2021-07-25 20:46:54,069::DEBUG::[__init__:968] [sabnzbd.postproc.load] Loading data for postproc2.sab
2021-07-25 20:46:54,069::INFO::[__init__:923] [sabnzbd.load_admin] /home/onno/.sabnzbd/admin/postproc2.sab missing
2021-07-25 20:46:54,070::DEBUG::[__init__:968] [sabnzbd.dirscanner.__init__] Loading data for watched_data2.sab
2021-07-25 20:46:54,070::INFO::[__init__:923] [sabnzbd.load_admin] /home/onno/.sabnzbd/admin/watched_data2.sab missing
2021-07-25 20:46:54,070::DEBUG::[__init__:968] [sabnzbd.rating.__init__] Loading data for Rating.sab
2021-07-25 20:46:54,071::INFO::[__init__:923] [sabnzbd.load_admin] /home/onno/.sabnzbd/admin/Rating.sab missing
2021-07-25 20:46:54,071::DEBUG::[__init__:968] [sabnzbd.rss.__init__] Loading data for rss_data.sab
2021-07-25 20:46:54,071::INFO::[__init__:923] [sabnzbd.load_admin] /home/onno/.sabnzbd/admin/rss_data.sab missing
2021-07-25 20:46:54,072::INFO::[scheduler:190] Scheduling RSS interval task every 60 min (delay=55)
2021-07-25 20:46:54,072::INFO::[scheduler:206] Setting schedule for midnight BPS reset
2021-07-25 20:46:54,072::INFO::[scheduler:209] Setting schedule for server expiration check
2021-07-25 20:46:54,072::INFO::[scheduler:214] Setting scheduler for server quota check
2021-07-25 20:46:54,073::DEBUG::[__init__:968] [sabnzbd.nzbqueue.read_queue] Loading data for queue10.sab
2021-07-25 20:46:54,073::DEBUG::[__init__:927] [sabnzbd.load_admin] Loading data for queue10.sab from /home/onno/.sabnzbd/admin/queue10.sab
2021-07-25 20:46:54,129::DEBUG::[__init__:927] [sabnzbd.nzbqueue.read_queue] Loading data for SABnzbd_nzo_bz_adja4 from /home/onno/Downloads/incomplete/Nederlandse Tijdschriften 22-07-2021.1/__ADMIN__/SABnzbd_nzo_bz_adja4
2021-07-25 20:46:54,167::DEBUG::[__init__:593] PAUSED_ALL inactive
2021-07-25 20:46:54,170::INFO::[config:905] Writing settings to INI file /home/onno/.sabnzbd/sabnzbd.ini
2021-07-25 20:46:54,174::INFO::[__init__:334] All processes started
2021-07-25 20:46:54,322::INFO::[sabnzbdplus:343] Template location for Glitter is /usr/share/sabnzbdplus/interfaces/Glitter
2021-07-25 20:46:54,364::INFO::[sabnzbdplus:343] Template location for Config is /usr/share/sabnzbdplus/interfaces/Config
2021-07-25 20:46:56,640::DEBUG::[sabtraylinux:33] XApp found: <XAppProxyModule <IntrospectionModule 'XApp' from '/usr/lib/x86_64-linux-gnu/girepository-1.0/XApp-1.0.typelib'>>
2021-07-25 20:46:56,643::INFO::[misc:1090] [sabnzbd.misc.run_command] Running external command: ['/usr/bin/unrar']
2021-07-25 20:46:56,645::DEBUG::[misc:1091] Popen arguments: {'stdin': -1, 'stdout': -1, 'stderr': -2, 'startupinfo': None, 'creationflags': 0}
2021-07-25 20:46:56,807::INFO::[misc:1090] [sabnzbd.misc.run_command] Running external command: ['/usr/bin/par2', '-h']
2021-07-25 20:46:56,807::DEBUG::[misc:1091] Popen arguments: {'stdin': -1, 'stdout': -1, 'stderr': -2, 'startupinfo': None, 'creationflags': 0}
2021-07-25 20:46:57,055::INFO::[sabnzbdplus:430] SABYenc module (v4.0.1)... found!
2021-07-25 20:46:57,055::INFO::[sabnzbdplus:449] Cryptography module (v2.8)... found!
2021-07-25 20:46:57,056::INFO::[sabnzbdplus:454] par2 binary... found (/usr/bin/par2)
2021-07-25 20:46:57,056::INFO::[sabnzbdplus:461] UNRAR binary... found (/usr/bin/unrar)
2021-07-25 20:46:57,056::INFO::[sabnzbdplus:471] UNRAR binary version 5.61
2021-07-25 20:46:57,056::INFO::[sabnzbdplus:479] 7za binary... found (/usr/bin/7za)
2021-07-25 20:46:57,056::INFO::[sabnzbdplus:490] nice binary... found (/usr/bin/nice)
2021-07-25 20:46:57,056::INFO::[sabnzbdplus:494] ionice binary... found (/usr/bin/ionice)
2021-07-25 20:46:57,058::INFO::[sabnzbdplus:1436] Starting web-interface on 127.0.0.1:8080
2021-07-25 20:46:57,059::INFO::[_cplogging:219] [25/Jul/2021:20:46:57] ENGINE Bus STARTING
2021-07-25 20:46:57,085::INFO::[_cplogging:219] [25/Jul/2021:20:46:57] ENGINE Started monitor thread '_TimeoutMonitor'.
2021-07-25 20:46:57,434::INFO::[_cplogging:219] [25/Jul/2021:20:46:57] ENGINE Serving on http://127.0.0.1:8080
2021-07-25 20:46:57,435::INFO::[_cplogging:219] [25/Jul/2021:20:46:57] ENGINE Bus STARTED
2021-07-25 20:46:57,435::INFO::[sabnzbdplus:1473] Starting sabnzbdplus-3.4.0Beta1
2021-07-25 20:46:57,435::DEBUG::[__init__:342] Starting postprocessor
2021-07-25 20:46:57,436::INFO::[postproc:233] Completed Download Folder /home/onno/Downloads/complete is not on FAT
2021-07-25 20:46:57,436::DEBUG::[__init__:345] Starting assembler
2021-07-25 20:46:57,437::DEBUG::[__init__:348] Starting downloader
2021-07-25 20:46:57,437::DEBUG::[__init__:351] Starting decoders
2021-07-25 20:46:57,440::DEBUG::[__init__:354] Starting scheduler
2021-07-25 20:46:57,443::DEBUG::[__init__:357] Starting dirscanner
2021-07-25 20:46:57,443::INFO::[dirscanner:117] Dirscanner starting up
2021-07-25 20:46:57,444::DEBUG::[__init__:360] Starting rating
2021-07-25 20:46:57,445::DEBUG::[__init__:1108] Test IPv6: Cannot reach IPv6 test host. Disabling IPv6
2021-07-25 20:46:57,446::DEBUG::[__init__:363] Starting urlgrabber
2021-07-25 20:46:57,446::DEBUG::[downloader:532] External IPv6 test result: False
2021-07-25 20:46:57,447::INFO::[panic:239] Launching browser with http://127.0.0.1:8080/sabnzbd
2021-07-25 20:46:57,653::DEBUG::[downloader:536] SSL verification test: True
2021-07-25 20:47:03,036::INFO::[notifier:122] Sending notification: SABnzbd - SABnzbd 3.4.0Beta1 is gestart (type=startup, job_cat=None)
2021-07-25 20:47:03,038::INFO::[notifier:182] Send to NotifyOSD: SABnzbd / SABnzbd 3.4.0Beta1 is gestart
2021-07-25 20:47:03,636::DEBUG::[misc:376] Version check disabled by Debian/Ubuntu packaging

(sabnzbdplus:3306): Gdk-ERROR **: 20:47:03.941: The program 'sabnzbdplus' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 833 error_code 3 request_code 18 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Traceer/breekpunt-instructie (geheugendump gemaakt)
Puzzled
Full Member
Full Member
Posts: 160
Joined: September 2nd, 2017, 3:02 am

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by Puzzled »

I have no idea how to fix this but it might be helpful if you could run
GDK_SYNCHRONIZE=1 sabnzbdplus -b1 -l2

and see if it stops after the exact same log line.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by sander »

Onno, what is the output of:

Code: Select all


grep ntfosd_enable ~/.sabnzbd/sabnzbd.ini

Here's mine:

Code: Select all

$ grep ntfosd_enable ~/.sabnzbd/sabnzbd.ini
ntfosd_enable = 1
You also disable On Screen Display via this sabnzbd.ini: change the aboven setting to 0. Make sure SABnzbd is NOT running at the moment you change sabnzbd.ini.
Onno
Newbie
Newbie
Posts: 5
Joined: July 24th, 2021, 3:49 am

Re: 'sabnzbdplus' received an X Window System error - Kubuntu

Post by Onno »

It's up and running right now :) :)

This old post doing (in the end) the trick:
Re: SABnzbd 3.0.0 crashes frequently in Kubuntu 20.04
Post by safihre » August 16th, 2020, 9:36 am

You can disable it by switch off the Special Setting "win_menu". If you can't reach the Special Setting's page, you can also do it in your sabnzbd.ini.
By setting "win_menu" to 0 in the .ini file SABnzbd just started after filling in the setup wizard.

Thank you both Sander and Puzzled for your time and effort!

Never changed an .ini file before so quite an interesting experience in the end.
Post Reply