Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frameset tests sporadically fail #119

Closed
nschlia opened this issue Jan 7, 2022 · 8 comments
Closed

Frameset tests sporadically fail #119

nschlia opened this issue Jan 7, 2022 · 8 comments
Assignees
Labels

Comments

@nschlia
Copy link
Owner

nschlia commented Jan 7, 2022

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 nschlia added the bug label Jan 7, 2022
@nschlia nschlia self-assigned this Jan 7, 2022
@nschlia
Copy link
Owner Author

nschlia commented Jan 7, 2022

These are actually two problems:

  • Sometimes the next frame image is requested, and the logic schedules a search for it. But if this happens while the very last frame image is processed, the request goes astray. It would be processed before the next image is accessed, bit there is none and the transcoder process exits.
  • The transcoder has already finished and is in the process of closing the transcoder thread down. The request is not even scheduled.

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

@nschlia nschlia closed this as completed in c0ce263 Jan 7, 2022
@nschlia
Copy link
Owner Author

nschlia commented May 14, 2022

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 nschlia reopened this May 14, 2022
nschlia referenced this issue May 19, 2022
@nschlia
Copy link
Owner Author

nschlia commented May 26, 2022

Looks good after the last change.

@nschlia
Copy link
Owner Author

nschlia commented May 28, 2022

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

@nschlia nschlia closed this as completed May 28, 2022
nschlia added a commit that referenced this issue May 28, 2022
@nschlia
Copy link
Owner Author

nschlia commented May 30, 2022

FAIL: test_frameset_bmp

Still happening...

@nschlia nschlia reopened this May 30, 2022
@nschlia
Copy link
Owner Author

nschlia commented Aug 28, 2022

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

@nschlia
Copy link
Owner Author

nschlia commented Aug 28, 2022

Closed. May be re-opened if happening again.

@nschlia nschlia closed this as completed Aug 28, 2022
@nschlia
Copy link
Owner Author

nschlia commented Jan 28, 2023

Still happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant