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

Openshot v3.2.1 32bit std::bad_alloc #5679

Open
dchandchan opened this issue Dec 22, 2024 · 4 comments
Open

Openshot v3.2.1 32bit std::bad_alloc #5679

dchandchan opened this issue Dec 22, 2024 · 4 comments

Comments

@dchandchan
Copy link

dchandchan commented Dec 22, 2024

openshot-qt.log
libopenshot.log

openshot std::bad_alloc happens immediately when I exporting file at FHD 1080p 30fps 1920x1080

@Colorjet3
Copy link
Collaborator

  1. Please check your free disk space availability and free up as much as possible.
  2. Update the Cache Limit to a higher value. You may be running out of Cache memory. Go to Edit | Preferences | Cache tab and the "Cache Limit (MB)" to say 2048. Don't make this too hight as it can cause issues.
  3. What is your operating system/version (windows 8? windows 10? etc?).
  4. Is your Windows operating system installation 32bit? If not, and you can confirm that it is 64 bit, then you should uninstall the 32bit and install the 64bit.

@Colorjet3
Copy link
Collaborator

Any update on this, @dchandchan?

@dchandchan
Copy link
Author

Thank you very much.

My computer is:

OS Microsoft Windows10 Pro
Version 1703 Build 15063
System Type 32-bit operating system
Processor Intel Core i5-8400T
Physical Memory RAM 16GB
Total Physical Memory 1.95GB
Available Physical Memory 1.14GB
Total Virtual Memory 2.63GB
Available Virtual Memory 1.58GB
Page File Space 704MB

On track 1 is media file 1.mp4 is 57162KB
On track 2 is media file 2.mp3 is 9065KB

available free disk space on c:\ is 9.13GB

I tried cache limit 2048 and std::bad_alloc error occurred.

@dchandchan dchandchan reopened this Jan 3, 2025
@Colorjet3
Copy link
Collaborator

With a 32bit Windows system you are limited to how much memory is available to the operating system and other applications. Video Editors in general require lots of horsepower and resources (RAM, GPU, disk space). I don't have any experience with running in a 32bit environment.

Let's perform some house keeping because I am still suspecting something with disk space and performance with 32bit.

Optimize Windows 10 paging.

  1. Close all applications you have running.
  2. From the Windows 10 desktop, type "Control Panel" in the "Type here to search" (bottom left of your task bar, unless you have changed your view) and press Enter.
  3. From the Control Panel screen, click on System and Security.
  4. Find the System section and click on "View amount of RAM and processor speed".
  5. In the right of this page find and click on "Advanced system settings"
  6. In the Performance section click on Settings.
  7. Now click on the Advanced tab.
  8. In the Virtual memory section click on Change
  9. In the "Virtual Memory" page most likely you will see the check box checked for "Automatically manage paging file size for all drives".
  10. Uncheck this box.
  11. Make sure the "Selected drive:" is C:
  12. Make sure "System managed size" is selected (bullet).
  13. Click on Set.
  14. Click on OK.
  15. You will be notified to restart your computer.
  16. Restart your computer.

Let's upgrade OpenShot to the latest v3.3.0.

  1. Close OpenShot if running.
  2. Go to Add or Remove Programs and uninstall OpenShot.
  3. Make a backup of c:\users\username.openshot_qt folder.
  4. Delete c:\users\username.openshot_qt folder.
  5. Go to openshot.org and download and install the latest v3.3.0 production release (32bit in your case).
  6. Install it.
  7. If you started Openshot, please close it.

Free up disk space:

  1. Start File Explorer
  2. Find your C: drive, right click on it and select Properties.
  3. Make a note of "Free space:".
  4. Please clean up your c: drive as much as possible to make as much free disk space available as possible.

A test run:

  1. Start OpenShot.
  2. Drag a few emojis onto a track.
  3. Perform an Export using FHD 1080 30 FPS 1920 X 1080
  4. Did this work?
  5. If it failed, restart OpenShot and drag a few emojis onto a track and Export to HD 720P 30 fps (1280 x 720).
  6. Did this work?

If Step 4 above worked, then do this:

  1. Start a new project and import your 2 files into it.
  2. Save the the project and name it Test01
  3. Drag one of the imported files onto a track. Don't make any changes.
  4. Export to the FHD profile.
  5. Did this work? If yes, keep making edits, etc., and Export to see if it continues to work or where it might be failing.

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