machinewrapped / gpt-subtrans

Open Source project using LLMs to translate SRT subtitles
Other
311 stars 36 forks source link

Segment violation after loading the .srt #78

Closed numeropi closed 7 months ago

numeropi commented 8 months ago

INFO: Loading stylesheet from /home/kapis/Descargas/gpt-subtrans/theme/subtrans.qss INFO: GPT-Subtrans v0.4.4 INFO: Project file /home/kapis/Videos/www.Torrenting.com - Scrapper (2023) 720p WEBRip-LAMA/Scrapper.2023.720p.WEBRip.x264.AAC-LAMA.subtrans does not exist INFO: Project settings set INFO: Executing BatchSubtitlesCommand INFO: Writing project data to /home/kapis/Videos/www.Torrenting.com - Scrapper (2023) 720p WEBRip-LAMA/Scrapper.2023.720p.WEBRip.x264.AAC-LAMA.subtrans INFO: Legalised content '\n' to '' INFO: Legalised content '\n' to '' INFO: Legalised content '♪ And I was having fun,\nwe were all having fun ♪\n\n\n' to '♪ And I was having fun,\nwe were all having fun ♪' Violación de segmento (`core' generado)

I attach the subtitle that was wanted to be translated ezyzip.zip

machinewrapped commented 8 months ago

I can't reproduce the segmentation fault with those subtitles, but I guess it might have something to do with the first two lines, which are invalid. I recommend using Subtitle Edit's Fix Common Errors and Renumber tools on the source file to clean it up (https://github.com/SubtitleEdit/subtitleedit/releases), delete the .subtrans file if there is one and try again.