Bug 2368463
| Summary: | In its default configuration, `avahi-daemon.service` slows all Qt (but not GTK) print modals by ⪆ 9s. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mr. Beedell, Roke Julian Lockhart (RJLB) <8ru2u4gz> | ||||
| Component: | avahi | Assignee: | Michal Sekletar <msekleta> | ||||
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 42 | CC: | msekleta, mzeuom, pemensik, rdieter | ||||
| Target Milestone: | --- | Keywords: | Desktop | ||||
| Target Release: | --- | Flags: | 8ru2u4gz:
needinfo?
(msekleta) |
||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| URL: | https://github.com/avahi/avahi/issues/701#issue-3087466051 | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | --- | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | --- | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
*** Bug 2367102 has been marked as a duplicate of this bug. *** Created attachment 2091543 [details]
A Screencast Demonstrating That This Affects All Qt 6 Applications
https://bugs.kde.org/show_bug.cgi?id=504678#c0 reporter: libreport-2.17.15 type: CCpp reason: kwalletmanager5 killed by SIGABRT journald_cursor: s=c1f108f1ef4e48808a377c0a73f168fc;i=5bbd53;b=e7b17d2b53834bf5a00a818d3a14f8eb;m=56f58795;t=6366b97b1faf2;x=e09d2dab3b1c30a6 executable: /usr/bin/kwalletmanager5 cmdline: /usr/bin/kwalletmanager5 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.kde.kwalletmanager rootdir: / uid: 1000 kernel: 6.14.8-300.fc42.x86_64 package: kwalletmanager5-25.04.1-1.fc42 runlevel: N 5 backtrace_rating: 4 crash_function: KCrash::defaultCrashHandler comment: https://bugs.kde.org/show_bug.cgi?id=504678#c0 (In reply to Mr. Beedell, Roke Julian Lockhart (RJLB) from comment #3) Comment 3 is a completely different issue to Comment 0. How did it manage to be registered as a duplicate? Is that a problem with GNOME Abrt? As https://bugs.kde.org/show_bug.cgi?id=507587 explains, "I left Dolphin open, and it hung." reporter: libreport-2.17.15 type: CCpp reason: dolphin killed by SIGABRT journald_cursor: s=a2d6d580caa24cf3a9483be7f85033e4;i=1b54d1;b=ab6c70bb71be401fbbd67899b56456a9;m=15511dd53;t=63afb4892dfab;x=282f93b8c0708859 executable: /usr/bin/dolphin cmdline: /usr/bin/dolphin cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-48970.scope rootdir: / uid: 1000 kernel: 6.15.7-200.fc42.x86_64 package: dolphin-25.04.3-1.fc42 runlevel: N 5 backtrace_rating: 4 crash_function: KCrash::defaultCrashHandler comment: As https://bugs.kde.org/show_bug.cgi?id=507587 explains, "I left Dolphin open, and it hung." *** Bug 2383997 has been marked as a duplicate of this bug. *** I reproduced https://bugzilla.redhat.com/show_bug.cgi?id=2368463#c6. reporter: libreport-2.17.15 type: CCpp reason: assistant-qt6 killed by SIGABRT journald_cursor: s=c1f108f1ef4e48808a377c0a73f168fc;i=9d1651;b=7c73c9025bfd4b3ea14c302bfe5a7228;m=1ec65cfd3;t=63b10b9abd6ac;x=d810fd50c149748a executable: /usr/bin/assistant-qt6 cmdline: /usr/bin/assistant-qt6 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-qt6\x2dassistant rootdir: / uid: 1000 kernel: 6.15.7-200.fc42.x86_64 package: qt6-assistant-6.9.1-1.fc42 runlevel: N 5 backtrace_rating: 4 crash_function: __syscall_cancel_arch comment: I reproduced https://bugzilla.redhat.com/show_bug.cgi?id=2368463#c6. I reproduced https://bugzilla.redhat.com/show_bug.cgi?id=2368463#c6. reporter: libreport-2.17.15 type: CCpp reason: linguist-qt6 killed by SIGABRT journald_cursor: s=c1f108f1ef4e48808a377c0a73f168fc;i=9d17da;b=7c73c9025bfd4b3ea14c302bfe5a7228;m=1ef91a8e8;t=63b10bcd7afc1;x=36978b0de38098a9 executable: /usr/bin/linguist-qt6 cmdline: /usr/bin/linguist-qt6 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-qt6\x2dlinguist rootdir: / uid: 1000 kernel: 6.15.7-200.fc42.x86_64 package: qt6-linguist-6.9.1-1.fc42 runlevel: N 5 backtrace_rating: 4 crash_function: __syscall_cancel_arch comment: I reproduced https://bugzilla.redhat.com/show_bug.cgi?id=2368463#c6. I choose expert mode then i created pair of keys and after appearing terminal window i closed it and error happen. reporter: libreport-2.17.15 type: CCpp reason: kgpg killed by SIGABRT journald_cursor: s=db37208aba5f4113bc8d60ffdf923701;i=10ddab;b=6bf6a6caadb54b4f864ad097ed9ec8b5;m=34a35adf4;t=63d2ed311449c;x=4788c9ebee82f56d executable: /usr/bin/kgpg cmdline: /usr/bin/kgpg cgroup: 0::/user.slice/user-1002.slice/user/app.slice/app-org.kde.kgpg rootdir: / uid: 1002 kernel: 6.15.10-200.fc42.x86_64 package: kgpg-25.08.0-1.fc42 runlevel: N 5 backtrace_rating: 4 crash_function: KCrash::defaultCrashHandler comment: I choose expert mode then i created pair of keys and after appearing terminal window i closed it and error happen. |
When I invoke the `QPrintDialog` with `avahi-daemon.service` enabled, the time elapsed until the modal print window appears is ⪆ 8s. When disabled, invocation is instantaneous. Reproducibility: : Always. Steps to Reproduce: : 1. `sudo systemctl start avahi-daemon.service`: > ~~~YAML > ● avahi-daemon.service - Avahi mDNS/DNS-SD Stack > Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; preset: enabled) > Drop-In: /usr/lib/systemd/system/service.d > └─10-timeout-abort.conf > Active: active (running) since Fri 2025-05-23 20:31:06 BST; 18min ago > Invocation: 9c282b6215cc4106bf249678c1b8488b > TriggeredBy: ● avahi-daemon.socket > Main PID: 147627 (avahi-daemon) > Status: "avahi-daemon 0.8 starting up." > Tasks: 2 (limit: 37207) > Memory: 888K (peak: 1.1M) > CPU: 68ms > CGroup: /system.slice/avahi-daemon.service > ├─147627 "avahi-daemon: running [Beedell.local]" > └─147629 "avahi-daemon: chroot helper" > > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Joining mDNS multicast group on interface lo.IPv6 with address ::1. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: New relevant interface lo.IPv6 for mDNS. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Joining mDNS multicast group on interface lo.IPv4 with address 127.0.0.1. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: New relevant interface lo.IPv4 for mDNS. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Network interface enumeration completed. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Registering new address record for fdce:b268:c9db:0:3ff3:b235:c981:2418 on enp74s0.*. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Registering new address record for 192.168.1.178 on enp74s0.IPv4. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Registering new address record for ::1 on lo.*. > May 23 20:31:06 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Registering new address record for 127.0.0.1 on lo.IPv4. > May 23 20:31:07 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Server startup complete. Host name is Beedell.local. Local service cookie is 1282367389. > ~~~ 2. Invoke the undermentioned script: ~~~py import sys from PySide6.QtWidgets import QApplication, QWidget, QVBoxLayout, QPushButton from PySide6.QtPrintSupport import QPrinter, QPrintDialog class PrintDialogApp(QWidget): def __init__(self): super().__init__() self.setWindowTitle("Print Dialog (PySide6)") layout = QVBoxLayout() self.print_button = QPushButton("Open Print Dialog") self.print_button.clicked.connect(self.open_print_dialog) layout.addWidget(self.print_button) self.setLayout(layout) def open_print_dialog(self): printer = QPrinter() dialog = QPrintDialog(printer, self) if dialog.exec(): print("Print dialog accepted") else: print("Print dialog canceled") if __name__ == "__main__": app = QApplication(sys.argv) window = PrintDialogApp() window.show() sys.exit(app.exec()) ~~~ 3. Click the button. 4. `sudo systemctl stop avahi-daemon.service`: > ~~~YAML > ○ avahi-daemon.service - Avahi mDNS/DNS-SD Stack > Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; preset: enabled) > Drop-In: /usr/lib/systemd/system/service.d > └─10-timeout-abort.conf > Active: inactive (dead) since Fri 2025-05-23 21:03:38 BST; 3s ago > Duration: 32min 31.926s > Invocation: 9c282b6215cc4106bf249678c1b8488b > TriggeredBy: ● avahi-daemon.socket > Process: 147627 ExecStart=/usr/bin/avahi-daemon -s (code=exited, status=0/SUCCESS) > Main PID: 147627 (code=exited, status=0/SUCCESS) > Status: "avahi-daemon 0.8 starting up." > Mem peak: 1.3M > CPU: 136ms > > May 23 20:31:07 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Server startup complete. Host name is Beedell.local. Local service cookie is 1282367389. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Got SIGTERM, quitting. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Leaving mDNS multicast group on interface enp74s0.IPv6 with address fdce:b268:c9db:0:3ff3:b235:c981:2418. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY systemd[1]: Stopping avahi-daemon.service - Avahi mDNS/DNS-SD Stack... > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Leaving mDNS multicast group on interface enp74s0.IPv4 with address 192.168.1.178. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Leaving mDNS multicast group on interface lo.IPv6 with address ::1. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.0.1. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY avahi-daemon[147627]: avahi-daemon 0.8 exiting. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY systemd[1]: avahi-daemon.service: Deactivated successfully. > May 23 21:03:38 Beedell.RokeJulianLockhart.desktop.SSV2AY systemd[1]: Stopped avahi-daemon.service - Avahi mDNS/DNS-SD Stack. > ~~~ 5. Invoke the script. 6. Click the button. This is instantaneous. Actual Results: : With the service enabled, loading Qt print modals takes ⪆ 9s. Without it enabled, doing so is instantaneous. Expected Results: : It should be instantaneous. Additional Information: : Already reported upstream at https://github.com/avahi/avahi/issues/701#issue-3087466051, but I've yet to hear a response. This replaces https://bugzilla.redhat.com/show_bug.cgi?id=2367102.