olive-editor / olive

Free open-source non-linear video editor
https://olivevideoeditor.org/
GNU General Public License v3.0
8.24k stars 556 forks source link

[EXPORT] #2211

Open EstebanFPV opened 1 year ago

EstebanFPV commented 1 year ago

Commit Hash 5626e6ae

Platform Kubuntu 22.10

Summary Whenever i try to export a video olive crashes as soon as i click export. Started happening with the previous nightly build so i updated to the 3/30/23 one and the issue persists. Returns: SIGSEGV /SEGV_MAPERR I haven't found anything else in the log that looks useful

Additional Information / Output https://youtu.be/nbr3Pno0zLA sorry for the awful audio, not sure why it's so bad

itsmattkc commented 1 year ago

This doesn't really tell me much. Exports are fine on my end. Do you get a crash report? If it started in a recent commit, can you find the last commit that didn't crash?

EstebanFPV commented 1 year ago

This doesn't really tell me much. Exports are fine on my end. Do you get a crash report? If it started in a recent commit, can you find the last commit that didn't crash?

Updated with video showing bug. Hopefully that helps some

ThomasWilshaw commented 1 year ago

Can you share the crash report you're getting?

EstebanFPV commented 1 year ago

Can you share the crash report you're getting?

how do i do that?

on another note. i managed to get that video to export, seemed to be something to do with my timeline settings? now i have another video that says it renders ~22-27 seconds of video then quits counting. the only way to exit the exporting dialogue is to click the x button, which crashes the program.

itsmattkc commented 1 year ago

how do i do that?

In your video, there's a crash report that appears that you then click "Don't Send" on. Instead, copy and paste the contents here.

EstebanFPV commented 1 year ago

how do i do that?

In your video, there's a crash report that appears that you then click "Don't Send" on. Instead, copy and paste the contents here.

With my latest issue no crash report comes up

itsmattkc commented 1 year ago

Then use GDB: https://github.com/olive-editor/olive/wiki/Debugging-Olive

itsmattkc commented 1 year ago

Are you absolutely sure it doesn't finish exporting if you were to leave it without cancelling?

EstebanFPV commented 1 year ago

Are you absolutely sure it doesn't finish exporting if you were to leave it without cancelling?

i mean, i left it alone for a half hr

EstebanFPV commented 1 year ago

image

itsmattkc commented 1 year ago

When is this? Is this during export?

EstebanFPV commented 1 year ago

When is this? Is this during export?

Yes, i opened olive, tried to export, and then force closed it when it quit at around 26 seconds

itsmattkc commented 1 year ago

There's some kind of issue happening with one of the footage files you're using. It's trying to read the audio and encountering an error, so it tries again, encounters the same error, and does this infinitely, hence why the export hangs. Ideally it would cancel the export the first time it hits this error, but I've never encountered a file that does this, so it's never been written to handle it.

Would you be able to send this file? The log doesn't say what file exactly, but it's one with AAC audio in it.

EstebanFPV commented 1 year ago

There's some kind of issue happening with one of the footage files you're using. It's trying to read the audio and encountering an error, so it tries again, encounters the same error, and does this infinitely, hence why the export hangs. Ideally it would cancel the export the first time it hits this error, but I've never encountered a file that does this, so it's never been written to handle it.

Would you be able to send this file? The log doesn't say what file exactly, but it's one with AAC audio in it.

there's a lot of video files in this project. i did have olive automatically select timeline settings i think off of a 2.7k 30 gopro file, and when i go to export it is exporting audio as AAC. if i switch the audio to mp3 the issue persists tho

EstebanFPV commented 1 year ago

all files are .mp4 from a phone and gopro, with a couple .mp3 music files

itsmattkc commented 1 year ago

It's not about exporting to AAC or Olive's sequence settings, it's about one of the files that happens to contain AAC audio. It may be slightly corrupt, which is what's tripping up FFmpeg/Olive and throwing the error.

The error in question is that channel element 2.1 is not allocated message. Maybe try scrubbing the timeline with a log/terminal side by side and see which clip/file throws that error (make sure audio scrubbing is on because it's definitely an audio error).

EstebanFPV commented 1 year ago

and it could be any file, not nescesarily the one at 26 seconds?

itsmattkc commented 1 year ago

No, the timers in the export dialog count realtime (i.e. how many real hours/minutes/seconds have elapsed), not how much of the sequence has been rendered.

EstebanFPV commented 1 year ago

image

EstebanFPV commented 1 year ago

didn't touch the timeline (just loaded the proj) and got all this

itsmattkc commented 1 year ago

Yes, it will also try to access the audio files on startup to generate the timeline waveforms, and is again encountering the same error. But it still doesn't tell us which file(s) are causing the problem.

EstebanFPV commented 1 year ago

found an audio track that throws the 2.1 thing, we'll see what happens without that

EstebanFPV commented 1 year ago

image nope...

itsmattkc commented 1 year ago

If it's still throwing them, then there are more with that same issue.

itsmattkc commented 1 year ago

If you can send me one of the files that triggers that error, I can improve the way Olive handles it.

EstebanFPV commented 1 year ago

If you can send me one of the files that triggers that error, I can improve the way Olive handles it.

I'll make sure it's the files i think it is that's actually causing the issue quick

EstebanFPV commented 1 year ago

Now it just straight up crashed, i didn't even have to close it... All i did was get rid of 2 audio clips, and save

EstebanFPV commented 1 year ago

I scrubbed through it and couldn't find any more, though it did say "failed to pull from buffersink" quite a bit

itsmattkc commented 1 year ago

I scrubbed through it and couldn't find any more, though it did say "failed to pull from buffersink" quite a bit

That's not a good sign either. If you can send a file that causes this error too, that would be helpful.

EstebanFPV commented 1 year ago

well, that will be more difficult, quite a few files returned that error

itsmattkc commented 1 year ago

I only need one.

EstebanFPV commented 1 year ago

seems like it's mostly nested sequences for both errors

EstebanFPV commented 1 year ago

In the Sweet By and By - Zachariah Hickman.zip

EstebanFPV commented 1 year ago

there's one that threw the 2.1 error i think

EstebanFPV commented 1 year ago

it doesn't seem to like any of my nested sequences of gopro videos that are sped up in olive.

itsmattkc commented 1 year ago

It can't be this one. The error is during an AAC read and this is an MP3 file.

EstebanFPV commented 1 year ago

the 2.1 error went away from that part of the timeline when i removed that file :shrug:

EstebanFPV commented 1 year ago

i'd send you my project file and all my assets, but that would be a rather large .zip file

itsmattkc commented 1 year ago

Often when I can't reproduce issues on my end, I offer to remote in so I can see exactly what's happening myself and try to fix it. Would you be open to doing that? If so, I'll add you on Discord and we can go from there.

EstebanFPV commented 1 year ago

ok

EstebanFPV commented 1 year ago

i'm on linux if that makes it harder or easier. why, i really have no idea. i'm not smart enough to use it properly.