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

Service Execution Failure: when Running FasterWhisper as a Service on Ubuntu #1215

Open
manashb96 opened this issue Dec 24, 2024 · 0 comments

Comments

@manashb96
Copy link

Issue: Service Execution Failure - status=6/ABRT

The following code executes successfully when run directly on an Ubuntu-based system like say python3 make_transcript.py. However, when executed as a service file, it fails and exits with the error:

code=dumped, status=6/ABRT

Code Snippet

segments, _ = model.transcribe(audio_file, task='translate', vad_filter=True)
print("[Transcribing COMPLETE]")

cleaned_segments = []
stX = time.time()

for idx, segment in enumerate(tqdm(segments)):

    print(f"current running {idx} xxxxxxxxxxxxx")
    text = segment.text
    cleaned_segments.append({
        'start': segment.start,
        'end': segment.end,
        'text': cleaned_text.strip()
    })

Observed Behavior

  1. The code runs without any issues when executed directly in a terminal or Python environment.

  2. When the code is run as part of a systemd service file, it crashes with the following error and basically it does not execute properly.

  3. It runs properly until it starts entering the for loop there it crashes

    code=dumped, status=6/ABRT
    
  4. Observe the failure in logs.

I would be very grateful if anyone can identify the cause of the failure and provide a resolution or guidance on debugging this issue further.

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

No branches or pull requests

1 participant