openshot-qt icon indicating copy to clipboard operation
openshot-qt copied to clipboard

High zoom scale of image on timeline, crashes to desktop on export

Open leodf1 opened this issue 1 year ago • 11 comments

Describe the bug Setting the scale factor of an image on the timeline too high (36 and above) will crash the program to desktop when exporting at 1080p.

Steps to reproduce the behavior:

  1. Open project
  2. Place an image on timeline
  3. Set Scale X and Scale Y property to 36 or above
  4. Begin export to at least 1080p (or a higher resolution then the Project profile)

Or

  1. Set Project profile to 1080p or above

Expected behavior Export project to video file without crash Or Change Project profile without crash

System Details

  • OpenShot Version: 3.1.1
  • libopenshot Version: 0.3.2
  • Platform: Windows-10-10.0.19041
  • Processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
  • Machine: AMD64
  • Python version: 3.8.9
  • Qt5 version: 5.15.2
  • PyQt5 version: 5.15.4
  • Qt Detected Languages: ['en-US']
  • LANG Environment Variable:
  • LOCALE Environment Variable:
  • Daily Build: Verified issue still exists in daily build: http://github.com/OpenShot/openshot-qt/releases/download/OpenShot-v3.1.1-daily-11627-2034f45d-08c2cdd1-x86_64.exe

Log Files

  • openshot-qt.log (8 KB)
  • libopenshot.log: File too small or empty (not uploaded)

Exception / Stacktrace No stacktrace found in log files

Screenshots (Optional) Attached is the project file and source image that will reproduce the crash [EDIT: Attached files not required. Crash may be duplicated using any image, following the steps above]

Crash clip.zip

leodf1 avatar Feb 02 '24 20:02 leodf1

Hello @leodf1.

  1. Close OpenShot if running.
  2. Make sure your Windows 10 environment is up-to-date with all the patches.
  3. Make sure your computer hardware drivers are up-to-date.
  4. Free up as much disk space as possible.
  5. Restart Computer after all the updates and clean up has been performed.
  6. Do not start OpenShot yet.
  7. Uninstall OpenShot via Add or Remove Programs.
  8. Make a backup of c:\users\username.openshot_qt folder.
  9. Delete c:\users\username.openshot_qt folder.
  10. Install build #11627 (the latest DEV Daily build).
  11. Start OpenShot but don't open an existing project yet.
  12. Click on the Emojis tab and drag an emoji onto Track 5 at the beginning of the track,
  13. Click on Title | Title and select Bar 1. Don't make any changes and click on Save.
  14. Click on the "project files" tab and drag the title on Track 4 just below the Emoji clip on Track 5.
  15. Click on Export. Change the file name to test01.
  16. Change the "Folder Path:" to a location that you know you have permission to create a file. You can confirm this by using File Explorer and created a test folder.
  17. Click on "Export Video"

did this work?

Colorjet3 avatar Feb 02 '24 21:02 Colorjet3

[EDIT]

Ok, I've narrowed it down to the following:

  1. Place any image onto track
  2. Set Scale factor of 36 or above (Scale X and Scale Y property set to 36 or higher)
  3. Export at 1080p resolution or above (or higher resolution than Project profile)
  4. Program crashes

leodf1 avatar Feb 03 '24 02:02 leodf1

Hello @leodf1. I am unable to replicate your issue. I followed your instructions and Exported to 6 different 1080p resolution profiles (all different fps as well). I tested with 36 & 50 scale setting for both X & Y. Never crashed once.

I kept the "Targe:" at CPU MP4 (H.264) each time I exported.

  1. Did you follow my instructions in the previous thread?
  2. Does this happen with all other image files you import?
  3. If possible, please share the image file you are having this issue with so we can test with it as well.

Colorjet3 avatar Feb 03 '24 16:02 Colorjet3

Hi,

Thank you for your attention.

I have not followed your instructions yet, it seems to be the wrong direction for the issue.

Yes, it happens with every image I've tried.

Maybe you're starting with a high resolution Project profile to begin with.

Make sure your Project profile is 720p or 1080p. Load an image [you may use the one I uploaded under the 'Screenshots' section above - 'World history chart 3.jpg] Drag the image a few seconds long, say 10s. Go somewhere in between, say the middle and set the Scale X and Y to 40,00 Now try export to 1080p video

Alternatively you can simply load the project file from my upload, which has everything ready,, and try the export yourself.

Thanks

leodf1 avatar Feb 03 '24 16:02 leodf1

Hello @leodf1.

My default profile setting in OpenShot is always @720p. I have imported several images (.jpg, .png, .svg, etc.). I have set the Scale X and Y to 40,00, selected several different 1080p settings with different fps values as well and I am unable to recreate your issue.

Thank you very much for the project and image you shared. I just downloaded it, opened the project, and performed severa Exports with different 1080p settings and not a single crash. I have attached a zipped file of some screen shots so you can see that I have your project open and the Exports completing. Screenshot 2024-02-03 123642.zip

Please, give my instructions a try. It isn't going to impact your existing projects and we can continue to troubleshoot. Otherwise, I don't know what to tell you since I am unable to replicate your issue.

Colorjet3 avatar Feb 03 '24 18:02 Colorjet3

Hi,

Thank you

I completed your instructions. It worked fine.

So, I looked at your screencaps. Would you believe, every format you chose works for me too?

Please, if you have the time, do the export with - 'FHD 1080p 30fps (1920x1080)' . Which is what I've been trying, that gives the crash.

Let me know.

leodf1 avatar Feb 04 '24 10:02 leodf1

Hello, Yes, that one caused OpenShot to crash for me as well. I think for now pick something else that works for you besides that. This will have to be flagged as a bug and assigned to the lead developer to troubleshoot.

Colorjet3 avatar Feb 04 '24 17:02 Colorjet3

I did some more testing and once I reach a value of 36 for both Scale X & Y the crash happens. I did several other tests with my own .jpg file and can make it crash consistently.

I found a workaround if you are really set on using 'FHD 1080p 30fps (1920x1080)'. Here is what you do.

  1. Start OpenShot - a new project and keep it Untitled and no need to save.
  2. Import your World History chart and drag it onto a track as you have been doing.
  3. Don't make any edits.
  4. Click on Export, change the profile to 'FHD 1080 30fps (1920x1080)'. This will create a .mp4 file of the same name.
  5. Now open your existing project.
  6. Import this new .mp4 file.
  7. Now apply all your edits and save the project.
  8. Now Export using your profile and it all should be good.

Hint: If you do it this way and it works, go ahead and change the Default Profile for this project to be 'FHD 1080p 30fps (1920x1080)'. Save the project and from now on when you Export it defaults to this profile.

Colorjet3 avatar Feb 04 '24 22:02 Colorjet3

Hi,

Yes, I mentioned that in my OP above.

Thank you for sticking with it and providing the workaround.

So, I have a few simple bugs. Shall I list them here or open a new thread for each one? [For example, the Copy (Ctrl-C) shortcut does not work, etc...]

I also have a long list of undocumented features, not covered in the manual, which need to be included in the manual.

Finally, and most importantly I have a list of shortcuts that need to be implemented asap, that will make an enormous impact on the speed of use of the program. They are standard within mainstream Editors, their absence in OpenShot making it difficult to use for serious editing. In Davinci Resolve I hardly ever touch the mouse, but OpenShot had me reaching back and forth between the keyboard and mouse continuously. (I'm using OpenShot because it's the only Editor with a light UI workspace)

Let me know how to proceed. Thank you

leodf1 avatar Feb 05 '24 11:02 leodf1

You are welcome regarding the workaround.

  1. For both Bugs and Enhancements, I recommend an entry for each. It makes it much easier to manage as others may chime in. Otherwise it threads gets long and makes it difficult to figure out what we are discussing.
  2. For the "Undocumented Features" not found in the documentation. I would create just one entry.
  3. List of Shortcuts. I think this can be a single entry as well.

Please note that this project is maintained primarily by volunteers. Nothing happens fast!

In addition to submitting your bugs and enhancements in Git you can reach out to the lead developer (@jonoomph) as well with your thoughts and ideas.

I'll look forward for your bug, enhancements requests, and Manual update entries. I am not a developer. I volunteer to help others when I can, and test new features and bug fixes.

Colorjet3 avatar Feb 05 '24 14:02 Colorjet3

Hello @leodf1. This is now in the queue for review: https://trello.com/c/kCqGDKNl/174-high-zoom-scale-of-image-on-timeline-crashes-to-desktop-on-export

Colorjet3 avatar Feb 11 '24 01:02 Colorjet3