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

Removable Sata drives not detected #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Scan in 2 or more sata drives via the same port.
2. Run mediaportal/moving-pictures
3. Attempt to play film from a drive not currently mounted, mp will ask for
drive
4. Remove current sata drive and insert correct drive (while mediaportal is
running).
5. Moving-pictures will not acknowledge correct sata drive is present

What is the expected output? What do you see instead?

Moving-pictures should be able to tell if a sata drive has been replaced by
another or if the correct drive has been plugged into a different port.
When scanning in drives all the required info is collected fine,
media_label, volume_serial etc. Films can be accessed fine from MyVideos
after swapping drives. However since moving-pictures treats hard drives as
fixed it can't presently cope with removable sata drives.

What version of Moving Pictures are you using? What version of MediaPortal?

0.7.1

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.

Sata drives are easily hot plugged now, although you may need to use the
app Hotswap! to do so safely (I use it via MyPrograms to safely unmount
drives). In fact most modern motherboards have eSata ports now too for this
very purpose.

Hotswap!:http://mysite.verizon.net/kaakoon/hotswap/index_enu.htm

Original issue reported on code.google.com by rgeg...@fastmail.fm on 20 Feb 2009 at 1:40

GoogleCodeExporter commented 9 years ago
Can you please reproduce and post some debug logs?

Original comment by apond...@gmail.com on 20 Feb 2009 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by apond...@gmail.com on 20 Feb 2009 at 9:18

GoogleCodeExporter commented 9 years ago
fyi, we will probably add every drive to the watcher now if these sata drives 
are
indeed typed as FIXED.

Original comment by apond...@gmail.com on 20 Feb 2009 at 10:49

GoogleCodeExporter commented 9 years ago
Attached are some logs files as requested, I've included the logs taken while 
running
0.7.1. I've also added some taken while running a build I compiled myself 
earlier
today as that includes more info.

In both cases a film is started successfully, I then try to start a film that 
is on
another drive. Moving-pictures asks for this drive, it's inserted and picked up 
on by
windows but moving-pictures doesn't detect the change. 

Original comment by rgeg...@fastmail.fm on 21 Feb 2009 at 2:08

Attachments:

GoogleCodeExporter commented 9 years ago
I see you have compiled your version from SVN (however you compiled the trunk 
which
is 0.8 and the code that is suppose to fix your problem is in the branch ;) )
If you are up for it you can compile from the 0.7 branch and see if it fixes 
your
problem. Try to repeat the exact same scenario and post logs.

Original comment by apond...@gmail.com on 21 Feb 2009 at 11:32

GoogleCodeExporter commented 9 years ago
Ok managed to get the 0.7 trunk compiled and running ;)

Still a problem but it's acting in a predictable way now. Basically I can scan 
in
more than 1 drive on the same sata port (using the same drive letter) and have 
all
the correct info added to the database. But when it comes to playback 
moving-pictures
will only ever acknowledge the first drive it sees.

If I start with a drive attached it will playback any film on that drive. I can
unmount and re-mount (that drive) as often as I like and it will correctly ask 
for
and then see that drive.

If I start without a drive attached it will ask for and acknowledge the first 
drive I
try to play from and then I can again unmount and re-mount (that drive) as many 
times
as as I like.

In both cases however if I then ask to playback a film from the second drive it 
will
ask for it but not see it once it's been mounted in place of the first one. I 
can go
back to the first drive and playback films from there again but not any other 
drive I
mount.

I've attached all the log files generated whilst importing and attempting 
playback. I
imported both drives, played a film on drive 1, attempted playback of a film 
from
drive 2 (moving-pictures asks for the drive but fails to see it) then went back 
and
played back the same film on drive 1 again (successfully).

If I've made an error again just let me know ;) Plus I hope I haven't 
over-described
the problem ;) Cheers for looking at it too as I know removable sata drive 
support
probably isn't high on the list of priorities.

Original comment by rgeg...@fastmail.fm on 21 Feb 2009 at 6:36

Attachments:

GoogleCodeExporter commented 9 years ago
Ok managed to get the 0.7 branch*

Original comment by rgeg...@fastmail.fm on 21 Feb 2009 at 6:37

GoogleCodeExporter commented 9 years ago
Thanks for the information this is the kind of feedback we like :)

Looks like drive F: (which your disk is using) is still not added properly to 
the
DiskWatcher i will investigate.

Original comment by apond...@gmail.com on 21 Feb 2009 at 10:01

GoogleCodeExporter commented 9 years ago
I forgot a line :/  I committed some extra logging too.. 
You should update, rebuild and try again.. i can supply you with a test dll but 
it
seems like you know your way around with SVN so that would be faster.

Original comment by apond...@gmail.com on 21 Feb 2009 at 11:07

GoogleCodeExporter commented 9 years ago
Ok just some information about how you should test.. be sure to build from the 
0.7
branch and r530. 

1) Delete your database (or rename it just for the test)
2) Start the plugin configuration
3) Add your SATA import path (i believe it was drive E:)
4) Import should start for current SATA hdd - complete it.
5) Remove the SATA hdd
6) Insert the other SATA hdd
7) Import should start for the other SATA hdd - complete it.
8) Close down the plugin configuration
9) Start Mediaportal and start playing movies and swap your disks in between to 
see
if moving pictures responds correctly

Original comment by apond...@gmail.com on 22 Feb 2009 at 1:48

GoogleCodeExporter commented 9 years ago
oops i forgot:

8b: Save the movingpictures.log and name it movingpictures-initial-import.log.
10: Save the movingpictures.log after closing down mediaportal and name it
movingpictures-gui.log.

You can attach the logs afterwards with the rest of your feedback in this issue 
and i
hope this will finally solve the problem :)

Original comment by apond...@gmail.com on 22 Feb 2009 at 1:50

GoogleCodeExporter commented 9 years ago
I had a very quick test last night, and it seemed to work fine (was very 
pleased!).
However that was using my old database and without any proper logging. Will do a
proper test today and take some logs. Thanks.

Original comment by rgeg...@fastmail.fm on 22 Feb 2009 at 3:06

GoogleCodeExporter commented 9 years ago
i will close the issue now but i'm still awaiting your logs before i verify it 
:)

Original comment by apond...@gmail.com on 23 Feb 2009 at 11:29

GoogleCodeExporter commented 9 years ago
Ok ran into a slight problem today attempting to collect some logs for you.

Whenever I click on a film that is unavailable I get asked for the drive. After
inserting the drive the film (usually) automatically plays. However the playback
controls are then unresponsive, after some random clicking I hit F9 and the
Moving-pictures context menu popped up. It seems as if the moving-pictures gui 
still
has focus rather than the playing film. On my Vista box I can hit Enter and the 
film
will restart and the movie will have focus and all is fine. The same on my xp 
box but
I have to hit an arrow button then enter.

I tested this with a variety of setups, Mediaportal 1.0 through to the latest 
svn
build as well as moving-pictures 0.7.1 release and a 0.7 branch build from 
today.
Happens regardless of skin used too.

It's not just upon inserting sata drives. I wrote two dvdrs, each with an xvid 
avi,
scanned them into the database and it happens when one of those is requested 
too.
Playing a film when the dvdr is already inserted and all is fine. But if I 
eject and
try to play I get the pop-up window asking me to insert, it's this that seems to
cause the problem, if I insert the dvdr/sata drive and let moving-pictures 
detect and
auto-play that is when I get the above described problem. Sometimes I don't 
even see
the film play but can hear audio and have to kill the mediaportal process and 
restart.

I'm guessing this is unrelated to my eSata drive problems and is a general 
removable
media bug but I'll let a dev decide that.

Attached is a log, I ran moving-pictures with the dvdr ejected, clicked on the 
film
and it asked me for the disc. I inserted the dvdr and the film started playing,
controls are then unresponsive. Hit the up arrow and then enter, film restarted 
and
the controls are now responsive. Stopped film, selected it again keeping the 
dvdr in
and the film played.

I was hesitant to report this tbh since no one else seems to have this problem, 
but
it happens on both my machines and with both my sata drives and dvdr's. Perhaps
others just aren't using removable media much ;)

It's only when the pop-up box appears and moving-pictures auto-plays after 
inserting
that it happens. If you cancel the pop-up then insert the disc and then all is 
fine.

Original comment by rgeg...@fastmail.fm on 23 Feb 2009 at 5:00

Attachments:

GoogleCodeExporter commented 9 years ago
Can you still confirm that your original issue (#361) is solved with the current
branch revision?

For the dialog/autoplay problem i created a new issue (Issue #366), so continue 
the
discussing over there.

Original comment by apond...@gmail.com on 23 Feb 2009 at 7:09

GoogleCodeExporter commented 9 years ago
Yes I think I can confirm that this is now solved, I have some last remaining 
issues
which are preventing me from taking logs at the moment but I don't think they 
are
related directly to this.

Original comment by rgeg...@fastmail.fm on 23 Feb 2009 at 9:05