rust-ffmpeg-sys icon indicating copy to clipboard operation
rust-ffmpeg-sys copied to clipboard

Stack overflow on Windows

Open leo60228 opened this issue 4 years ago • 6 comments

This is happening in my CI: https://github.com/leo60228/hsmusicifier/runs/1751852366?check_suite_focus=true

I use Linux, so I'm not able to debug this further currently.

leo60228 avatar Jan 22 '21 22:01 leo60228

main in build.rs is using just over the maximum of 2M of stack. I couldn't figure out why this is the case, but adding this to .cargo/config works around the issue:

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "link-arg=/STACK:4194304"]

leo60228 avatar Jan 24 '21 02:01 leo60228

See #12

AdrianEddy avatar Feb 03 '21 19:02 AdrianEddy

Why is this still not merged? :(

jwiesler avatar Feb 26 '21 00:02 jwiesler

I also just got hit by this - it would be great if #12 can be merged

rib avatar Feb 28 '21 00:02 rib

Ah, it's looking like maybe the original ffmpeg-sys project that this was forked from might have come back to life, since it looks like there's active development there, including a fix for this issue: https://github.com/meh/rust-ffmpeg-sys/issues/94

rib avatar Feb 28 '21 00:02 rib

Hey, I forked the sys crate and the ffmpeg-next crate and merged most of the current merge requests of both crates. If you have no problem with using a non crates.io crate, you can use this one. I will keep merging pull requests because these repositories seem mostly abandonded.

jwiesler avatar May 12 '21 20:05 jwiesler