Skip to content

sfdmux segfaults on Linux and infinite loops on Windows #3

@ShadowOne333

Description

@ShadowOne333

Trying to compile the latest commits of sfdmux on Linux goes without issues by using this modified build_linux.txt shell script I made for compilation on Linux, based directly from the mingw batch. (Simply rename it to build_linux.sh, the -Wno-* arguments can be removed, I simply added them to avoid getting the warning messages during compilation)

While the compilation goes without issues, trying to create an SFD file with it fails with a segmentation fault message, like this:

[1/4] dm08_01.sfd
	This is an output file.
[2/4] dm08_01.m1v
	This is an M1V file.
	Resolution: 640x480
	Framerate: 29.970
	Length: 00:01:26.000
	Length as double: 86.000000
	Frames: 2586
	Last frame: 0x3103dd5
	Size: 51475718
	Step: 0.003386360056702
	ID: 000001e0
[3/4] dm08_01E.adx
	This is an ADX file.
	Length: 86.287000
	Size: 3106638
	Step: 0.056693166885677
	ID: 000001c0
[4/4] dm08_01J.adx
	This is an ADX file.
	Length: 86.287000
	Size: 3106638
	Step: 0.056693166885677
	ID: 000001c1

Amount of files: 4
File done: 1
85.911955
File done: 2
87.250784
File done: 3
87.250784
Segmentation fault (core dumped)

Thinking the Linux compilation was a fluke, I moved over to 64bit Windows and tried running the same command used on Linux, but the SFD creation gets stuck on an infinite loop with a bunch of Unknown sync commands. It seems like the point of failure is the creation of the SFD header with the .exe from what I could tell.

For reference, here's the base files I am using for the SFD creation:
https://www.dropbox.com/scl/fo/oxq6b12cngcfayoj5ekba/h?dl=0&rlkey=8b3ztl6vjkc2g8iwe9sfws2vr

There's an M1V file (mpeg1video) and two WAV files, the two wav files I convert to ADX by using ffmpeg like listed in the ReadMe. The video file needs to be at a bitrate of 7822 kb/s, and the audio files need to be at 32 kHz with 288 kb/s bitrate in order for the final SFD to work properly in-game (Other M).

If there's anything specific that would be needed from my part, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions