luasandy / mp-onlinevideos2

Automatically exported from code.google.com/p/mp-onlinevideos2
0 stars 2 forks source link

Errors after standby #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start MediaPortal and OnlineVideos
2. Go to home
3. Standby
4. Resume after some time
5. Open OnlineVideos and try to browse some sites (in my log i was trying to 
browse my own util and then YouTube)
6. Strange errors appear in the log file

Usually, this heppens when opening category, subcategory or video list. It just 
error out and no results are shown on screen (not even error). Kind of a 
problem since it requires MePo restart after each standby :) Unfortunately, 
this is production HTPC so I'm unable to debug.

Using Windows 7 with MePo SVN and OV SVN.

Log (after resume) is here: http://paste2.org/p/1233939

Original issue reported on code.google.com by mitja.skuver on 7 Feb 2011 at 11:22

GoogleCodeExporter commented 8 years ago
Looks like the background execution method (central point in the plugin) got 
out of control:
"Object synchronization method was called from an unsynchronized block of code."

I'll try to dubug this on my dev pc.

Original comment by bborgsd...@gmail.com on 8 Feb 2011 at 12:25

GoogleCodeExporter commented 8 years ago
Just tried and couldn't reproduce the error. Maybe you went into resume while 
the busy cursor was on (meaning an OnlineVideos background task running)? 

Original comment by bborgsd...@gmail.com on 8 Feb 2011 at 11:53

GoogleCodeExporter commented 8 years ago
Nope. I wasn't even in OnlineVideos when putting PC into sleep. This last time 
I didn't even load OV once before sleeping (i think the logs show deleting old 
thumbs dialog). After resume, I loaded OV and the errors started. Maybe that's 
the way to reproduce? 

I should really try this few more times to see how reproducible it is. I know 
I've seen it happen last weekend when home, then I had reports :) of it 
happening during week (twice), and this last time, when I reported it.

Is it possible some other MediaPortal plugin could interfere?

Thanks for looking into this :)

Original comment by mitja.skuver on 9 Feb 2011 at 12:10

GoogleCodeExporter commented 8 years ago
Some more info:

I have started MePo, browsed couple of sites in OV (not played anything), went 
back to home screen and put HTPC in stand by. I suppose I left it for an hour 
or maybe some more. Errors started right after wake.

Restarted MePo. Browsed in OV. Now I tried to stand by and wake after few 
seconds. No errors. I repeated procedure 3 more times with no errors. I'll 
leave it sleep now and try in the morning.

I really don't see how could the length of the sleep have anything to do with 
this but it might. Or it's a "simple" timing issue and I was just lucky not to 
get errors those 4 times I quickly tried.

Original comment by mitja.skuver on 11 Feb 2011 at 10:54

GoogleCodeExporter commented 8 years ago
The source of this problem is that some MediaPortal plugins (even built-in) 
execute background tasks and call GUI methods (worst case 
GuiWinowManager.Process or Showing a Dialog) on that thread. This means 
everything in MP runs on that background thread, but our logic for background 
execution relies on the fact that Onlinevideos is called on the main thread, 
because we call back on that thread and release a mutex.
So we have to find all plugins that have this behavior :(

Original comment by bborgsd...@gmail.com on 19 Mar 2013 at 9:25