FrancescoCeruti / linux-show-player

Linux Show Player - Cue player designed for stage productions
https://linux-show-player.org
GNU General Public License v3.0
205 stars 49 forks source link

Resolve an issue that was causing xfwm4 on Arch to coredump #205

Closed s0600204 closed 3 years ago

s0600204 commented 3 years ago

(For the record, I run the xfce4 desktop environment on Arch Linux, and I am fully up-to-date. I reset LiSP to the latest dev/0.6 state, and disabled/removed all custom code/plugins.)

I've recently been having a problem with running LiSP on my computer.

Specifically: almost every time I try to open LiSP's Application Preferences dialog, xfwm4 (xfce4's window manager) would coredump and restart. Also, LiSP would stop responding to user input.

After two days of debugging, I traced this to the change you see in the diff.

I'm not 100% sure why this should fix the issue, but I suspect it might be a race condition. Reasoning:

Maybe.

All I know, is that this appears to fix my problem, and I can now open the Application Preference dialog without xfwm4 throwing a wobbler.

FrancescoCeruti commented 3 years ago

Weird issue :thinking: your conclusion it's probably correct.

I cannot reproduce the issue in gnome (on Xorg) so I think the issue lies somewhere with xwfm4.

Since a Qt widget without a parent will get its own window, we are asking to create a window but then to destroy it almost at the same time, so, as you said probably a race condition where some thread/process tries to access some invalid reference.

Anyway, the change makes perfect sense, so it's okay :+1: Thanks