nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
206 stars 14 forks source link

Frameset tests sporadically fail #119

Closed nschlia closed 1 year ago

nschlia commented 2 years ago

One of frameset tests (test_frameset_bmp, test_frameset_jpg, test_frameset_png) occasionally fails. Next build it succeeds, or another fails. Seems to be a thread synchonisation/timing problem.

Example:

FAIL: test_frameset_bmp

Log has some explanation:

2022-01-05 20:30:45 ERROR : [srcdir/frame_test_pal.mp4] Reading image frame no. 4: (11) Resource temporarily unavailable The error code EAGAIN (Resource temporarily unavailable) is returned when a frame is not returned within 30 seconds. Quite unlikely...

nschlia commented 2 years ago

These are actually two problems:

In both cases, the read action waits until time out, no image is returned.

nschlia commented 2 years ago

Problem still comes up:

$ ./test_frameset_bmp
Checking number of files is 250
Number of files OK
Checking access with full name
>> Checking 000204.bmp
'/tmp/tmp.KQRERvDGfk/frame_test_pal.mp4/000204.bmp' -> '/dev/null'
>> Checking 000004.bmp
'/tmp/tmp.KQRERvDGfk/frame_test_pal.mp4/000004.bmp' -> '/dev/null'
cp: error reading '/tmp/tmp.KQRERvDGfk/frame_test_pal.mp4/000004.bmp': Connection timed out
Return code: 1
nschlia commented 2 years ago

Looks good after the last change.

nschlia commented 2 years ago

Several new builds, did not happen any more, seems to be fixed!

nschlia commented 2 years ago

FAIL: test_frameset_bmp

Still happening...

nschlia commented 2 years ago

It hasn't appeared since May. Oh how I hate these kinds of bugs. Is it now fixed or is it not?!?

nschlia commented 2 years ago

Closed. May be re-opened if happening again.

nschlia commented 1 year ago

Still happens