Bug 357348 - (Blank) Dialog (any application) freezes randomly due to waiting for open("dev/video0", O_RDWR), unplugging webcam solves the issue
Summary: (Blank) Dialog (any application) freezes randomly due to waiting for open("de...
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.14.1
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-30 19:04 UTC by Vyse007
Modified: 2020-09-29 04:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Blank dialog when trying to delete a file using Dolphin (309.57 KB, image/png)
2015-12-30 19:06 UTC, Vyse007
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vyse007 2015-12-30 19:04:32 UTC
When using a stock install of the latest Kubuntu 15.10, the dialog that pops up (for example, when confirming from the user if they really want to delete a file, or if they really want to apply a setting or discard it), the dialog freezes with no content being displayed inside it (see screenshot for example). It stays like this for a while, about 15-20 seconds, during which it can still be resized and moved (but not closed). After a while the content eventually displays and the dialog behaves normally again. Happens with most applications on a stock install (Dolphin, Kate, Konsole, etc.)

http://imgur.com/oRAbQET

Reproducible: Always

Steps to Reproduce:
1. Open up systemsettings5, with a USB webcam connected to the computer.
2. Change a setting.
3. Navigate away from the tab where the setting was changed WITHOUT applying the change. 

Actual Results:  
An empty dialog pops up (transparent), that populates after a certain amount of time. During this time it can be moved and resized, but not closed.

Expected Results:  
The dialog should be populated right when it pops up.

So I took it upon myself to debug this issue, and opened an application (systemsettings5, in my case) under strace. When I change a system setting and then navigate to a different tab, thereby making the confirmation ("do you want to apply, revert, etc.") dialog appear, I can see that the strace stalls at the call

open("/dev/video0", O_RDWR)

I guessed that this has something to do with the Logitech USB webcam that I have, and so I disconnected it to see if the issue changes, and indeed, it vanished away! All the applications that previously suffered from this work fine now! I do not understand why the entire framework would be required to check for an accessible webcam.
Comment 1 Vyse007 2015-12-30 19:06:09 UTC
Created attachment 96367 [details]
Blank dialog when trying to delete a file using Dolphin
Comment 2 Vyse007 2015-12-30 19:10:18 UTC
I should add that this only happens the first time I launch the application. Once I have waited for the first dialog to be populated, all the subsequent dialogs work as expected. If I restart the application, however, I have to deal with it again (but only for the first time, as always).
Comment 3 Alexander Mentyu 2018-03-25 18:08:27 UTC
Is this still relevant for you?
Comment 4 Nate Graham 2020-09-29 04:32:06 UTC
No response; I guess not.