After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 432233 - Crash when passing an invalid subtitle as argument
Crash when passing an invalid subtitle as argument
Status: RESOLVED FIXED
Product: gnome-subtitles
Classification: Other
Component: general
0.4
Other All
: High critical
: ---
Assigned To: Maintainers of GNOME subtitles
Maintainers of GNOME subtitles
: 453744 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-04-22 12:13 UTC by ciddan
Modified: 2007-07-04 18:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description ciddan 2007-04-22 12:13:03 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]
Comment 1 Pedro Castro 2007-04-23 00:26:47 UTC
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.
Comment 2 Pedro Castro 2007-04-23 21:37:01 UTC
Fixed in trunk.
Comment 3 Pedro Castro 2007-07-04 18:21:18 UTC
*** Bug 453744 has been marked as a duplicate of this bug. ***