Topic RSS
11:55 pm
July 21, 2010
OfflineWin7 64-bit
CineGOBS 2.3.0.123
8GB Physical RAM
8GB swap file
Input: 843 PNG files, each one (2877, 2254) and ~7.2MB each.
Output: PNG single file (RGB + Alpha)
I get this exception 100% when I try to export. I'm working around it by making my input files half the size, which works fine. But I'd love to export at full resolution.
************** Exception Text **************
System.OutOfMemoryException: Out of memory.
at System.Drawing.Bitmap.Clone(Rectangle rect, PixelFormat format)
at CineGobsKeyer.Keyer.SaveMonolith(ExportVideo video)
at CineGobsKeyer.Keyer.SaveVideo(String baseFileName, Double frameRate, Single dpi, Int32 startFileNameNumber, MainForm parentForm)
at CineGobsKeyer.MainForm.SaveVideoToolStripMenuItemClick(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.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.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.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: 2.0.0.0
Win32 Version: 2.0.50727.5444 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
—————————————-
CineGobs Keyer
Assembly Version: 2.3.0.123
Win32 Version: 2.3.0.123
CodeBase: file:///D:/Program%20Files/CineGobs/CineGobs%20Keyer/CineGobs%20Keyer.exe
—————————————-
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
—————————————-
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
—————————————-
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
—————————————-
ListViewEx
Assembly Version: 1.0.1753.24378
Win32 Version: 1.0.1753.24378
CodeBase: file:///D:/Program%20Files/CineGobs/CineGobs%20Keyer/ListViewEx.DLL
—————————————-
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
—————————————-
FreeImageNET
Assembly Version: 3.13.1.1
Win32 Version: 3.13.1.1
CodeBase: file:///D:/Program%20Files/CineGobs/CineGobs%20Keyer/FreeImageNET.DLL
—————————————-
9:43 pm
July 21, 2010
OfflineSorry to reply to my own post, but anyone got ideas why I'm running out of memory here?
Seems like at <10MB per frame, there's no reason an 8GB machine shouldn't be able to handle it, right? I guess if it's pre-allocating space for the whole "movie" (800 frames x 10MB/frame = 8GB)… but I'm exporting as PNGs so I don't see the need to pre-allocate in that way.
Am I just up against a limit here? Or have I found a pathology?
11:09 pm
April 12, 2010
OfflineHi,
Space is only allocated for the current frame.
I'm not able to recreate the exception here. Do you get it as soon as the export starts?
(2877, 2254) is that the input and output size in pixels?
Bo
11:23 pm
July 21, 2010
OfflineHi Bo,
Thanks for the response.
Do you get it as soon as the export starts?
No, it happens ~10 frames in. Seems to be slightly variable (I can do some more testing on this if would help). The first ten frames or so get properly written out, then the exception occurs.
(2877, 2254) is that the input and output size in pixels?
Correct.
6:12 pm
July 21, 2010
OfflineHi Bo,
I was able to reproduce the problem with only 11 input frames.
I've uploaded the input files to my server here:
http://gribbly.org/files/CineG…..OMTest.zip
It's a ~90MB download.
Open this sequence in CineGobs. I'm using a Color Difference key and the Spill Suppressor. I then (attempt to) export all the frames as single file RGB + Alpha PNGs.
6:29 pm
April 12, 2010
OfflineGreat! I'll take a look at it.
Edit: Yep, I get the "out of memory" exception on your files. Now I have something to debug.
2:02 pm
April 12, 2010
OfflineHi,
I've looked at it and it seems to be a problem with the bitmap control in .net. It has nothing to do with running out of memory.
This may need some major changes to the code and therefore it won't be fixed until the next major version is released. I don't have a release date for it yet.
Bo
Most Users Ever Online: 13
Currently Online: bentej
7 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Copperplate: 15
gribbly: 11
ericsh6: 11
mickwest1: 8
naw1423: 6
Galena: 6
Member Stats:
Guest Posters: 0
Members: 171
Moderators: 0
Admins: 2
Forum Stats:
Groups: 2
Forums: 6
Topics: 49
Posts: 176
Newest Members: kareem, GMAN, subhrajeet, ZombieWombatStudios, Galena, gozomac
Moderators:
Administrators: Bo Johansen (71), bentej (0)
Log In
Register
Home





Pingback: CineGobs keyer v. 3 development blog