elmopl / ktba

Blender addons
MIT License
56 stars 12 forks source link

Error : EXCEPTION_ACCESS_VIOLATION #36

Open JamesO2x opened 1 year ago

JamesO2x commented 1 year ago

I'm getting errors running this addon. It seems to produce 6 mp4 files as expected, but only one of them actually works. The other 5 appear corrupted, and cant be played in VLC. Also, the concatenate doesn't seem to be happening, maybe due to the errors?

I looked at Blender's logs and here's what I found:

Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6D3298B7B
Module  : blender.exe
Thread  : 000032ac
Writing: C:\Users\USER\AppData\Local\Temp\Video_Edits_3.crash.txt
Append frame 5768
 Time: 00:00.16 (Saving: 00:00.03)

Its getting an access violation. I wonder why? I'm not running out of space or anything, and I don't think any of my files are locked or anything. I can send the crash.txt file if need be.

JamesO2x commented 1 year ago

Ok, there's a brief message before you press the "Parallel Render" button that says something about "unsaved changes" in the Blend file, and needing to create a TEMP directory. My guess is that the corrupted videos were due to unsaved changes. I made sure to save my BLEND file and redo the Parallel Render. It rendered all the parts no issue.


EDIT: I think the issue is actually that all of the Blender threads are trying to access the CACHE at the same time, causing a file access violation. I tried using Parallel render on a new project, and I had to run it 3 times (which kind of defeats the point).

I'm not sure how to solve this issue yet.


The CONCAT command still didn't work for some reason.

For anyone reading, you can manually concat using FFMPEG like this:

  1. create a file called "vidlist.txt"

  2. list all the parts of your video in that file like this:

    file 'C:\VSE\part_01.mp4' file 'C:\VSE\part_02.mp4' file 'C:\VSE\part_03.mp4' etc, etc.

  3. then run this command (or use a batch file): ffmpeg -f concat -safe 0 -i vidlist.txt -c copy output.mp4

This will take all the videos in your list and concat them as "output.mp4".