Page 1 of 1

Entity working sound causes hard freeze

Posted: Sat Sep 24, 2022 1:23 pm
by lyvgbfh
Hello,

I was submitted a bug report from a user stating that his game was freezing "on input" from a save that used to work. On further investigation, I found that it happened when his character/camera hearing range passed a certain entity that was actively working (pyindustry's accumulator-mk01).

Below are the steps to recreate this issue:
1. Sync and load the provided save with PyIndustry 1.5.2 (problematic audio file was replaced in 1.5.3)
2. Unpause time
Optional:
3. Sync and load the provided save after launching the game with --disable-audio
4. Unpause time
5. Observe lack of freezing


Thanks again for including the debug symbols with the game, this made tracking this down so much easier.

Re: [1.1.64?-1.1.69] Entity working sound causes hard freeze

Posted: Sat Sep 24, 2022 1:26 pm
by boskid

Re: [1.1.64?-1.1.69] Entity working sound causes hard freeze

Posted: Sat Sep 24, 2022 1:31 pm
by lyvgbfh
boskid wrote:
Sat Sep 24, 2022 1:26 pm
102991
Thanks, that hadn't come up in my search. I'd also like to note this doesn't happen with the audio backend set to allegro.

Re: Entity working sound causes hard freeze

Posted: Sat Sep 24, 2022 3:04 pm
by Rseding91
All of the audio files that have had this issue have had a video stream imbedded into the file as the first audio stream. As far as I've seen; a video stream in an ogg is not a valid ogg file.