CineStripScanner Unhandled Exception Error

Viewed 1150 times, With a total of 20 Posts
Wechseln zu: Navigation, Suche

Jump to page 12Next 16Last
Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
Greetings,

I'm so close to getting my scanning system up and running (after years of the project being on the back burner).

But...I'm having a problem getting the Transport Setup to work in Cine Strip Scanner. Scanning parameters seem to write out to the INI file just fine, but I'm getting an Unhandled Exception Error when trying to set Transport Parameters. See below:


"Object reference not set to an instance of an object"

                            • Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
  at CineStripScanner.TransportDefinition.cBxPort_SelectedIndexChanged(Object sender, EventArgs e) in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\TransportDefinition.cs:line 378
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at System.Windows.Forms.ComboBox.set_SelectedItem(Object value)
at CineStripScanner.TransportDefinition.InitializeValues() in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\TransportDefinition.cs:line 156
at CineStripScanner.TransportDefinition..ctor(CineStripScanner aParent) in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\TransportDefinition.cs:line 40
at CineStripScanner.CineStripScanner.transportSettingsToolStripMenuItem_Click(Object sender, EventArgs e) in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\CineStripScanner.cs:line 479
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


                            • Loaded Assemblies **************
mscorlib
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll


CineStripScanner
   Assembly Version: 1.0.6101.23463
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/S8_SCANNER/CineStripScanner/CineStripScanner.exe


System.Windows.Forms
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1081.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll


System.Drawing
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1078.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


I can post the INI file info if you need it.

I'm running Windows 10 Build 10586.633 Ver. 1511

Thanks in advance for any help

Tom

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
The few times that I am allowed into the Transport settings (I'm not sure how that happens), it fails to write a parameter file, telling me I have some blank fields, and I know I have all the fields filled in.

Gets Around
Wiki Edit 990
Threads 10
Posts 73
Try new CineStripScanner
Hello, I have released a new version of the CineStripScanner.

I hope, that the null pointer exception is now solved.

If no Project Id was provided, this error occured,
A message is now presented to make the user aware of the missing information.
In addition there is now a little window that shows the position of the area to be scanned
on the scanner glass.

Regards
Wolfgang
Edited On 12:30:53 PM - Tue, Nov 15th 2016 by Hannibalstgt


Epson Perfection V750 Photo, Windows 7 (64 Bit) 16 GB. ScanController V0.7 mit Arduino Duemilanove, CineToVidPro 1.4

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
Cine Strip Scanner 1.0
I'm afraid I'm still getting errors:
See next post for explanations and ini.txt info
                            • Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
  at CineStripScanner.TransportDefinition.cBxPort_SelectedIndexChanged(Object sender, EventArgs e) in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\TransportDefinition.cs:line 378
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at System.Windows.Forms.ComboBox.set_SelectedItem(Object value)
at CineStripScanner.TransportDefinition.InitializeValues() in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\TransportDefinition.cs:line 156
at CineStripScanner.TransportDefinition..ctor(CineStripScanner aParent) in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\TransportDefinition.cs:line 40
at CineStripScanner.ScannerSettings.btnTransportSettings_Click(Object sender, EventArgs e) in D:\C#Prog\Projects\CineStripScannerWF\CineStripScannerWF\ScannerSettings.cs:line 1387
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


                            • Loaded Assemblies **************
mscorlib
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll


CineStripScanner
   Assembly Version: 1.0.6157.27499
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/S8_SCANNER/CineStripScanner/CineStripScanner.exe


System.Windows.Forms
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1081.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll


System.Drawing
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1078.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


Kaliko.ImageLibrary.FastFilters
   Assembly Version: 3.0.0.0
Win32 Version: 3.0.0
CodeBase: file:///C:/Program%20Files/S8_SCANNER/CineStripScanner/Kaliko.ImageLibrary.FastFilters.DLL


Kaliko.ImageLibrary
   Assembly Version: 3.0.0.0
Win32 Version: 3.0.0
CodeBase: file:///C:/Program%20Files/S8_SCANNER/CineStripScanner/Kaliko.ImageLibrary.DLL


Saraff.Twain
   Assembly Version: 1.0.21.533
Win32 Version: 1.0.21.533
CodeBase: file:///C:/Program%20Files/S8_SCANNER/CineStripScanner/Saraff.Twain.DLL


System.Configuration
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Core
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1084.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll


System.Xml
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1064.2 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


Accessibility
   Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll



                            • JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
   <system.windows.forms jitDebugging="true" />
</configuration>TS07

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
I am able to set and verify the scanner controls, and if I make a new project ID, the scanner controls come up, but I am unable to write the PARM file from the scanner control popup. It says "PARMini file failed to write". I worry that I don't have a proper parameter set somewhere.

PRMini.txt that I was able to write:

stepsPerRevolution=48;stepDelay=12;stripHeight=8;stripFromRight=61.6;stripFromTop=8.9;stripLength=0;numberCycles=12;selectedPort=COM3;stripsToProcess=2;projectId=TS06;timeCorrection=5000;overlapFrames=1;stripNoFrames=12;decimalSeparator=.;videoType=2;filmType=2;units=mm;stripResolution=4400;Fullstep=true;singleCycle=100;numberSprockets=12;jpgQuality=90;imageFormat=jpg;projectsFolder=C:\Super8_Scan_Projects;€
p;€
¬

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
PARMini.txt
stepsPerRevolution=48;stepDelay=12;stripHeight=8;stripFromRight=61.6;stripFromTop=8.9;stripLength=0;numberCycles=12;selectedPort=COM3;stripsToProcess=2;projectId=TS06;timeCorrection=5000;overlapFrames=1;stripNoFrames=12;decimalSeparator=.;videoType=2;filmType=2;units=mm;stripResolution=4400;Fullstep=true;singleCycle=100;numberSprockets=12;jpgQuality=90;imageFormat=jpg;projectsFolder=C:\Super8_Scan_Projects;€
p;€
¬

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
Moving forward though
The good news is that Scan Controller .8 works well on my Windows 10 system as a standalone program and I am able to move forward with my hardware build.
Thanks so much for your work on this project Wolfgang

Gets Around
Wiki Edit 990
Threads 10
Posts 73
shift error notificyation to left
Hello,
if you get the error again, can you please try to shift the error output to the left so that I can see the statement numbers , at which the error occurs (and the sequence of statements performed).

A potential cause of the error may be, that the file is locked by a different process.
Another hint is the striplength, it is still set to zero.
The striplength is calculated from the value set for the number of frames to scan plus 2 times the overlapframes. So if you want to advance 18 frames, the striplengths is calculated from (18 + 2 + 2)*(height of a singel frame).


I will check that, as soon as I see the error location.

Regards
Wolfgang
Edited On 12:45:31 PM - Sat, Nov 26th 2016 by Hannibalstgt

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
Hope some of this helps
Sorry for the delay. I've been working on the hardware portion of the scanner. I've tried Ver. 1.2 of Cinestrip scanner with the same errors. I'm afraid I'm not savvy enough to get the debug info into JIT but maybe some of this will help:
Capture01.jpg

Capture.jpg



It does appear that Two instances of the program run when I try to write the INI file.
I'll keep at it with ver. 1.2 and send some more info if that would help.

Cheers,
Tom

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
A shot at Ver. 1.2
Actually, as I'm testing V1.2, I'm having better luck. I'm still trying to figure out all the parameters though.






CaptureV1.2.JPG

Gets Around
Wiki Edit 990
Threads 10
Posts 73
Version 1.3 Available
Hello,
Version 1.3 is avalialable since November 25, 2016.
I think, there should be no more unexpected exceptions.

I did almost about 500 strip scans with this version and I had no error.

If you still get one, please give me a note.

Regards
Wolfgang

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
Version 1.3 Setup issues
Well, I'm close...but I have yet to do a successful strip scan with 1.3. Not sure what I'm doing wrong.

Issues:
CSS v1.3 will not launch from CineToVid Pro. It just hangs, so I'm using it stand alone.

My sequence for scanning is:
Launch CSS
Check scanner settings
Confirm strip position on scanner glass
Check transport settings
Init/Preview of the scanner, the Epson GUI launches
Do a scan
The full strip shows up in the CSS window
I start a scan, but then only a small section is scanned. See last photo.
If I perform a new Init/Preview from CSS it just starts scanning again instead of relaunching the Epson GUI.

I am measuring bed coordinates with calipers as you can see in the photos.
If you see anything that doesn't look right, please let me know.

Thanks,
Tom



Gets Around
Wiki Edit 990
Threads 10
Posts 73
Version 1.4 of the CineStripController
Hello,
the CineStripScanner did not recognize a change in the strip height parameter. This is now solved
under V1.4. I will it upload still today.

To your setup: first: it looks pretty sophisticated. Congratulations - very good work.

To the invocation of CineStripScanner: the invocation out of CineToVidPro is not yet supported.
It is anyway better to run the CineStripScanner standalone. This saves ressources (especially all
main memory is available for scanning). Epson Scanner drivers are 32 bit, that means that only about 2 GB main memory is available for programs.

To your settings: You have not set the number of overlay frames. I up to now have not tested, what is happening if zero is specified. This may be the reason for the narrow scanning width.
You should specify at least 1 overlapping frame.

The distance from top is not measured from the scanners upper border. You must take into account,
that there is a calibration area at top of the scanning window. You have to subtract the height of this calibration area from your measured value. The calibration area is about 10 to 15 mm high. It is the cut out area at top of your film guides.

Good Luck
Wolfgang
Edited On 18:47:28 PM - Tue, Nov 29th 2016 by Hannibalstgt

Clicked A Few Times
Wiki Edit 14
Threads 2
Posts 15
CSS Ver.1.4
The only thing I see now is that in scanner settings, it's not retaining the Calculated strip length, so I'm still getting a too narrow scan in test mode.
It writes to the INI file though, so that's confusing to me.

I'm excited to share my build with the forum when I get it all sorted
Edited On 0:05:26 AM - Thu, Dec 1st 2016 by Tburney764

Gets Around
Wiki Edit 990
Threads 10
Posts 73
Version 1.4 Calculated Strip Length
Hello,

the calculated strip lenght is a derived value - derived from the number of frames to be scanned plus 2 times the number of overlay frames. Therefore it is shown in a grey field.
The number of cycles to move is also a derived value - grey in the settings window.

The calculated length is shown in the field after the "verify" button is clicked and this value is then stored in the INI file, The INI file value is used during the TWAIN scanner setup as the scan width. A change in the number of frames will generate a new calculated strip length after "verify" is pressed.

So there should be the correct strip length scanned (even if the overlay frames is set to zero).
But no overlay frames will probably generate problems when joining the strips to achieve a smooth
video at strip borders.

Wolfgang
Edited On 15:06:59 PM - Thu, Dec 1st 2016 by Hannibalstgt


Forum >> Software >> CineToVId and ScanController
Jump to page 12Next 16Last



Who's here now Members 0 Guests 0 Bots/Crawler 0


AWC's: 2.5.12 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC