damienhaynes / moving-pictures

Moving Pictures is a movies plug-in for the MediaPortal media center application. The goal of the plug-in is to create a very focused and refined experience that requires minimal user interaction. The plug-in emphasizes usability and ease of use in managing a movie collection consisting of ripped DVDs, and movies reencoded in common video formats supported by MediaPortal.
12 stars 6 forks source link

Random Crash From Backdrop Loading Logic (Threading Issue?) #351

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Scanning through the movies in filmstrip view
2. Sitting idle in filmstrip view with no user intervention
3. Entering MovingPictures from the main menu (using StreamedMP skin)

What is the expected output? What do you see instead?
Expecting MediaPortal/MovingPictures to not crash, but these random 
crashes occur.

What version of Moving Pictures are you using? What version of MediaPortal?
0.70, then 0.71 with same result. MP 1.0 final

Please provide any additional information below. And please attach your 
movingpictures.log and error.log files, as well as any relevant screen 
shots if possible.

I did post a screen capture in this thread http://forum.team-
mediaportal.com/general-support-51/need-help-mp-1-0-0-random-crash-vista-
54795/ and a Mediaportal log. I'll be able to update further this evening 
if it will help. 

Original issue reported on code.google.com by jim.kosi...@cuchicago.edu on 18 Feb 2009 at 4:17

GoogleCodeExporter commented 9 years ago
I think this will require a change to MediaPortal to fix, but maybe I can whip 
up a 
patch. I'll look into this.

Original comment by conrad.john on 19 Feb 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Possible fix here:
http://tinyurl.com/ar4uz3

I am having a hard time consistently reproducing this so if anyone that has 
been 
seeing this issue a lot could test the changes, I would appreciate it.

Original comment by conrad.john on 24 Feb 2009 at 4:32

GoogleCodeExporter commented 9 years ago

Original comment by conrad.john on 27 Feb 2009 at 2:10

GoogleCodeExporter commented 9 years ago
Removed milestone attribute as this is a fix to MediaPortal, not MovingPictures.

Original comment by conrad.john on 27 Feb 2009 at 8:07

GoogleCodeExporter commented 9 years ago
Submitted to SourceForge for inclusion in MediaPortal 1.0.1:
http://tinyurl.com/cggm7p

Original comment by conrad.john on 2 Mar 2009 at 6:44

GoogleCodeExporter commented 9 years ago
Issue 378 has been merged into this issue.

Original comment by conrad.john on 23 Mar 2009 at 3:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Getting a lot of reports of this issue cropping back up with people using MP 
1.0.2 
(see Issue #378). Maybe they for some reason they reverted the fix? Will 
investigate 
though.

NOTE: This is a problem with MediaPortal, not Moving Pictures. 

Original comment by conrad.john on 4 Jun 2009 at 3:09

GoogleCodeExporter commented 9 years ago
I have just done an full uninstall and clean install from MP 1.0 RC2 to MP 
1.0.2. 
Clean DB and all.

I have also experienced this problem in Moving Pictures consistantly and TV 
Series to
a lesser extent.

The interface just stops, freezes, things still appear to be happening in the
background, i.e. can hear a movie track, but no movemont on the screen.  Only 
ALT+F4
gets out.

I will add log when next it happens.

Original comment by abnormal...@gmail.com on 8 Jun 2009 at 9:37

GoogleCodeExporter commented 9 years ago
Logs attached.

Info: WXP SP3, MP 1.0.2, MovingPictures 0.7.3.623, Intel G31 Express

Any more info you need?

Original comment by abnormal...@gmail.com on 8 Jun 2009 at 1:40

Attachments:

GoogleCodeExporter commented 9 years ago
The error.log will also be helpful, thanks

Original comment by damien.haynes@gmail.com on 9 Jun 2009 at 12:12

GoogleCodeExporter commented 9 years ago

Original comment by conrad.john on 26 Jun 2009 at 5:02

GoogleCodeExporter commented 9 years ago
Issue 475 has been merged into this issue.

Original comment by conrad.john on 22 Jul 2009 at 10:16

GoogleCodeExporter commented 9 years ago
Can confirm here, anything you need to investigate further?

Original comment by StinkerI...@gmail.com on 8 Oct 2009 at 10:04

GoogleCodeExporter commented 9 years ago
I am still encountering this issue, and was wondering if any progress has been 
made.
 I am using the latest (stable) releases of MediaPortal and MovingPictures.

Last I knew it was a MediaPortal issue due to threading and asynch loading of 
the
backdrop images...is that still the main cause of the issue, or has further
information been acquired?

Original comment by jmhec...@gmail.com on 12 Nov 2009 at 10:43

GoogleCodeExporter commented 9 years ago
Ultimately this is a problem with the MediaPortal renderer. The issue that I 
found and 
fixed already was a texture being deallocated in one thread while it was being 
rendered 
in another. This was indirectly caused by the asynchronous loading logic that 
Moving 
Pictures and TV Series uses for backdrops. I created a patch for this bug and 
it was 
applied to MediaPortal as of 1.0.1.

Since then a few people have been reporting a very similar issue, but I have 
not been 
able to reproduce this or determine what is causing it. So no, not  much 
progress has 
been made. If you can provide additional debug log files that would be helpful, 
but 
what we really need is some way to reproduce (preferably in a consistent 
manner) the 
bug. Thus far none of the developers have been able to reproduce the problem at 
all 
though, post 1.0.1.

Original comment by conrad.john on 12 Nov 2009 at 10:56

GoogleCodeExporter commented 9 years ago
I am using mediaportal 1.0.1 and moving pictures 0.7.5 and I am not sure which 
TV 
Series version. Vista 64 bit, ati catalyst 9.9, 4870x2.

I have the same but much worse version of this problem. On a fresh reboot, I am 
able 
to run mediaportal fine and enter either Moving pictures or TV series fine 
about 80% 
of the time. The other 20% I get a BSOD with ATIKMDAG.sys error. The problem 
gets 
much worse if I enter either moving pictures or TV series, scroll around my 
movie or 
TV series and then go to main menu and switch to the other plugin. For example, 
if I 
enter moving pictures successfully, then I can use it without a problem. If I 
do use 
it and then go to main menu to go to TV series, then I get a BSOD 95% of the 
time. 
Vice versa is also true when entering TV series, using it, and then trying to 
go to 
Moving pictures.

I would not really care much about this bug if mediaportal would just quit, but 
I 
get a blue screen and the computer resets. I never get mediaportal just 
crashing. It 
is always a hard reset of the system.

I did not have this problem few months ago. It started happening about 3 months 
ago. 
Everytime it is a ATIKMDAG.sys error so I assume it was likely caused or made 
worse 
by one of the catalyst drivers. 

Original comment by cybtro...@gmail.com on 15 Nov 2009 at 6:56

GoogleCodeExporter commented 9 years ago
cybtropic,

After reading about your issue, I am inclined to state that this is not an 
issue with
MediaPortal, Moving Pictures, of TV Series.  

I have done some research, and it seems that there is an issue with the 64 bit
drivers for your ATI Catalyst on Windows Vista (as well as Windows 7).  I am 
unsure
of what version of the drivers you are running, but upgrading your drivers might
resolve the issue.

And on a side note, and I mean no offense by this, but you have posted in the 
wrong
area for your specific issue.  This issue (351) is about loading and unloading 
of
textures for backdrops in Moving Pictures.  Again, I mean that with no offense.

Original comment by jmhec...@gmail.com on 15 Nov 2009 at 8:33

GoogleCodeExporter commented 9 years ago
Conrad;

In the meantime (while I wait to see if MediaPortal 1.1.0 Final fixes the 
problem),
is there any way to disable the backdrops, so that I can still use Moving 
Pictures
without the crashes happening?  Or is that skin dependent?  If it is skin 
dependent,
do you know of any skins which do not utilize the backdrop?

Original comment by jmhec...@gmail.com on 17 Nov 2009 at 12:28

GoogleCodeExporter commented 9 years ago
in the movingpictures.xml...you can disable backdrop support. Look for 
something like:

  <define>#largeicons.backdrop.used:true</define>       
  <define>#smallicons.backdrop.used:true</define>       
  <define>#list.backdrop.used:true</define>         
  <define>#filmstrip.backdrop.used:true</define> 
  <define>#details.backdrop.used:true</define> 

For TVSeries, you can disable it at the Series Level from the Options Menu in 
the GUI.

Original comment by damien.haynes@gmail.com on 17 Nov 2009 at 12:35

GoogleCodeExporter commented 9 years ago
Thats what confuses me...MP TV Series works great.  I have never had this 
backdrop
issue causing problems like it does with Moving Pictures.

Original comment by jmhec...@gmail.com on 17 Nov 2009 at 12:44

GoogleCodeExporter commented 9 years ago
Can anyone else confirm this issue currently only occurs for Moving Pictures 
and NOT 
TVSeries? If this is true then it would help a lot in narrowing down where the 
issue is 
as both plugins share a lot of backdrop logic.

Original comment by conrad.john on 17 Nov 2009 at 12:48

GoogleCodeExporter commented 9 years ago
I'll try again tonight, but about a month ago it was def. occuring in both for 
me. By
"by now" do you mean with the latest MP svn I assume (I doubt it just magically 
fixed
itself)?

Original comment by StinkerI...@gmail.com on 17 Nov 2009 at 6:53

GoogleCodeExporter commented 9 years ago
Theres a first time for everything...today was the first time I ever 
encountered this
issue with TV Series.  Same behavior as Moving Pictures...it appears to have 
locked
up, seeming that closing out MP completely is the only way to fix (although you 
can
keep pressing the Play button on the remote until it plays an 
episode...stopping the
video resumes normal functionality to TV Series)

I am working on finding the options to disable the backdrop loading in TV 
Series now,
so that I can at least retain functionality with it until proper fixes (on the
Mediaportal side) are issued.

Original comment by jmhec...@gmail.com on 19 Nov 2009 at 1:22

GoogleCodeExporter commented 9 years ago
For now, TVSeries only can disable fanart from the series level but we can 
easily add
it for other levels (season,episode) for people that still experience problems.

Original comment by damien.haynes@gmail.com on 19 Nov 2009 at 1:24

GoogleCodeExporter commented 9 years ago
Damien,

With that being said, I disabled it on the series level, but and when I open up 
a
series (lets use Ally McBeal, as it is the first one listed), it does change the
backdrop (as you had mentioned, because it is on the Season level), and when
navigating to another season, it does lock up leaving me to have to navigate my 
way
around to play a video, and then stop it.

I will say that I LOVE the backdrop concept, but would love a way to disable the
backdrops completely until a workaround on the Mediaportal side of things is 
accepted
into the source tree.  I wouldn't even be against keeping the option there even 
after
the problem is resolved.  I am sure there are people out there that wouldn't 
mind
having it disabled on a permanent basis.

Original comment by jmhec...@gmail.com on 19 Nov 2009 at 1:33

GoogleCodeExporter commented 9 years ago
You can also delete the two Fanart Controls in the TVSeries.xml, this will 
completely
disable it in TVSeries.

Original comment by damien.haynes@gmail.com on 19 Nov 2009 at 1:36

GoogleCodeExporter commented 9 years ago
Worked like a charm, thanks Damien.  As always, you have been more than helpful.

Original comment by jmhec...@gmail.com on 19 Nov 2009 at 1:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by conrad.john on 31 Jan 2011 at 1:22