Fix Subtitle Editor crash on loading subtitle

cool_penguin_smallAs far as I remember I found this issue on Ubuntu 12.04 and it is still there in 13.04 – when you load a new subtitle (I tried a .srt) for editing, Subtitle Editor immediately crashes if the corresponding video is also present in the directory. So embarrassing!!! This is a nasty bug which has somehow survived through years! On using strace it shows the point of crash –

open("/usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstplaybin.so", O_RDONLY|O_CLOEXEC) = 10
read(10, "\177ELF\2\1\1\3>\1`\214"..., 832) = 832
fstat(10, {st_mode=S_IFREG|0644, st_size=269344, ...}) = 0
mmap(NULL, 2364912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0x7f1f07a55000
mprotect(0x7f1f07a94000, 2097152, PROT_NONE) = 0
mmap(0x7f1f07c94000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x3f000) = 0x7f1f07c94000
close(10)                               = 0
mprotect(0x7f1f07c94000, 4096, PROT_READ) = 0
rt_sigaction(SIGSEGV, {0x7f1f2fc28970, [], SA_RESTORER, 0x7f1f2cc64bd0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x7f1f2cc64bd0}, NULL, 8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
 +++ killed by SIGSEGV +++
 Segmentation fault

The crash happens after it tries to open libgstplaybin.so which is provided by the gstreamer library. I don’t know why a subtitle editor has to roam around in unknown territories and support playing videos (when it does its own job so well!).

The issue can be fixed simply by opening Subtitle Editor. The navigate to Options ▸ Preferences ▸ Video Player. Uncheck Automatically choose video to open and you are done. It won’t crash any more when loading a new subtitle.

Oh yes! Do the same operation using sudo (as root) and it works fine.

One thought on “Fix Subtitle Editor crash on loading subtitle”

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s