INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: marko on September 03, 2006, 03:53:08 am

Title: on shutdown, "please wait, saving tags, 1 remaining"
Post by: marko on September 03, 2006, 03:53:08 am
Just received this dialogue on shutdown.

I've seen it once before, when I closed, forgetting about a huge tagging job that was running at the time. I was grateful, and the dialogue cleared when the job finished.

This time, I'm not really sure what's caused it. There's a good chance that one of the files in the log was probably in the playing now list, in a paused state, at the time of shutdown.

I've checked all the files in that folder, and there are no locking handles on any of them.

The log goes like so:

General: CMCShutdownHelper::Cleanup: Start
General: CMCShutdownHelper::Cleanup: Source: CMainFrame - Close(...)
General: CMCShutdownHelper::Cleanup: Setting shutdown flags
General: CMCShutdownHelper::Cleanup: Ending background threads
General: CLoaderThread::~CLoaderThread: Start
General: CLoaderThread::~CLoaderThread: Stopping thread
General: CLoaderThread::~CLoaderThread: Clearing save timer
General: CLoaderThread::~CLoaderThread: Stopping worker threads
General: CLoaderThread::~CLoaderThread: Revoking automation
General: CLoaderThread::~CLoaderThread: Restoring system settings
General: CLoaderThread::~CLoaderThread: Finish (140 ms)
General: CMCShutdownHelper::Cleanup: Deleting frame member objects
General: CMCShutdownHelper::Cleanup: Saving data from UI
General: CMCShutdownHelper::Cleanup: Save window position
General: CMCShutdownHelper::Cleanup: Hiding UI
General: CMCShutdownHelper::Cleanup: Stopping playback
General: CMCShutdownHelper::Cleanup: Saving last exit mode
General: CMCShutdownHelper::Cleanup: Destroying UI
General: CMJFileListCtrl::OnDestroy: Start
Import: JRAnalyzer::Open: Start
Import: JRAnalyzer::AddFile: Start
Import: JRAnalyzer::AddFileImage: Start
Import: JRAnalyzer::AddFileImage: Finish (31 ms)
Import: JRAnalyzer::AddFile: Finish (94 ms)
Import: JRAnalyzer::Open: Finish (156 ms)
Reader: CLocalReader::OpenInternal: Start
Reader: CLocalReader::OpenInternal: Create: 0
Reader: CLocalReader::OpenInternal: Opening: D:\Pictures\!source\Canon\2005 - 09\IMG_0128.jpg
Reader: CLocalReader::OpenInternal: Finish (78 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128.jpg
Reader: CLocalReader::Close: Finish (78 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128.jpg
Reader: CLocalReader::Close: Finish (63 ms)
Reader: CLocalReader::OpenInternal: Start
Reader: CLocalReader::OpenInternal: Create: 0
Reader: CLocalReader::OpenInternal: Opening: D:\Pictures\!source\Canon\2005 - 09\IMG_0128.jpg
Reader: CLocalReader::OpenInternal: Finish (79 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128.jpg
Reader: CLocalReader::Close: Finish (47 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128.jpg
Reader: CLocalReader::Close: Finish (47 ms)
Import: JRAnalyzer::Open: Start
Import: JRAnalyzer::AddFile: Start
Import: JRAnalyzer::AddFileImage: Start
Import: JRAnalyzer::AddFileImage: Finish (15 ms)
Import: JRAnalyzer::AddFile: Finish (63 ms)
Import: JRAnalyzer::Open: Finish (109 ms)
Reader: CLocalReader::OpenInternal: Start
Reader: CLocalReader::OpenInternal: Create: 0
Reader: CLocalReader::OpenInternal: Opening: D:\Pictures\!source\Canon\2005 - 09\IMG_0128_edited_1.jpg
Reader: CLocalReader::OpenInternal: Finish (79 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128_edited_1.jpg
Reader: CLocalReader::Close: Finish (63 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128_edited_1.jpg
Reader: CLocalReader::Close: Finish (62 ms)
Reader: CLocalReader::OpenInternal: Start
Reader: CLocalReader::OpenInternal: Create: 0
Reader: CLocalReader::OpenInternal: Opening: D:\Pictures\!source\Canon\2005 - 09\IMG_0128_edited_1.jpg
Reader: CLocalReader::OpenInternal: Finish (62 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128_edited_1.jpg
Reader: CLocalReader::Close: Finish (32 ms)
Handheld: CWMDMInterface::~CWMDMInterface: Finish (203 ms)
Handheld: CWMDMThread::Thread: Finish (4595891 ms)
Reader: CLocalReader::OpenInternal: Start
Reader: CLocalReader::OpenInternal: Create: 1
Reader: CLocalReader::OpenInternal: Creating: D:\Pictures\!source\Canon\2005 - 09\~!~MCTEMP~!~.jpg
Reader: CLocalReader::OpenInternal: Finish (94 ms)
General: CMCShutdownHelper::Cleanup: Unloading database
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\~!~MCTEMP~!~.jpg
Reader: CLocalReader::Close: Finish (47 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\~!~MCTEMP~!~.jpg
Reader: CLocalReader::Close: Finish (31 ms)
Reader: CLocalReader::Close: Start
Reader: CLocalReader::Close: Closing: D:\Pictures\!source\Canon\2005 - 09\IMG_0128_edited_1.jpg
Reader: CLocalReader::Close: Finish (46 ms)

I end tasked media center.exe after 15 minutes.

-marko.
Title: Re: on shutdown, "please wait, saving tags, 1 remaining"
Post by: dcwebman on September 03, 2006, 12:19:34 pm
I saw this same thing in 66, but unfortunately didn't save a log. I know there were no files still needing updating because I made sure of that before I closed MC. I let it sit a few minutes and then had to use Task Manager to close it.
Title: Re: on shutdown, "please wait, saving tags, 1 remaining"
Post by: KingSparta on September 03, 2006, 06:10:17 pm
this was reported along with other problems with MC locking files in the bug thread but was exported out.

http://yabb.jriver.com/interact/index.php?topic=35541.0

there are many places MC runs into problems because they are keeping the file open and not closing the media files.
Title: Re: on shutdown, "please wait, saving tags, 1 remaining"
Post by: glynor on September 04, 2006, 01:07:51 am
Just to confirm....

I too have been having this issue quite commonly.  I'd say it happens about every other time (or maybe every third time) I shut down MC12 (I've never been able to figure out what triggers it verses what doesn't, but it could be playing a video file vs. not playing one).  The dialog never seems to go away for me, and just keeps going and going like the enterpriser bunny until I kill the process manually.

I've also mentioned it before (in one of your long shut down threads Marko (http://yabb.jriver.com/interact/index.php?topic=35536.msg242065#msg242065)).
Title: Re: on shutdown, "please wait, saving tags, 1 remaining"
Post by: marko on September 04, 2006, 02:23:04 am
yup. 36,953 milliseconds is the current record in that dept.!!
Also...
With an image in playing now, zone 2, paused, locate that image in a different viewscheme, (not playing now), select it, and shift+delete, [enter].
Instead of a perpetual, "saving tags" dialogue as mentioned here, I see a perpetual "updating database" message instead.
This dialogue locks me out of MC.
The image is never deleted.
MC must be end-tasked and then restarted.

-marko.
Title: Re: on shutdown, "please wait, saving tags, 1 remaining"
Post by: KingSparta on September 04, 2006, 05:45:55 pm
I just tried this, yep MC is trying to close but it is also trying to save the tags to a just played song.

not good.
Title: Re: on shutdown, "please wait, saving tags, 1 remaining"
Post by: Matt on September 05, 2006, 05:19:46 pm
Please test with tonight's build.  I think it's fixed.
Title: Re: on shutdown, "please wait, saving tags, 1 remaining"
Post by: glynor on September 05, 2006, 09:24:32 pm
Looks good so far.  I've been playing with it a bit and I haven't had it do it yet.  I'll try to test more later tonight...   ;D