-
Notifications
You must be signed in to change notification settings - Fork 425
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
[BUG] Segmentation fault when extracting ts file #1234
Comments
I can't reproduce the issue on master and on 0.88. |
I am on a raspberry pi 4 if that helps troubleshoot why I am getting this error. |
How did you install ccextractor? |
I followed this tutorial https://magpi.raspberrypi.org/articles/make-comics-from-tv-recordings
However, I had to remove |
Why? |
|
Could you try with the |
installed it but still getting the same error |
segfault? Also from what I can tell, the Once you've installed |
Both VLC and ffmpeg detect there is a subtitle stream but when playing through VLC no subtitles were shown. |
just thought the error was strange, but my file is definitely bad. |
I don't have an error though. It shouldn't seg fault. |
But why is that assert being triggered? I think that might be the cause of that segfault :) |
I can't reproduce on a Raspberry either.
|
To compare
Also any tips on how to convert am mp4 with subtitles to a ts with subtitles? |
Seems to segfault inside of tesseract. |
@jamoore5 Run it with valgrind, maybe it will give info some clue. Also note that you are using tesseract 4, not tesseract 3 which is really like to be the reason we're seeing different things.
Would tell us more. @NilsIrl Yes, but let's assume it's our code causing that segfault somehow :-) |
Yes, I was mentioning that so that someone didn't went looking for |
@cfsmp3 I got the following output then it hang without exiting
|
I can't reproduce on x86 (NixOS) with tesseract 4.1.0 (in addition to tesseract 3). I'd expect valgrind to give a backtrace.
|
@jamoore5 The triggered assert looks similar to tesseract-ocr/tesseract#1670. Can you try to explicitely set the LANG variable to "C" before running CCExtractor? |
I installed my packages for tesseract, and installed the binaries which seemed to have fixed the issue. however I got the latest version
and ccextractor still sees it as 4.0.0
|
Could it be that you have both versions installed? |
Labeling as medium because we can't reproduce. |
Hey! |
@cfsmp3 Closing this (reopen if you don't agree). Original poster fixed the issue by installing tesseract 5.0 (this is also mentioned here: tesseract-ocr/tesseract#1670 (comment)). I encountered this on the SP (Tesseract 4.0.0), and there it's fixed by exporting LC_ALL. export LC_ALL=C So either we can add this in our README/compilation guide somewhere, but there's nothing to fix in our code I think. |
CCExtractor version: 0.88
Necessary information
-out=spupng -quiet
Video links
https://drive.google.com/open?id=1xs7GyYPR-DPd75CP3XJLj7CPPdVJHAVp
Additional information
!strcmp(locale, "C"):Error:Assert failed:in file baseapi.cpp, line 209
Segmentation fault
The text was updated successfully, but these errors were encountered: