Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in animateTenseg #7

Closed
apsabelhaus opened this issue Nov 20, 2018 · 3 comments
Closed

Error in animateTenseg #7

apsabelhaus opened this issue Nov 20, 2018 · 3 comments

Comments

@apsabelhaus
Copy link

An error is thrown in the Template_Dbar.m example, when the video is written using VideoWriter. May be related to #3 .

Error:

Error using VideoWriter/writeVideo (line 344)
Frame must be 912 by 911

Error in animateTenseg (line 95)
writeVideo(vidObj,im2frame(F.cdata));

Error in Template_DBar (line 153)
animateTenseg(t,y,tData,time_loc,filename,formatSpec,frameRate,AZ, EL,axLims);

I still get a .avi file produced, but it's only got a small number of frames.

A quick google search suggests something like
https://www.mathworks.com/matlabcentral/answers/327160-error-using-videowriter-writevideo-line-344-frame-must-be-434-by-343

For reference, I'm using Ubuntu 18.04 with MATLAB R2017b.

@apsabelhaus
Copy link
Author

A bit more sleuthing reveals the cause of this error: resizing the window when the movie is being replayed. Error does not occur when window is untouched during replay. Consequently, this isn't technically a bug - the authors could just add a stipulation "don't touch the window until the movie has finished!" or something similar.

@vaishnavtv
Copy link
Contributor

I have added a warning dialog box to counter this issue. We hope that suffices.

@apsabelhaus
Copy link
Author

Yes, that works fine. Just pulled and tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants