You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run the following script, when I use title=EJ24_3_Anim_EARG_Sismicid (which is used for movie -N) I have no problem but when I use title=EJ24_3_Anim_EARG_Sismicida I get the following error:
I made two string variables longer but I do not think it is related (but give it a test). Does not crash on macOS. Perhaps this is a good opportunity for you to learn how to build GMT in debug mode and run it in a visual debugger (VSC?). Maybe @joa-quim can advice on that. If there is a bug we need to know where it crashes - it is not enough to know that it crashes in movie. I have added how-to debugging information in the documentation but I only have knowledge of macOS and to some extent Linux - I cannot write the same sections for Windows - help needed.
Ok @PaulWessel. I will read it and try to debug in VSC. Right now I am working mostly in Linux. Then, I have yet to learn to build from source and debug in Windows.
Paul is assuming that the problem manifests only on Windows. I don't know how to debug with VSC. Apparently it's possible but the setting seemed too complicated to me. I do the debugging with VS, which is needed anyway to build GMT. After building it (again, I posted an issue explaining) the debug is very easy. Just do\
"File -> Open -> Project/Solution" and open the .exe that we want to debug.
Next open the source code and set breakpoints.
Under "Project -> Properties" set the command line option in the Arguments field
Hit F5
The bad news is that movie is the worst module to debug, under ANY OS, because it makes many system calls and there no debugger can dive.
I have a similar error in Ubuntu when the name has more than 24 characters. I don't think it is important to debug. For me, to add a warning in the docs to avoid long names in movie -N is enough.
Activity
PaulWessel commentedon Jul 3, 2021
I made two string variables longer but I do not think it is related (but give it a test). Does not crash on macOS. Perhaps this is a good opportunity for you to learn how to build GMT in debug mode and run it in a visual debugger (VSC?). Maybe @joa-quim can advice on that. If there is a bug we need to know where it crashes - it is not enough to know that it crashes in movie. I have added how-to debugging information in the documentation but I only have knowledge of macOS and to some extent Linux - I cannot write the same sections for Windows - help needed.
joa-quim commentedon Jul 4, 2021
Nothing to really help before building with VS is accomplished. e.g #4718
Esteban82 commentedon Jul 4, 2021
Ok @PaulWessel. I will read it and try to debug in VSC. Right now I am working mostly in Linux. Then, I have yet to learn to build from source and debug in Windows.
PaulWessel commentedon Jul 4, 2021
Sure, and it is not crashing in Linux then I take it?
Esteban82 commentedon Jul 5, 2021
Sorry Paul. I don't understand well. Do you need me to debug in Linux? Any tips on how to do it in VSC?
joa-quim commentedon Jul 5, 2021
Paul is assuming that the problem manifests only on Windows. I don't know how to debug with VSC. Apparently it's possible but the setting seemed too complicated to me. I do the debugging with VS, which is needed anyway to build GMT. After building it (again, I posted an issue explaining) the debug is very easy. Just do\
ArgumentsfieldThe bad news is that
movieis the worst module to debug, under ANY OS, because it makes many system calls and there no debugger can dive.PaulWessel commentedon Jul 5, 2021
Yes, I assumed this was Windows only. if it also is reproducible on Linux then perhaps we can debug via ddd.
maxrjones commentedon Jul 14, 2021
I wasn't able to reproduce the bug when building from master on Windows and running the script using Git Bash.
joa-quim commentedon Jul 14, 2021
The movie module is more peculiar. It depends on the type of shell where it's run. Not the OS (hopefully)
Esteban82 commentedon Aug 19, 2021
I have a similar error in Ubuntu when the name has more than 24 characters. I don't think it is important to debug. For me, to add a warning in the docs to avoid long names in movie -N is enough.
Esteban82 commentedon Jul 20, 2022
I continue falling with this issue. I was running on Ubuntu.
After some test, i found that the "buffer overflow error" appears when the
ffmpegcommand is longer than 256 characters.For example I made a movie that uses this ffmpeg command (wich is 256 character long) and works.
movie [NOTICE]: Running: ffmpeg -loglevel warning -f image2 -framerate 99 -y -i "/home/federico/Software/gmt_test/movie_BufferOverflow_0123456789012345678901234567890123456789012345/10_TierraGirando/10_TierraGirando_%01d.png" -vcodec libx264 -pix_fmt yuv420p 10_TierraGirando.mp4Then when I change the frame rate from 99 to 100, I got the overflow error. If I run the
ffmpegcommand directly on the terminal, it works fine.Is there a way to add a warning when the ffmpeg command is too large?
maxrjones commentedon Jul 20, 2022
Nice sleuthing. Could the allowable command length be increased instead from
GMT_LEN256?gmt/src/movie.c
Line 1320 in 85ec549
Esteban82 commentedon May 16, 2023
Paul told me that this was modify and it is no longer an issue. I test it.