View Full Version : Run-time error '9' - Subscript out of range
Craz
1st February 2005, 22:54
Hi,
I know there are a few topics on this. But there doesn't seem to be a solid solution for it.
Maybe my situation can give some peopel more insight to form a cause & solution.
I have done many dvds in the past using dvdrebuilder without problems (v0.69).
Today I suddenly got an error while processing a episode DVD.
First I had a problem ripping the dvd with dvddecrypter (latest version: v. 3.5.2.0). It gave me a read error at 14%. Then I tried ripping it with my dvdwriter in stead of my dvdreader, and that worked fine.
After mounting the iso with daemon tools I ran dvdrebuilder (first v0.69 then v0.70 with same problem) in one button mode.
I pushed the transcode button and dvdrb was doing it's job.
There were 4 VTS to process (VTS_02 / VTS_03 / VTS_10 / VTS_11) and one audio stream (dutch).
DVDrb processed each VTS and then after processing VTS_11 (the last one and the point where CCE should start) I got the famous Runtime '9' error.
I tried another PC and also reripping the DVD in IFO mode but still no joy.
At the point of the error these are the last lines in the dvdrb logwindow:
- VTS_11: 995.047 sectors.
-- Scanning and writing .D2V file
-- Processed 67.030 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 54,5%
- Overall Bitrate : 3.160Kbs
- Space for video : 4.035.756KB
I've read something about a workaroud: http://forum.doom9.org/showthread.php?s=&threadid=75168&perpage=20&pagenumber=6
But I get the error at the point CCE should start so I don't think that workaround counts in my situation?
I tried to play the iso in powerdvd and that works fine.
Maybe anyone that has some advice on things that I could try out ?
The contents of my dvdrebuilder.ini file are:
[Options]
CCE=0
LoadPlugin=1
OneClick=1
RemoveDTS=0
Completed=22
ReduceOpt=3
BackColor=14737632
idct7Opt=1
EncoderMinimized=1
Skin=Windows Standard
[Paths]
CCEBasic=C:\rebuilder\CCE\EclCCE.exe
CCE250=C:\rebuilder\CCE\EclCCE.exe
CCENEW=C:\rebuilder\CCE\EclCCE.exe
MPEG2DEC=C:\rebuilder\MPEG2Dec3dg.dll
Source=G:\VIDEO_TS\
Working=C:\MyDVD\
DECOMB=C:\rebuilder\rm\Decomb521.dll
[Setup]
Language11111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111
[CCEOptions]
VBR_bias=25
Quality_prec=16
eclPasses=6
[Audio]
Selected=1111
Rockas
1st February 2005, 23:02
Your problem is the skin you're using lol
Now seriously... why don't you try and put the file DGDecode.dll on your Avisynth's plugin folder ond set the path of decoder to it instead of using MPEG2Dec3dg.dll (if you want to use it put it on the avisynth's plugin folder aswell)?
This may not solve your problems but can avoid other.
Have you tried my intaller to configure Rebuilder?
I know this may not help at all but that's how I have confugured my DVD Rebuilder and never got any errors!!!
robot1
1st February 2005, 23:08
Originally posted by Craz
I tried another PC and also reripping the DVD in IFO mode but still no joy.
Never rip in IFO mode.
If you want, you can test ripping in FILE mode.
Craz
1st February 2005, 23:23
@Rockas: I'll try your installer.
@robot1: I'll try to rip in File mode and see what it gives me.
To be continued... ;)
Craz
2nd February 2005, 00:13
After using the installer of Rockas and ripping in File Mode still same problem.
dannyv
2nd February 2005, 15:26
Originally posted by Craz
[Paths]
CCEBasic=C:\rebuilder\CCE\EclCCE.exe
CCE250=C:\rebuilder\CCE\EclCCE.exe
CCENEW=C:\rebuilder\CCE\EclCCE.exe
MPEG2DEC=C:\rebuilder\MPEG2Dec3dg.dll
Source=G:\VIDEO_TS\
Working=C:\MyDVD\
DECOMB=C:\rebuilder\rm\Decomb521.dll
Which version of cce are you using and are you using decomb?
Try using cce 2.50 and don't use decomb. Also make sure your using the latest dgdecode which should be dated 6/7/04.
Also don't rip the file in ISO mode do it in file mode. And don't do any pre-processing such as removing unwanted extras or video.
The idea here is to do the process the way RB was designed to do it. Once we determine what the problem is we can always go back and edit.
Craz
2nd February 2005, 19:27
- I've ripped the DVD in file mode.
- I'm using DVDRB v0.70.
- I'm using CCE 2.5 (also tried v2.67 before with same problem)
- I'm not using decomb
- I have not done any preprocessing.
Result: runtime error '9'... again.
Seems like a nasty problem somewhere :(
dannyv
2nd February 2005, 20:04
Originally posted by Craz
- I've ripped the DVD in file mode.
- I'm using DVDRB v0.70.
- I'm using CCE 2.5 (also tried v2.67 before with same problem)
- I'm not using decomb
- I have not done any preprocessing.
Result: runtime error '9'... again.
Seems like a nasty problem somewhere :(
Sorry I must be blind I should have read your configuration a bit more carefully.
Delete your eclcce.ini file then run eclcce.exe again and point it to the cce version 2.50 executable and try it again.
Looking at your rebuilder configuration you have ecl for all versions of cce pointing to the same ecl file. You need a seperate eclcce.exe for each version of cce that you run. You can't run them all from the same executable.
Also I see your running MPEG2Dec3dg.dll as your decoder. Download dgdecode and use that. http://www.doom9.org/Soft21/Decoders/dgmpgdec110.zip
Replace MPEG2Dec3dg.dll which should be located in your avisysth2 plugin directory with dgdecode.dll located in the zip file and in RB setup point "decoder" to that file.
Craz
2nd February 2005, 20:53
Ok, I ran eclcce.exe and pointed to my cce v2.5 and used the dgdecode.dll but same problem keeps returning.
TheSeeker
2nd February 2005, 21:05
You seem to be running out of things to try so in desperation I will suggest you intentionally preprocess this dvd. Sometime running it through dvd remake or ifoedit can help fix a few small things just enough to get it to run through RB. The way I figure it is you know the unaltered files wont work so you might as well try altering them so that they do work. Its a small chance but you never know... it may work.
dannyv
2nd February 2005, 21:12
Originally posted by TheSeeker
You seem to be running out of things to try so in desperation I will suggest you intentionally preprocess this dvd. Sometime running it through dvd remake or ifoedit can help fix a few small things just enough to get it to run through RB. The way I figure it is you know the unaltered files wont work so you might as well try altering them so that they do work. Its a small chance but you never know... it may work.
Or you can try running the whole disk through shrink uncompressed. then try RB.
Craz
2nd February 2005, 22:12
I've just imported the video_ts folder (the file mode ripped folder) into dvdremake and exported it again (didn't do anything).
But that doesn't solve it.
Will try dvdshrink tomorrow ;)
Rockas
2nd February 2005, 22:41
Why don't you try another ripper, like smartripper or vStrip?
Craz
3rd February 2005, 18:57
Tried dvdshrink and after that the new DVDRB (v0.72) but same problem.
I'll take a look at those two rippers, never used them before.
Do they support CCE encoding ?
dannyv
3rd February 2005, 19:07
Originally posted by Craz
Tried dvdshrink and after that the new DVDRB (v0.72) but same problem.
I'll take a look at those two rippers, never used them before.
Do they support CCE encoding ?
You said you had a problem with shrink? What was it? If your having a problem with shrink then its a mastering error or corruption on the original DVD and there is not much you can do about it. Have you watched the original to see if it screws up in your set top player?
Craz
3rd February 2005, 19:46
Don't have a problem in Shrink but when i open my disc and save it in shrink (no compression) and try to use that file (nrg file) with DVDRB I keep getting the runtime error 9.
jptheripper
3rd February 2005, 20:30
dvdrb doesnt read image files directly, you have to mount them with a virtual drive.
Craz
3rd February 2005, 20:40
Yeah I know, i'm using daemon tools for that.
Craz
5th February 2005, 12:52
I've tried the good old "Big 3" method to get this DVD done and that works perfect on this disc (using the iso image I had in the first place).
So I can advice to everyone having the same problem to use the Big 3 method for these discs. :D
Thanks all for your help and advice!
jdobbs
5th February 2005, 13:33
Could you take a look in your REBUILDER.INF file and see what it says for Progress=X? I want to see if you got the error at the end of the PREPARE phase or the beginning of ENCODE. Also, could you disable the "ReduceBy" option and see if that has an impact?
Thanks.
[Added] Actually you never got the "Phase I, PREPARATION completed in..." line so you must have been in PREPARE. Please try the "ReduceBy"....
Craz
5th February 2005, 14:22
After DVDRB has finished VTS_11 and gives me the runtime '9' error these are the contents of the dvdrebuilder.inf file:
[Status]
mode=1
Original_Size=3920100
Excluded_Audio_Sub_Size=0
VTS_02_SIZE=965338
VTS_03_SIZE=919538
After that I changed ReducedOpt = 3 tot ReducedOpt = 0 (don't know if that's what you mean by disable ReduceBy option?).
Then dvdrebuilder.inf looks like this:
[Status]
mode=1
Original_Size=3920100
Excluded_Audio_Sub_Size=0
VTS_02_SIZE=965338
VTS_03_SIZE=919538
Maybe interesting point is that DVDRB processes VTS_02, VTS_03, VTS_10 and VTS_11 of my disc but only the first two are in the inf file? Another interesting point is that there is no Progress=x like you've asked for.
Am i getting somewhere or not? :)
jdobbs
5th February 2005, 14:43
That helps. It means it crashed during PREPARE before the "Progress=" value was written.
So when you set "ReduceOpt=0" it still crashes at the same point? Hmm...
Are you saying the "Video Title Sets" listbox shows four VTS's to be processed, or that there are four in the source directory?
Craz
5th February 2005, 14:56
DVDRB gives 4 VTS's to be processed. On the disc there are 11 VTS's (but the ones DVDRB gives are the actual episode VTS's on the disc, the others are menus and stuff like that.)
In my working folder I have the following structure when DVDRB crashed:
A folder called D2VAVS with in it the following files:
REBUILDER.ECL
REBUILDER.INF
V02.D2V
V03.D2V
V10.D2V
V11.D2V
V02000000001001.AVS
V02000000001001.FLG
V03000000001001.AVS
V03000000001001.FLG
V10000000001001.AVS
V10000000001001.FLG
V11000000001001.AVS
V11000000001001.FLG
That's all I got in my working folder.
jdobbs
5th February 2005, 15:01
Could you zip those up and send them to me? I'll PM you with an address.
Thanks.
jdobbs
5th February 2005, 15:03
@craz
What version are you using? I saw you'd used 0.70 -- but now that 0.72PR is out, have you changed?
Craz
5th February 2005, 15:07
You've got mail :)
Craz
5th February 2005, 15:08
Originally posted by jdobbs
@craz
What version are you using? I saw you'd used 0.70 -- but now that 0.72PR is out, have you changed?
Yes I'm now using DVDRB v0.72 PR and CCE v2.67.
jdobbs
5th February 2005, 15:28
Originally posted by Craz
You've got mail :) Wow. It sure is taking a long time to get here. The Atlantic Ocean is wide, I guess.
Craz
5th February 2005, 15:31
I'll put it on a webspace and pm you the link ;)
jdobbs
5th February 2005, 15:32
PM me your e-mail address too. I'd like you to try the latest version. There were some changes I made in 0.73 related to some new copy protections that may have an impact.
Craz
5th February 2005, 15:39
done ;)
Craz
5th February 2005, 16:04
After using DVDRB v0.74 still same runtime error '9'.
Same contents in my working folder as before.
Contents dvdrebuilder.inf:
When using ReducedOpt=3:
[Status]
mode=1
Original_Size=3920100
Excluded_Audio_Sub_Size=0
VTS_02_SIZE=965338
VTS_03_SIZE=919538
When using ReducedOpt=0:
[Status]
mode=1
Original_Size=3920100
Excluded_Audio_Sub_Size=0
VTS_02_SIZE=965338
VTS_03_SIZE=919538
I'll send you the files of my working folder again (using ReducedOpt=0).
[ADDED] The rebuilder.inf file is written at the time of the error. I get the error dialog and then the file rebuilder.inf appears in my working folder. Don't know if this can be of any help.
jdobbs
5th February 2005, 16:57
I'm going to send you a test file in a few minutes... let me know what happens.
Craz
5th February 2005, 17:11
Didn't receive anything yet?
[EDIT] received the file, trying it now.
Craz
5th February 2005, 17:36
Bingo!!
That file did the trick, it now starts CCE (v2.67) without any problem. I'll let CCE do it's job to see if the result will be ok.
Thanks jdobbs for fixing this :)
jdobbs
5th February 2005, 17:38
Cool. :cool:
I'll send this out to everyone in v0.75.
Craz
5th February 2005, 17:41
Does this mean runtime error '9' is solved?
Or are there other causes as well for this error?
jdobbs
5th February 2005, 18:06
It only means the instance you've described is fixed. There could be any number of other reasons for that error. It means an index into an array has been used that is greater or less than the beginning/end of the array.
In your example I'd found that I'd cut-and-pasted some code from one place to another and failed to change the index variable. It quite coincidentally had the correct value in it and worked most of the time -- or I'd have picked this up a lot sooner.
Craz
5th February 2005, 18:16
Ok thanks for the info, glad I could help :D
3ncrypted
8th February 2005, 08:10
jdobbs, I found this thread in a search. I recently upgraded to version 0.72, and that's the ONLY change that I've made. I have used my current setup of DVDRB for approx 200 backups, and have never had a problem. Also, I'm using CCE 2.50, and that's what I've always used.
I get the Run-Time error-- subscript out of range when I click ok after browsing and finding the VIDEOTS folder that I want to use as source. The source is an ISO file mounted with Daemon tools.(same as I've used for a year) So basically it refuses to let me select the source. I can give you more info. if you need it.
jdobbs
8th February 2005, 16:48
Try ripping in file mode instead of ISO. This could be related to newer structure protections. Later versions of DVD-RB have been modified to handle these.
EnDeR_PL
8th February 2005, 19:27
i have same problem. when i prepare, i have window "runtime error '9'".
it's funny becouse it my first movie doing this program...
3ncrypted
8th February 2005, 21:30
Well.. I tried the previous versions of DVDRB that I had been using, and it did the same thing. I then mounted some ISO's that i had made today, and they worked fine. Something with that one .iso file that it doesn't like. Oh well.. just wanted to let you know what I found. Thanks for your help.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.