Turns out sometimes when the project is rendered (into a file), VLMC tries to render more frames then max. possible which leads to a crash or a thread deadlock.<br>My conclusion is that the workflow (both file and project) needs attention.<br>
<br>Best Regards,<br>Rohit Yadav<br><br><div class="gmail_quote">On Sat, Oct 30, 2010 at 5:08 PM, <span dir="ltr"><<a href="mailto:git@videolan.org">git@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
vlmc | branch: master | Rohit Yadav <<a href="mailto:rohityadav89@gmail.com">rohityadav89@gmail.com</a>> | Sat Oct 30 17:23:04 2010 +0530| [2b52d996a402cc8835ec8693254ae7d0c915399b] | committer: Rohit Yadav<br>
<br>
FileRendererDialog: Check and set progress.<br>
Apply HACKING on function implementation.<br>
<br>
> <a href="http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2b52d996a402cc8835ec8693254ae7d0c915399b" target="_blank">http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2b52d996a402cc8835ec8693254ae7d0c915399b</a><br>
---<br>
<br>
src/Gui/WorkflowFileRendererDialog.cpp | 23 ++++++++++++++++-------<br>
1 files changed, 16 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/src/Gui/WorkflowFileRendererDialog.cpp b/src/Gui/WorkflowFileRendererDialog.cpp<br>
index 8d6fd7b..78fb0ad 100644<br>
--- a/src/Gui/WorkflowFileRendererDialog.cpp<br>
+++ b/src/Gui/WorkflowFileRendererDialog.cpp<br>
@@ -43,28 +43,37 @@ WorkflowFileRendererDialog::WorkflowFileRendererDialog( WorkflowFileRenderer* re<br>
Qt::QueuedConnection );<br>
}<br>
<br>
-void WorkflowFileRendererDialog::setOutputFileName( const QString& outputFileName )<br>
+void<br>
+WorkflowFileRendererDialog::setOutputFileName( const QString& outputFileName )<br>
{<br>
m_ui.nameLabel->setText( outputFileName );<br>
m_ui.previewLabel->setMinimumSize( m_width, m_height );<br>
setWindowTitle( "Rendering to " + outputFileName );<br>
}<br>
<br>
-void WorkflowFileRendererDialog::setProgressBarValue( int val )<br>
+void<br>
+WorkflowFileRendererDialog::setProgressBarValue( int val )<br>
{<br>
m_ui.progressBar->setValue( val );<br>
}<br>
<br>
-void WorkflowFileRendererDialog::updatePreview( const uchar* buff )<br>
+void<br>
+WorkflowFileRendererDialog::updatePreview( const uchar* buff )<br>
{<br>
m_ui.previewLabel->setPixmap(<br>
QPixmap::fromImage( QImage( buff, m_width, m_height,<br>
QImage::Format_RGB32 ) ) );<br>
}<br>
<br>
-void WorkflowFileRendererDialog::frameChanged( qint64 frame )<br>
+void<br>
+WorkflowFileRendererDialog::frameChanged( qint64 frame )<br>
{<br>
- m_ui.frameCounter->setText( tr("Rendering frame %1 / %2").arg(QString::number( frame ),<br>
- QString::number(MainWorkflow::getInstance()->getLengthFrame() ) ) );<br>
- setProgressBarValue( frame * 100 / MainWorkflow::getInstance()->getLengthFrame() );<br>
+ qint64 totalFrames = MainWorkflow::getInstance()->getLengthFrame();<br>
+<br>
+ if ( frame <= totalFrames )<br>
+ {<br>
+ m_ui.frameCounter->setText( tr("Rendering frame %1 / %2").arg(QString::number( frame ),<br>
+ QString::number( totalFrames ) ) );<br>
+ setProgressBarValue( frame * 100 / totalFrames );<br>
+ }<br>
}<br>
<br>
_______________________________________________<br>
Vlmc-devel mailing list<br>
<a href="mailto:Vlmc-devel@videolan.org">Vlmc-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/vlmc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlmc-devel</a><br>
</blockquote></div><br>