Bug 259164 - After completing burn of a Video DVD Project; Clear Project will cause k3b to hang - 100% cpu
Summary: After completing burn of a Video DVD Project; Clear Project will cause k3b to...
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: Video DVD (show other bugs)
Version: 1.91.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 20:36 UTC by Ken Taylor
Modified: 2020-12-25 23:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Taylor 2010-12-07 20:36:27 UTC
Version:           1.91.0 (using KDE 4.4.2) 
OS:                Linux

Summary about says it all. I am running k3b on Ubuntu 10.04 LTS 64 bit on a Dell Studio XPS with i870 processor and 8 GB RAM. 

Note that this does not happen when creating and burning a Data DVD project. I have not tried other project types.

Reproducible: Always

Steps to Reproduce:
Create a new Video DVD project then add VIDEO_TS folder to the project. Burn the DVD with default settings. This works fine. Then select Project from the menu and then Clear Project. 

Actual Results:  
The application hangs - no response. System Monitor shows 1 CPU at 100%. Have to terminate process to close k3b.

Expected Results:  
Project data should be cleared to allow a new project to be started.

OS: Linux (x86_64) release 2.6.32-26-generic
Compiler: cc
Comment 1 Andrew Crouthamel 2018-10-31 04:11:01 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Ken Taylor 2018-10-31 12:43:10 UTC
Hello Andrew.  This bug is OLD!  I do not have a machine with a DVD drive running Ubuntu.  I am running CentOS 7.5 with the Mate desktop and K3B 2.0.2 on a Dell Precision 3620. K3B was installed from the CentOS Base repository.  

I just went through the scenario described in the original bug.  Create and burn a video DVD project then clear the project.  The exact same issue occurred.  K3B became unresponsive and consumed 96% of one processor until I finally killed the process.

It looks like the bug is still present and is perhaps independent of the underlying operating system.  Please let me know if it would be helpful to test this on Ubuntu.  I still have the old hardware described in the bug and can install a current release of Ubuntu to retest.

Thanks,

Ken
Comment 3 Andrew Crouthamel 2018-10-31 14:44:50 UTC
Thanks for the update! If you can test as described, that would be great when you get a chance. I'll mark this confirmed though.
Comment 4 Ken Taylor 2018-10-31 16:07:46 UTC
I have Ubuntu Mate 18.04 installing right now. That is the image I had handy.  I am downloading the Kubuntu 18.04 .iso and I will test on that OS just for laughs. I should have the test results later today.

Ken
Comment 5 Ken Taylor 2018-10-31 17:07:15 UTC
First test result

Installed Ubuntu Mate 18.04 on the old Dell machine
Installed all available updates and rebooted to load latest kernel
Installed K3b from the Ubuntu repository
K3b version 17.12.3 and a bunch of dependencies installed (I can provide a list if that would be helpful)
Launched K3b
top shows minimal CPU usage by K3b
Clicked on "More actions" (long button towards the bottom of the screen) and selected "New Video DVD Project"
top still shows only 0.3% CPU for K3b
At this point I clicked on Project on the menu and Clear Project. I confirmed my desire in the dialog which appeared.
The program is now unresponsive to any mouse actions. 
top shows K3b using 99 - 103% CPU
Gnome system monitor shows K3b totaling utilizing 1 of 8 virtual CPUs
Clicking on the window Close X eventually brings up the "K3b not responding" dialog. I select Force Quit and the K3b window closes.
top still shows K3b consuming 100% CPU
Gnome System Monitor still shows one virtual CPU pegged at 100%
I can end the K3b process and system utilization returns to normal

That is about all I can say about K3b on Ubuntu Mate.  I have the Kubuntu image and will install it now.

Ken
Comment 6 Ken Taylor 2018-10-31 17:49:59 UTC
I booted the computer from the Kubuntu 18.04 image in preparation to install. It occurred to me that K3b was probably already in the image. I selected "Try Kubuntu" and ran K3b 17.12.3 from the live image.  I ran the same steps described in the Ubuntu Mate test.  Upon clearing the Video DVD project I found that K3b had become unresponsive and top showed K3b utilizing 100% CPU.

I can install and test further if that would help. However, it seems the underlying issue is present on the live image.

Please let me know if I can do anything more to assist.

Ken
Comment 7 Ken Taylor 2018-11-01 17:35:59 UTC
And for my last trick :-)

I installed Kubuntu 18.04 on the Studio XPS.  K3b 17.12.3 will lock up with 100% CPU when clearing a Video DVD project - same as the other cases. I also tried creating the various other types of projects available on the selection list. I started K3b, created a project then cleared the project then closed K3b to start clean. NONE of the other types of projects caused K3b to lockup. It seems to happen ONLY with the Video DVD type project.

Ken
Comment 8 Andrew Crouthamel 2018-11-01 17:50:57 UTC
Thanks for all of you efforts!
Comment 9 Patrick Silva 2018-11-02 17:23:20 UTC
Bug is also reproducible wuth k3b 18.08.2 on Arch Linux.
Comment 10 Justin Zobel 2020-12-17 05:38:25 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 11 Patrick Silva 2020-12-17 12:18:54 UTC
I can reproduce this bug with K3b 20.12.

1. Create a new Video DVD project then add VIDEO_TS folder to the project
2. Select "Project" from the menu bar and then "Clear Project"

Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Comment 12 Bug Janitor Service 2020-12-18 00:30:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/k3b/-/merge_requests/5
Comment 13 Albert Astals Cid 2020-12-25 23:59:06 UTC
Git commit e116121108ced2136cc31492e4661eec41071916 by Albert Astals Cid.
Committed on 25/12/2020 at 23:58.
Pushed by aacid into branch 'release/20.12'.

Fix infinite loop when clearing a DVD Video project

M  +34   -13   libk3b/projects/videodvd/k3bvideodvddoc.cpp
M  +5    -1    libk3b/projects/videodvd/k3bvideodvddoc.h

https://invent.kde.org/multimedia/k3b/commit/e116121108ced2136cc31492e4661eec41071916