
Originally Posted by
fla
I tried adding those lines to my skin file and can't reproduce the crash with today's new XSuite version. If you can give replication steps I'll take a look tomorrow.
Repro is pretty easy.
- Add the additional converter lines to the blue skin file.
- Extract the attached archive TestFolder to contain a test directory structure containing two directories each containing one video file. The first contains a zero length MPG and the other contains a zero length MKV file. (The length is irrelevant but separate directories with at least one containing a file that matches one of the new file types appears to be significant.)
- Point XRecord to use the newly created TestFolder as the Video path.
- Load Xrecord and attempt to display the video files by selecting the video button.
The plugin should silently crash out to the PVRX2 menu and the following error should appear in the log:
Code:
System.OutOfMemoryException: Out of memory.
at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromFile(String filename)
at RecordingViewerPlugin.XVideoRecordingsBox.render(Graphics g, Font generalFont, Brush generalFontBrush, Font selectedGeneralFont, Brush selectedGeneralFontBrush, Brush selectionBrush, Int32 selectNewsStartX, Int32 selectNewsStartY, Boolean bActive, SkinHelper skinHelper)
at RecordingViewerPlugin.RecordingTask.render(Boolean& requiresMoreRendering)
at GBPVRX2.MenuTask.x9006c1ed9ccb79de.GetRenderList()
at GBPVRX2.x0061b801bdf12d35.xdb012c437aec4a40(Boolean xd23bf32f3b17e3be)
at GBPVRX2.x0061b801bdf12d35.xdae9991ab918b397(Object xdf2e3583f942db7b, KeyEventArgs xc4f45905cb1fc7ba)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at GBPVRX2.x0061b801bdf12d35.WndProc(Message& m)
Complete logs are attached. This problem did not occur in the plugin a couple releases ago. It appears to happen in both GBPVR 1.2.9 and the current release.