Sorry, there was an error exporting your video: std::bad_array_new_length when exporting a video
Describe the bug Cannot export a video file because I get the error "std::bad_array_new_length".
Steps to reproduce the behavior: I added 6 video files, each one is 1 minute long to track1, one after the other. I cut the 6th video to 10 seconds. File->Export Project-Export video. Target: CPU MP4(H.264 Video Profile: HD 720p30fps (1280x720) Quality: High Export video. Get the error message.
Expected behavior A export successfully finishes, I get an mp4 video file.
System Details
- OpenShot Version: 3.2.1
- libopenshot Version: 0.3.3
- Platform: Linux-6.14.3-200.fc41.x86_64-x86_64-with-glibc2.40
- Processor:
- Machine: x86_64
- Python version: 3.13.3
- Qt5 version: 5.15.15
- PyQt5 version: 5.15.10
- Qt Detected Languages: ['en-GB', 'en-Latn-GB']
- LANG Environment Variable: en_GB.UTF-8
- LOCALE Environment Variable:
- Daily Build: Skipped this step
Log Files
- openshot-qt.log (7 KB)
- libopenshot.log: File too small or empty (not uploaded)
Exception / Stacktrace
No stacktrace found in log files
Screenshots (Optional) If applicable, add screenshots to help explain your problem. You can include screenshots by copy/pasting them on GitHub or dragging-and-dropping into the GitHub page. All images are public, so please don't post screenshots containing personal information.
Things to try:
- Go to openshot.org/download/#daily and download the latest dev daily build (v3.3.0) AppImage. Make it executable and run it. You need to install libfuse2 for the AppImage to run.
- Ensure you have plenty of free hard drive disk space. Free up as much as possible.
- Make a backup of /home/username/.openshot_qt folder.
- Delete /home/username/.openshot_qt folder.
- Start OpenShot, open your project and test the Export. If you still get the same error message then continue....
- Restart your computer.
- Start the downloaded AppImage and a new project.
- Import each source file one at a time. Drag it onto Track 5 and save the project. Export without any changes.
- Repeat step 8, importing the 2nd, 3rd,....etc. source file and continue Exporting until you get to a point where the crash happens. Obviously after you Export with all 6 source files, go ahead and make the cut on the 6th clip and Export again.
Essentially, we are trying to figure out where the problem surfaces so we can troubleshoot further.
I have same issue with exporting video.
I added to project 1 video 1 min 20 sec, cutted fragment from it (about 15 sec), and tried to export.
Error: std::bad_array_new_length
- Platform: Fedora 41
- Package: openshot-3.2.1-2.fc41.noarch
- Kernel: Linux 6.13.12-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Apr 20 15:52:43 UTC 2025 x86_64 GNU/Linux
- Machine: x86_64
I installed OpenShot RPM using Discover (in KDE).
Short update:
I created new project, just added 1 min video and then tried to export.
Same error, std::bad_array_new_length
So, bug is not related to cutting video and using later 2 clips.
Tried OpenShot 3.3.0 AppImage from https://www.openshot.org/download/ I can confirm that export of videdo in ver.3.3.0 AppImage works. Besides, icons in toolbar are also visible (they were invisible in openshot-3.2.1 in Fedora 41 distribution)