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

6.0.2 #3

Merged
merged 2 commits into from
Jun 19, 2024
Merged

6.0.2 #3

merged 2 commits into from
Jun 19, 2024

Conversation

bajankristof
Copy link
Collaborator

  • Fixes a crash where extremely long media files would cause the transcoder to fail with SystemStackError: stack level too deep

@bajankristof bajankristof force-pushed the bugfix/timeout-system-stack-error branch from dcc77c4 to f610951 Compare June 18, 2024 20:49
Copy link
Collaborator

@tamasjakli-inst tamasjakli-inst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bajankristof bajankristof merged commit 4fedfad into main Jun 19, 2024
26 checks passed
@bajankristof bajankristof deleted the bugfix/timeout-system-stack-error branch June 19, 2024 06:26
@@ -16,6 +16,7 @@ def pause

def resume
@paused = false
tick
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one seems to cause a race condition, I would change the order of the lines

the tick call is setting the @last_tick to the current date to not cause a timeout after a long pause, but the loop int the other thread can do its check between setting @paused to false and setting the @last_tick to the current time. this could end up breaking the sleep loop while we meant to keep it running (hence setting the time to be Time.now)

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

Successfully merging this pull request may close these issues.

3 participants