← Back to team overview

kernel-packages team mailing list archive

[Bug 404472] Re: DVD - 'attempt to access beyond end of device'

 

I'd like to re-open this bug.  I'm reproducing it on Ubuntu Gnome 13.04 Raring  64 bit.
Totally reproducible but this is what you initially observe
VLC stops playing a DVD about an hour into the film with the error
Playback failure:
DVDRead could not read 0/4 blocks at 0x200b8b.

If you look in syslog you see that it is because the player (VLC in this case but actually ALL players do the same) has tried to read past the last block in the DVD
Nov  1 23:03:23 aspire kernel: [ 3255.571794] sr 5:0:0:0: [sr0]  
Nov  1 23:03:23 aspire kernel: [ 3255.571795] Sense Key : Not Ready [deferred] 
Nov  1 23:03:23 aspire kernel: [ 3255.571799] sr 5:0:0:0: [sr0]  
Nov  1 23:03:23 aspire kernel: [ 3255.571802] Add. Sense: Medium not present - tray open
Nov  1 23:03:23 aspire kernel: [ 3255.571805] sr 5:0:0:0: [sr0] CDB: 
Nov  1 23:03:23 aspire kernel: [ 3255.571806] Read(10): 28 00 00 00 01 08 00 00 01 00
Nov  1 23:03:23 aspire kernel: [ 3255.571815] end_request: I/O error, dev sr0, sector 1056
Nov  1 23:03:23 aspire kernel: [ 3255.572795] sr 5:0:0:0: [sr0] Unhandled error code
Nov  1 23:03:23 aspire kernel: [ 3255.572799] sr 5:0:0:0: [sr0]  
Nov  1 23:03:23 aspire kernel: [ 3255.572801] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov  1 23:03:23 aspire kernel: [ 3255.572803] sr 5:0:0:0: [sr0]  
Nov  1 23:03:23 aspire kernel: [ 3255.572805] Sense Key : Not Ready [deferred] 
Nov  1 23:03:23 aspire kernel: [ 3255.572809] sr 5:0:0:0: [sr0]  
Nov  1 23:03:23 aspire kernel: [ 3255.572811] Add. Sense: Medium not present - tray open
Nov  1 23:03:23 aspire kernel: [ 3255.572814] sr 5:0:0:0: [sr0] CDB: 
Nov  1 23:03:23 aspire kernel: [ 3255.572815] Read(10): 28 00 00 00 01 08 00 00 01 00
Nov  1 23:03:23 aspire kernel: [ 3255.572824] end_request: I/O error, dev sr0, sector 1056
Nov  1 23:03:38 aspire kernel: [ 3270.315777] VFS: busy inodes on changed media or resized disk sr0
Nov  1 23:04:02 aspire kernel: [ 3294.082271] attempt to access beyond end of device
Nov  1 23:04:02 aspire kernel: [ 3294.082276] sr0: rw=0, want=12617616, limit=8629440
Nov  1 23:04:02 aspire kernel: [ 3294.082280] attempt to access beyond end of device
Nov  1 23:04:02 aspire kernel: [ 3294.082281] sr0: rw=0, want=12617592, limit=8629440
Nov  1 23:04:02 aspire kernel: [ 3294.182922] attempt to access beyond end of device

REASON:
It appears to be because the DVD you are attempting to play has more data than the one you just ejected and for some reason the length has not been updated so the DVD player "falls off the end".

Here is how to reproduce it

1) Reboot Linux
2) Put in a DVD that is quite short.  Mine is called RORY"
3) Navigate to it with the file explorer.  The DVD is correctly labled RORY on the left.
4) If you press <control>+L you can see it has been mounted to /media/andrew/RORY
5) Press the eject button ON THE DVD PLAYER
6) Take out the DVD and put in another DVD.  Mine is called OCEANS_TWELVE
7) Close the DVD tray and navigate to it with file explorer.  The DVD is correctly labled OCEANS_TWELVE on the left.

BUT
8) If you press <control>+L you can see it IS STILL MOUNTED AT  /media/andrew/RORY
9) Try to play with ANY dvd player and skip to near the end of the DVD.  

If the DVD you have in is longer than the DVD you ejected it will crash

WORKAROUND
Repeat steps 1 to 9 above but in step 5 press the eject button in the file explorer.  The DVD gets properly unmounted and when you put in the new DVD the file label and mount point are the same.  When you play the DVD it works properly.

The reason people are reporting that rebooting works is because when you
reboot, the DVD you are trying to play is the first DVD that Linux sees
and it gets mounted properly

THIS HAS BEEN DRIVING ME MAD FOR MONTHS.  EVERY TIME WE WATCH A DVD IT
STOPS AFTER PLAYING!!

Now I realise all I have to do is properly unmount it and remount it and
everything is hunky dory.

So I think the only fix required is to make sure that DVDs get properly
UNMOUNTED when you hard eject using the DVD player eject button.  Being
a noob I have absolutely NO idea how to do that.

Fixes anyone?  Anyone find that my steps above DON'T work please make
sure that the first DVD is shorter than the second one otherwise you
won't experience the same behaviour.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/404472

Title:
  DVD - 'attempt to access beyond end of device'

Status in “linux” package in Ubuntu:
  Expired

Bug description:
  My wife is a DVD maven, and has been watching DVDs using an AMD64x2
  shuttle running Jaunty Mythbuntu. After watching a DVD for some time,
  it the player will about somewhere near the end of the DVD, usually
  with the last 2 chapters being unplayable.

  Using Ubuntu linux-image-2.6.28-13-generic via libata sr0 device AND
  kernel.org 2.6.30.2 /dev/hdc IDE device xine will stop suddenly, with
  a "libdvdread: Can't seek to block XXXXX" - some large number.  Also
  mounting DVD and reading last VOB file on disk results in:

  UDF-fs: Partition marked readonly; forcing readonly mount
  UDF-fs INFO UDF: Mounting volume 'LHOP_2_VOL3', timestamp 2004/10/05 01:52 (1000)
  attempt to access beyond end of device
  hdc: rw=0, want=14685476, limit=8388604
  Buffer I/O error on device hdc, logical block 3671368
  attempt to access beyond end of device
  hdc: rw=0, want=14685480, limit=8388604
  Buffer I/O error on device hdc, logical block 3671369
  attempt to access beyond end of device
  hdc: rw=0, want=14685484, limit=8388604
  Buffer I/O error on device hdc, logical block 3671370
  attempt to access beyond end of device
  hdc: rw=0, want=14685488, limit=8388604
  Buffer I/O error on device hdc, logical block 3671371
  attempt to access beyond end of device
  hdc: rw=0, want=14685492, limit=8388604
  Buffer I/O error on device hdc, logical block 3671372
  attempt to access beyond end of device
  hdc: rw=0, want=14685496, limit=8388604
  Buffer I/O error on device hdc, logical block 3671373
  attempt to access beyond end of device
  hdc: rw=0, want=14685500, limit=8388604
  Buffer I/O error on device hdc, logical block 3671374
  attempt to access beyond end of device
  hdc: rw=0, want=14685504, limit=8388604
  Buffer I/O error on device hdc, logical block 3671375
  attempt to access beyond end of device
  hdc: rw=0, want=14685476, limit=8388604
  Buffer I/O error on device hdc, logical block 3671368
  attempt to access beyond end of device
  hdc: rw=0, want=14685480, limit=8388604
  Buffer I/O error on device hdc, logical block 3671369

  This has happened repeatedly.  I have swapped the DVD writer out, and
  it still happens.

  Here is debug information:

  shalom: -grantma- [~] 
  $ uname -a
  Linux shalom 2.6.30-amd64-mag #1 SMP PREEMPT Wed Jul 22 19:00:37 NZST 2009 x86_64 GNU/Linux

  shalom: -grantma- [~] 
  $ 

  This bug occurs with both linux-image-2.6.28-13-generic (/dev/sr0) AND
  my own kernel based on 2.6.30.2 kernel.org source (/dev/hdc) - There
  is a real repeatable problem here - you have to sit down and watch
  hours of DVD to find it.  This occurred with a Pioneer DVR-110D  and
  an LG GH22LP20 DVD writers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/404472/+subscriptions