GNOME Bugzilla – Bug 432233
Crash when passing an invalid subtitle as argument
Last modified: 2007-07-04 18:21:18 UTC
What were you doing when the application crashed? I opened a *.sub file. The file has a *.idx companion. Distribution: Ubuntu 7.04 (feisty) Gnome Release: 2.18.1 2007-04-10 (Ubuntu) BugBuddy Version: 2.18.1 System: Linux 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 X Vendor: The X.Org Foundation X Vendor Release: 70000000 Selinux: No Accessibility: Disabled GTK+ Theme: Human Icon Theme: Human Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0 CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0 ----------- .xsession-errors (6668 sec old) --------------------- Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== VDec: vo config request - 704 x 528 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. SwScaler: Lanczos scaler, from Planar YV12 to Planar YV12 using MMX2 videocodec: libavcodec (480x272 fourcc=34504d46 [FMP4]) [VE_LAVC] High quality encoding selected (non-realtime)! Writing header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Writing header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.1s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V ...Too much output, ignoring rest... -------------------------------------------------- Gnome Subtitles version: 0.4 SubLib version: 0.6 GtkSharp version: 2.10 GnomeSharp version: 2.16 GladeSharp version: 2.10 GConfSharp version: 2.16 Stack trace: SubLib.UnknownSubtitleFormatException: Unable to auto-detect the subtitle's format. at SubLib.BuiltInSubtitleFormats.Detect (System.String subtitleText) [0x00000] at SubLib.SubtitleFactory.GetSubtitleFormat (System.String subtitleText) [0x00000] at SubLib.SubtitleFactory.ParsedSubtitles (System.String path, System.Text.Encoding fileEncoding, System.String text) [0x00000] at SubLib.SubtitleFactory.Open (System.String path) [0x00000] at GnomeSubtitles.Document.Open (System.String path, System.Text.Encoding encoding) [0x00000] at GnomeSubtitles.Document..ctor (System.String path, System.Text.Encoding encoding) [0x00000] at GnomeSubtitles.GUI.Open (System.String path, System.Text.Encoding encoding, System.String videoFilename) [0x00000] at GnomeSubtitles.GUI.Start () [0x00000] at GnomeSubtitles.Global.Run () [0x00000]
Thanks for the report, I can verify this behavior. It happens when running Gnome Subtitles with a subtitle file as argument (using "Open with" from nautilus, for example). You should note, however, that those kinds of subtitles (sub + idx) aren't supported by Gnome Subtitles. GS only supports text-based subtitle formats. Sub files with accompanying idx indexes are actually image files, and can be converted to text files with specific programs. So I'll relate this bug to the fact that GS crashes when the correct behavior is to show an error message similar to the one you get by using File->Open.
Fixed in trunk.
*** Bug 453744 has been marked as a duplicate of this bug. ***