VLC causes process to continuing running on exit (Windows)

Bug #870879 reported by Samuel Findlay
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Medium
Jonathan Corwin

Bug Description

OpenLP 1.9.7, Windows 7 Home Premium x64

Steps:
1. Open Task Manager and check no OpenLP processes
2. Launch OpenLP
3. Exit OpenLP
4. OpenLP process still running in Task Manager. It does not self-terminate after any amount of time. There are two processes, approx 80MB and 700KB RAM.

Shut down section of debug log (last 27 lines):
2011-10-09 05:02:16,388 openlp.core.ui.servicemanager DEBUG Cleaning up servicePath
2011-10-09 05:02:16,390 openlp.core.ui.mainwindow INFO cleanup plugins
2011-10-09 05:02:16,390 openlp.core.lib.pluginmanager INFO finalising plugins
2011-10-09 05:02:16,391 songs.songsplugin INFO Songs Finalising
2011-10-09 05:02:16,392 openlp.core.ui.mediadockmanager DEBUG remove Songs dock
2011-10-09 05:02:16,450 openlp.core.lib.pluginmanager INFO Finalisation Complete for songs
2011-10-09 05:02:16,450 bibles.bibleplugin INFO Plugin Finalise
2011-10-09 05:02:16,450 openlp.core.ui.mediadockmanager DEBUG remove Bibles dock
2011-10-09 05:02:16,500 openlp.core.lib.pluginmanager INFO Finalisation Complete for bibles
2011-10-09 05:02:16,500 presentations.presentationplugin INFO Plugin Finalise
2011-10-09 05:02:16,502 openlp.core.ui.mediadockmanager DEBUG remove Presentations dock
2011-10-09 05:02:16,512 openlp.core.lib.pluginmanager INFO Finalisation Complete for presentations
2011-10-09 05:02:16,512 openlp.core.ui.mediadockmanager DEBUG remove Images dock
2011-10-09 05:02:16,520 openlp.core.lib.pluginmanager INFO Finalisation Complete for images
2011-10-09 05:02:16,520 openlp.core.ui.mediadockmanager DEBUG remove Media dock
2011-10-09 05:02:16,530 openlp.core.lib.pluginmanager INFO Finalisation Complete for media
2011-10-09 05:02:16,532 custom.customplugin INFO Custom Finalising
2011-10-09 05:02:16,532 openlp.core.ui.mediadockmanager DEBUG remove Custom Slides dock
2011-10-09 05:02:16,538 openlp.core.lib.pluginmanager INFO Finalisation Complete for custom
2011-10-09 05:02:16,538 songusage.songusageplugin INFO Plugin Finalise
2011-10-09 05:02:16,539 openlp.core.lib.pluginmanager INFO Finalisation Complete for songusage
2011-10-09 05:02:16,539 alerts.alertsplugin INFO Alerts Finalising
2011-10-09 05:02:16,539 openlp.core.lib.pluginmanager INFO Finalisation Complete for alerts
2011-10-09 05:02:16,539 remotes.remoteplugin DEBUG finalise
2011-10-09 05:02:16,539 openlp.plugins.remotes.lib.httpserver DEBUG close http server
2011-10-09 05:02:16,540 openlp.core.lib.pluginmanager INFO Finalisation Complete for remotes
2011-10-09 05:02:16,540 openlp.core.ui.mainwindow DEBUG Saving QSettings

Tags: vlc windows

Related branches

Revision history for this message
Samuel Findlay (sfindlay) wrote :
Revision history for this message
matysek (mzibricky) wrote :

having two processes is ok

Revision history for this message
Stevan Pettit (elderp-deactivatedaccount) wrote :

I do not see this behavior. (I do the Windows builds).

OpenLP appears under "Applications", and there are 2 "Processes" created. As soon as I exit OpenLP, all three items are removed from taskmanager.

I'm running WIn 7 Pro.

I'd be curious what Process Explorer shows.

Also, what happens if you try to launch OpenLP again?

Revision history for this message
Samuel Findlay (sfindlay) wrote :

@maystek - Yep I understand that two processes is fine. The issue is that after OpenLP is closed, the processes remain in memory indefinitely (no CPU usage, but the same RAM usage as when the program was running).

@Stevan - When OpenLP is closed, it is removed from the "Applications" tab, but the two processes remain indefinitely.
* If the larger of the processes (~80MB) is ended manually from task manager, then both processes disappear immediately without any resistance.
* If the smaller one (688KB) is ended manually, the larger one remains and must also be ended manually.

If you try to launch OpenLP again while the old processes are still there, it runs as normal. That is, it acts as if those old processes weren't there and just creates two more. If OpenLP is opened and closed x times, all the processes remain in memory such there are 2x processes. And approx 80x MB remains occupied.

What info from Process Explorer would you be after? The state is shown as "Wait:UserRequest"

Revision history for this message
Samuel Findlay (sfindlay) wrote :

The same issue seems to occur when running directly from trunk. In this case, the single "pythonw.exe" process remains in memory after OpenLP is closed, occupying about 88MB.

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

I haven't seen this behaviour on any of the Win 7 machines I've run OpenLP on, which makes it difficult to fix without knowing exactly what causes it.

Changed in openlp:
status: New → Incomplete
Revision history for this message
Samuel Findlay (sfindlay) wrote :

I'm still seeing this issue on my win7 machine, both with beta release 1.9.8 and nightly build 1893. I also see it with the pythonw process when running from trunk.

Seems like it might be fairly unique to my machine, but I'm keen to try and figure it out. What should I look at Stevan? Which info in Process Explorer could help?

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

I'm getting this now, I don't know what I've changed to cause it though. Happens when running the exe, and when I run from the command prompt.

Changed in openlp:
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
Jonathan Corwin (j-corwin) wrote :

My problem started with r1874 - VLC support.

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

The cause in my case appears to be the vlc.get_default_instance(), perhaps it needs releasing somewhere.

tags: added: windows
tags: added: vlc
summary: - process continues running on exit
+ VLC causes process to continuing running on exit (Windows)
Revision history for this message
Jonathan Corwin (j-corwin) wrote :

I've just upgraded to the latest VLC (2.0.1) and the problem seems to have gone for me.

Revision history for this message
Samuel Findlay (sfindlay) wrote :

I've upgrade VLC to 2.0.1, but I'm still seeing this issue.
Jonathan, how did you discover/confirm that your issue lay with VLC?

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

Hmm, OK I might have to change my mind. The problem is still there. Perhaps I was running an exe that wasn't loading VLC and I got excited when it closed down correctly.

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

I'm unchanging my mind again. The VLC causing the hanging issue (with latest VLC) seems to be cured. However there is a new reason for the process hanging which appears to have been introduced at r1976. At least for me.

http://bazaar.launchpad.net/~openlp-core/openlp/trunk/revision/1976

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

OK, I think I may have fixed this in lp:~j-corwin/openlp/bug-870879

Revision history for this message
Samuel Findlay (sfindlay) wrote : Re: [Bug 870879] Re: VLC causes process to continuing running on exit (Windows)
Download full text (3.5 KiB)

I've tested this branch (remotely) and it solves the issue for me too.
Bravo!
On Jun 19, 2012 8:21 AM, "Jonathan Corwin" <email address hidden>
wrote:

> OK, I think I may have fixed this in lp:~j-corwin/openlp/bug-870879
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/870879
>
> Title:
> VLC causes process to continuing running on exit (Windows)
>
> Status in OpenLP - Worship Presentation Software:
> Confirmed
>
> Bug description:
> OpenLP 1.9.7, Windows 7 Home Premium x64
>
> Steps:
> 1. Open Task Manager and check no OpenLP processes
> 2. Launch OpenLP
> 3. Exit OpenLP
> 4. OpenLP process still running in Task Manager. It does not
> self-terminate after any amount of time. There are two processes, approx
> 80MB and 700KB RAM.
>
> Shut down section of debug log (last 27 lines):
> 2011-10-09 05:02:16,388 openlp.core.ui.servicemanager
> DEBUG Cleaning up servicePath
> 2011-10-09 05:02:16,390 openlp.core.ui.mainwindow
> INFO cleanup plugins
> 2011-10-09 05:02:16,390 openlp.core.lib.pluginmanager
> INFO finalising plugins
> 2011-10-09 05:02:16,391 songs.songsplugin
> INFO Songs Finalising
> 2011-10-09 05:02:16,392 openlp.core.ui.mediadockmanager
> DEBUG remove Songs dock
> 2011-10-09 05:02:16,450 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for songs
> 2011-10-09 05:02:16,450 bibles.bibleplugin
> INFO Plugin Finalise
> 2011-10-09 05:02:16,450 openlp.core.ui.mediadockmanager
> DEBUG remove Bibles dock
> 2011-10-09 05:02:16,500 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for bibles
> 2011-10-09 05:02:16,500 presentations.presentationplugin
> INFO Plugin Finalise
> 2011-10-09 05:02:16,502 openlp.core.ui.mediadockmanager
> DEBUG remove Presentations dock
> 2011-10-09 05:02:16,512 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for presentations
> 2011-10-09 05:02:16,512 openlp.core.ui.mediadockmanager
> DEBUG remove Images dock
> 2011-10-09 05:02:16,520 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for images
> 2011-10-09 05:02:16,520 openlp.core.ui.mediadockmanager
> DEBUG remove Media dock
> 2011-10-09 05:02:16,530 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for media
> 2011-10-09 05:02:16,532 custom.customplugin
> INFO Custom Finalising
> 2011-10-09 05:02:16,532 openlp.core.ui.mediadockmanager
> DEBUG remove Custom Slides dock
> 2011-10-09 05:02:16,538 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for custom
> 2011-10-09 05:02:16,538 songusage.songusageplugin
> INFO Plugin Finalise
> 2011-10-09 05:02:16,539 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for songusage
> 2011-10-09 05:02:16,539 alerts.alertsplugin
> INFO Alerts Finalising
> 2011-10-09 05:02:16,539 openlp.core.lib.pluginmanager
> INFO Finalisation Complete for alerts
> 2011-10-09 05:02:16,539 remotes.remoteplugin
> DEBUG finalise
> 2011-10-09 05...

Read more...

Changed in openlp:
assignee: nobody → Jonathan Corwin (j-corwin)
milestone: none → 1.9.10
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.